merge -r 60439:60440
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
2
3         * Control.cs: 
4           - Added new InternalCapture method to allow controls to prevent
5             the capture behaviour on the click handlers
6           - Switched to use InternalCapture
7         * ComboBox.cs:
8           - Using InternalCapture to prevent mouse captures from being released
9             on mouse button release (Fixes #78100)
10         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
11           returns Form borders if a caption is present. (Fixes #78310)
12
13 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
14
15         * TreeNode.cs: Changed serialization .ctor to not require every field
16           to be present. (#78265)
17         * OwnerDrawPropertyBag.cs: Added serialization .ctor
18
19 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
20
21         * MimeIcon.cs: for is faster than foreach for strings.
22
23 2006-05-05  Mike Kestner  <mkestner@novell.com>
24
25         * CheckedListBox.cs: update check handling code to not use selected.
26         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
27         behavior for visual feedback, motion response, shift/ctrl handling,
28         and properly deal with all 4 selection modes. Updates to bounds
29         handling logic.  Add scroll wheel support. [Fixes #77842]
30
31 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
32
33         * ListView.cs:
34           - Moved adding of Implicit controls into .ctor. That way, subsequent
35             creation of the controls will not cause them to think they are 
36             toplevel windows (fixes #78200 header problem)
37           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
38           - Switched visibility setting of header control to use internal field
39             to avoid triggering handle creation
40           - Now checking if handle is created before causing a refresh when items
41             are added (This makes us now match handle creation time with MS)
42         * Splitter.cs: Removed loading of private splitter cursor, switched to
43           Cursors version now that that is loading the right ones
44         * Cursors.cs: Load proper splitter cursors from resources
45         * Cursor.cs: Added second method of loading resource cursors for the 
46           VS.Net users amongst us
47
48 2006-05-05  Mike Kestner  <mkestner@novell.com>
49
50         * ListView.cs: give header_control a minimum size based on the
51         ListView size.
52
53 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
54
55         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
56           window seems to do that with metacity, so set that type. (#78120)
57
58 2006-05-05  Mike Kestner  <mkestner@novell.com>
59
60         * ListViewItem.cs: fix Details mode checkbox layout bug.
61         * ThemeWin32Classic.cs: draw a ListView column header for unused space
62         at the end of the header, if it exists. [Fixes for #78200]
63
64 2006-05-04  Jackson Harper  <jackson@ximian.com>
65
66         * MdiClient.cs: Add a helper property to get the container form.
67         * MdiWindowManager.cs: We have to make sure to use the menu origin
68         when drawing the icons and buttons, this fixes maximized window
69         icons/buttons on win32.
70         * InternalWindowManager.cs: Reset the restore captions when a
71         window goes from Maximized to Minimized and vice versa. Move the
72         DrawMaximizedButtons into the MdiWindowManager source, tool
73         windows can't be maximized. NOTE: This could use a little
74         refactoring if time ever permits.
75         
76 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
77
78         * TextBox.cs: Add MWFCategoryAttributes
79         * TextBoxBase.cs: Add MWFCategoryAttributes
80         * Form.cs: Add MWFCategoryAttributes
81
82 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
83
84         * Control.cs: Add MWFCategoryAttributes
85         * ScrollableControl.cs: Add MWFCategoryAttributes
86
87 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
88
89         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
90           Divider is true. Fix a little glitch in PropertyToolBar
91           drawing code
92
93 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
94
95         * Control.cs:
96           - Dispose: Call base.Dispose, this causes the disposed event
97             to be fired (and probably other, more important stuff)
98           - SetVisibleCore: Set is_visible to true after creating the
99             window so that the window still gets created invisible (if
100             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
101             to generate a WM_ACTIVE message
102         * Form.cs: Call Dispose when we want to destroy the window, instead of
103           just destroying the handle (Dispose will do that for us)
104         * XplatUIX11.cs:
105           - RootWindow also needs a queue, so we can properly process the
106             property change events from RootWindow (like Activate)
107           - Generatic synthetic WM_ACTIVE message when the active window is
108             being destroyed
109
110 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
111
112         * LinkLabel.cs: Trigger a recalc of our label dimensions when
113           bounds are changed
114
115 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
116
117         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
118           for determining width and height (image might not be assigned if
119           we're drawing an imagelist)
120
121 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
122
123         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
124         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
125           height from system
126         * Theme.cs: No longer returns hardcoded menu height, instead calls
127           new driver method
128         * Form.cs (OnLoad): Scaling happens before triggering Load events 
129           on MS (# 78257)
130
131 2006-05-01  Mike Kestner  <mkestner@novell.com>
132
133         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
134
135 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
136
137         * TextBoxBase.cs: Removed Fixme
138         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
139
140 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
141
142         * XplatUIX11.cs:
143           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
144             the rectangle relative to the parent, considering borders. We
145             don't really want that.
146           - ScrollWindow: Fixed warning to be more understandable
147         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
148           scrollbars and scroll only the visible area
149         * RichTextBox.cs: Removed debug output
150
151 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
152
153         * NumericUpDown.cs (Text): Just use base
154         * UpDownBase.cs: Ensure txtView is created before using it
155
156 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
157
158         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
159           casting to IntPtr to avoid 64bit overflow errors
160
161 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
162
163         * Control.cs:
164           - AllowDrop: Don't force handle creation.
165           - CreateHandle: Added call to tell driver if we're allowed to drop
166
167 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
168
169         * FileDialog.cs: Remember the last directory not only for the
170           current instance but also for new FileDialog instances.
171
172 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
173         
174         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
175           broke sending async messages
176
177 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
178
179         * XplatUIX11.cs:
180           - ScrollWindow: Fixed method. We finally generate expose events again
181             for scrolled areas. This was causing 'garbage' when scrolling
182             textbox and other controls that used ScrollWindow
183           - Switched from using the regular queue for paint events to the MS 
184             model of 'generating' paint events when the queue is empty.
185             We use the new XQueueEvent.Paint subclass to store which windows
186             need painting.
187           - AddExpose now takes the x/y/width/height of the exposed area
188             and inserts the window into the paint queue if not already there
189           - InvalidateWholeWindow: Switched to use new AddExpose method
190           - UpdateMessageQueue: Added which queue to monitor for paint events
191           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
192             the unlikely case nothing above handles it. We reset the expose
193             pending states to get them off the queue.
194           - GetMessage: Now pulls a paint event if no other events are in the
195             queue
196           - Invalidate: Switched to new AddExpose method
197           - PeekMessage: Updated to understand pending paint events
198           - UpdateWindow: Fixed logic bug. We were only updating if the window
199             didn't need updating. Also switched to sending WM_PAINT directly,
200             like MS does.
201         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
202           and random access Remove(). The random access is needed to handle
203           UpdateWindow() where a WM_PAINT is sent directly without accessing
204           the queue.
205         * ScrollBar.cs: Added Update() calls to cause immediate updates to
206           allow for better feedback when scrolling. Scrollbars are small and
207           the immediate update should make it 'feel' more responsive without
208           slowing things down. ScrollBar still needs it's invaliate logic
209           updated to not always invalidate the whole bar on certain changes.
210
211 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
212
213         * Control.cs:
214         (BackColor): if the control does not support a transparent background,
215         return the default backcolor when the parent backcolor is transparent.
216
217 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
218
219         * Application.cs: Updated to new StartLoop/GetMessage API
220         * RichTextBox.cs: Provide some output on RTF parsing errors
221         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
222           new queue_id argument to GetMessage and PeekMessage to allow faster
223           handling of per-thread queues in drivers.
224         * Hwnd.cs: Added Queue tracking and property
225         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
226         * XEventQueue.cs: Added thread trackingA
227         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
228         * XplatUIX11.cs:
229           - Implemented new per-thread queue
230           - GetMessage: Fixed return/break behaviour on several cases. We were
231             returning stale messages in some cases, instead of just processing
232             the next message
233
234 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
235
236         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
237
238 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
239
240         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
241           fixed off-by-one comparisons between Width/Height and Right/Bottom.
242
243 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
244
245         * PropertyGridView.cs: Fix drop down width.
246
247 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
248
249         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
250           a mess in DrawToolBar, so I removed one of them.
251
252 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
253
254         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
255           needed (clip). Otherwise we get artifacts.
256
257 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
258
259         * FixedSizeTextBox.cs: Added constructor to allow specifying which
260           dimension is fixed
261         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
262           and switched FixedSizeTextBox to only be fixed vertical (#78116)
263         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
264           if it matches the scale base font (avoids unneeded scaling)
265
266 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
267
268         * X11DesktopColors.cs: One gtk_init_check should be enough
269
270 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
271
272         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
273           match MS behaviour
274
275 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
276
277         * TextBoxBase.cs: 
278           - Generate OnTextChanged for Backspace even if we're only deleting
279             the current selection
280           - When setting the Text property, only select all text if the
281             control does not have focus when it is being set. Otherwise
282             just place the cursor at the beginning of the control
283
284 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
285
286         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
287           Added a little helper to draw PropertyGrid ToolBar with a different
288           border and a different BackColor.
289         * PropertyGrid.cs: Some background parts didn't get painted with the
290           correct background color. Added a class that helps us to draw the
291           correct border for PropertyGridView and a class that helps us to
292           draw ToolBars with a different backcolor
293         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
294
295 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
296
297         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
298         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
299
300 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
301
302         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
303           into the palette entries. Also, since we're working on a copy
304           we needed to copy the palette back onto the bitmap.
305         * Cursor.cs: Same fix as XplatUIWin32.cs.
306
307 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
308
309         * ImageListStreamer.cs: Need to read the var (or we're off)
310
311 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
312
313         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
314           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
315           TextBoxBase.cs: Unused var fixes
316         * AxHost.cs: Small 2.0 fix
317         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
318           as it seems that is what at least Metacity expects. This will make
319           icons show up on 64bit platforms. We still have some 64bit size
320           issues, though, since the startup app window size still won't match.
321
322 2006-04-25  Mike Kestner  <mkestner@novell.com>
323
324         * *.cs: cleanup newly reported exception var unused warnings.
325
326 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
327
328         * ThemeWin32Classic.cs: Button image alignment now matches exactly
329           ms
330
331 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
332
333         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
334           image. The image position is always the same, no matter if the
335           button is pressed or not.
336
337 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
338
339         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
340           selection and set the correct filename for SaveFileDialog.
341           Patch by Emery Conrad.
342
343 2006-04-24  Mike Kestner  <mkestner@novell.com>
344
345         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
346         check for item.X outside the ClientRect instead of item.Y. Fixes
347         #78151.
348
349 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
350
351         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
352         trust that value blindly and do some sanity check. Fixes bug #77814.
353
354 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
355
356         * ImageListStreamer.cs: save the mask as a 1bpp image.
357
358 2006-04-21  Mike Kestner  <mkestner@novell.com>
359
360         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
361         pass Checked and Indeterminate to the Theme Engine. Improve
362         encapsulation with ListBox.
363         * ListBox.cs: Keep a StringFormat instead of calculating it every item
364         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
365         nested types.  Move all CheckState functionality to CheckedListBox.
366         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
367         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
368         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
369         single base list. Fix scrollbar sizing and placement to mirror MS.
370         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
371         used.
372         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
373         for CheckedListBox by using new DrawItemState info.  Center the
374         checkboxes on the items. Use new StringFormat property.
375
376 2006-04-18  Jackson Harper  <jackson@ximian.com>
377
378         * Form.cs: MdiChildren don't do default locations the same way as
379         regular forms.  This prevents a crash when trying to position the
380         mdi windows.
381
382 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
383
384         * PropertyGridTextBox.cs: Formatting, copyright
385         * PropertiesTab.cs: Formatting
386         * PropertyGrid.cs: Formatting
387         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
388           click toggling of values
389           
390 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
391
392         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
393         * Control.cs (.ctor): verify_thread_handle is static, don't reset
394           every time a control is created
395         * Application.cs: Removed obsolete EnableRTLMirroring method
396
397 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
398
399         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
400         SelectedIndex to -1. Fixes bug #78121.
401
402 2006-04-17  Jackson Harper  <jackson@ximian.com>
403
404         * Binding.cs: Handle null values for Current and BindingContext.
405         This occurs when binding is a little delayed.
406         * CurrencyManager.cs: return null for Current when there are no
407         items in the list.
408         - Hookup to the listchanged event on the DataView and update
409         bindings when the list is changed.  This fixes late binding of
410         controls.
411
412 2006-04-17  Jackson Harper  <jackson@ximian.com>
413
414         * X11Dnd.cs:
415         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
416         Ringenbach.
417
418 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
419
420         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
421           place
422         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
423           with the correct ButtonState
424
425 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
426
427         * XplatUIX11.cs: Improved distinguishing between window types to
428           tell the WM a type closer to what the app wants (Fixes #78107)
429
430 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
431
432         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
433           GrabHandle
434
435 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
436
437         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
438           drawing code to reflect the size grip changes
439
440 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
441
442         * ImageListStreamer.cs: fix handling of the mask that follows the main
443         bitmap when deserializing and serialize it properly. The generated mask
444         should better be a 1bpp image, but I'll do that later.
445
446 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
447
448         * FileDialog.cs: Show something in the DirComboBox on *nix if the
449           path doesn't fit into some of our Current.Places
450
451 2006-04-13  Jackson Harper  <jackson@ximian.com>
452
453         * ComboBox.cs: Use borders instead of drawing our own decorations,
454         try to obey correct rules for heights.
455         * Theme.cs:
456         * ThemeNice.cs:
457         * ThemeClearLooks.cs:
458         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
459         this is now handled by borders.
460         - Remove unused DrawListBoxDecorationSize method.
461         
462 2006-04-13  Mike Kestner  <mkestner@novell.com>
463
464         * MenuAPI.cs: null guarding for the disbled click check fixes crash
465         reported by Alex.
466
467 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
468
469         * ThemeWin32Classic.cs: 
470           - Fixed CPDrawStringDisabled
471           - Corrected drawing of disabled menu items
472           - Fixed drawing of disabled radio buttons (bug #78095)
473           - Draw check in a disabled CheckBox with color ControlDark 
474
475 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
476
477         * Form.cs: Use the provided width when calculating the menu size;
478           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
479           and ClientSize.Width won't be updated yet
480         * Application.cs: Use Visible instead of Show() to make form visible,
481           this way we create the handle later and menusize is considered
482
483 2006-04-12  Mike Kestner  <mkestner@novell.com>
484
485         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
486         reporting.
487
488 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
489
490         * TextBox.cs: Implemented context menu
491
492 2006-04-12  Mike Kestner  <mkestner@novell.com>
493
494         * ListView.cs: implement box selection. fixes #77838.
495         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
496
497 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
498
499         * XplatUIX11.cs: Added setting of window type when transient window
500           is created (metacity would move it otherwise)
501         * X11Structs.cs: Added WINDOW_TYPE atoms
502         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
503           background (the control is Opaque but still wants transparent
504           backgrounds)
505
506 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
507
508         * Control.cs: Added OnPaintBackgroundInternal to allow controls
509           that set Opaque but don't mean it (like all ButtonBase-derived
510           controls) to still draw their background
511         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
512           the background
513
514 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
515
516         * Control.cs (PaintControlBackground): Set the graphics object
517           on our PaintEvent to null to prevent it from being disposed
518           when the PaintEvent gets disposed
519
520 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
521
522         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
523         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
524
525 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
526
527         * Control.cs: 
528           - Added transparency check to BackColor property. Transparent
529             backgrounds are only allowed if the control styles permit it
530           - Added recursive painting of parent control background and
531             foreground if a control with a transparent backcolor is drawn
532             (Thanks to Tim Ringenback for providing his 'hack' as a base
533              for this patch) Fixes #77985 and #78026.
534           - Added Opaque style check before calling OnPaintBackground, no
535             need to draw the background if the control is opaque
536           - Removed ControlAccessibleObject owner variable (inherited from
537             base, no need to define again)
538           - Added some documentation links explaining the drawing events
539             and styles
540
541 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
542
543         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
544           that the affected control is the located at the left border of our
545           parent (Fixes #77936)
546
547 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
548
549         * TextBoxBase.cs: When rendering disabled or readonly controls,
550           draw the background with 'Control' instead of 'Window' color as
551           long as the user hasn't specifically set a color
552
553 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
554
555         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
556           since that won't be updated if the user types text (only if it's
557           programatically set)
558
559 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
560
561         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
562           layout changes do to app-triggered resizes will have the proper
563           display rectangle for layout
564
565 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
566
567         * ThemeWin32Classic.cs:
568           - Make use of the SystemBrushes and SystemPens wherever possible
569           - Corrected some highlight colors
570           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
571             drawing
572         * Theme.cs: Added Empty field to CPColor struct
573
574 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
575
576         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
577           is displayed when calculating the display rectangle. Thanks to Mike
578           for teaching me the err of my ways.
579
580 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
581
582         * ScrollableControl.cs:
583           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
584             (instead of 0,0) and we now return the real width/height instead of
585             just the clientrectangle, adjusted for padding. The rectangle is
586             now cached and created by the new CalculateDisplayRectangle method.
587           - Created new CalculateDisplayRectange method, which basically does
588             what get_DisplayRectangle() did originally, but now using the 
589             right edge instead of DisplayRectangle to determine the size of
590             our scrollbars
591           - get_Canvas(): Fixed it to properly calculate canvas for 
592             right/bottom controls which seem to be placed to the right/bottom
593             of any controls that have a fixed location
594           - Removed TODO that's taken care of
595           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
596             and SetDisplayRectLocation according to new MSDN2 docs
597           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
598             event when that is called, this is added for compatibility
599           - ScrollControlIntoView(): Implemented.
600           - Switched scrollbars to be implicit, they shouldn't be selectable
601         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
602           call it when the active control is set/changed
603         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
604         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
605           implicit_control variable (used for native Win32 message generation)
606         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
607           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
608         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
609         * XplatUIStructs.cs: Added ScrollBarCommands enum
610
611 2006-04-10  Jackson Harper  <jackson@ximian.com>
612
613         * ButtonBase.cs:
614         * CheckedListBox.cs:
615         * ComboBox.cs:
616         * DataGrid.cs:
617         * DataGridView.cs:
618         * Form.cs:
619         * GroupBox.cs:
620         * ListBox.cs:
621         * PrintPreviewControl.cs:
622         * ProgressBar.cs:
623         * PropertyGrid.cs:
624         * Splitter.cs:
625         * StatusBar.cs:
626         * TrackBar.cs:
627         * UpDownBase.cs: Fixup base event overrides.
628         
629 2006-04-06  Mike Kestner  <mkestner@novell.com>
630
631         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
632         all user-initiated value changes to min <= value <= max-thumbsz+1.
633         (set_Value): check for vert/horiz when calculating new thumb position.
634         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
635         like MS does.
636         (OnMouseMoveSB): refactor the thumb dragging code and refine
637         invalidation logic to reduce flicker.
638         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
639         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
640         (UpdateThumbPosition): small code readability cleanup
641
642 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
643
644         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
645           different
646
647 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
648
649         * ThemeNice.cs: Use a better graphics effect when a button is pressed
650
651 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
652
653         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
654         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
655           This dramatically reduces the number of Pen.Dispose calls. 
656           Where possible call ResPool methods only once instead of calling it
657           over and over again (for example for the same color).
658
659 2006-04-06  Mike Kestner  <mkestner@novell.com>
660
661         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
662         Also remove an unused private field on the collection. Fixes #77972.
663
664 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
665
666         * ThemeNice.cs: Added ToolBar drawing code
667
668 2006-04-06  Mike Kestner  <mkestner@novell.com>
669
670         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
671         I'm assuming that means we need to look up the toplevel for the
672         provided control. Fixes the crash trace in #77911 but exposes another
673         crash in some strange reflection usage in NDocGui.
674
675 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
676
677         * ThemeNice.cs: Gave it a little silver touch and added Images
678           method
679         * FontDialog.cs: FontDialog is not resizable
680         * FileDialg.cs: Added SizeGripStyle.Show
681
682 2006-04-05  Jackson Harper  <jackson@ximian.com>
683
684         * KeyboardLayouts.cs: Remove warning.
685
686 2006-04-05  Jackson Harper  <jackson@ximian.com>
687
688         * Control.cs: Enable OnPaintInternal so we can use it for drawing
689         all of our controls instead of Paint +=.
690         * ListBox.cs:
691         * ListView.cs:
692         * MenuAPI.cs:
693         * MessageBox.cs:
694         * NotifyIcon.cs:
695         * ProgressBar.cs:
696         * ScrollBar.cs:
697         * Splitter.cs:
698         * StatusBar.cs:
699         * TabControl.cs:
700         * TextBoxBase.cs:
701         * ToolBar.cs:
702         * TrackBar.cs:
703         * UpDownBase.cs:
704         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
705         use OnPaintInternal. Remove Width/Height and Visible checks in
706         paint handler, this is done at a higher level now.
707         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
708         * PaintEventArgs.cs: Add a handled flag so controls that don't
709         want anymore painting after OnPaintInternal can make sure OnPaint
710         isn't called.
711
712 2006-04-05  Mike Kestner  <mkestner@novell.com>
713
714         * Form.cs: fix the menu WndProc hacks to respect the native enabled
715         state of the form, so that we don't process events when Modal dialogs
716         are up. Fixes #77922.
717
718 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
719
720         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
721           checking is done.
722
723 2006-04-05  Mike Kestner  <mkestner@novell.com>
724
725         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
726
727 2006-04-05  Mike Kestner  <mkestner@novell.com>
728
729         * ListView.cs (HeaderMouseMove): null guarding for the over column
730         when setting up the drag_to_index.  Fixes #78015.
731
732 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
733
734         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
735           in the taskbar. Transient windows seem to accomplish that.
736
737 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
738
739         * Form.cs:
740           - Re-enabled CreateParams.X/Y code for FormStartPosition
741           - Added code for manual placement when creating the Control
742           - Incomplete patch to treat MDI forms differently when
743             setting the ClientSizeCore. (Still need to figure out handling
744             x/y coords there)
745         * XplatUIX11.cs:
746           - When we're explicitly setting the X/Y position of a non-Child
747             window, let the WM know. Metacity really wants this.
748
749 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
750
751         * ThemeNice.cs: Added CPDrawButton
752
753 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
754
755         * ThemeNice.cs: Changed the color for focused buttons and activated
756           the arrows for small scroll buttons.
757
758 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
759
760         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
761           anymore. Changed some method modifiers to protected (virtual)
762         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
763           changes
764         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
765           Updated drawing of menus, buttons and progressbars; added
766           CPDrawBorder3D 
767
768 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
769
770         * ImageListStreamer.cs: implemented serialization/deserialization
771         of the images.
772
773 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
774
775         * ThemeWin32Classic.cs:
776           - Removed all the DrawFrameControl stuff; CPDrawButton,
777             CPDrawCheckBox and CPDrawRadioButton are now handled directly
778             inside the methods
779           - Updated and corrected the drawing code of CPDrawButton,
780             CPDrawCheckBox and CPDrawRadioButton to better match ms
781           - Updated theme checkbox and radiobutton code to use the CP*
782             methods
783
784 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
785
786         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
787           bug is fixed
788
789 2006-03-31  Jackson Harper  <jackson@ximian.com>
790
791         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
792         sometimes.
793         * UpDownBase.cs: Don't CreateGraphics manually, use a
794         Refresh. Ideally we would invalidate the correct areas here.
795
796 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
797
798         * XplatUIX11.cs: 
799           - We now track the mapping state of windows. If a window (or 
800             one of it's parents) is not mapped we no longer permit
801             WM_PAINT messages to be generated since we'd otherwise get 
802             lots of BadMatch X errors. Jackson did all the work figuring
803             out the problem.
804           - Destroying the caret if the window it's contained in is 
805             destroyed. Can't use regular DestroyCaret method since it
806             might fall into a drawing function (trying to remove the
807             caret) and with that generate new BadMatch errors. Again,
808             Jackson tracked this down.
809           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
810             make sure we send the messages to all windows. (The old code
811             would send the WM_DESTROY to the window, and then all child
812             windows would be 'gone' because the WM_DESTROY handle lookup
813             would no longer find the destroyed window)
814         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
815         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
816
817 2006-03-31  Jackson Harper  <jackson@ximian.com>
818
819         * ScrollableControl.cs: Dont recalc if we are not visible.
820
821 2006-03-31  Mike Kestner  <mkestner@novell.com>
822
823         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
824         the visibility branch.
825
826 2006-03-31  Jackson Harper  <jackson@ximian.com>
827
828         * ScrollBar.cs: Cap values when incrementing/decrementing.
829
830 2006-03-31  Mike Kestner  <mkestner@novell.com>
831
832         * MenuAPI.cs: setup menu.tracker for popup/context menus.
833         * ToolTip.cs: guard against timer expirations with no active control.
834         Not sure why it happened.
835
836 2006-03-31  Mike Kestner  <mkestner@novell.com>
837
838         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
839         text.
840         * ToolTip.cs: Position the tooltip based on where the cursor is at
841         popup time, not at MouseEnter time.  Add a Down state so that we don't
842         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
843         positioning offset. Lookup DisplaySize at positioning time, since it
844         can theoretically change during invocation.
845         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
846         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
847
848 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
849
850         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
851           Fixes behaviour when the Text property of the box is String.Empty
852
853 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
854
855         * XplatUIX11.cs: Only send mouseleave for our client windows, not
856           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
857           a window)
858
859 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
860
861         * FileDialog.cs: Visual enhancement for the popup buttons in 
862           PopupButtonPanel
863
864 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
865
866         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
867           code
868
869 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
870
871         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
872           highlighted menu items to match ms
873
874 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
875
876         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
877
878 2006-03-30  Mike Kestner  <mkestner@novell.com>
879
880         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
881         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
882         go active to account for HotLight to Selected transition.
883         * MenuItem.cs: add internal Selected prop. Fill out the Status
884         property by calculating it from item info. Add HotLight,
885         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
886
887 2006-03-30  Mike Kestner  <mkestner@novell.com>
888
889         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
890
891 2006-03-29  Jackson Harper  <jackson@ximian.com>
892
893         * Form.cs: Implement TODO.
894
895 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
896
897         * PrintPreviewDialog.cs: Implemented missing methods and events; still
898           missing proper dialog setup in the constructor
899
900 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
901
902         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
903         * Control.cs:
904           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
905           - Fixed ResetBindings and removed TODO
906           - Added check for cross-thread calls to get_Handle()
907           - Added Marshaller attribute for set_Font to satisfy class status
908         * FontDialog.cs: Removed TODOs that seemed implemented
909         * UpDownBase.cs: Removed unneeded TODO and Fixme
910         * MessageBox.cs: Implemented support for Default button and removed TODO
911         * FileDialog.cs: Removed obsolete TODO
912         * DomainUpDown.cs: Removed obsolete TODO
913         * ButtonBase.cs: Removed obsolete TODO
914         * XplatUIWin32.cs: Removed obsolete TODO
915         * Form.cs:
916           - Removed obsolete TODO
917           - Calling CheckAcceptButton when the acceptbutton is changed to allow
918             internal status updates
919           - Making sure the active control is selected when the control is created
920         * CurrencyManager.cs: Removed obsolete TODO
921
922 2006-03-29  Mike Kestner  <mkestner@novell.com>
923
924         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
925         of PrintPreviewDialog and RichTextBox.
926
927 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
928
929         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
930           DarkDark, Light and LightLight colors for a specific color
931         * ThemeWin32Classic.cs:
932           - Use Button drawing code to draw RadioButtons and CheckBoxes with
933             Appearance = Button 
934           - Make use of the new ResPool helper CPColor
935           - Draw ProgressBar and StatusBar with correct 3D borders
936
937 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
938
939         * ColorDialog.cs: Return selected color. Fixes bug #77940.
940
941 2006-03-28  Mike Kestner  <mkestner@novell.com>
942
943         * ListView.cs: fix Icon layout to plan for scrollbar widths when
944         calculating col/row counts.
945
946 2006-03-28  Mike Kestner  <mkestner@novell.com>
947
948         * ColumnHeader.cs:
949         * ListView.cs:
950         * ListViewItem.cs:
951         * Menu.cs: 
952         switch to explicit interface method implementation for some methods
953         corcompare identifies as inconsistent with MS.
954
955 2006-03-28  Mike Kestner  <mkestner@novell.com>
956
957         * MainMenu.cs: 
958         * Menu.cs:
959         add a few missing methods from the class status output.
960
961 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
962
963         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
964           correct.
965
966 2006-03-28  Mike Kestner  <mkestner@novell.com>
967
968         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
969
970 2006-03-27  Mike Kestner  <mkestner@novell.com>
971
972         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
973         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
974
975 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
976
977         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
978
979 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
980
981         * ThemeWin32Classic.cs:
982           - GroupBox: Inserted a little gap between the text and the lines
983             on the right side
984           - Made the code in CPDrawBorder3D more readable
985           - Corrected the drawing location of the up and down arrows in 
986             CPDrawScrollButton
987
988 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
989
990         * ControlPaint.cs: Corrected line widths in DrawBorder for
991           ButtonBorderStyle Inset and Outset
992
993 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
994
995         * ThemeWin32Classic.cs:
996           - Rewrote the totally broken CPDrawBorder3D method. That was
997             one of the main problems for the terrific ThemeWin32Classic
998             look
999           - Updated and corrected Button drawing
1000           - Correct the dimensions of the SizeGrip to match ms ones
1001           - Removed a small drawing glitch in DrawComboBoxEditDecorations
1002         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
1003           Border3DStyle.Sunken to match ms.
1004
1005 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1006
1007         * ThemeWin32Classic.cs: First small part of the "de-uglify
1008           ThemeWin32Classic" effort, SizeGrip
1009
1010 2006-03-24  Jackson Harper  <jackson@ximian.com>
1011
1012         * XplatUIX11.cs: Give a max idle time of one second, this matches
1013         MS and forces an Idle event every second when there are no other
1014         events in the queue.
1015
1016 2006-03-24  Mike Kestner  <mkestner@novell.com>
1017
1018         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
1019         * ListView.Item.cs: fix layout issues with null image lists and images
1020         smaller than checkbox size.
1021         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
1022         mode like MS does.  It's weird, but consistent.  ;-)
1023         Fixes #77890.
1024
1025 2006-03-24  Mike Kestner  <mkestner@novell.com>
1026
1027         * ListView.cs: Scroll wheel support for the item control.  Fixes
1028         #77839.
1029
1030 2006-03-23  Jackson Harper  <jackson@ximian.com>
1031
1032         * ScrollableControl.cs: Special case negative sized areas, not
1033         zero.
1034         * MonthCalendar.cs: Save the rect of the clicked date so we can
1035         use it for invalidation.
1036         - Try to cut down on the number of invalidates
1037         - Invalidate the rect the mouse is over and was over when moving
1038         the mouse, so we get the focus box following the cursor.
1039
1040 2006-03-23  Mike Kestner  <mkestner@novell.com>
1041
1042         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
1043         focus rectangle drawing. Fixes #77835.
1044
1045 2006-03-23  Mike Kestner  <mkestner@novell.com>
1046
1047         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
1048         the if and else if and reverting back to the original == check on the
1049         None conditional.
1050
1051 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
1052
1053         * FontDialog.cs: Update the example panel if the selected index of
1054           the fontListBox changes.
1055
1056 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
1057
1058         * FileDialog.cs: Make FileDialog remember which directory it was in
1059           last in the same execution.
1060
1061 2006-03-22  Mike Kestner  <mkestner@novell.com>
1062
1063         * FileDialog.cs: make the DropDownMenu on the toolbar display
1064         RadioChecks since they are mutually exclusive and that's what MS does.
1065
1066 2006-03-22  Mike Kestner  <mkestner@novell.com>
1067
1068         * Theme.cs: add Color param to CPDrawMenuGlyph.
1069         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
1070         checks and radio marks and arrows are visible on highlighted items.
1071         * ControlPaint.cs: update to use new Theme signature.
1072
1073 2006-03-22  Mike Kestner  <mkestner@novell.com>
1074
1075         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
1076         is active. Fixes #77870.
1077
1078 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
1079
1080         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
1081           to be focused/selected after startup
1082
1083 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
1084
1085         * ColorDialog.cs: 
1086           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
1087             CustomColors and ShowHelp properties
1088           - Some internal rewrites to get better results when using the
1089             ColorMatrix
1090
1091 2006-03-22  Mike Kestner  <mkestner@novell.com>
1092
1093         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
1094         HoverSelection.  Fixes #77836.
1095
1096 2006-03-22  Mike Kestner  <mkestner@novell.com>
1097
1098         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
1099         ToggleButtons.  (De)Sensitize the Back button around a stack count of
1100         1, not 0.  Update ButtonSize based on a pixel count of the win32
1101         control.  Adjust the toolbar size/location for new button size.
1102
1103 2006-03-22  Jackson Harper  <jackson@ximian.com>
1104
1105         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
1106         true.
1107         * ScrollBar.cs: When doing increments and decrements we need to
1108         set the Value property so that ValueChanged gets raised. A
1109         possible optimization here would be to make an internal SetValue
1110         that doesn't invalidate immediately.
1111         * ToolTip.cs: Tooltips get added to their container (when
1112         supplied) so they get disposed when the container is disposed.
1113         - Don't create tooltips for String.Empty. This prevents all these
1114         little 2-3 pixel windows from showing up when running nunit-gui
1115         and driving me mad.
1116         * Form.cs: Don't set topmost when setting the owner if the handles
1117         haven't been created yet.  The topmost set will happen when the
1118         handles are created.
1119
1120 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
1121
1122         * XplatUIX11.cs:
1123           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
1124           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
1125             visible (to allow them to recalculate their sizes)
1126
1127 2006-03-21  Mike Kestner  <mkestner@novell.com>
1128
1129         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
1130         methods. Removed a ton of redundant code.  Still not really happy with
1131         the border rendering, but I think that's mainly because of the
1132         ControlDarkDark being black instead of a dark grey. Depending on how 
1133         close we want to be, we might want to revisit those color choices.
1134         Among the new features added during the refactor were DropDownArrow
1135         pressed rendering, Disabled image rendering.  Proper flat appearance
1136         boundary rendering.  Removed the Divider and Wrapping dividers since I
1137         can't figure out any combination of themes and conditions to make the
1138         MS control draw a horizontal line on a toolbar despite what the
1139         Divider property docs indicate.
1140         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
1141         conditions and incorrect layout.  Updated to coding standard.
1142         * ToolBarButton.cs: refactored layout and positioning code from
1143         ToolBar to here.  Invalidate wherever possible instead of forcing
1144         redraws of the whole toolbar. 
1145         (Known remaining issues: explicit ButtonSize smaller than provided
1146         images.)
1147
1148 2006-03-21  Mike Kestner  <mkestner@novell.com>
1149
1150         * ContextMenu.cs (Show): use the position parameter instead of just
1151         showing at the MousePosition.
1152
1153 2006-03-21  Jackson Harper  <jackson@ximian.com>
1154
1155         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
1156         control handle this.
1157         * TreeNodeCollection.cs: If we are clearing the root node we need
1158         to reset top_node so calcs can still happen.
1159         * ThemeWin32Classic.cs: This is a Flags so we need to check
1160         properly.
1161         
1162 2006-03-21  Jackson Harper  <jackson@ximian.com>
1163
1164         * DataGrid.cs: Create columns when the binding context has been
1165         changed.
1166         * X11Structs.cs: Keysyms are uints.
1167         - Add size to fix build.
1168
1169 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
1170
1171         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
1172           XplatUIOSX.cs: 
1173           - Added ResetMouseHover method to allow controls to retrigger
1174             hovering if they need it more than once
1175           - Implemented MouseHoverTime and MouseHoverSize properties
1176         * Timer.cs: Start() must reset the interval
1177         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
1178           properties
1179
1180 2006-03-21  Jackson Harper  <jackson@ximian.com>
1181
1182         * X11Keyboard.cs: improved layout detection. Move the nonchar
1183         tables into this file.
1184         * KeyboardLayouts.cs: Move the tables into resource files.
1185
1186 2006-03-21  Mike Kestner  <mkestner@novell.com>
1187
1188         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
1189
1190 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
1191
1192         * Mime.cs: Various speed optimizations. Looking up mime types
1193           is now 2 times faster than before
1194
1195 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
1196
1197         * CreateParams.cs: Added internal menu field
1198         * Control.cs: 
1199           - Switched call order for UpdateBounds; now we always call
1200             the one that also takes ClientSize, and we're calculating the 
1201             client size via driver method in the others. The previous
1202             method of tracking client size by difference wasn't working
1203             for forms where even the starting client size wouldn't match
1204             the overall form size (due to borders) (Part of fix for #77729)
1205           - CreateParams(): Do not use parent.Handle unless the handle is
1206             already created. Causes havoc with Nexxia and throws off our
1207             creation of controls
1208         * XplatUIX11.cs:
1209           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
1210           - Switched handling of ConfigureNotify over to new PerformNCCalc 
1211             method (consolidates code)
1212           - Changed RequestNCRecalc to use new PerformNCCalc method
1213           - Added calls to RequestNCRecalc when menus and borders are changed
1214             to allow app to set NC size. (Part of fix for #77729) This matches
1215             when MS send a WM_NCRECALC on Win32 windows.
1216           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
1217             (Part of fix for #77729). This matches what MS does, they also
1218             send that message when the form is made visible.
1219           - XException.GetMessage: Improved usability of X errors by including
1220             a translation of the window into Hwnd and Control class
1221           - Improved debug info for window creation, reparenting and destruction
1222           - Created helper method WindowIsMapped() [Currently not used]
1223         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
1224         * Form.cs:
1225           - CreateParams: Now setting our menu on the new internal menu field
1226           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
1227             avoid calculating the same property twice
1228         * Hwnd.cs:
1229           - Improved usability of ToString() for debugging purposes
1230           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
1231             determine the height of the menu, instead of just the font. This
1232             required to also create a graphics context and to keep a bmp 
1233             around (for performance reasons)
1234
1235 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
1236
1237         * MenuAPI.cs: Added OnMouseUp method
1238         * Form.cs:
1239           - Now remembering the requested client size, avoids size errors
1240           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
1241             instead of base if the menu is active. This is required due to
1242             control now capturing and releasing on down/up and it would
1243             prematurely release our menu capture
1244
1245 2006-03-17  Jackson Harper  <jackson@ximian.com>
1246
1247         * KeyboardLayouts.cs: Add the czech layouts.
1248
1249 2006-03-16  Jackson Harper  <jackson@ximian.com>
1250
1251         * Control.cs: Use the viewport space when sizing not the controls
1252         client size, so things like ScrollableControl that effect the
1253         viewport size (when scrollbars are added) are computed correctly.
1254         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
1255         of ManagerEntrys.
1256         - Handle creating BindingManagers for null data sources.
1257         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
1258         source, otherwise when rows are added they are added to the 'fake'
1259         datasource and we will crash when trying to set the position in
1260         those rows.
1261         - Use Implicit scrollbars on the datagrid so they arent
1262         selectable.
1263         
1264 2006-03-16  Jackson Harper  <jackson@ximian.com>
1265
1266         * Binding.cs:
1267         * InternalWindowManager.cs:
1268         * MdiWindowManager.cs:
1269         * X11Keyboard.cs: I really want Mike to love me again (fix
1270         compiler warnings).
1271
1272 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
1273
1274         * DataGrid.cs:
1275           - OnMouseDown: Switch to editing mode when clicking on the cell
1276                          even if we're clicking on the cell that's currently 
1277                          selected
1278           - ProcessGridKey: Left/Right now wrap like MS.Net does
1279           - ProcessGridKey: Tab now knows to add a new row when tab is
1280                             pressed in the cell of the last column of the 
1281                             last row
1282           - ProcessGridKey: Enter now adds another row  if pressed in the last
1283                             row and selectes the new row, same column cell
1284           - ProcessGridKey: Home/End navigate columns, not rows, like 
1285                             originally implemented
1286           - Broke ProcessKeyPreview code out into an extra Internal method
1287             so it can be called from the edit code
1288         * DataGridTextBox.cs (ProcessKeyMessage):
1289           - Switched to accept Tab keypresses
1290           - Added F2 handling to allow jumping to the end of the edited cell
1291           - Added logic to allow moving caret left/right inside edited cell
1292             and making the edited cell jump when the caret hits cell borders
1293           - Tab and Enter are now passed to the datagrid after being handled
1294         * TextBoxBase.cs:
1295           - Removed capture code now that Control handles it
1296           - set_SelectionStart now ensures caret is visible
1297
1298 2006-03-16  Jackson Harper  <jackson@ximian.com>
1299
1300         * TrackBar.cs: Debackwards the increment/decrement for handling
1301         mouse clicks on the bar with vertical trackbars.
1302         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
1303         bottom to match MS.
1304
1305 2006-03-16  Mike Kestner  <mkestner@novell.com>
1306
1307         * ListView.cs: make shift/ctrl keyboard and mouse selection 
1308         consistent with the MS control. Fix a bug in
1309         SelectedListViewItemCollection.Clear that was pissing me off for the
1310         better part of a day because the collection was being altered
1311         underneath us as we walked the list.
1312
1313 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
1314
1315         * Control.cs: Not sure how we could miss this so long, but it seems
1316           that MS.Net has Capture set all the way from before calling 
1317           OnMouseDown through sending the mouse events until after
1318           OnMouseUp. This will fix DataGrid's selection being set to end
1319           at the location of the MouseUp.
1320
1321 2006-03-15  Jackson Harper  <jackson@ximian.com>
1322
1323         * BindingContext.cs: Check the binding after its added so that it
1324           can initialize the binding managers and hookup to events.
1325         * Binding.cs: Data members seem to sometimes include rows/cols in
1326           the format Row.Column we now take this into account.
1327           - Hookup to the position changed event so we can update the
1328           control when the position has changed in the data set.
1329         * CurrencyManager.cs: Take into account the row/col naming
1330           convention when creating dataset tables.
1331         * BindingContext.cs: Using a newer better way of storing
1332           datasource/datamember pairs.  Hopefully this better matches MS for
1333           looking up binding managers.
1334
1335
1336 2006-03-15  Jackson Harper  <jackson@ximian.com>
1337
1338         * BindingContext.cs: The currency manager needs the data member
1339         name, if the member is a data set we use the name to find the
1340         correct table.
1341         * CurrencyManager.cs: When creating the list prefer an IList over
1342         an IListSource.
1343         - Attempt to create a DataTable from a DataSet (TODO: might need
1344         some better error checking here, although MS doesn't seem to have much)
1345         - If we have a DataTable create a view and use it as our list.
1346
1347 2006-03-15  Mike Kestner  <mkestner@novell.com>
1348
1349         * ListView.cs: keep a matrix of the icon mode layout to facilitate
1350         keyboard navigation. Support Up/Down/Left/Right selection correctly
1351         for all 4 View modes.
1352         * ListViewItem.cs: add internal row/col fields for icon layouts.
1353
1354 2006-03-15  Jackson Harper  <jackson@ximian.com>
1355
1356         * TabControl.cs: Redraw the tabs when we resize so their newly
1357         calculated sizes are drawn on screen.
1358         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
1359         composite characters.
1360         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
1361         - filter events so that composite characters can be created
1362         patches by peter
1363         * X11Structs.cs: Add XIMProperties enum.
1364
1365 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
1366
1367         * Control.cs (BringToFront, SendToBack): Don't use window or handle
1368           unless it's created
1369
1370 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
1371
1372         * Control.cs (PerformLayout): We don't need to consider visiblity
1373           for anchoring, only for docking. This fixes 'whacky' alignment
1374           in listbox and other controls that use implicit scrollbars after
1375           the previous PerformLayout patch
1376         * ListBox.cs: Switched to use implicit scrollbars
1377           
1378 2006-03-14  Mike Kestner  <mkestner@novell.com>
1379
1380         * ToolBar.cs: 
1381         * VScrollBar.cs:
1382         - chain up the "new event" overrides to base and use
1383         OnEvent to raise them.  Part of fix for bug #76509.
1384
1385 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
1386
1387         * FileDialog.cs: Do not select an item in the parent directory
1388           on backspace
1389
1390 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
1391
1392         * Control.cs (PerformLayout): It would seem that we considered
1393           invisible windows for our layout. Not quite the right thing
1394           to do. Now we don't any longer, thereby fixing bug #76889.
1395
1396 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
1397
1398         * Control.cs (CanFocus): I goofed. A control can have focus 
1399           even though it's not selectable. Made it match MS docs.
1400
1401 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
1402
1403         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
1404           center by default (fixes #76895)
1405         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
1406           all uses of Border3DSides.All with the explicit ORd together
1407           Left|Right|Top|Bottom because I assume that nobody was aware 
1408           that All also implies a center fill. Most places I checked had
1409           a fill right above.
1410         * ProgressBarStyle.cs: Added
1411
1412 2006-03-13  Mike Kestner  <mkestner@novell.com>
1413
1414         * ListView.cs: fix breakage in drag shadow header positioning 
1415         from Peter's csc compilation fix.
1416
1417 2006-03-13  Mike Kestner  <mkestner@novell.com>
1418
1419         * ListView.cs: fix NRE produced by backspacing twice in a focused
1420         FileDialog.
1421
1422 2006-03-13  Mike Kestner  <mkestner@novell.com>
1423
1424         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
1425
1426 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
1427
1428         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
1429           be changed
1430         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
1431           the allowed size before making programmatic size changes
1432
1433 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
1434
1435         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
1436           set, metacity is broken and will still use the emty sizes in 
1437           the struct. (Fix for #77089)
1438
1439 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
1440
1441         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
1442           WindowExStyles and marked both enums as Flags
1443         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
1444           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
1445           to match WindowStyles split
1446         * XplatUIX11.cs:
1447           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
1448           - Updated to match WindowStyles split
1449         * XplatUIWin32.cs:
1450           - Fixed FosterParent creation, was using ExStyle on the Style field
1451             (This should help with Popup focus issues)
1452           - Updated to match WindowStyles split
1453
1454 2006-03-13  Jackson Harper  <jackson@ximian.com>
1455
1456         * MdiWindowManager.cs: Use the system menu height. Fixes some
1457         strange sizing issues.
1458
1459 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
1460
1461         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
1462         * TextBoxBase.cs:
1463           - Scroll to caret after inserting text (#77672)
1464           - Make scroll range one pixel higher, fixes off-by-one error (and
1465             makes underlines visible on the last line)
1466
1467 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
1468
1469         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
1470           the keyboard state from being stuck with keys in 'pressed' state when
1471           focus is switched away via keyboard
1472         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
1473           reset the keyboard if no X11 KeyUp events are expected to come
1474         * X11Structs.cs: Switched type of Visible to bool to match driver
1475
1476 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
1477
1478         * TextControl.cs:
1479           - Switched caret to be just 1 pixel wide, matches MS and looks less
1480             clunky
1481           - Moved caret display 1 pixel down from the top of the control
1482             to improve view
1483           - InsertCharAtCharet: Update the selection start if moving the caret
1484             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
1485           - No longer always creating the caret when the caret methods are
1486             called. Only the actual ShowCaret/HideCaret will do that now
1487           - Only setting caret visible if the owner control has focus
1488           - UpdateView: Added invalidation-shortcut logic for center and right 
1489             aligned text. Previously we'd update all according to the left
1490             logic which caused drawing errors. Also fixed height of invalidated
1491             areas, now properly invalidating the whole area (was off-by-one)
1492           - owner_HandleCreated: Always generate the document when the
1493             handle is created; this ensures that 
1494         * TextBoxBase.cs:
1495           - Fixed situation where caret would disappear under the right
1496             window border, also improved scrolling behaviour on left-
1497             aligned textboxes
1498           - Fixed right-aligned textboxes to have a border to the
1499             right instead of the caret being under the right border
1500         * XplatUIX11.cs:
1501           - Switched from 'nested' to simple visible/not visible tracking 
1502             for caret (part of fix for #77671)
1503           - No longer passing through translated FocusIn/FocusOut messages
1504             since we were notifying too often and the wrong windows. Instead
1505             we just notify our focussed window of receiving or loosing focus
1506         * XplatUIWin32.cs: Switched from 'nested' show/hide 
1507           counting for caret to simple visible yes/no behaviour (part of 
1508           fix for #77671)
1509
1510 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
1511
1512         * Mime.cs: Remove debug code...
1513
1514 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
1515
1516         * MimeGenerated.cs: Removed
1517         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
1518           and subclasses) from /usr/(local/)share/mime and
1519           $HOME/.local/share/mime.
1520
1521 2006-03-10  Jackson Harper  <jackson@ximian.com>
1522
1523         * MdiWindowManager.cs: Recalc the NC area when a window is
1524         maximized/restored so that the menu area is drawn on forms that
1525         don't have a menu.
1526
1527 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
1528
1529         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
1530           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
1531           us to force a WM_NCCALCRESIZE message being sent. This is needed
1532           for MDI maximizing.
1533
1534 2006-03-10  Jackson Harper  <jackson@ximian.com>
1535
1536         * Form.cs: We need to use the ActiveMenu when calculating menu
1537         height.
1538         - Fix nullref when the window manager hasn't been created yet.
1539         * Control.cs: Fix nullref when we try to bring a control to the
1540         front that has no parent.
1541         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
1542         height.
1543         - Add a dummy item to the maximized menu so it always has the
1544         correct height. Otherwise when there are no menus we don't get our
1545         icon and buttons.
1546         
1547
1548 2006-03-10  Jackson Harper  <jackson@ximian.com>
1549
1550         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
1551         stuff.
1552         * Form.cs: Make the window_state internal so the window managers
1553         can track it.
1554         - When an MDI child is maximized let its window manager create the
1555         main menu (so it can add its icon).
1556         - Notify the window managers of state changes
1557         - Let the window manager paint its buttons and handle button
1558         clicks on the menu when it is maximized.
1559         * InternalWindowManager.cs: Move the prev_bounds into the mdi
1560         window manager, since tool windows don't use it, only mdi windows.
1561         - Tell the main form that we don't want it to handle NCPAINT
1562         itself to avoid extra painting.
1563         - Handle clicks on a maximized windows menu.
1564         - Handle window state changes
1565         - Handle minimize/maximize clicks correctly by setting the window state.
1566         * MdiWindowManager.cs: Add an icon menu that (the menu you get
1567         when clicking on the forms icon).
1568         - New method to create a forms maximized menu. This is its normal
1569         menu + an icon.
1570         - Handle window state changes.
1571         - Handle sizing of maximized windows.  Maximized windows are just
1572         drawn bigger then the parent visible area. All controls are still
1573         there, they are just outside the visible area (this matches windows).
1574         * MdiClient.cs: No scrollbars when a child window is maximized.
1575         - Let the children windows figure out how big they should be when
1576         sizing maximized windows.
1577         - Implement a version of ArrangeIconicWindows somewhat similar to
1578         Windows version.  There are some little differences, but I don't
1579         think any app will rely on the layout of minimized mdi windows.
1580
1581 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
1582
1583         * Padding.cs: Several fixes to allow compiling with csc 2.0
1584
1585 2006-03-09  Jackson Harper  <jackson@ximian.com>
1586
1587         * Menu.cs:
1588         * MenuItem.cs: Cheap hack so we can add items to the list without
1589         the events being raised.  This allows adding mdi items during
1590         drawing. TODO: Should probably find a better time to add the items.
1591
1592 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
1593
1594         * ThemeWin32Classic.cs:
1595           - CheckBox_DrawText: Added logic to not wrap if not enough space
1596             is available (Fix for bug #77727)
1597           - RadioButton_DrawText: Added logic not to wrap if not enough
1598             space is available (Fix for bug #77727). Also removed some
1599             duplicate code, DrawString always drawing the regular text
1600             before hitting the if statement.
1601
1602 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
1603
1604         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
1605
1606 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
1607
1608         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
1609         * ContainerControl.cs: Partial implementation of some 2.0 scaling
1610           methods. Moved the new 2.0 properties into alphabetical order with
1611           other properties and added MonoTODO tags
1612
1613 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
1614
1615         * AutoScaleMode.cs: Added. Fix build.
1616
1617 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
1618
1619         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
1620           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
1621           and was requiring premature handle creation for calls from above
1622         * Form.cs, Control.cs: Removed handle arguments from calls to
1623           CalculateClientRect()
1624
1625 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
1626
1627         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
1628           drag_column.column_rect is MarshalByRef and can't be used that way
1629
1630 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
1631
1632         * AxHost.cs: Added deserialization constructor for 
1633           AxHost+State (fixes 77743)
1634
1635 2006-03-09  Mike Kestner  <mkestner@novell.com>
1636
1637         * ListView.cs: 
1638         - Added column drag reordering for details view.
1639         - fixed behavior when mouse is dragged off column and
1640         AllowColumnReorder is false.
1641         * ColumnHeader.cs: clone the format too in Clone.
1642         * Theme.cs: add DrawListViewHeaderDragDetails method.
1643         * ThemeWin32Classic.cs:
1644         - impl new method for drawing drag column shadows and targets.
1645         - support column offset for details mode in DrawListViewItem.
1646
1647 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
1648
1649         * TextControl.cs: Reset the char_count when the document is cleared
1650           (Fixes bug reported on mono-winforms mailing list)
1651
1652 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
1653
1654         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
1655           of calling base we simply process the key ourselves, since both
1656           DefWindowProc and the handled method would set m.Result. 
1657           (Fixes #77732)
1658
1659 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
1660
1661         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
1662           method also moves the window; instead implemented a copy of
1663           Control.ScaleCore (Part of fix for #77456)
1664         * TextBoxBase.cs: 
1665           - Created new CreateGraphicsInternal method to allow providing
1666             a graphics context when no handle is created without triggering
1667             handle creation. (Part of fix for #77456)
1668           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
1669         * TextControl.cs: 
1670           - Switched Constructor to require TextBoxBase instead of Control (to
1671             allow uncast access to CreateGraphicsInternal)
1672           - Safeguarded use of owner.Handle property. No longer accessing it
1673             unless the handle is already created.
1674           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
1675           - Now triggering a recalc when owning control becomes visible
1676         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
1677           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
1678           premature handle creation (Part of fix for #77456)
1679         * Control.cs:
1680           - We now only destroy our double-buffering buffers when the
1681             control is resized or disposed, but not when visibility
1682             changes. (The code even re-created them twice every time)
1683           - Now requiring a redraw of the buffer on visibility changes
1684             (fixes bug 77654 part 2)
1685           - Not passing OnParentVisibleChanged up unless the control
1686             is visible
1687           - CanFocus: Fixed to match MS documentation
1688           - Focus: Fixed to return actual focus state and to check if
1689             setting focus is legal before setting it
1690
1691 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
1692
1693         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
1694           when to draw focus rectangle by looking at parent focus and
1695           selected state instead. This fixes TabPages on Linux sometimes
1696           having none or multiple focus rectangles.
1697         * XplatUIX11.cs (SetFocus): 
1698           - Don't set the focus if the same window already has focus
1699           - Use SendMessage instead of PostMessage (like it's Win32
1700             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
1701             to match MS behaviour
1702         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
1703           are not selectable.
1704
1705 2006-03-07  Jackson Harper  <jackson@ximian.com>
1706
1707         * PictureBox.cs: Revert line I accidently committed last week.
1708
1709 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
1710
1711         * Control.cs: 
1712           - Added new IsRecreating and ParentIsRecreating properties to
1713             allow testing if RecreateHandle has been called on ourselves
1714             or one of our parents
1715           - WndProc(WM_DESTROY): If our control handle is being recreated
1716             we immediately need to create the handle when receiving the
1717             destroy, that way our child windows find a valid parent handle
1718             when they themselves are being recreated upon WM_DESTROY receipt
1719             (fix for bug #77654 part 1)
1720         * XplatUIX11.cs:
1721           - DestroyWindow: WM_DESTROY must be sent to our own window before
1722             notifying any child windows. MS documents that child windows
1723             are still valid when WM_DESTROY is received. (Control now relies on
1724             this behaviour)
1725           - Added some fine-grain debug options
1726
1727 2006-03-06  Jackson Harper  <jackson@ximian.com>
1728
1729         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
1730         box and base calculations off this.
1731         * MdiChildContext.cs:
1732         * MdiWindowManager.cs: Don't need to ensure scrollbars here
1733         anymore.
1734         
1735 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
1736
1737         * Splitter.cs: In situations where the affected control is added
1738           to the parent's control list after the splitter, we would not
1739           populate affected. Now we try populating it on mousedown, if
1740           it's not already set, and force it to be re-set whenever our
1741           parent changes.
1742
1743 2006-03-03  Matt Hargett  <matt@use.net>
1744
1745         * Control.cs: implement Control.Padding
1746         * Padding.cs: -Padding.All returns -1 when constructing with the
1747         implicit default ctor
1748         -Padding.ToString() matches MS.NET
1749         * ContainerControl.cs: implement
1750         ContainerControl.AutoScaleDimensions
1751         * ListControl.cs: implement ListControl.FormattingEnabled
1752         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
1753         * ButtonBase.cs:
1754         * TabPage.cs: Implement UseVisualStyleBackColor.
1755         * PictureBox.cs: Implement PictureBox.InitialImage.
1756
1757 2006-03-03  Mike Kestner  <mkestner@novell.com>
1758
1759         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
1760         event declarations to proxy to base event.
1761         * ListViewItem.cs: update to use ItemControl.
1762         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
1763         * ThemeWin32Classic.cs: update to new ListView theme API and fix
1764         column header label rendering for 0 width columns.
1765
1766 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
1767
1768         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
1769           that causes the control to be created. Fixes #77476.
1770
1771 2006-03-02  Jackson Harper  <jackson@ximian.com>
1772
1773         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
1774         expose_pending.
1775
1776 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
1777
1778         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
1779           passed in for the EventArgs (fixes #77690)
1780
1781 2006-03-01  Jackson Harper  <jackson@ximian.com>
1782
1783         * ScrollBar.cs: Refresh afterbeing resized.
1784
1785 2006-02-28  Mike Kestner  <mkestner@novell.com>
1786
1787         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
1788         Clean up a tracker compile warning.
1789         * MenuItem.cs: add internal PerformPopup method.
1790         [Fixes #77457]
1791
1792 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
1793
1794         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
1795           implicit expose) when the text is set to null
1796
1797 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
1798
1799         * RichTextBox.cs (FlushText): When newline is true, we always
1800           need to split the line, even if no text is on it and we may
1801           never eat newlines. (Fixes #77669)
1802
1803 2006-02-28  Mike Kestner  <mkestner@novell.com>
1804
1805         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
1806         and set Selected instead.
1807         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
1808         collections.
1809
1810 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
1811
1812         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
1813
1814 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
1815
1816         * FontDialog.cs:
1817           - Got rid of the panel. All controls are now directly added to
1818             the dialog form
1819           - It is now possible to set a font with the Font property
1820           - MinSize and MaxSize property do now what they should
1821           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
1822           - Searching and selecting a font with the font textbox works now,
1823             the same applies to the style and size textbox
1824           - Draw the correct 3D border in the example panel
1825           - Fixed a little mem leak (unused fonts didn't get disposed)
1826           - Many other internal updates/rewrites...
1827           - Fix typo
1828
1829 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
1830
1831         * TextControl.cs: 
1832           - InsertRTFFromStream: Added 'number of characters inserted' argument
1833           - set_SelectedRTF: Now using the number of characters to calculate
1834             the new location for the selection and cursor (x/y cannot be used
1835             due to potentially already wrapped text)
1836
1837 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
1838
1839         * TextControl.cs: Added property and implemented means to allow 
1840           disabling recalculation of a document (can be used to speed up
1841           multiple inserts and is needed to make RTF inserts predictable, see
1842           bug #77659)
1843         * RichTextBox.cs: Using the new NoRecalc property of Document to
1844           keep x/y insert locations predictable. Also makes it faster inserting
1845           large chunks of RTF
1846
1847 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
1848
1849         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
1850           it's easier for a child control to handle the other messages without
1851           having to duplicate the special functionality
1852         * TextBoxBase.cs
1853           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
1854             code to handle processing the key ourselves, in order to get 
1855             access to the result of KeyEventArgs.Handled. We now only call 
1856             ProcessKey if they key hasn't been handled already. Fixes #77526.
1857           - set_Text: If null or empty string is given, just clear the 
1858             document. Fixes part of #77526
1859
1860 2006-02-27  Jackson Harper  <jackson@ximian.com>
1861
1862         * SizeGrip.cs: Paint the background color before painting the grip
1863         so things look right.
1864         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
1865
1866 2006-02-27  Mike Kestner  <mkestner@novell.com>
1867
1868         * ListView.cs:
1869           - Restructure layout and invalidation model to remove a ton of
1870           flicker from the control and speed up performance in general.
1871           - Add manual column resize, flickers like crazy, but I already have
1872           some ideas on how I'll fix that. (#76822)
1873           - Merge the three Icon-based views into a single layout method.
1874           - Move item selection interaction logic from the item since 
1875           interaction with the collections is more appropriate to the view.
1876           - Deselection on non-item clicks.
1877         * ListViewItem.cs:
1878           - Encapsulate most of the layout. Add some internal props to trigger
1879           layout.  Move to a model where Items invalidate themselves instead
1880           of just invalidating the whole control every time something changes.
1881           - Invalidate on Text/Caption changes.
1882           - switch to an offset based layout model to avoid having to absolute
1883           position every element on item moves.
1884           - correct checkbox layout to conform to MS layout.
1885         * ThemeWin32Classic.cs:
1886           - refactor some column header drawing code.
1887           - fix string justification for column headers (#76821)
1888           - make SmallIcon labels top justified for compat with MS impl.
1889         * ThemeClearlooks.cs:
1890           - adjust to new ListViewItem internal checkbox bounds api.
1891
1892 2006-02-27  Jackson Harper  <jackson@ximian.com>
1893
1894         * Control.cs:  Change where implicit controls fall in the zorder.
1895         They are now on top of all children.
1896         - Synced AddImplicit code with Add
1897         - Removed unused enumerator.
1898         * SizeGrip.cs: Remove the TODO as its been TODONE.
1899
1900 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
1901
1902         * TextControl.cs(Insert): Combine the last lines unless the insertion
1903           string ends with \n\n, otherwise we leave one line too many (Fixes
1904           something I noticed with the testapp for #77526; the bug itself was
1905           already fixed in the previous checkin)
1906
1907 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
1908
1909         * RichTextBox.cs:
1910           - SelectionColor and SelectionFont methods no longer set absolute
1911             styles. Instead, the keep font or color respectively (This 
1912             resolves a long-standing FIXME in the code)
1913           - When flushing RTF text, the insert code now considers text trailing
1914             behind the insertion point (Fixes the bug where when replacing
1915             the selected text via SelectedRTF the remainder of the line behind 
1916             the selection would stay on the first insertion line)
1917         * TextBoxBase.cs:
1918           - AppendText now updates the selection points after inserting text
1919           - AppendText now ensures that the last tag (sometimes 0-length) of
1920             the document is used for the style information (Fixes part of 
1921             bug #77220)
1922         * TextControl.cs:
1923           - Created new FontDefiniton class to allow describing partial style
1924             changes
1925           - StreamLine() now takes a lines argument, to allow it to decide
1926             whether an encountered zero-length tag is the last in the document
1927             (which must be kept to not loose the font/color contained in it,
1928             for later appends)
1929           - Created Combine() and Split() methods for Marker structs, to 
1930             support marker updates due to reformatted documents (soft line
1931             wraps)
1932           - Implemented Document.CaretTag setter
1933           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
1934             of the last line (Not the cause, but also exposed by bug #77220)
1935           - Added LineTag argument to InsertString method, to allow callers
1936             to force a certain tag to be used (required to force use of the
1937             trailing zero-length tag of a document)
1938           - Now updating markers in Combine(), to avoid stale tag markers
1939           - Added some method descriptions to aid maintenance
1940           - Implemented new FormatText concept, allowing additive/subtractive
1941             formatting by only specifying the components that are to be 
1942             changed. This was needed for resolving the RTB.SelectedColor/
1943             RTB.SelectedFont fixmes
1944           - Added Break() support method to allow breaking up linetags (used
1945             for partial formatting)
1946           - Added GenerateTextFormat() method. It is used for partial 
1947             formatting and allows to generate a full font/color from given
1948             attributes and an existing tag.
1949
1950 2006-02-26  Jackson Harper  <jackson@ximian.com>
1951
1952         * XplatUIX11.cs:  Use the correct caption height.
1953         - Translate hittest coordinates to screen coords to match MS.
1954         * XplatUIWin32.cs: When we create MDI windows we need to reset
1955         some of the style flags, so we get a nice blank window, and can
1956         draw all the decorations ourselves.
1957         - Set a clipping rectangle on the non client paint event, the
1958         window manager drawing code needs one.
1959         * Form.cs: The window manager needs to know when the window state
1960         has been updated.
1961         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
1962         don't need to factor in border and title sizes in these
1963         methods. TODO: Remove the args and fix the call points.
1964         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
1965         properly.
1966         - Let the driver set the cursors.
1967         - Improve active window handling
1968         - Correct sizes for title bars and buttons.
1969         - Match MS drawing better
1970         * MdiWindowManager.cs: We don't need to handle border style
1971         updates specially anymore.
1972         - Check for scrollbars when windows are done moving
1973         - Handle Active properly.
1974         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
1975         correctly. I am spewing the exception though, so we don't hide the
1976         bugs.
1977         
1978 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
1979
1980         * DataGridViewRowPostPaintEventArgs.cs,
1981           DataGridViewCellPaintingEventArgs.cs,
1982           DataGridViewRowCollection.cs,
1983           DataGridViewRowPrePaintEventArgs.cs,
1984           DataGridViewCell.cs: Clear a few warnings and implement a few
1985           exceptions that should be thrown.
1986
1987 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
1988
1989         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
1990           'inheriting' our parent's (non-default) cursor. (Part of
1991            the fix for #77479)
1992
1993 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
1994
1995         * XplatUIX11.cs: Fixed cast to make csc happy
1996
1997 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
1998
1999         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
2000           it's for the client area (part of fix for #77479 and needed
2001           for MDI window cursor handling)
2002         * XplatUIX11.cs
2003           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
2004             the appropriate default cursors and also passing the message
2005             up the parent chain 
2006           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
2007             for non-client areas
2008
2009 2006-02-15  Jackson Harper  <jackson@ximian.com>
2010
2011         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
2012         is a real MDI window
2013
2014 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
2015
2016         * X11DesktopColors.cs: Instead of checking the desktop session
2017           string for "KDE" check if it starts with "KDE"
2018
2019 2006-02-10  Jackson Harper  <jackson@ximian.com>
2020
2021         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
2022         systems).
2023
2024 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
2025
2026         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
2027           errors
2028         * ColorDialog.cs:
2029           - Got rid of the panel. All controls are now directly added to
2030             the dialog form
2031           - Changed to mono coding style
2032
2033 2006-02-10  Jackson Harper  <jackson@ximian.com>
2034
2035         * InternalWindowManager.cs: We don't need the set visibility to
2036         false hack anymore now that peter has written beautiful shutdown
2037         code.
2038
2039 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
2040
2041         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
2042           where already explicitly destroyed
2043
2044 2006-02-10  Jackson Harper  <jackson@ximian.com>
2045
2046         * MdiClient.cs: Handle the case where windows are too high or to
2047         the left and we need scrollbars.
2048
2049 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
2050
2051         * MimeIcon.cs: Added some icons
2052         * FileDialog.cs:
2053           - Fixed bug #77477
2054           - Got rid of the panel. All controls are now directly added to
2055             the dialog form
2056           - Changed to mono coding style
2057           - On Linux "My Computer" and "My Network" will now show some
2058             more usefull information. A new class, MasterMount, gathers
2059             this information from /proc/mount. Updated MWFFileView to make
2060             use of this information
2061           - Fixed a bug that caused FileDialog to crash when
2062             ".recently_used" file had a zero size
2063           - FilterIndex does now what it should
2064           - Some Refactoring
2065         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
2066             FileDialog changes
2067
2068 2006-02-09  Jackson Harper  <jackson@ximian.com>
2069
2070         * ComboBox.cs: Don't touch if null.
2071
2072 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
2073
2074         * Cursor.cs: 64bit safeness fix
2075         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
2076
2077 2006-02-09  Jackson Harper  <jackson@ximian.com>
2078
2079         * Form.cs: If a form is made into an MDI form update the styles so
2080         all the props can get set correctly.
2081         - Kill the mdi_container when we dont need it anymore.
2082         * InternalWindowManager.cs: Add missing NOT
2083
2084 2006-02-08  Jackson Harper  <jackson@ximian.com>
2085
2086         * InternalWindowManager.cs: Respek clipping when drawing MDi
2087         decorations.
2088
2089 2006-02-08  Jackson Harper  <jackson@ximian.com>
2090
2091         * Hwnd.cs: Add bits to track non client expose events.
2092         * XplatUIX11.cs: Track non client expose events on the hwnd. This
2093         gives us a proper invalid rect and will allow for some nice
2094         optimizations with NC client drawing
2095         - MDI windows are children windows, so move their style handling
2096         into the child window block.
2097         * InternalWindowManager.cs: Remove a state reset that was
2098         getting invoked at the wrong time. Fixes managed windows getting
2099         into a 'stuck' captured state.
2100
2101 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
2102
2103         * TextControl.cs (Document.ctor): Now initializing 
2104           selection_anchor. Fixes #77493
2105
2106 2006-02-07  Jackson Harper  <jackson@ximian.com>
2107
2108         * TrackBar.cs: The increment/decrements were backwards.
2109
2110 2006-02-07  Mike Kestner  <mkestner@novell.com>
2111
2112         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
2113         to the instance itself.
2114
2115 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
2116
2117         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
2118           on ulongs and pointers, the size differs between 32bit and 64bit
2119           systems. 
2120
2121 2006-02-07  Mike Kestner  <mkestner@novell.com>
2122
2123         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
2124         for 64 bit platforms to work around a metacity bug. 
2125
2126 2006-02-07  Jackson Harper  <jackson@ximian.com>
2127
2128         * TrackBar.cs: Process the input keys we need, and hookup to
2129         KeyDown instead of using WndProc, so we get key messages.
2130
2131 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
2132
2133         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
2134           machine we're on. 
2135         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
2136           we need to translate the XdndVersion atoms array before sending it
2137
2138 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
2139
2140         * XplatUIX11.cs: 
2141           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
2142             number of bits for the property, not the number of bytes. The
2143             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
2144             but would not crash since it specified 8 bits instead of 4 bits)
2145           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
2146             defined as XID -> long in the C headers)
2147           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
2148             references since those are now IntPtr to begin with
2149           - Switched all Atom.XXX 'int' casts to IntPtr casts
2150           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
2151           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
2152           - Added XChangeActivePointerGrab DllImport (for X11DnD)
2153         * X11Structs.cs:
2154           - Changed 'int' type for Atoms in XEvent structures to IntPtr
2155           - Changed atom in HoverStruct to be IntPtr
2156         * X11DnD.cs:
2157           - Removed local DllImports, switched code to use those from XplatUIX11
2158           - Removed/fixed casts related to the switch of Atom to be a IntPtr
2159
2160 2006-02-06  Mike Kestner  <mkestner@novell.com>
2161
2162         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
2163         method signatures in the import region.  There may still be some
2164         lingering struct marshaling issues, as I didn't drill down into those.
2165         Yet.
2166
2167 2006-02-06  Jackson Harper  <jackson@ximian.com>
2168
2169         * ComboBox.cs: Dont manually set the top_item, this is computed
2170         when the scrollbar position is set.
2171
2172 2006-02-06  Mike Kestner  <mkestner@novell.com>
2173
2174         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
2175         startup crashes on amd64.  There's other fixes needed.  All pinvoke
2176         usage of Atom needs to be mapped to IntPtr for example.  And there are
2177         likely other int/long issues to be addressed.
2178
2179 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
2180
2181         * FileDialog.cs: One more...
2182
2183 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
2184
2185         * FileDialog.cs: Next try
2186
2187 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
2188
2189         * FileDialog.cs: First part of fix for #77464
2190
2191 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
2192
2193         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
2194           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
2195           AcceptButton border drawing.
2196
2197 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
2198
2199         * Form.cs: Moved positioning of form after auto scaling is applied,
2200           otherwise it would possibly use wrong form size.
2201
2202 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
2203
2204         * Control.cs (RecreateHandle): No need to re-create any child
2205           controls, the child windows will get destroyed automatically by
2206           the windowing system or driver, and re-created when the handle
2207           is being accessed the first time. Fixes #77456
2208         * Form.cs: No longer setting the form to closing if the handle is 
2209           being recreated. This seems like the right thing to do, don't
2210           have a bug or testcase for this, though.
2211
2212 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
2213
2214         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
2215           controls to avoid unwanted side effects
2216
2217 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
2218
2219         * Control.cs: 
2220           - ScaleCore needs to scale the bounds, not the ClientSize of the 
2221             control. Fixes #77416.
2222           - DefaultSize is 0,0 for control
2223         * TextBoxBase.cs: 
2224           - DefaultSize is 100, 20
2225           - SetBoundsCore: Now enforcing the height, no matter if the provided
2226             height is more or less than the preferred one, as long as AutoSize
2227             is on
2228         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
2229
2230 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
2231
2232         * Control.cs:
2233           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
2234             call unless both performLayout is true *and* we have a pending
2235             layout change
2236           - ResumeLayout: MS does not completely nest Suspend and Resume,
2237             they bottom out at 0, fixed our code to match that.
2238           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
2239             SetBoundsCore, we were updating even when we shouldn't. This fixes
2240             swf-anchors mis-anchoring when resizing the app fast and lots.
2241           - UpdateDistances: Now only setting the left and top distance if 
2242             we have a parent and are not suspended, this is based on
2243             a suggestion by Don Edvaldson in bug #77355.
2244           - OnVisibleChanged: Fixed logic when to create the control. We may
2245             not create the control if we have no parent or if it's not visible;
2246             switched to using Visible property instead of is_visible field 
2247             since the property also considers parent states. This fixes a bug
2248             when starting Paint.Net
2249
2250 2006-02-02  Jackson Harper  <jackson@ximian.com>
2251
2252         * Form.cs: If the forms handle hasn't been created yet don't call
2253         into xplatui to make it top most, just set the topmost flag on the
2254         form in CreateParams
2255         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
2256
2257 2006-02-01  Jackson Harper  <jackson@ximian.com>
2258
2259         * ScrollableControl.cs: Refactored the Recalculate method a
2260         little, this wasn't handling all the variants of bottom and right
2261         bars needed to be added and added/removed based on their
2262         counterparts being added/removed (which changes the drawable
2263         size). Also we special case client widths and heights of 0 and
2264         don't add the scrollbar for those.
2265
2266 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
2267
2268         * XplatUIX11.cs: 
2269           - Added method to get AbsoluteGeometry(); currently unused, but might
2270             be used in the future, if we try again to figure out toplevel
2271             coordinates with some more crappy window managers
2272           - Added FrameExtents() method to retrieve the WM set decoration size
2273           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
2274             to deal with at least KDE, FVWM and metacity (Fixes #77092)
2275         * Hwnd.cs: 
2276           - Added whacky_wm tracking var for metacity
2277           - Added logic to have default menu height if the actual menu height
2278             has not yet been calculated (part of fix for #77426)
2279         * Form.cs: Keep track whether client size has been set and re-set 
2280           it if a menu is added/removed afterwards (Fixes #77426)
2281
2282 2006-01-31  Jackson Harper  <jackson@ximian.com>
2283
2284         * Control.cs: When a new Site is set on the component attempt to
2285         pull the AmbientProperties from it.
2286
2287 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
2288
2289         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
2290           in the background of the owning form. Fixes #77332
2291
2292 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
2293
2294         * MimeIcon.cs: Fix for #77409
2295
2296 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
2297
2298         * XplatUIX11GTK.cs: Initial import
2299
2300 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
2301
2302         * FixedSizeTextBox: fixes class signature
2303
2304 2006-01-30  Jackson Harper  <jackson@ximian.com>
2305
2306         * FixedSizeTextBox.cs: New internal class that represents a
2307         textBox that will not be scaled.
2308         * TreeView.cs:
2309         * ComboBox.cs:
2310         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
2311         standard TextBox.
2312                 
2313 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
2314
2315         * XplatUIX11.cs: Retrieve default screen number instead of
2316           assuming 0. Attempted fix for #77318
2317
2318 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
2319
2320         * XplatUIWin32.cs: 
2321           - GetWindowPos: When a window is parented by FosterParent, use 
2322             the desktop instead of FosterParent as the base to get coordinates
2323           - CreateWindow: Don't make FosterParent the parent window for Popups
2324             if we don't want a taskbar entry, Popups automatically don't get one
2325         * Hwnd.cs: Need to call remove to actually remove the key from the
2326           hash table
2327
2328 2006-01-30  Mike Kestner  <mkestner@novell.com>
2329
2330         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
2331
2332 2006-01-30  Jackson Harper  <jackson@ximian.com>
2333
2334         * TreeView.cs:
2335         * TreeNode.cs: Raise events no matter how the treenode is
2336         checked. Patch by Don Edvalson.
2337
2338 2006-01-30  Jackson Harper  <jackson@ximian.com>
2339
2340         * TreeNode.cs: Signature fix.
2341
2342 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
2343
2344         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
2345
2346 2006-01-20  Mike Kestner  <mkestner@novell.com>
2347
2348         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
2349         event forwarding when menus are active.
2350         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
2351         Most of the patch is pdb's with a little rework.
2352
2353 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
2354
2355         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
2356           Removed GetMenuDC and ReleaseMenuDC methods; replaced
2357           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
2358         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
2359         * InternalWindowManager.cs: Added use of PaintEventStart/End to
2360           handling of WM_NCPAINT message, now passing the PaintEventArgs to
2361           the PaintWindowDecorations method
2362         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
2363         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
2364         * MenuAPI.cs: Made tracker window invisible
2365         * XplatUIWin32.cs:
2366           - Removed GetMenuDC and ReleaseMenuDC methods
2367           - Implemented the client=false path for PaintEventStart and
2368             PaintEventEnd
2369
2370 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
2371
2372         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
2373         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
2374           styles
2375         * Form.cs: 
2376           - MaximizeBox, MinimizeBox: Recreate the handle when setting
2377             the style
2378           - CreateParams: Reworked the styles to match MS look'n'feel,
2379             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
2380             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
2381
2382 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
2383
2384         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
2385           window is not mapped, since otherwise every form that's being 
2386           created is considered minimized, which is wrong.
2387         * Form.cs: Catching the exception and returning our internal value
2388           instead
2389
2390 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
2391
2392         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
2393           SetWindowMinMax() to have means to tell the driver about the minimum,
2394           maximum and maximized state window sizes. (Part of the fix for #76485)
2395         * Form.cs:
2396           - Implemented tracking of minimum and maximum window size, now calling
2397             new SetWindowMinMax() driver method to tell the driver (Part of the
2398             fix for #76485)
2399           - Finished handling of WM_GETMINMAXINFO method, now setting all values
2400             (Completes fix for #76485)
2401           - Calling new SetWindowMinMax driver method when the handle for a 
2402             form is created, to make sure the driver knows about it even if
2403             the values have been set before the window was created
2404           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
2405             to avoid messing up our anchoring calculations (partial fix
2406             for #77355)
2407         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
2408         * XplatUIX11.cs:
2409           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
2410           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
2411             (and presumably other freedesktop.org compliant WMs). Left the
2412             assumption unmapped=minimized, needed for SetVisible to work.
2413           - Now setting the window state when creating windows
2414           - Fixed SetVisible to consider/set the window state when mapping
2415             a Form. We cannot set the state before it's mapped, and we cannot
2416             use Form.WindowState once it's mapped (since it would ask the
2417             driver and get 'normal'. Therefore, we grab the state before
2418             mapping, map, and then set state.
2419           - Implmemented SetWindowMinMax method; Metacity does not seem to
2420             honor the ZoomHints, though.
2421         * XplatUIWin32.cs:
2422           - Removed MINMAXINFO (moved to XplatUIStructs)
2423           - Added SetWindowMinMax stub (on Win32 the only way to set that
2424             information is in response to the WM_GETMINMAXINFO message, which
2425             is handled in Form.cs)
2426           - Added logic to SetVisible to set the proper window state when a 
2427             form is made visible (fixes #75720)
2428
2429 2006-01-26  Jackson Harper  <jackson@ximian.com>
2430
2431         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
2432         same way we handle them with Invoke.
2433
2434 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
2435
2436         * Form.cs:
2437           - Added tracking of window state so CreateParams can return
2438             the appropriate style
2439           - Moved setting of WS_CAPTION style in CreateParams to allow
2440             styles without caption
2441         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
2442           control if the TextBox property is accessed. Fixes #77345
2443         * Control.cs:
2444           - get_Created: now uses is_disposed and is_created to determine
2445             return value (suggested by Jackson)
2446           - CreateHandle: No longer exits if the handle is being recreated
2447           - RecreateHandle: If the handle is not yet created call the 
2448             appropriate method to create either control or handle. If the
2449             control is already created CreateHandle will simply exit instead
2450             of just creating the handle
2451         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
2452           now SendMessage WM_DESTROY directly to the control when DestroyWindow
2453           is called.
2454         * XplatUIX11.cs: 
2455           - When DestroyWindow is called, instead of waiting for the 
2456             DestroyNotification from X11, we directly post it to the WndProc
2457             and immediately dispose the hwnd object.
2458             Same applies to DestroyChildWindows, and this obsoletes the
2459             expose_pending tracking. Contrary to Win32 behaviour we destroy our
2460             child windows before our own, to avoid X11 errors.
2461           - Removed the direct sending of WM_PAINT on UpdateWindow
2462         * XplatUIWin32.cs:
2463           - Reworked DoEvents and GetMessage to allow access to internal queue
2464             even when trying non-blocking access to the queue.  Fixes #77335. 
2465             Based on a patch suggestion by Don Edvalson. The new private
2466             GetMessage can now also be used as a backend for a PeekMessage
2467             frontend version.
2468         * XplatUI.cs: Improved debug output for CreateWindow
2469
2470 2006-01-25  Jackson Harper  <jackson@ximian.com>
2471
2472         * Help.cs: Allow param to be null. Patch by Don Edvalson.
2473
2474 2006-01-24  Jackson Harper  <jackson@ximian.com>
2475
2476         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
2477         when we have a MaxDropItems lower then the selected index.
2478
2479 2006-01-24  Jackson Harper  <jackson@ximian.com>
2480
2481         * Control.cs: Don't allow selection of non visible controls, allow
2482         selection of controls without parents.
2483
2484 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
2485
2486         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
2487         * DataGridDrawingLogic.cs: Add editing row only when is necessary
2488
2489 2006-01-23  Jackson Harper  <jackson@ximian.com>
2490
2491         * UpDownBase.cs: Make the textbox handle all the selection and
2492         tabbing. This fixes tabing to updown controls.
2493
2494 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
2495
2496         * TextBoxBase.cs: fixes exception thown the object was null
2497
2498 2006-01-23  Jackson Harper  <jackson@ximian.com>
2499
2500         * ButtonBase.cs: Just use the base CreateParams. They set
2501         visibility and enabled correctly.
2502         * ComboBox.cs:
2503         * TrackBar.cs:
2504         * MonthCalendar.cs: Lets let the base set as much of the
2505         createparams as possible so we don't have duplicate code all over
2506         the place.
2507
2508 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
2509
2510         * ThemeGtk.cs: Added TrackBar and some experimental code to
2511           get double buffering back
2512
2513 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
2514
2515         * DataGrid.cs: Allows row number set internally higher than the last
2516         when creating a new row. Restores the editing functionality.
2517
2518 2006-01-20  Mike Kestner  <mkestner@novell.com>
2519
2520         * MimeIcon.cs: delay Image creation until the icons are accessed
2521         instead of creating 190 scaled images on GnomeHandler startup.
2522
2523 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
2524
2525         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
2526           first call base before processing the event. Fixes #77279
2527
2528 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
2529
2530         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
2531           that the stride for the GDI bitmap would match the stride of
2532           a DIB or a Cursor.
2533
2534 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
2535
2536         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
2537
2538 2006-01-19  Jackson Harper  <jackson@ximian.com>
2539
2540         * ComboBox.cs: Hookup the text controls keydown event so we get
2541         those when the text control has the focus.
2542
2543 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
2544
2545         * Label.cs: Now using the base events instead of defining new ones;
2546           this allows us to just call the base properties without having to
2547           duplicate all base property logic 
2548
2549 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
2550
2551         * Label.cs: A label by default is not a tabstop (Fixes one of our
2552           failing nunit tests)
2553
2554 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
2555
2556         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
2557         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
2558
2559 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
2560
2561         * Cursor.cs: Reimplemented creating cursor bitmaps without using
2562           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
2563           This fixes #77218
2564         * XplatUIWin32.cs: 
2565           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
2566             constructor creates images that can't be saved. Part of the fix
2567             for #76103
2568           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
2569           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
2570             bug fix for handling window state in forms properly)
2571
2572 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
2573
2574         * ThemeGtk.cs: Simplify ScrollBar drawing
2575
2576 2006-01-18  Jackson Harper  <jackson@ximian.com>
2577
2578         * Splitter.cs: Set the default dock style for the splitter control
2579         in the constructor.
2580
2581 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
2582
2583         * ThemeGtk.cs: Corrected StateType and ShadowType for
2584           gtk_paint_box
2585
2586 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
2587
2588         * Control.cs: Make use of Theme.DoubleBufferingSupported
2589         * ThemeGtk.cs:
2590           - Added drawing for flat style buttons
2591           - Added ScrollBar drawing
2592
2593 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
2594
2595         * ThemeClearlooks.cs: Removed some unneeded code.
2596         * ThemeGtk.cs: First part of ThemeGtk enhancements.
2597
2598 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
2599
2600         * LinkLabel.cs: We need to update the hover drawing when
2601           leaving the control as well.
2602
2603 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
2604
2605         * DataGrid.cs: Clicking on non empty areas in the columns
2606            area was giving an exception
2607
2608 2006-01-17  Jackson Harper  <jackson@ximian.com>
2609
2610         * ThemeWin32Classic.cs:
2611         * ListView.cs: Do not draw/clip the headers when the header style
2612         is None.
2613
2614 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
2615
2616         * DataGrid.cs: Fixes 77260
2617         
2618 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
2619
2620         * DataGrid.cs: Clicking on a column on a empty grid was giving
2621           an exception
2622
2623 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
2624
2625         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
2626           or any keypress will crash the grid.
2627
2628 2006-01-17  Mike Kestner  <mkestner@novell.com>
2629
2630         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
2631         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
2632         invisible/previously-visible items.
2633         [Fixes #76909]
2634
2635 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
2636
2637         * ThemeClearlooks.cs:
2638         - Added CL_Draw_Button method; now other theme controls that are 
2639           not derived from button or do not have a button can draw buttons
2640           too
2641         - Updated ComboBox drawing
2642         - Beautified RadioButton drawing
2643         - Corrected drawing of bottom and left tabs
2644         - Beautified DateTimePicker and MonthCalendar
2645         - Added CPDrawButton and CPDrawRadioButton
2646
2647 2006-01-16  Jackson Harper  <jackson@ximian.com>
2648
2649         * ComboBox.cs: Set the initial value of the scrollbar to the
2650         current index. Reduce the numbers of refreshs and IndexOfs called.
2651
2652 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
2653
2654         * FileDialog.cs: When the file listview is focused hitting the
2655           backspace key moves the fileview to the parent directory
2656
2657 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
2658
2659         * Form.cs: 
2660           - Added RecreateHandle call when changing taskbar visibility to 
2661             trigger reparenting in Win32 driver (Fixes #75719)
2662           - If a window has minimize or maximize buttons, it cannot have
2663             a help button
2664         * XplatUIWin32.cs:
2665           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
2666             the toplevel form with FosterParent (A toolwindow not on the
2667             taskbar) (Fixes #75719)
2668           - Made FosterParent a toolwindow
2669
2670 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
2671
2672         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
2673
2674 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
2675
2676         * ToolTip.cs: If SetToolTip is called from a control and the mouse
2677           is currently over that control, make sure that tooltip_window.Text
2678           gets updated
2679
2680 2006-01-13  Mike Kestner  <mkestner@novell.com>
2681
2682         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
2683
2684 2006-01-13  Jackson Harper  <jackson@ximian.com>
2685
2686         * TreeView.cs: On MS GetNodeAt never actually factors in the X
2687         value passed.  Also redraw the selected node when we recieve
2688         focus, so tabbing between trees works correctly.
2689
2690 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
2691
2692         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
2693           ~/.gconf/%gconf-tree.xml, so use
2694           .gconf/desktop/gnome/interface/%gconf.xml
2695
2696 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
2697
2698         * TextControl.cs: Draw text in gray if control is disabled
2699
2700 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
2701
2702         * TreeView.cs: Draw the focus rectangle outside the highlight, to
2703           make sure it's always visible. Fixes #76680.
2704
2705 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
2706
2707         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
2708
2709 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
2710
2711         * PageSetupDialog.cs: Added.
2712         * PrintDialog.cs: Attributes.
2713         * PrintPreviewControl.cs: Updates.
2714         * PrintPreviewDialog.cs: Updates.
2715         
2716 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
2717
2718         * Control.cs: Undid my selection check fix, since it's not needed
2719         * TextBoxBase.cs:
2720           - Now considering the presence of hscroll/vscroll when sizing
2721             vscroll/hscroll respectively. Fixed bug #77077
2722           - Added Left/Up/Down/Right to IsInputKey list to prevent
2723             ContainerControl from stealing them. This fixes what I broke
2724             with my last checkin.
2725
2726 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
2727
2728         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
2729           I finally understand how the property can be set without a setter :-)
2730
2731 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
2732
2733         * Application.cs:
2734           - Switched RunLoop to use static Message.Create to create a 
2735             Message object
2736           - Added PreProcessMessage call in runloop for keyboard events; this
2737             is part of the fix for #77219, I overlooked this originally in the
2738             MSDN doc for PreProcessMessage
2739         * Control.cs:
2740           - Removed call to PreProcessMessage from handling of keyboard 
2741             messages; it's supposed to be done in the message pump
2742           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
2743             per MSDN documentation.
2744           - IsInputChar: All chars are input chars by default; removed the 
2745             parent calling chain, MS does not document that
2746           - PreProcessMessage: If IsInputChar is true, we want to return false
2747             to allow dispatching of the message
2748           - When selecting the next control, now also check that we're not
2749             selecting ourselves again and therefore return a false positive.
2750         * TextBoxBase.cs:
2751           - Tried to match return values for IsInputKey and ProcessDialogKey
2752             to what MS returns; moved processing of our special keys outside
2753             ProcessDialogKey since MS does not seem to return true on those.
2754           - Moved code that previously was in ProcessDialogKey into new private
2755             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
2756           - Reworked handling of WM_CHAR to not have to duplicate code from
2757             Control.cs anymore, instead we simply call down to base.
2758            
2759 2006-01-12  Jackson Harper  <jackson@ximian.com>
2760
2761         * ComboBox.cs: We always need to refresh the text area when
2762         EndUpdate is called. Fixes the combobox in the file dialog.
2763         * Control.cs: Don't create the creator_thread until the controls
2764         handle is created.  Also in InvokeRequired we check if the
2765         creator_thread is null. This gives the effect of InvokeRequired
2766         returning true if the controls handle is not created yet, and
2767         matches MS.
2768
2769 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
2770
2771         * XplatUI.cs:
2772           - Added StartLoop() driver method. This is used to allow drivers to
2773             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
2774             loop for a particular thread
2775           - Added EndLoop() driver method. This is called once the message
2776             pump for the thread is shut down
2777           - Added SupportsTransparency method to allow the driver to indicate
2778             opacity support for windows
2779         * Form.cs:
2780           - Removed TODO attribute, completed AllowTransparency property
2781           - Added documented logic to Opacity
2782         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
2783           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
2784           versions of CompatibleTextRendering
2785         * X11Structs.cs: Added opacity atom to our atom enumeration
2786         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
2787           of a form might be set before it's reparented by the WM, and we need
2788           the opacity value without calling up to Form)
2789         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
2790           SupportsTransparency() driver methods
2791         * Application.cs: Now calling StartLoop and EndLoop driver methods
2792         * XplatUIX11.cs:
2793           - Added opacity atom registration
2794           - Added StartLoop()/EndLoop() methods. They're empty right now but
2795             will need to get implemented when we switch to a per-thread queue
2796           - Implemented SupportsTransparency() method
2797           - Implemented SetWindowTransparency() method
2798           - Added support for setting the opacity value when a window is
2799             reparented (since the opacity needs to be set on the WM frame)
2800         * XplatUIOSX.cs, XplatUIWin32.cs:
2801           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
2802
2803 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
2804
2805         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
2806
2807 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
2808
2809         * FileDialog.cs: Added ToolTip for MWFFileView
2810         * MimeIcon.cs: Rewrote GnomeHandler.
2811           - Get currently used gnome icon theme from
2812             ($HOME)/.gconf/%gconf-tree.xml
2813           - Make use of inherited icon themes
2814           - Support SVG icon themes like Tango via librsvg
2815
2816 2006-01-12  Miguel de Icaza  <miguel@novell.com>
2817
2818         Revert's Jackson's revert which broke 2.0 builds.   Fix both
2819         builds. 
2820         
2821         * Application.cs: Move the use_compatible_text_rendering outside
2822         the NET_2_0 define.  If we ever need to use the
2823         use_compatible_text_rendering on the individual controls they will
2824         access the variable from the common shared code paths.
2825
2826 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
2827
2828         * XplatUI.cs:
2829           - Added more granular debug options
2830           - Added method to print both window text and id
2831           - Switched debug output to use new Window() debug method
2832           - Added IsEnabled() driver method
2833           - Added EnableWindow() driver method
2834         * Form.cs:
2835           - Removed end_modal; no longer needed, new loop handles termination
2836             via 'closing' variable
2837           - If form is modal, setting DialogResult will now initiate loop
2838             termination via 'closing' variable
2839           - Added support for is_enabled/WS_DISABLED to CreateParams
2840           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
2841             does all the work
2842           - Removed code that's now in RunLoop from ShowDialog()
2843           - Added various documented sanity checks to ShowDialog()
2844           - Added handling of WM_DESTROY message; we set 'closing' on getting
2845             the message to indicate the message pump to terminate
2846           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
2847             send by the Application.ExitThread method. (We send the message
2848             to destroy the window after all other events have been
2849             processed through the queue, instead of destroying the handle 
2850             directly)
2851           - Moved code from Close() method to WM_CLOSE handler; added logic
2852             to only send close-related events if the form is not displayed
2853             modal
2854         * Splitter.cs (..ctor): Fixed typo in resource name
2855         * Control.cs:
2856           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
2857             brush now
2858           - set_Cursor: Now only setting calling into XplatUI if the handle for
2859             the control is already created; this avoids implict handle creation
2860             or crashes if it's not created
2861           - set_Enabled: Now setting the enabled state via the new driver method
2862             instead of just tracking it
2863           - CreateParams: Added logic to set WS_DISABLED based on enabled state
2864           - CreateControl: Reordered event firing and method calls to more
2865             closely fire events in the order MS does. Now setting the
2866             enabled state in the driver when creating the control.
2867           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
2868             match MS order
2869         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
2870           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
2871         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
2872         * Hwnd.cs:
2873           - Added tracking of window enabled state (get_Enabled/set_Enabled)
2874           - Added EnabledHwnd property to easily allow a driver to find the
2875             handle of the first enabled window in the parent chain (this is
2876             used by drivers to pass up input events of disabled windows)
2877         * XplatUIDriver.cs: Added IsEnabled() method
2878         * Application.cs:
2879           - Removed crude and obsolete exiting tracking variable
2880           - Removed internal ModalRun(); replaced by RunLoop()
2881           - Implemented private CloseForms() method to allow closing all 
2882             windows owned by a particular (or all) threads
2883           - Exit() now properly closes all windows without forcing the message
2884             pump to quit
2885           - Removed obsolete InternalExit() method
2886           - Changed Run() methods to use new RunLoop() message pump
2887           - Implemented new RunLoop() method for both modal and non-modal forms
2888         * CommonDialog.cs:
2889           - get_CreateParams: Added setting of WS_DISABLED
2890           - Simplified ShowDialog(); now all the work is done in RunLoop(),
2891             invoked via Form.ShowDialog()
2892         * NativeWindow.cs: We don't remove the window from the collection when
2893           the handle is destroyed; there might still be messages for it in the
2894           queue (mainly the resulting WM_DESTROY); instead it will be removed
2895           when Control calls InvalidateHandle in the WM_DESTROY handler
2896         * XplatUIX11.cs:
2897           - CreateWindow: Added logic to handle the WS_DISABLED window style
2898           - EnableWindow: Implemented based on Hwnd.Enabled
2899           - GetMessage: Reset PostQuitState so the method can be called again
2900           - Implemented support for disabled windows (passing messages to the
2901             first enabled parent) in handling all input messages
2902           - Added optimizations for handling Expose events
2903           - Implemeted new driver method IsEnabled()
2904           - Now always resetting paint pending tracking vars when we start paint
2905           - Re-implemented UpdateWindow via just sending a WM_PAINT message
2906         * XplatUIOSX.cs: Added IsEnabled method stub
2907         * XplatUIWin32.cs: Implemented new IsEnabled() method
2908
2909 2006-01-11  Jackson Harper  <jackson@ximian.com>
2910
2911         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
2912         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
2913         variables a little.
2914         * ColorDialog.cs: Clear out the old form before adding the new
2915         panel.  
2916
2917 2006-01-11  Jackson Harper  <jackson@ximian.com>
2918
2919         * X11Dnd.cs: Make sure to add all the text formats when adding
2920         strings to the data object.
2921         * TreeNodeCollection.cs: When adding to a sorted tree we need to
2922         do some redrawing too.  Also change the UpdateNode to an
2923         UpdateBelow so the newly added node gets painted.
2924         
2925 2006-01-11  Miguel de Icaza  <miguel@novell.com>
2926
2927         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
2928         LinkLabel.cs, PropertyGrid.cs: Implement the
2929         UseCompatibleTextRendering property for 2.x
2930
2931         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
2932
2933 2006-01-11  Jackson Harper  <jackson@ximian.com>
2934
2935         * TreeView.cs: Use the property for setting the selected node so
2936         the correct events get raised.
2937         * TreeNode.cs: Update the tree when the fore/back colours of a
2938         node are set.
2939
2940 2006-01-10  Jackson Harper  <jackson@ximian.com>
2941
2942         * TreeView.cs: Allow setting SelectedNode to null.
2943
2944 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
2945
2946         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
2947
2948 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
2949
2950         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
2951
2952 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
2953
2954         * PrintDialog.cs: Added attributes and set default property values.
2955
2956 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
2957
2958         * PrintControllerWithStatusDialog.cs: 
2959         Added PrintControllerWithStatusDialog.
2960
2961 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
2962
2963         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
2964         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
2965
2966 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
2967
2968         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
2969
2970 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
2971
2972         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
2973         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
2974
2975 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
2976
2977         * MimeIcon.cs: Added internal class SVGUtil.
2978
2979 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
2980
2981         * FileDialog.cs: Don't crash if there are two files with the
2982           same name but different locations.
2983
2984 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
2985
2986         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
2987         dates across multiple month grids. Used to not highlight entire 
2988         month, but does now.
2989         
2990 2006-01-06  Jackson Harper  <jackson@ximian.com>
2991
2992         * MonthCalendar.cs: Removed DoEvents call to prevent a running
2993         message loop. Change timer intervals to numbers that seem more
2994         natural.
2995
2996 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
2997
2998         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
2999           object for location info since screen object is now implemented.
3000
3001 2006-01-05  Jackson Harper  <jackson@ximian.com>
3002
3003         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
3004         * AsyncMethodResult.cs: We no longer use a WeakReference for the
3005         AsyncMethodResult, this is because we ALWAYS want the
3006         ManualResetEvent to get set.
3007         * Control.cs: When disposing use an async invoke to call shutdown
3008         code, so that thigns don't block on the finalizer thread.  Also
3009         check if we even have a message loop before trying to send
3010         messages, if we don't then don't bother sending messages.
3011         - No more weak references for async methods
3012         * XplatUIDriver.cs: No more weak references for async methods.
3013
3014 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3015
3016         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
3017           returns two FontFamily with the same name
3018
3019 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
3020
3021         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
3022           drawing disabled text. Instead using the ColorGrayText color
3023
3024 2006-01-04  Jackson Harper  <jackson@ximian.com>
3025
3026         * TreeNode.cs: redraw the node when its image index is changed.
3027
3028 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
3029
3030         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
3031           time I checked there are no others like it.
3032
3033 2006-01-04  Jackson Harper  <jackson@ximian.com>
3034
3035         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
3036         this gives the behavoir I was looking for.
3037         * Control.cs: Special case Invoking EventHandlers, this matches MS
3038         and fixes part of bug #76326.
3039
3040 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3041
3042         * ThemeClearlooks.cs, FileDialog.cs:
3043           - Reflect the latest Theme class changes
3044           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
3045             with DateTime
3046             
3047 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3048
3049         * Theme.cs: Cache UI resource images and resize them if needed
3050
3051 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
3052
3053         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
3054           is called. This fixes the crash in Nexxia when setting the font
3055           attributes in the chat. [However, RTF needs a look-over to make sure
3056           that all SelectionXXX methods handle the special case that selection
3057           is empty and therefore the change must be applied to all text starting
3058           at the cursor/selection start]
3059
3060 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
3061
3062         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
3063           XplatUIOSX.cs: Added SendMessage and PostMessage methods
3064         * X11Keyboard.cs: Switched to new way of calling PostMessage
3065
3066 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
3067
3068         * Theme.cs: Added theme interface for images to allow the theme to
3069           control what images are used for things like FileDialog, MessageBox
3070           icons, etc.
3071         * MessageBox.cs: Now uses the new Theme icon/image interfaces
3072
3073 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
3074
3075         * FileDialog.cs:
3076           - Removed some dead code
3077           - Opening a recently used file does work now
3078           - Small UI enhancements
3079           - Refactoring
3080
3081 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
3082
3083         * FileDialog.cs: Forgot too add __MonoCS__
3084
3085 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
3086
3087         * FileDialog.cs: We are able to read recently used files now let's
3088           go on and write them.
3089
3090 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
3091
3092         * FileDialog.cs: Breathe some life into "last open"/"recently used"
3093           button
3094         * MimeIcon.cs: Do a check for the top level media type also
3095
3096 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
3097
3098         * ThemeClearlooks.cs:
3099           - Added CPDrawStringDisabled
3100           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
3101             some chars if the text doesn't fit into text_rect
3102           - DrawListViewItem: If View = View.LargeIcon center the image;
3103             rewrote the drawing of ListViewItem.Text if View = 
3104             View.LargeIcon
3105
3106 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
3107
3108         * MimeIcon.cs: Use default KDE icon theme if there is no
3109           "48x48" directory for the current icon theme, fixes #77114
3110         * Mime.cs: Disable not working and actually not used code. 
3111         * ThemeWin32Classic.cs:
3112           - Replace "new SolidBrush" in GetControlBackBrush and
3113             GetControlForeBrush with ResPool.GetSolidBrush
3114           - Changed DrawListViewItem from private to protected virtual
3115         * FileDialog.cs:
3116           - Added form.MaximizeBox = true
3117           - Don't throw an exception if there is a broken symbolic link
3118
3119 2005-12-23  Jackson Harper  <jackson@ximian.com>
3120
3121         * TabControl.cs: Give the panels focus, keyboard navigation is
3122         fixed so this works correctly now.
3123         - We need these key events also.
3124         * ToolBar.cs: Remove some of the poor mans double buffering.
3125         
3126 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
3127
3128         * ComboBox.cs: The internal TextBox now returns the focus.
3129
3130 2005-12-23  Jackson Harper  <jackson@ximian.com>
3131
3132         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
3133
3134 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
3135
3136         * Control.cs: Removed debug code
3137         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
3138           implicit children
3139
3140 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
3141
3142         * Control.cs: When creating the control, update the Z-order after
3143           all it's children are created, too. (Fixes nexxia not showing
3144           picturebox bug)
3145
3146 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
3147
3148         * Control.cs: Do not update the anchoring distances if layout is
3149           suspended, instead do it once layout is resumed
3150
3151 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
3152
3153         * Control.cs: 
3154           - After many hours of debugging, for both Jackson and
3155             myself, it turns out that it helps to set the parent of a control
3156             if you want to actually see it onscreen. In the spirit of that
3157             discovery, we're now setting the parent of the control and
3158             it's children when the control's handle is created. This fix
3159             will make Lutz Roeder's Reflector run happily. 
3160           - now just creating the handle instead of the whole control when
3161             getting a graphics context for the control.
3162
3163 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
3164
3165         * ScrollableControl.cs: When calculating the canvas, don't consider
3166           the scrollbar widths. Instead, predict if horizontal scrollbar
3167           will affect canvas when deciding on vertical display and vice versa.
3168
3169 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
3170
3171         * RichTextBox.cs: Set default RTF font for documents that don't
3172           have a font table (Fixes #77076)
3173
3174 2005-12-22  Jackson Harper  <jackson@ximian.com>
3175
3176         * TextBoxBase.cs: It's difficult to do, but you can have an empty
3177         clipboard. This prevents a NullRef in that case.
3178         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
3179         clipboard. PRIMARY is for the currently selected text only. (We
3180         should implement PRIMARY at some point.
3181
3182 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
3183
3184         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
3185           a Unicode function with a structure that was defined in Ansi way.
3186           This fixes #76942.
3187
3188 2005-12-21  Jackson Harper  <jackson@ximian.com>
3189
3190         * StatusBar.cs: Statusbar handles its fore/back colours on it's
3191         on. Because thats how it rolls. (and this avoids it using ambient
3192         colours).
3193         * ThemeWin32Classic.cs: Use the proper back color for filling.
3194         * Menu.cs: Use the system menu bar color for drawing menu
3195         bars. Using the window back color will bring ambient colours into
3196         the picture.
3197
3198 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
3199
3200         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
3201           Bitmaps were created and not disposed.
3202
3203 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
3204
3205         * Control.cs (CreateControl): Don't do anything if the control is
3206           already created, otherwise we'd fire the OnCreated event more than
3207           once
3208
3209 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
3210
3211         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
3212           will always match. Instead return -1. Fixes #76464.
3213
3214 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
3215
3216         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
3217           neither the beginning nor the end of the line (Fixes bug #76479)
3218
3219 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
3220
3221         * Control.cs:
3222           - ControlNativeWindow.ControlFromHandle(): Now handling situation
3223             where handle is invalid
3224           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
3225             instead of slower linear search
3226         * NativeWindow.cs: Don't remove the window from the hashtable until
3227           after the driver has destroyed it (since the driver might use
3228           Control.FromHandle to lookup the control object
3229         * Hwnd.cs: Added DestroyPending property to track if a window is 
3230           already destroyed as far as the driver is concerned and only hasn't
3231           yet notified the control
3232         * XplatUIX11.cs:
3233           - Activate(): Check if the window is still valid before using the 
3234             handle
3235           - Implemented DestroyChildWindow() method to mark child windows as
3236             destroyed when a window is destroyed. This prevents situations 
3237             where we might call an X method based on queued events for a
3238             window that already has been destroyed but we haven't yet pulled
3239             the destroy method from the queue.
3240           - Added a call to the new DestroyChildWindow() method to the drivers
3241             DestroyWindow code. Also now marking the destroyed window itself
3242             as pending
3243
3244 2005-12-20  Jackson Harper  <jackson@ximian.com>
3245
3246         * StatusBar.cs:
3247         * StatusBarPanel.cs: Don't calculate panel sizes on draw
3248         anymore. Just do them when needed, also track the rects of panels
3249         so that we can optimize refreshing more in the future.
3250
3251 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
3252
3253         * ColorDialog.cs: Fixed focus drawing in small color controls
3254
3255 2005-12-19  Jackson Harper  <jackson@ximian.com>
3256
3257         * InternalWindowManager.cs:
3258         * MdiWindowManager.cs: Cleanup some coordinate system changes so
3259         moving windows works properly.
3260
3261 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
3262
3263         * Control.cs: 
3264           - Removed call to InitLayout() from SetBoundsCore(); doc says
3265             it's only called when a control is added to a container
3266           - Split InitLayout logic, moved to separate UpdateDistances() method
3267             since we need to perform those calculations more often than just
3268             when adding the control to a container. (Needed to fix #77022)
3269           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
3270           - Reduced the OnBindingContextChanged events count, don't send them
3271             unless the control is created, we still aren't totally matching
3272             MS, but I can't quite figure out some of their rules
3273
3274 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
3275
3276         * ThemeClearlooks.cs: Corrected distance between ProgressBar
3277           stripes
3278
3279 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
3280
3281         * ThemeClearlooks.cs:
3282           - Updated ProgressBar drawing
3283           - Corrected drawing of ScrollBars and scroll buttons
3284           - Some temporary fixes for minor pixel artefacts
3285
3286 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
3287
3288         * Control.cs:
3289           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
3290             cause events to be sent in the same order as MS does.
3291           - Added ChangeParent() method to trigger various OnXXXChanged events
3292             that need to be fired when a parent changes (This is a reworking
3293             of the patch from r54254, with the X11 errors fixed)
3294           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
3295             since on MS we get OnLayoutChanged events when calling Clear()
3296           - Changed Enabled property to consider parent state as well, if a
3297             parent is not enabled, the control will not be either
3298           - Changed Parent property to simply call Controls.Add() since that
3299             now does all the work required, this way we avoid code duplication
3300           - Threw in a few OnBindingsContextChanged calls to try and match
3301             when MS sends them. We seem to send a few too many, though.
3302           - Added call to CreateControl when adding the control to a parent.
3303             We were never calling CreateControl. Still needs some work, in
3304             some places we treat HandleCreated and ControlCreated as equal, 
3305             which is wrong
3306           - Removed obsolete commented out code from UpdateZOrder()
3307
3308 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
3309
3310         * ThemeClearlooks.cs: Updated TrackBar drawing.
3311
3312 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
3313
3314         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
3315
3316 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
3317
3318         * FileDialog.cs: Add the Help button and the open readonly
3319           checkbox only if needed
3320
3321 2005-12-16  Jackson Harper  <jackson@ximian.com>
3322
3323         * Control.cs: Make sure we have an active menu before trying to
3324         process commands on it. Prevents menu-less forms from crashing
3325         when Alt is pressed.
3326         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
3327         Dieter Bremes.
3328         * RichTextBox.cs: Expand statement to help out gmcs and fix the
3329         2.0 build.
3330
3331 2005-12-16  Jackson Harper  <jackson@ximian.com>
3332
3333         * InternalWindowManager.cs: Don't translate tool windows screen
3334         coordinates. This fixes windows 'bouncing' around when being moved.
3335
3336 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
3337
3338         * TextBoxBase.cs:
3339           - MaxLength now treats 2^31-1 equal to unlimited length (this is
3340             not quite MS compatible, MS uses that number only for single line
3341             and 2^32-1 for multi-line, but I figure it won't hurt keeping
3342             the limit at 2GB)
3343           - Now enforcing the MaxLength limit when entering characters
3344           - Added argument to internal Paste() method to track if it's called
3345             from programatically or via keyboard, since keyboard driven pastes
3346             need to enforce max-length
3347           - Added logic to Paste to only paste as many chars as MaxLength 
3348             allows
3349         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
3350         * TextControl.cs:
3351           - Added Length property to return number of characters in document
3352           - Added private CharCount property which only tracks actual chars
3353             in the document (no linefeeds) and fires event when CharCount
3354             changes
3355           - Added tracking of character count to all methods that alter it
3356           - Added LengthChanged event to allow applications to subscribe
3357             to any changes to the document
3358
3359 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
3360
3361         * TextBox.cs: 
3362           - Removed local password_char field (moved to TextBoxBase)
3363           - Now setting the document's password var when password is
3364             set
3365         * TextBoxBase.cs:
3366           - Added password_char field (needed here so MultiLine can
3367             access it)
3368           - Added logic to MultiLine property setter to set the document's
3369             variable when password display is allowed
3370           - Removed debug code and made some debug code conditional
3371         * TextControl.cs:
3372           - Added RecalculatePasswordLine() method to handle special password
3373             char only lines
3374           - Added PasswordChar property, also added related tracking vars
3375           - Draw() method now uses local text var for grabbing text to draw,
3376             this var is set to line.text unless we're doing password display,
3377             then it is set to the pre-generated all-password-chars line
3378           - Added calling RecalculatePasswordLine() method for password lines
3379
3380 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
3381
3382         * Hwnd.cs: 
3383           - Added Reparented property to allow tracking of Window Manager
3384             reparenting actions (which affect X/Y calculations of toplevel 
3385             windows)
3386           - Made ToString() print window handles in hex
3387         * XplatUIX11.cs:
3388           - AddConfigureNotify(): Now uses reparented state off Hwnd to
3389             determine if X/Y needs offsetting
3390           - AddConfigureNotify(): Fixed offset calculations
3391           - Now adds ReparentNotify messages into the queue
3392           - Now processes ReparentNotify messages and causes a 
3393             WM_WINDOWPOSCHANGED message to be sent upstream if a window
3394             is reparented (as most likely it's X/Y coordinates are changed
3395             due to that)
3396
3397 2005-12-14  Jackson Harper  <jackson@ximian.com>
3398
3399         * XplatUIX11.cs: Tool windows still need to respek focus.
3400
3401 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
3402
3403         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
3404           have a working release
3405
3406 2005-12-13  Jackson Harper  <jackson@ximian.com>
3407
3408         * Form.cs: Update styles after setting the border style regardless
3409         of whether or not the window is using a window manager.
3410
3411 2005-12-13  Jackson Harper  <jackson@ximian.com>
3412
3413         * Form.cs: We now hook into an internal window manager instead of just an
3414         MDI subsystem, this is so we can have properly behaving tool windows.
3415         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
3416         * InternalWindowManager.cs: New internal class that acts as a
3417         window manager for tool windows and as a base for mdi windows.
3418         * MdiWindowManager.cs: New class that acts as a window manager for
3419         mdi windows.
3420
3421 2005-12-12  Jackson Harper  <jackson@ximian.com>
3422
3423         * Control.cs: Updates so we match behavoir for for implicit
3424         controls. Fixes explosions in MDI.
3425
3426 2005-12-12  Jackson Harper  <jackson@ximian.com>
3427
3428         * Control.cs: Implement Invalidate (Region).
3429
3430 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
3431
3432         * Control.cs: 
3433           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
3434             the same events as MS does. MS fires events for each property 
3435             except, for unknown reasons, Cursor, when the control is reparented. 
3436             I can't seem to totally match add/remove since MS also fires some 
3437             VisibleChanged events, which makes no sense. Consolidated the
3438             parenting code into a separate method so it can be called from
3439             both Add and Remove. set_Parent no longer needs any special logic
3440             as it calls the parent's add method which implicitly fires
3441             all events
3442           - Removed some obsolete code and debug output
3443           - Enabled state is inherited from parents, if this is enabled
3444
3445 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
3446
3447         * Form.cs: Removed commented out code
3448
3449 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
3450
3451         * Control.cs:
3452           - Added internal version of Invoke, with additional argument 
3453             indicating if we're calling it from a Dispose() handler. That
3454             way we can avoid BeginInvoke throwing an exception if we're
3455             calling for an already destroyed window.
3456           - Added a dispose argument to BeginInvokeInternal, and made the
3457             check if a valid window handle chain exists conditional on
3458             it not being a dispose call
3459           - Removed code in DestroyHandle to destroy our children. Since we
3460             now handle the WM_DESTROY message we will catch all our children
3461             being destroyed.
3462           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
3463         * Form.cs:
3464           - Added a field to track the application context of the form.
3465           - No need to set closing variable as response to WM_CLOSE, instead
3466             we destroy the window. We also call PostQuitMessage if the form
3467             has an application context (which makes it the main app form,
3468             which, when closed terminates the app)
3469         * XplatUI.cs:
3470           - Dropped Exit() method, it's naming was confusing
3471           - Added PostQuitMessage() which causes GetMessage to return false
3472             once the message queue is empty
3473         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
3474           PostQuitMessage()
3475         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
3476           no longer a valid XplatUI method, but left it in since it's used
3477           internally. Added empty PostQuitMessage() method.
3478         * MenuAPI.cs: Replaced call to Exit() with call to
3479           PostQuitMessage, even though this is probably no longer needed.
3480         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
3481         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
3482         * Application.cs:
3483           - Replaced call to XplatUI.Exit() with PostQuitMessage()
3484           - Removed old debug code that would call XplatUI for exception
3485             display, enabled standard exception handling (Still not enabled
3486             though, until NativeWindow's ExternalExceptionHandler define
3487             is removed
3488         * NativeWindow.cs:
3489           - Added internal method to allow control to update NativeWindow
3490             after a window has been destroyed
3491           - Added handling of already destroyed windows when calling i
3492             DestroyWindow
3493           - Added removal of handle from list on ReleaseHandle
3494         * XplatUIX11.cs:
3495           - Dropped GetMessageResult var and related code
3496           - Added PostQuitState to field to track if PostQuitMessage has been
3497             called
3498           - Dropped Exit() method
3499           - Added PostQuitMessage() method
3500           - GetMessage now will return false if PostQuitState is set and no
3501             more messages are in the queue.
3502           - Expose handler will no longer generate WM_PAINT messages if we are
3503             in PostQuitState since it's very likely any windows have already
3504             been destroyed, and since Hwnd won't get updated until we have
3505             processed the DestroyNotify we'd be causing X errors.
3506         
3507 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
3508
3509         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
3510           Thanks to Mike for pointing out the err of my ways.
3511
3512 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
3513
3514         * Control.cs(PreProcessMessage): Moved menu handling back, but
3515           after all other key handling, to match MS (who handles Menu in
3516           DefWndProc)
3517         * Menu.cs (WndProc): Removed my brainfart
3518
3519 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
3520
3521         * Control.cs(PreProcessMessage): Removed special menu handling 
3522         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
3523
3524 2005-12-07  Mike Kestner  <mkestner@novell.com>
3525
3526         * Control.cs : special case SYSKEYUP so that we can adjust keynav
3527         state according in tracker.
3528         * Menu.cs : promote tracker field to base class and provide a tracker
3529         lookup capability.  Add/Remove shortcuts dynamically if the top menu
3530         has a tracker. Unparent items that are removed from the collection.
3531         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
3532         * Theme*.cs: add always_show_hotkeys field to support configurability
3533         of mnemonic display.  win32 doesn't show mnemonics until Alt is
3534         pressed.
3535
3536 2005-12-07  Jackson Harper  <jackson@ximian.com>
3537
3538         * MdiChildContext.cs: Use Control.ResetCursor.
3539         * Control.cs: ResetCursor needs to set the property so that the
3540         correct XplatUI call gets made.
3541
3542 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
3543
3544         * Control.cs: More fixes to make our key events match MS. We
3545           were not setting the modifier state on KeyData, and we were
3546           not generating any events when Alt was pressed with a key
3547           since handling of WM_SYSxxx was missing for the OnKey methods.
3548
3549 2005-12-07  Jackson Harper  <jackson@ximian.com>
3550
3551         * MdiChildContext.cs: reenable the sizing code.
3552         - When the mouse leaves a window reset its cursor.
3553
3554 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
3555
3556         * ThemeClearlooks.cs: Reflect latest Hwnd changes
3557
3558 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
3559
3560         * Hwnd.cs: Now using the theme 3d bordersize to calculate
3561           widths of Fixed3D borders
3562
3563 2005-12-07  Jackson Harper  <jackson@ximian.com>
3564
3565         * MdiClient.cs: Fix warnings. Earn Mike's love.
3566
3567 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
3568
3569         * ThemeClearlooks.cs:
3570           - Adjusted mouse over button color
3571           - Added first parts of CheckBox drawing
3572           - Added correct color for selected text background
3573           - Fixed ComboBox drawing
3574           - Added CPDrawBorder3D and CPDrawBorder
3575
3576 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
3577
3578         * XplatUIX11.cs: Added call to XBell for AudibleAlert
3579
3580 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
3581
3582         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
3583           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
3584           alert users via sound. We could add an enum arg with different
3585           types of alerts in the future
3586
3587 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
3588
3589         * Control.cs: Fix behaviour problems pointed out by Mike
3590
3591 2005-12-05  Mike Kestner  <mkestner@novell.com>
3592
3593         * StatusBarPanel.cs: add Invalidate method and hook it into all the
3594         prop setters.  Calls parent.Refresh for now, but could be maybe be
3595         optimized with an internal method on StatusBar at some point.
3596         [Fixes #76513]
3597
3598 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
3599
3600         * RichTextBox.cs: Implemented get_SelectionColor
3601
3602 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
3603
3604         * ThemeClearlooks.cs:
3605           - Removed dead code
3606           - Draw black button border only if button is Form.AcceptButton
3607           - Draw correct button color for pressed RadioButton if the mouse 
3608             has entered the button
3609           - Updated ProgressBar drawing!
3610           - Updated CPDrawSizeGrip drawing
3611           - Updated StatusBarPanel drawing
3612
3613 2005-12-05  Mike Kestner  <mkestner@novell.com>
3614
3615         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
3616         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
3617
3618 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
3619
3620         * ThemeClearlooks.cs: Initial check-in, activate with
3621           export MONO_THEME=clearlooks
3622         * ThemeEngine.cs: Added ThemeClearlooks
3623
3624 2005-12-03  Mike Kestner  <mkestner@novell.com>
3625
3626         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
3627         [Fixes #76897]
3628
3629 2005-12-02  Jackson Harper  <jackson@ximian.com>
3630
3631         * Form.cs: If the child form has no menu the default main menu is
3632         used as the active menu.
3633
3634 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
3635
3636         * ListBox.cs: Check if any items exist before trying to resolve 
3637           coordinates into items
3638
3639 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
3640
3641         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
3642           as the second color for the background hatch
3643
3644 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
3645
3646         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
3647         * RichTextBox.cs: FormatText position arguments are 1-based, now making
3648           sure that what we pass to FormatText is always 1-based. Fixes #76885
3649
3650 2005-11-29  Miguel de Icaza  <miguel@novell.com>
3651
3652         * NumericUpDown.cs (EndInit): When we are done initializing,
3653         reflect any updates on the UI.
3654
3655 2005-12-02  Jackson Harper  <jackson@ximian.com>
3656
3657         * ImplicitHScrollBar.cs:
3658         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
3659         their container controls.
3660         * TreeView.cs: Use the new implicit scrollbars.
3661
3662 2005-12-02  Jackson Harper  <jackson@ximian.com>
3663
3664         * TreeView.cs: Make top_node internal so the TreeNodeCollections
3665         can play with it.
3666         * TreeNodeCollection.cs: If we remove the topnode we need to
3667         update topnode to the next node in line.
3668         - When clearing nodes go through the same process as removing
3669         them, so they get depareneted and checked if they are top node.
3670
3671 2005-12-01  Jackson Harper  <jackson@ximian.com>
3672
3673         * TreeView.cs: When imagelists are used the image area is
3674         selectable as well as the text.
3675         - If there are no selected nodes select the first one.
3676         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
3677         so don't do it more then we need to.
3678
3679 2005-12-01  Jackson Harper  <jackson@ximian.com>
3680
3681         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
3682         that arrows can be scaled.
3683
3684 2005-12-01  Jackson Harper  <jackson@ximian.com>
3685
3686         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
3687         fail. Patch by Dieter Bremes
3688
3689 2005-11-30  Jackson Harper  <jackson@ximian.com>
3690
3691         * Form.cs: Property is 2.0 only
3692         * PrintDialog.cs: Signature fix.
3693
3694 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
3695
3696         * TextControl.cs: 
3697           - No longer artificially moves text 2 pixels down (now that we have
3698             borders this is no longer needed)
3699           - Added calcs for left, hanging and right indent
3700
3701 2005-11-23  Mike Kestner  <mkestner@novell.com>
3702
3703         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
3704
3705 2005-11-30  Jackson Harper  <jackson@ximian.com>
3706
3707         * MdiChildContext.cs: Set the cloned menus forms, as these don't
3708         get cloned as part of CloneMenu ().
3709         * Menu.cs: Make sure the parent of the items get set correctly
3710         when they are added.  And the owners are notified of the changes.
3711         * Form.cs: Create an ActiveMenu property, so that when MDI is used
3712         we can change the menu being displayed/handled by the form without
3713         changing the menu assosciated with the form.
3714         - Don't let Mdi children draw/handle menus.
3715         
3716 2005-11-30  Jackson Harper  <jackson@ximian.com>
3717
3718         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
3719         a MenuChanged event. Just to make the API a little more
3720         consistent.
3721         * MainMenu.cs:
3722         * MenuItem.cs: Use the new OnMenuChanged
3723         * MdiChildContext.cs: Handle menu merging.
3724         * Form.cs: Implement MergedMenu.
3725         
3726 2005-11-30  Jackson Harper  <jackson@ximian.com>
3727
3728         * Menu.cs: We were misusing Add. Add goes behind the specified
3729         index according to the docs, and does not replace the specified
3730         index. So I added an Insert method.
3731
3732 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
3733
3734         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
3735           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
3736           is for Jackson
3737         * RichTextBox.cs: Added calls to base for DnD events
3738
3739 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
3740
3741         * TextControl.cs:
3742           - Fixed drag-selection related crash; style fixes
3743           - Implemented undo class
3744             o Implemented method to capture document state for specified
3745               range in document tree
3746             o Implemented method to restore captured document state
3747             o Implemented cursor tracking
3748             o Implemented basic undo stack
3749           - Added undo cursor tracking to methods altering cursor location
3750           - Added undo tracking to selection deletion (still missing
3751             other text-altering hookups)
3752         * RichTextBox.cs:
3753           - Added SelectionLength property
3754           - Implemented CanPaste()
3755           - Implemented Paste()
3756           - Added missing protected methods
3757           - Fixed RTF->Document conversion; now uses font index 0 and color 
3758             index 0 as the default font for the parsed text
3759           - Fixed RTF<->Document font size translation
3760           - Fixed RTF generation, now properly handles cross-tag boundaries
3761             for single line selection
3762           - No longer always appends blank line to generated RTF
3763           - Removed TODOs
3764           - Added missing attributes
3765           - Hooked up undo-related methods
3766         * TextBoxBase.cs:
3767           - Implemented Copy()
3768           - Implemented Paste()
3769           - Implemented Cut()
3770           - Fixed caret mis-behaviour on backspace across line-boundaries
3771
3772 2005-11-29  Jackson Harper  <jackson@ximian.com>
3773
3774         * MdiClient.cs: Add a method for activating mdi children. Very
3775         basic right now. I imagine someday it might need more girth.
3776         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
3777         children windows names are added to the menu item.
3778         * ThemeWin32Classic.cs: Draw the arrow if the item is an
3779         mdilist. This happens regardless of whether or not there are any
3780         mdi windows to see in the list, and according to my tests happens
3781         before the items are even added. Also happens if there isn't even
3782         an mdi client to get windows from.
3783
3784 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
3785
3786         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
3787         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
3788
3789 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
3790
3791         * DataGridTableStyle.cs:
3792           - Create always the styles for the missing columns even if they are
3793             provided by the user (not default table style)
3794         * DataGrid.cs:
3795           - Fixes bug 76770
3796           - Fixes SetDataBinding (always re-attach source)
3797           - Fixes SetNewDataSource (only clear styles if they are not for 
3798             this source)
3799          -  Expands OnTableStylesCollectionChanged to handle style refresh 
3800             and remove properly
3801
3802 2005-11-29  Jackson Harper  <jackson@ximian.com>
3803
3804         * FileDialog.cs: Implement missing bits, remove some dead
3805         code.
3806         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
3807         creation of the panel so that the options set on the dialog are
3808         seen when the panel is created.
3809         * TreeView.cs: raise a click when items are clicked.
3810         
3811 2005-11-29  Jackson Harper  <jackson@ximian.com>
3812
3813         * MdiClient.cs: Pass some signature methods through to base.
3814
3815 2005-11-28  Jackson Harper  <jackson@ximian.com>
3816
3817         * ListView.cs: Raise the click event when items are clicked.
3818
3819 2005-11-28  Jackson Harper  <jackson@ximian.com>
3820
3821         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
3822         a nullref.
3823
3824 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
3825
3826         * ThemeNice.cs: - Removed 1 pixel bitmaps
3827           - Use SmoothingMode.AntiAlias where it makes sense
3828             (ScrollButton arrow for example)
3829           - Enhanced Button focus drawing
3830           - Fixed ComboBox drawing (no artefacts anymore, focus
3831             rectangle is back again, reduced size of ComboButton, etc.)
3832           - Fixed RadioButton focus drawing for Appearence.Button
3833           - Slight ScrollButton redesign
3834           - Some LinearGradientBrush size fixes
3835           - GroupBoxes have now rounded edges
3836           - Fixed StatusBar drawing
3837
3838 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
3839
3840         * ThemeNice.cs: - Remove dead code
3841           - use correct background colors for menus, etc.
3842           - Fake pixel drawing with 1 pixel bitmaps
3843
3844 2005-11-24  Jackson Harper  <jackson@ximian.com>
3845
3846         * MdiClient.cs: Size the scrollbars when resizing the window.
3847         - Resize the maximized windows when the client is resized
3848         * Form.cs: Make the child context available
3849         
3850 2005-11-23  Jackson Harper  <jackson@ximian.com>
3851
3852         * MdiChildContext.cs: Don't size windows if they are maximized.
3853
3854 2005-11-23  Mike Kestner  <mkestner@novell.com>
3855
3856         * ContextMenu.cs: use MenuTracker.
3857         * Control.cs: remove menu handle usage.
3858         * Form.cs: remove menu handle usage.
3859         * Hwnd.cs: remove menu handle usage.
3860         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
3861         motion and clicks to the new Tracker handlers.
3862         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
3863         and handle usage.
3864         * MenuAPI.cs: refactored to combine popup and menubar event handling.
3865         Killed the MENU and MENUITEM data types and associated collections
3866         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
3867         MenuTracker class that exposes the leftovers from the old MenuAPI
3868         static methods. Restructured Capture handling so that only one grab is
3869         done for the entire menu hierarchy instead of handing off grabs to
3870         submenus. Tracker now has an invisible control to Capture when active.
3871         * MenuItem.cs: add sizing accessors, kill Create
3872         and handle usage.
3873         * Theme.cs: remove menu handle and MENU(ITEM) usage.
3874         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
3875         MENU(ITEM). remove menu handle usage, use Menu directly.
3876         * XplatUIDriver.cs: remove menu handle usage.
3877         * XplatUIOSX.cs: remove menu handle usage.
3878         * XplatUIWin32.cs: remove menu handle usage.
3879         * XplatUIX11.cs: remove menu handle usage.
3880
3881 2005-11-22  Jackson Harper  <jackson@ximian.com>
3882
3883         * Hwnd.cs: Don't compute the menu size for
3884         DefaultClientRectangle.
3885         - Reenable menu sizes being computed for GetClienRectangle.
3886         * Form.cs: Remove comment of trechery
3887         
3888 2005-11-22  Jackson Harper  <jackson@ximian.com>
3889
3890         * Hwnd.cs: The adjustments for the menu bar are made when it is
3891         attached to the form.
3892
3893 2005-11-19  Jackson Harper  <jackson@ximian.com>
3894
3895         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
3896         (just like on windows).
3897
3898 2005-11-19  Jackson Harper  <jackson@ximian.com>
3899
3900         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
3901         use real buttons anymore because they are in non client area. The
3902         one TODO here is that I need to somehow invalidate a section of
3903         the non client area.
3904
3905 2005-11-18  Jackson Harper  <jackson@ximian.com>
3906
3907         * Control.cs: Put the enum check back in now that MDI doesnt have
3908         to use this to set border styles.
3909         * Form.cs: Only set mdi child windows borders if the handle has
3910         been created.
3911         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
3912         this directly on to the driver.
3913         - Get the move start position before adjusting for the titlebar
3914         height, this fixes the windows "skipping" when they are first
3915         moved.
3916
3917 2005-11-18  Jackson Harper  <jackson@ximian.com>
3918
3919         * XplatUIX11.cs: Just compute the mdi borders separately as they
3920         don't totally match up with normal form borders.
3921
3922 2005-11-18  Jackson Harper  <jackson@ximian.com>
3923
3924         * Control.cs: Set WS_ styles for borders, so that the driver does
3925         not have to retrieve the control instance to figure out what kind
3926         of borders it should have.
3927         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
3928         driver can know its an mdi child easily.
3929         * XplatUIX11.cs: Get the border styles and whether the window is
3930         MDI from the Styles and ExStyles params instead of having to get a
3931         control. This prevents a chicken and egg problem.       
3932
3933 2005-11-18  Jackson Harper  <jackson@ximian.com>
3934
3935         * MdiClient.cs: Fix typo so scrollbars show up correctly.
3936
3937 2005-11-18  Jackson Harper  <jackson@ximian.com>
3938
3939         * MdiClient.cs: Calculate when to add and remove scrollbars
3940         correctly.
3941         * MdiChildContext.cs: Adjust the y position to take the titlebar
3942         into account.
3943         - No height for FormBorderStyle.None
3944
3945 2005-11-18  Jackson Harper  <jackson@ximian.com>
3946
3947         * Control.cs: Allow non enum values to be used for
3948         InternalBorderStyle.  MDI does this to set a special border style.
3949         - New utility methods for converting points to/from client coords
3950         - Add the newly created control to the Controls collection before
3951         updating its style. This way UpdateStyle can walk the control
3952         heirarchy to find the control if needed.
3953         so I don't need to create a new Point object all the time.
3954         * Form.cs: Let MDI windows handle their border styles.
3955         - Set styles on MDI windows so the correct title style is derived.
3956         * MdiChildContext.cs: Move all the painting and window handling
3957         into the non client area.
3958         - Use correct sizing and put correct buttons on frames based on
3959         the FormBorderStyle.
3960         - Notify the mdi client about scrolling
3961         - Need to handle the buttons ourselves now, because they are all
3962         in non client areas and we can't add controls there.
3963         * MdiClient.cs: Halfway to scrolling, this implementation is
3964         somewhat broken though, we need to check to make sure other
3965         windows aren't causing scrolling before removing the bars. Also
3966         the bars need to be drawn on top, maybe I can switch implicit
3967         controls to be on top.
3968         * Hwnd.cs: caption_height and tool_caption_height are now
3969         properties of an hwnd, this way they can be set by the driver
3970         based on the type of window they are.  In X11 the window manager
3971         handles the decorations so caption_height is zero unless its an
3972         MDI window.
3973         - Add 3 pixel borders for MDI windows (0xFFFF).
3974         - Get rid of some code duplication, have DefaultClientRectanle
3975         just call GetClientRectangle.
3976         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
3977         Hwnd now.
3978         - Set border styles differently for mdi windows.
3979         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
3980         Hwnd now.
3981         
3982 2005-11-15  Mike Kestner  <mkestner@novell.com>
3983
3984         * Menu.cs: when adding an item to the collection, if item is already 
3985         parented, remove it from the parent.
3986
3987 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
3988
3989         * X11DesktopColors.cs: Added KDE support
3990
3991 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
3992
3993         * XplatUIWin32.cs: 
3994           - Clipboard methods now can translate Rtf format
3995           - No longer removes clipboard contents whenever a new format is added
3996             to allow placing multiple formats on the clipboard
3997         * Clipboard.cs: Clipboard now supports getting a IDataObject and
3998           will place all formats contained in it onto the clipboard. Also
3999           now cleans the clipboard before placing a new object onto it
4000         * RichTextBox.cs:
4001           - Implemented set_Rtf
4002           - Implemented set_SelectedRtf
4003           - Created InsertRTFFromStream() method to allow single code base
4004             for all properties and methods that insert RTF into document
4005           - Removed debug output
4006         * TextControl.cs:
4007           - Fixed Delete(int) to fix up line numbers
4008           - Fixed ReplaceSelection to combine start and end line
4009           - Fixed serious DeleteChars bug that would leave the document tree
4010             broken
4011           - Improved DumpTree with several logic checks to detect broken
4012             document trees
4013           - Removed debug lines
4014           - Fixed Caret.WordForward/WordBack moving code, now always also 
4015             updates caret.tag (fixes crash when word-selecting across tag
4016             boundaries via keyboard)
4017           - Added Insert() method for inserting multiline text into documents
4018           - Fixed DeleteChars() calculation errors that would cause a broken
4019             tag chain with multiple tag lines
4020           - DeleteChars() no longer crashes on multi-tag lines if not all tags
4021           - Split() no longer moves caret if split is at caret location
4022           - ReplaceSelection() now updates the cursor and re-displays it
4023           - ReplaceSelection() now uses new Insert() method to avoid code
4024             duplication
4025           - FormatText() can now handle formatting partial lines
4026         * TextBoxBase.cs:
4027           - Append now uses new TextControl.Insert() method (this avoids 
4028             duplicate code)
4029           - Implemented Ctrl-X (Cut) (
4030           - Implemented Ctrl-C (Copy)
4031           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
4032             regeneration when pasting text; roundtripping Copy&Paste within
4033             edit control still fails due to some calculation bugs in GenerateRTF)
4034           - The Delete key will now remove the current selection if it is visible
4035         * TextBox.cs: Removed debug lines
4036         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
4037           driver to be initialized and can't therefore be done via a static ctor)
4038
4039 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
4040
4041         * TextControl.cs: Added backend code for finding char arrays and strings
4042         * TextBoxBase.cs:
4043           - Added mouse wheel scroll support
4044           - Added support for VScroll and HScroll events
4045         * RichTextBox.cs:
4046           - Implemented all seven Find() variants
4047           - Implemented GetCharFromPosition()
4048           - Implemented GetCharIndexFromPosition()
4049           - Implemented GetLineFromIndex()
4050           - Implemented GetPositionFromCharIndex();
4051           - Implemented SaveFile for PlainText and UnicodeText
4052           - Fixed set_Font, now setting a new font applies that font to
4053             the whole document
4054           - Implemented generic Document to RTF converter
4055           - Implemented SaveFile for RichText format (still missing unicode
4056             conversion for non-ansi chars)
4057           - Implemented get_Rtf
4058           - Implemented get_SelectedRtf
4059
4060 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
4061
4062         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
4063           to allow any captures to be released before triggering OnClick. This
4064           way a click handler may capture the mouse without interference.
4065         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
4066           This way we send them even though X may not allow a grab (if the window
4067           isn't visible, for example)
4068
4069 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
4070
4071         * DataGridViewRowEventArgs.cs: DataGridView implementation
4072         * DataGridViewElement.cs: DataGridView implementation
4073         * DataGridViewComboBoxCell.cs: DataGridView implementation
4074         * DataGridViewDataErrorContexts.cs: DataGridView implementation
4075         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
4076         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
4077         * ImageLayout.cs: DataGridView implementation
4078         * DataGridViewComboBoxColumn.cs: DataGridView implementation
4079         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
4080         * DataGridViewSelectionMode.cs: DataGridView implementation
4081         * IDataGridViewEditingControl.cs: DataGridView implementation
4082         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
4083         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
4084         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
4085         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
4086         * DataGridViewColumnSortMode.cs: DataGridView implementation
4087         * DataGridView.cs: DataGridView implementation
4088         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
4089         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
4090         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
4091         * Padding.cs: DataGridView implementation
4092         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
4093         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
4094         * DataGridViewRowEventHandler.cs: DataGridView implementation
4095         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
4096         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
4097         * DataGridViewButtonCell.cs: DataGridView implementation
4098         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
4099         * DataGridViewEditMode.cs: DataGridView implementation
4100         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
4101         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
4102         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
4103         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
4104         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
4105         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
4106         * DataGridViewCellEventHandler.cs: DataGridView implementation
4107         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
4108         * DataGridViewCellStyleConverter.cs: DataGridView implementation
4109         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
4110         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
4111         * DataGridViewColumnEventArgs.cs: DataGridView implementation
4112         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
4113         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
4114         * QuestionEventArgs.cs: DataGridView implementation
4115         * IDataGridViewEditingCell.cs: DataGridView implementation
4116         * DataGridViewTriState.cs: DataGridView implementation
4117         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
4118         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
4119         * DataGridViewColumnCollection.cs: DataGridView implementation
4120         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
4121         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
4122         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
4123         * DataGridViewColumn.cs: DataGridView implementation
4124         * DataGridViewCellBorderStyle.cs: DataGridView implementation
4125         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
4126         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
4127         * DataGridViewRow.cs: DataGridView implementation
4128         * DataGridViewImageCellLayout.cs: DataGridView implementation
4129         * DataGridViewImageCell.cs: DataGridView implementation
4130         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
4131         * DataGridViewCheckBoxCell.cs: DataGridView implementation
4132         * DataGridViewHeaderCell.cs: DataGridView implementation
4133         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
4134         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
4135         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
4136         * DataGridViewTextBoxColumn.cs: DataGridView implementation
4137         * QuestionEventHandler.cs: DataGridView implementation
4138         * DataGridViewCellStyleScopes.cs: DataGridView implementation
4139         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
4140         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
4141         * DataGridViewCell.cs: DataGridView implementation
4142         * DataGridViewCellEventArgs.cs: DataGridView implementation
4143         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
4144         * DataGridViewCellStyle.cs: DataGridView implementation
4145         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
4146         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
4147         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
4148         * TextFormatFlags.cs: DataGridView implementation
4149         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
4150         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
4151         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
4152         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
4153         * DataGridViewButtonColumn.cs: DataGridView implementation
4154         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
4155         * HandledMouseEventArgs.cs: DataGridView implementation
4156         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
4157         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
4158         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
4159         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
4160         * DataGridViewRowCollection.cs: DataGridView implementation
4161         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
4162         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
4163         * DataGridViewHitTestType.cs: DataGridView implementation
4164         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
4165         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
4166         * DataGridViewColumnEventHandler.cs: DataGridView implementation
4167         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
4168         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
4169         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
4170         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
4171         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
4172         * DataGridViewContentAlignment.cs: DataGridView implementation
4173         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
4174         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
4175         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
4176         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
4177         * DataGridViewPaintParts.cs: DataGridView implementation
4178         * DataGridViewCellCollection.cs: DataGridView implementation
4179         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
4180         * DataGridViewImageColumn.cs: DataGridView implementation
4181         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
4182         * DataGridViewElementStates.cs: DataGridView implementation
4183         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
4184         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
4185         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
4186         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
4187         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
4188         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
4189         * DataGridViewRowHeaderCell.cs: DataGridView implementation
4190         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
4191         * DataGridViewTextBoxCell.cs: DataGridView implementation
4192         * DataGridViewBand.cs: DataGridView implementation
4193         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
4194         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
4195         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
4196         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
4197         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
4198         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
4199         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
4200         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
4201         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
4202         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
4203         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
4204
4205 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
4206
4207         * ThemeWin32Classic.cs: 
4208           - Draw the outside focus rectangle around buttons
4209           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
4210             doesn't use end caps for every dash of a line anymore. This
4211             workaround ignores the forecolor.
4212
4213 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
4214
4215         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
4216           endian safe.
4217
4218 2005-11-07  Jackson Harper  <jackson@ximian.com>
4219
4220         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
4221
4222 2005-11-07  Jackson Harper  <jackson@ximian.com>
4223
4224         * ScrollableControl.cs: Calculate the maximum and change vars
4225         (more) correctly so that scrollbars appear as a sensible size.
4226
4227 2005-11-04  Jackson Harper  <jackson@ximian.com>
4228
4229         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
4230         collection.
4231         * TreeView.cs: When the tree is sorted null out the top_node so
4232         that it is recalculated.
4233         - Use dotted lines instead of dashed lines to match MS better.
4234
4235 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
4236
4237         * ListView.cs: 
4238           - Implements key search for items. Useful when browsing files with FileDialog
4239           - When changing view mode or when clear the items reset scrollbar positions
4240
4241 2005-11-04  Jackson Harper  <jackson@ximian.com>
4242
4243         * CurrencyManager.cs: Implement the MetaDataChanged event, the
4244         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
4245         as to what the method may do as there is no real way of creating a
4246         derived CurrencyManager and calling the method. 
4247
4248 2005-11-03  Jackson Harper  <jackson@ximian.com>
4249
4250         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
4251         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
4252         method which seems to just be used internally to refresh the tabs.
4253
4254 2005-11-03  Jackson Harper  <jackson@ximian.com>
4255
4256         * TabControl.cs: Implement the remove method. Fix some broken
4257         comments.
4258
4259 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
4260
4261         * DateTimePicker.cs:
4262           - Added missing DateTimePickerAccessibleObject class
4263           - Added missing events
4264           - Added OnFontChanged method
4265         * Form.cs: Added missing attributes
4266         * TreeView.cs: Added missing attributes
4267
4268 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
4269
4270         * GridItemCollection.cs: Fix signatures
4271
4272 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
4273
4274         * XplatUI.cs: Updated build rev/date
4275         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
4276           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
4277         * Application.cs: Trigger context-specific ExitThread events
4278
4279 2005-11-03  Jackson Harper  <jackson@ximian.com>
4280
4281         * Menu.cs:
4282         * MainMenu.cs:
4283         * GridTableStylesCollection.cs:
4284         * Timer.cs:
4285         * TabPage.cs:
4286         * HelpProvider.cs:
4287         * StatusBar.cs:
4288         * MonthCalendar.cs: Signature fixes
4289
4290 2005-11-03  Jackson Harper  <jackson@ximian.com>
4291
4292         * TreeNodeCollection.cs: Remove should not be virtual.
4293         * TreeView.cs: Implement the last of the missing methods.
4294
4295 2005-11-03  Jackson Harper  <jackson@ximian.com>
4296
4297         * TreeNodeConverter.cs: Implement to get off my class-status back.
4298
4299 2005-11-03  Jackson Harper  <jackson@ximian.com>
4300
4301         * TreeView.cs: Hookup the bits for drag and drop.
4302         * TreeNode.cs: Don't cache the tree_view or index anymore, now
4303         that nodes can be moved from tree to tree easily this just causes
4304         all sorts of problems.
4305         * TreeNodeCollection: Don't need to give treenodes an index and
4306         treeview anymore when they are added, these are computed on the
4307         fly. Also make sure to remove a node before its added.
4308
4309 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
4310
4311         * TextControl.cs:
4312           - Added CaretSelection enum
4313           - Added comparison methods to Marker struct, makes selection code
4314             more readable
4315           - Added SelectionStart and SelectionEnd as 'moveable' location for
4316             the CaretDirection enum and handler
4317           - Added selection_prev variable to track optimized invalidation for
4318             word and line selection
4319           - Added SelectionVisible property (returns true if there is a valid 
4320             selection)
4321           - Switched CaretHasFocus to only display the caret if there is no
4322             visible selection
4323           - Avoiding StringBuilder.ToString to retrieve a single char, instead
4324             using the direct character index; should be much faster
4325           - Added various conditional debug statements
4326           - Fixed invalidation calculation for selection ranges
4327           - Added ExpandSelection() method to support word and line selection
4328           - Switched SetSelectionToCaret to use new Marker compare overloads
4329           - Added central IsWordSeparator() method to determine word 
4330             separators/whitespace and FindWordSeparator() to streamline common
4331             usage of IsWordSeparator()
4332         * TextBoxBase.cs:
4333           - Removed unneeded grabbed variable, it was just mirroring
4334             Control.Capture
4335           - No longer firing OnTextChanged event when Text setter is called,
4336             since the base will fire the event for us
4337           - Added handling of Ctrl-Up/Down selection
4338           - Added handling of Shift-Cursorkey selection
4339           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
4340             words
4341           - Added handling of Shift and Ctrl-Shift-Home/End selection
4342           - Removed some debug output
4343           - Added handling for single/double/tripple-click to place caret/
4344             select word/select line respectively (Fixes bug #76031)
4345           - Added support for drag expansion of word/line selection
4346         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
4347           current selection
4348
4349 2005-11-02  Jackson Harper  <jackson@ximian.com>
4350
4351         * X11Dnd.cs: If the drag is going to and from a MWF window just
4352         copy the data instead of sending it out through the X Selection
4353         mechanism.
4354
4355 2005-11-02  Jackson Harper  <jackson@ximian.com>
4356
4357         * X11Dnd.cs:
4358         * XplatUIX11.cs: When in a drag we don't want motion notify
4359         messages to get passed on to the other controls. This prevents
4360         mouse move messages from showing up in the drag source.
4361
4362 2005-11-02  Jackson Harper  <jackson@ximian.com>
4363
4364         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
4365         the correct button is release to end a drag.
4366         * XplatUIX11.cs: Make the button state internal so the drag system
4367         can access it.  Dragging needs to know about all button releases,
4368         not just left button.
4369
4370 2005-11-02  Miguel de Icaza  <miguel@novell.com>
4371
4372         * Form.cs (Icon): If the icon is null, reset the icon to the
4373         default value. 
4374
4375         * Cursor.cs: When writing the AND-mask bitmap do not include the
4376         number of colors, but hardcode those to two (black and white),
4377         fixes the loading of color cursors (Paint Dot Net).
4378
4379         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
4380         turn off autoscaling.
4381
4382         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
4383
4384 2005-11-02  Jackson Harper  <jackson@ximian.com>
4385
4386         * X11Dnd.cs: Make sure to send a status message if the pointer
4387         enters a control that can not accept a drop, otherwise the cursor
4388         isn't updated correctly. Also tried to compress the lines of code
4389         a bit.
4390
4391 2005-11-02  Jackson Harper  <jackson@ximian.com>
4392
4393         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
4394         set actions correctly.  This isn't perfect as XDND and win32 have
4395         some differences on how you allow actions. I'll clear this up by
4396         adding a path for drag from MWF to MWF windows.
4397         * XplatUIX11.cs: Hook into the dnd system.
4398
4399 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
4400
4401         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
4402         previously shown but they are no longer need it. Very obvious when 
4403         browsing files with FileDialog.
4404
4405 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
4406
4407         * Control.cs: We always need to call OnPaintBackground. We pretty much
4408           ignore AllPaintingInWmPaint and always do the painting there, whether 
4409           it's set or not, since we always ignore the WM_ERASEBKGND message 
4410           (which we don't generate on X11). This fixes #76616.
4411         * Panel.cs: Removed unneeded background painting. This happens properly
4412           in Control.cs already
4413
4414 2005-10-31  Mike Kestner  <mkestner@novell.com>
4415
4416         * Menu.cs: Add items to collection before setting their index.
4417         * MenuItem.cs : add range checking with ArgumentException like MS.
4418         [Fixes #76510]
4419
4420 2005-10-31  Jackson Harper  <jackson@ximian.com>
4421
4422         * ListBox.cs: Invalidate if the area is visible at all not just
4423         contained in the visible rect. Fixes unselection of semi visible
4424         items.
4425
4426 2005-10-31  Jackson Harper  <jackson@ximian.com>
4427
4428         * Control.cs: Consistently name the dnd methods. Make them
4429         internal so we can override them to match some MS behavoir
4430         internally.
4431         * Win32DnD.cs: Use the new consistent names.
4432
4433 2005-10-31  Jackson Harper  <jackson@ximian.com>
4434
4435         * TreeView.cs: Don't draw the selected node when we lose focus.
4436
4437 2005-10-31  Jackson Harper  <jackson@ximian.com>
4438
4439         * X11Dnd.cs: We still need to reset the state even though a full
4440         reset isn't being done, otherwise status's still get sent all over
4441         the place.
4442
4443 2005-10-31  Jackson Harper  <jackson@ximian.com>
4444
4445         * Control.cs: Make the dnd_aware flag internal so the dnd
4446         subsystem can check it. Catch exceptions thrown in dnd handlers to
4447         match MS behavoir.
4448         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
4449         * X11Dnd.cs: Handle null data in the converters. Set the XDND
4450         version when sending a XdndEnter. Use the control/hwnd dnd_aware
4451         flags to reduce the number of dnd enters/status's sent.
4452
4453 2005-10-31  Jackson Harper  <jackson@ximian.com>
4454
4455         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
4456
4457 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
4458
4459         * PictureBox.cs: Fixes 76512
4460
4461 2005-10-28  Jackson Harper  <jackson@ximian.com>
4462
4463         * X11Dnd.cs: Early implementation to support winforms being a drag
4464         source for data on X11. Also restructured the converters so they
4465         can go both ways now.
4466         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
4467         
4468 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
4469
4470         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
4471           clipboard requests
4472
4473 2005-10-27  Jackson Harper  <jackson@ximian.com>
4474
4475         * TreeNode.cs: Implement serialization so my DnD examples will work.
4476
4477 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
4478
4479         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
4480           TreeView.cs: Don't dispose objects that are not owned.
4481           
4482 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
4483
4484         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
4485           should retrieve the current cursor and report that, but XplatUI
4486           doesn't (yet) have an interface for that (and I'm not sure I even
4487           can, on X11)
4488         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
4489           until any message loop processing is done (and the WM_SETCURSOR
4490           replaces the cursor to the proper one)
4491         * XplatUIX11.cs: 
4492           - Fixed override behaviour, we can't set the cursor globally on X11, 
4493             just for our windows.
4494           - Invalidating the System.Drawing X11 display handle when we are
4495             shutting down
4496         * Control.cs: Fix to make csc happy
4497
4498 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
4499
4500         * TextBoxBase.cs: 
4501           - get_Text: Add last line (without trailing newline) to returned
4502             value (Fixes 76212)
4503           - get_TextLength: Count last line in returned length
4504           - ToString: Call Text property instead of duplicating code
4505
4506 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
4507
4508         * ImageList.cs: Dispose ImageAttributes objects.
4509
4510 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
4511
4512         * ImageList.cs: Use attribute constructors with less arguments where
4513           possible.
4514
4515 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
4516
4517         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
4518           Use typeof instead of strings when assembly is referenced. Added
4519           some more comments.
4520
4521 2005-10-21  Jackson Harper  <jackson@ximian.com>
4522
4523         * ListView.cs: Raise a double click event. Also tried to somewhat
4524         fix when the selectedindexchanged event is raised. Its still
4525         broken though.
4526
4527 2005-10-21  Jackson Harper  <jackson@ximian.com>
4528
4529         * TreeView.cs: New method to invalidate the plus minus area of a
4530         node without invalidating the whole node (maybe this can be used
4531         in some more places).
4532         * TreeNodeCollection.cs: When adding to an empty node we need to
4533         invalidate its plus minus area so the little block shows up.
4534         
4535 2005-10-21  Jackson Harper  <jackson@ximian.com>
4536
4537         * TreeView.cs: Make sure that when we invalidate a node the bounds
4538         are big enough to cover the selected box and the focus
4539         rectangle. Use a different colour for the lines connecting nodes
4540         so they show up with all themes.
4541
4542 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
4543
4544         * NativeWindow.cs: Don't call anything that could call into the driver,
4545           we might be on a different thread.
4546
4547 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
4548
4549         * Control.cs(Dispose): Since Dispose might run on a different thread,
4550           make sure that we call methods that could call into the driver via
4551           invoke, to avoid thread issues
4552
4553 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
4554
4555         * XplatUI.cs: Removed finalizer
4556         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
4557           not allowing to be called on the finalizer thread.
4558
4559 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
4560
4561         * ImageList.cs:
4562           - Reverted r51889 and r51891.
4563           - Added ImageListItem class that stores unmodified image items and image
4564             properties required to create list images until handle is created.
4565           - Added AddItem and moved image creation logic to AddItemInternal.
4566           - Added CreateHandle method that creates images based on unmodified items.
4567           - Added DestroyHandle that changes state to store unmodified items.
4568           - Add and AddStrip methods no more create handle.
4569           - ReduceColorDepth has no return value.
4570           - Dispose destroys handle.
4571           - Modified other methods to reflect the above changes.
4572           - Implemented key support.
4573           - Added profile 2.0 members and attributes.
4574           - Added private Reset and ShouldSerialize methods that provide the same
4575             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
4576             them as they are private.
4577           - Added some more comments about implementation details.
4578
4579 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
4580
4581         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
4582
4583 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
4584
4585         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
4586
4587 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
4588
4589         * DataGridDrawingLogic.cs: Fixes column hit calcultation
4590         * DataGridColumnStyle.cs: Remove debug message
4591
4592 2005-10-20  Jackson Harper  <jackson@ximian.com>
4593
4594         * TreeView.cs: We can always get input keys regardless of whether
4595         or not editing is enabled. They are used for navigation.
4596
4597 2005-10-20  Jackson Harper  <jackson@ximian.com>
4598
4599         * TreeNode.cs: Use the viewport rect for determining if a node
4600         needs to be moved for visibility. Don't use Begin/End edit. This
4601         calls a full refresh when its done.
4602         * TreeView.cs: New SetBottom works correctly.  Make the viewport
4603         rect property internal so the treenodes can see it. When clicking
4604         on a node we need to ensure that its visible because it might just
4605         be partly visible when clicked.
4606
4607 2005-10-20  Jackson Harper  <jackson@ximian.com>
4608
4609         * TreeNodeCollection.cs: Remove debug code.
4610
4611 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
4612
4613         * Datagrid.cs: Implements column sorting in Datagrid
4614         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
4615
4616 2005-10-20  Jackson Harper  <jackson@ximian.com>
4617
4618         * TreeNodeCollection.cs: Remove items properly. Update the correct
4619         area after removing them.
4620
4621 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
4622
4623         * Datagrid.cs: Should not call base.OnPaintBackground
4624
4625 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
4626
4627         * XplatUIX11.cs (GetMessage):
4628           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
4629             window instead of client window
4630           - Now properly calculates NC_xBUTTONUP message coordinates
4631           - ScreenToMenu now properly calculates it's coordinates of whole 
4632             window, since menus are in the whole window, not in the client
4633             window
4634           - Added WholeToScreen coordinate translation method
4635
4636 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
4637
4638         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
4639           want to return a message, loop back to the beginning of the function
4640           and grab the next real message to process instead.
4641
4642 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
4643
4644         * Splitter.cs: Properly set limits if no filler control is used
4645
4646 2005-10-19  Jackson Harper  <jackson@ximian.com>
4647
4648         * ColorDialog.cs: Don't show the help button if it is not enabled
4649         instead of disabling it (this is what MS does). Don't create the
4650         panel until the dialog is run, otherwise the vars (such as
4651         ShowHelp) are not set yet.
4652
4653 2005-10-19  Jackson Harper  <jackson@ximian.com>
4654
4655         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
4656         are reduced when adding nodes.
4657         * TreeNode.cs:
4658         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
4659         tree.
4660         
4661 2005-10-19  Jackson Harper  <jackson@ximian.com>
4662
4663         * FolderBrowserDialog.cs: End editing our treeview so the window
4664         actually gets refreshed.
4665
4666 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
4667
4668         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
4669           Obsoleted handling of WM_ERASEBKGND, now always draws our background
4670           inside of WM_PAINT
4671
4672 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
4673
4674         * MenuAPI.cs: Returns after Hidding window
4675         * XplatUIX11.cs: Added TODO found while debugging menu issues
4676
4677 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
4678
4679         * XplatUIX11.cs: Do not re-map the whole window when it's size
4680           becomes non-zero unless it's supposed to be actually visible
4681
4682 2005-10-18  Jackson Harper  <jackson@ximian.com>
4683
4684         * TreeView.cs: We don't need to keep a count anymore.
4685         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
4686         use the Grow method.
4687
4688 2005-10-18  Jackson Harper  <jackson@ximian.com>
4689
4690         * TreeNodeCollection.cs: Insert is not supported on arrays, so
4691         implement it manually here.
4692
4693 2005-10-18  Jackson Harper  <jackson@ximian.com>
4694
4695         * ImageList.cs: Dont kill the list when the colour depth is
4696         changed, just change the colour depth of all the images.
4697         - Same goes for setting the image size. Just resize them all
4698         instead of killing the list softly.
4699
4700 2005-10-18  Jackson Harper  <jackson@ximian.com>
4701
4702         * Control.cs: Don't invalidate empty rectangles.
4703
4704 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
4705
4706         * ListViewItem.cs:
4707           - Adds checked item to the Checked/Item lists (where empty before)
4708           - Do not add items to the Selected lists if they are already present
4709         * ListView.cs:
4710           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
4711           - When deleting items make sure that we delete them for the Selected
4712           and Checked list also.
4713
4714 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
4715
4716         * Label.cs: Dispose objects no longer used
4717         * ThemeWin32Classic.cs: Dispose objects no longer used
4718
4719 2005-10-18  Jackson Harper  <jackson@ximian.com>
4720
4721         * TabControl.cs: Don't refresh the whole control when the tabs are
4722         scrolled, we just need to refresh the tab area.
4723
4724 2005-10-17  Jackson Harper  <jackson@ximian.com>
4725
4726         * XplatUIX11.cs: Compress code a little bit. Only calculate the
4727         after handle when we need it.
4728
4729 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
4730
4731         * Control.cs: When the parent size changes, recalculate anchor 
4732           positions. Partial fix for #76462
4733
4734 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
4735
4736         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
4737           drawn. Fixes #76462
4738
4739 2005-10-17  Jackson Harper  <jackson@ximian.com>
4740
4741         * MonthCalendar.cs: Don't create the numeric up down until our
4742         handle is created. Otherwise our handle is created in the
4743         constructor and we don't know if we are a WS_CHILD or WS_POPUP
4744         yet.
4745
4746 2005-10-17  Jackson Harper  <jackson@ximian.com>
4747
4748         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
4749         correctly.
4750
4751 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
4752         * TreeNode.cs : small logical fix (was using local var instead of field)
4753         
4754 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
4755
4756         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
4757
4758 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
4759
4760         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
4761
4762 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
4763
4764         * Control.cs: 
4765           - Re-implemented anchoring code. My first version was really broken.
4766             This fixes bug #76033. Unlike the previous implementation we will
4767             no longer have round errors since all numbers are calculated from
4768             scratch every time. Removed various anchor-related obsolete vars.
4769           - InitLayout no longer causes layout event firing and layout to be 
4770             performed
4771
4772 2005-10-16  Jackson Harper  <jackson@ximian.com>
4773
4774         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
4775         which was broken).
4776
4777 2005-10-16  Jackson Harper  <jackson@ximian.com>
4778
4779         * TabControl.cs: Remove debug code.
4780
4781 2005-10-16  Jackson Harper  <jackson@ximian.com>
4782
4783         * XEventQueue.cs: Increase the default queue size (very simple
4784         apps needed to grow the queue).
4785         * Hwnd.cs: No finalizer so we don't need to suppress
4786         finalization. Compute the invalid area manually so a new rectangle
4787         does not newto be created.
4788         * ScrollableControl.cs: Don't set any params (otherwise visibility
4789         isn't set correctly).
4790         * MdiChildContext.cs: New constructor takes the mdi parent so it
4791         doesn't have to be computed and avoids a crash on windows. Draw
4792         the window icon properly, and allow the text to be seen.
4793         * Form.cs: Use new MdiChildContext constructor. Make sure the
4794         child context isn't null in wndproc.
4795         * TabControl.cs: Don't set focus, this is muddling keyboard
4796         behavoir. Expand the tab rows when a window size increase will
4797         allow extra tabs to be seen. Don't allow tabs smaller than the
4798         width of a window to be scrolled out of view.
4799         * TreeNode.cs:
4800         * TreeView.cs: Use measure string to calculate a nodes width, the
4801         width is cached and only updated when the text or the font is
4802         changed. Don't check for expand/collapse clicks on the first level
4803         nodes if root lines are disabled.
4804         
4805 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
4806
4807         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
4808
4809 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
4810
4811         * DataGridBoolColumn.cs: fixes warning
4812
4813 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
4814
4815         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
4816         to match more to match more precisely the MS Net behavior
4817
4818 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
4819
4820         * Hwnd.cs: Added field to track if window is mapped
4821         * XplatUIX11.cs: 
4822           - Unmap windows if they become 0-size, re-map when 
4823             they are >0 again; fixes #76035
4824           - Re-set our error handler after initializing X11Desktop
4825             to override any error handlers Gtk or whatever was called
4826             may have set.
4827
4828 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
4829
4830         * CheckedListBox.cs: Removed unused vars
4831         * ListView.cs: Fixed signatures
4832         * RichTextBox.cs: Removed unused vars
4833         * TextBoxBase.cs: Removed unused vars
4834         * XplatUIWin32.cs: Removed unused vars
4835         * XplatUIX11.cs: Removed unused vars
4836         * XplatUI.cs: Updated version and date to latest published
4837
4838 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
4839
4840         * Cursor.cs: Added private .ctor to work around a bug in
4841           resourceset (Thanks to Geoff Norton for the help on this)
4842         * SplitterEventArgs.cs: Made fields accessible so we don't
4843           waste boatloads of objects and can reuse the same one
4844           in Splitter
4845         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
4846           any captions and borders when generating screen coordinates
4847         * Splitter.cs: Reimplemented control, now fully complete, uses
4848           rubberband drawing, supports and obeys all properties, has
4849           proper cursors
4850
4851 2005-10-13  Miguel de Icaza  <miguel@novell.com>
4852
4853         * Form.cs (Form): Setup default values for autoscale and
4854         autoscale_base_size;  Make these instance variables, not static
4855         variables. 
4856
4857         (OnLoad): on the first load, adjust the size of the form.
4858
4859 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
4860
4861         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
4862           width argument to DrawReversibleRectangle()
4863         * XplatUIWin32.cs, XplatUIX11.cs: 
4864           - Implemented width for DrawReversibleRectangle()
4865           - Added logic to DrawReversibleRectangle that recognizes a zero
4866             width or height and only draws a line in that situation
4867         
4868 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
4869
4870         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
4871         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
4872         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
4873           method (it uses our FosterParent window to get a graphics context)
4874
4875 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
4876
4877         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
4878           and SetWindowBackground methods
4879         * Control.cs:
4880           - Setting proper ControlStyles
4881           - We no longer call XplatUI.SetWindowBackground and XplatUI.
4882             EraseWindowBackground, instead we draw the window background
4883             ourselves in PaintControlBackground. This behaviour is
4884             required to match MS, where, when OnPaintBackground is not
4885             called, the background is not drawn.
4886           - Removed unneeded Refresh() in set_Text
4887         * Hwnd.cs: Dropped the ErasePending support. No longer needed
4888         * XplatUIX11.cs:
4889           - Created DeriveStyles method to translate from CreateParams to
4890             FormBorderStyle and TitleStyle, also handles BorderStyle (which
4891             matches FormBorderStyle enum values)
4892           - Consolidated SetHwndStyles and CalculateWindowRect border/title
4893             style calculations into single DeriveStyles method
4894           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
4895             from redrawing the whole window on any resize or expose.
4896           - Fixed CreateWindow usage of SetWindowValuemask. Before not
4897             all styles were applied to our whole/client window appropriately
4898           - Removed EraseWindowBackground() and SetWindowBackground() methods
4899           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
4900             no longer clear/redraw the background through X
4901           - Removed handling of erase_pending bit, we have no use for it (or
4902             so it seems)
4903         * XplatUIOSX.cs:
4904           - Removed generation and handling of WM_ERASEBKGND message
4905           - Removed EraseWindowBackground() and SetWindowBackground() methods
4906           - Removed handling of hwnd.ErasePending flag
4907         * XplatUIWin32.cs:
4908           - Removed EraseWindowBackground() and SetWindowBackground() methods
4909           - We no longer call EraseWindowBackground on PaintEventStart, we 
4910             ignore the fErase flag, erasing is handled in Control in the
4911             background handler
4912         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
4913           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
4914           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
4915           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
4916           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
4917           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
4918           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
4919
4920 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
4921
4922         * PropertyGrids.cs: Get sub properties
4923         * PropertyGridView.cs: Fix drawing code
4924
4925 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
4926
4927         * ListBox.cs: Fixes 76383
4928
4929 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
4930
4931         * DataGridTextBoxColumn.cs: Sets location and size before attachment
4932         * ThemeWin32Classic.cs: Fixes border drawing and calculations
4933         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
4934
4935
4936 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
4937
4938         * ComboBox.cs: Fixes border drawing
4939
4940 2005-10-10  Miguel de Icaza  <miguel@novell.com>
4941
4942         * MimeIcon.cs: Ignore errors if the file can not be read.
4943
4944 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
4945
4946         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
4947          - Fixed border calculations
4948          - Fixed horizontal scrolling in single column listboxes
4949          - Fixed drawing issues
4950
4951 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
4952
4953         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
4954           FormBorderStyle enum
4955         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
4956           code to determine FormBorderStyles from CreateParams
4957         * Form.cs:
4958           - Fixed bug where we'd set the wrong window styles if we were
4959             not creating an MDI window
4960           - Added call to XplatUI.SetBorderStyle when form borders are set
4961         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
4962         * Hwnd.cs:
4963           - Removed obsolete edge style
4964           - Switched from BorderStyle to FormBorderStyle
4965         
4966 2005-10-10  Jackson Harper  <jackson@ximian.com>
4967
4968         * Form.cs: Use the property to get the window handle instead of
4969         accessing it directly. Prevents a null reference exception.
4970
4971 2005-10-10  Jackson Harper  <jackson@ximian.com>
4972
4973         * TreeView.cs: Don't adjust the rect given to DrawString now that
4974         our libgdiplus draws correctly.
4975
4976 2005-10-08  Jackson Harper  <jackson@ximian.com>
4977
4978         * TreeView.cs: Don't try to find the clicked on node if there are
4979         no nodes in the tree.
4980
4981 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
4982
4983         * RichTextBox.cs:
4984
4985           restore
4986
4987 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
4988
4989         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
4990           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
4991           ErrorProvider.cs:
4992           Use ResPool for brushes and dispose System.Drawing objects that
4993           are not used anymore.
4994
4995 2005-10-07  Jackson Harper  <jackson@ximian.com>
4996
4997         * MdiChildContext.cs: Use the new borders instead of drawing them
4998         ourselves.
4999
5000 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
5001
5002         * Calling UpdateBounds after changing the window's BorderStyle 
5003         since the style can change the ClientSize
5004
5005 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5006
5007         * Control.cs: Made PaintControlBackground virtual
5008         * Panel.cs: Overriding PaintControlBackground instead of using paint
5009           event; paint event method was interfering with 'real' users of the
5010           event.
5011
5012 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
5013
5014         * ThemeWin32Classic.cs: remove border drawing since it is handled
5015         by the base control class now and was causing double border drawing.
5016
5017 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5018
5019         * Panel.cs: Redraw our background on paint. Not a pretty solution,
5020           but it does seem to match MS behaviour. This fixes bug #75324
5021
5022 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5023
5024         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
5025           somewhat hackish looking
5026
5027 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5028
5029         * TextBoxBase.cs:
5030           - We now accept Enter even if AcceptEnter is false, if the containing
5031             form does not have an AcceptButton configured (fixes bug #76355)
5032           - Calculations are now fixed to no longer use Width/Height, but
5033             ClientSize.Width/Height, since we now support borders (this was
5034             a result of fixing borders and therefore bug #76166)
5035           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
5036             true (fixes bug #76354)
5037         
5038 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5039
5040         * Control.cs: 
5041           - Defaulting BorderStyle and setting it in XplatUI when our window 
5042             is created
5043           - Added enum check to InternalBorderStyle setter
5044         * XplatUIX11.cs: 
5045           - Added drawing of window borders
5046           - Now properly calculates WM decorations offset for toplevel 
5047             windows (fixes bug #74763)
5048         * XplatUIWin32.cs: 
5049           - Implemented BorderStyles for windows (we're letting win32 draw 
5050             the border for us)
5051           - Fixed the signature for SetWindowLong
5052         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
5053           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
5054           setting borders
5055         * UpDownBase.cs: Remove drawing of borders, this is handled by
5056           the driver, outside the client area
5057         * ListView.cs: Removed bogus border calculations. The control should
5058           be oblivious to borders, since those are not part of the client
5059           area. 
5060         * X11DesktopColors.cs: Commented out (currently) unneeded variables
5061         * ThemeWin32Classic.cs: Removed border calculations from ListView 
5062           drawing code
5063
5064 2005-10-06  Jackson Harper  <jackson@ximian.com>
5065
5066         * MdiChildContext.cs: Clear out the old virtual position remove
5067         all the unneeded calls to CreateGraphics.
5068
5069 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5070
5071         * TextControl.cs: Use proper color for highlighted text; fixes #76350
5072
5073 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5074
5075         * Form.cs: 
5076           - Added loading and setting of our new default icon
5077           - Only set icon if window is already created
5078
5079 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5080
5081         * Label.cs:
5082           - Do not explicitly set the foreground and background colors, to
5083             allow inheriting from parents (fixes #76302)
5084           - Use Control's InternalBorderStyle property to deal with borders
5085
5086 2005-10-06  Jackson Harper  <jackson@ximian.com>
5087
5088         * MdiChildContext.cs: Use the new xplatui function to draw a
5089         reversible rect.
5090
5091 2005-10-06  Jackson Harper  <jackson@ximian.com>
5092
5093         * Form.cs: Add the parent before creating the child context cause
5094         we need the parent when setting up the child.
5095
5096 2005-10-06  Jackson Harper  <jackson@ximian.com>
5097
5098         * FolderBrowserDialog.cs: redo the tree population code so a
5099         second thread isn't used. Should be a lot faster and more stable
5100         now.
5101
5102 2005-10-05  Jackson Harper  <jackson@ximian.com>
5103
5104         * TreeView.cs: There are no expand/collapse boxes if the node has
5105         no children.
5106
5107 2005-10-05  Jackson Harper  <jackson@ximian.com>
5108
5109         * X11DesktopColors.cs: Get menu colours for the gtk theme.
5110
5111 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
5112
5113         * FileDialog.cs: Fix InitialDirectory
5114
5115 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
5116
5117         * ComboBox.cs:
5118                 - Fixes changing between styles
5119                 - Fixes simple mode
5120                 - Fixes last item crashing when navigating with keyboard
5121
5122 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
5123
5124         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
5125
5126 2005-10-05  Jackson Harper  <jackson@ximian.com>
5127
5128         * TreeView.cs: If updating the root node do a full refresh.
5129         * TreeNode.cs: The root node should be expanded by default. Also
5130         added a utility prop to tell if we are the root node.
5131         * TreeNodeCollection.cs: Only refresh if the node we are being
5132         added to is expanded. Also added a comment on a potential
5133         optimization.
5134         
5135 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
5136
5137         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
5138           in dispose method. Fixes #76330
5139
5140 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
5141
5142         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
5143
5144                 - Implements vertical and horizontal scrolling using XplatUI
5145                 - Fixes keyboard navagation
5146                 - Fixes EnsureVisible
5147                 - Drawing fixes
5148                 - Handles and draws focus properly
5149
5150
5151 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
5152
5153         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
5154           Create handle. NET_2_0: Destroy handle when value is null.
5155
5156 2005-10-03  Jackson Harper  <jackson@ximian.com>
5157
5158         * ScrollBar.cs: My last scrollbar patch was broken. This is a
5159         revert and a new patch to prevent the thumb from refreshing so
5160         much.
5161
5162 2005-10-02  Jackson Harper  <jackson@ximian.com>
5163
5164         * ScrollBar.cs: Don't update position if it hasn't actually
5165         changed. This occurs when you hold down the increment/decrement
5166         buttons and the thumb gets to the max/min.
5167
5168 2005-10-01  Jackson Harper  <jackson@ximian.com>
5169
5170         * Form.cs:
5171         * MdiChildContext.cs:
5172         * MdiClient.cs: Implement ActiveMdiChild in Form.
5173
5174 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
5175
5176         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
5177
5178 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
5179
5180         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
5181           be found
5182
5183 2005-09-30  Jackson Harper  <jackson@ximian.com>
5184
5185         * ListBox.cs: Don't do a full refresh unless some data has
5186         actually changed.
5187
5188 2005-09-30  Jackson Harper  <jackson@ximian.com>
5189
5190         * TreeView.cs: Make sure that the checkboxes size is factored in
5191         even when not visible.
5192
5193 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
5194
5195         * FileDialog.cs: Fix Jordi's build break
5196
5197 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
5198
5199         * FileDialog.cs: 
5200                 - Use standard the Windows colours for the combobox as espected
5201                 - Dispose objects that use resouces when no longer need them
5202
5203 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
5204
5205         * X11DesktopColors.cs: Initial incomplete implementation
5206         * XplatUIX11.cs: Added call to initialize X11DesktopColors
5207
5208 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
5209
5210         * Theme.cs: 
5211           - Switched Theme color names to match the names defined in 
5212             System.Drawing.KnownColors. Life's hard enough, no need to make 
5213             it harder.
5214           - Added setters to all theme color properties so themes can set
5215             their color schemes. The setters also propagate the color changes
5216             to System.Drawing.KnownColors via reflection
5217         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
5218           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
5219           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
5220           use the new, more logical theme color names
5221         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
5222           post-NT colors
5223         * ThemeWin32Classic.cs:
5224           - Removed code to set the old classic Windows colors. Instead it
5225             now relies on the colors returned by System.Drawing.KnownColors
5226             which will be either modern static colors (Unix) or colors
5227             read from the user's configuration (Win32)
5228           - Updated to use the new, more logical theme color names
5229           - Switched DataGrid drawing code to use only Theme colors instead of
5230             a mix of System.Drawing.KnownColors and Theme colors
5231           - DrawFrameControl(): Removed code that fills the button area, the
5232             fill would overwrite any previous fill done by a control. This
5233             fixes bug #75338 
5234           - Added DrawReversibleRectangle() stub
5235         * ScrollableControl.cs: Set visible state to false when scrollbars
5236           are removed (pdn fix)
5237         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
5238           DrawReversibleRectangle() method to allow drawing primitive 
5239           'rubber bands'
5240         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
5241
5242 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5243
5244         * ImageList.cs: Add(Icon): Create handle.
5245
5246 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
5247
5248         * ListView.cs:
5249         * ThemeWin32Classic.cs:
5250                 - Fixes detail mode
5251                 - Sets clippings
5252                 - Issues with drawing
5253
5254 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5255
5256         * ImageList.cs: Moved RecreateHandle back to ImageList as event
5257           source has to be the ImageList.
5258
5259 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5260
5261         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
5262
5263 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5264
5265         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
5266
5267 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5268
5269         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
5270
5271 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
5272         * GridItem.cs: Fixed TODOs
5273         * GridItemCollection.cs: Added ICollection interface
5274
5275 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5276
5277         * ImageList.cs: Resize icons when needed.
5278
5279 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
5280
5281         * ListViewItem.cs
5282                 - Fixes GetBounds and returns on screen rects
5283         * ListView.cs:
5284                 - Fixes vertical and horzintal scrolling of items
5285         * ThemeWin32Classic.cs:
5286                 - Fixes drawing
5287                 
5288 2005-09-29  Raja R Harinath  <harinath@gmail.com>
5289
5290         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
5291
5292 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
5293
5294         * ImageList.cs: Added comments about handle creation. Moved Handle,
5295           HandleCreated and OnRecreateHandle implementations to ImageCollection.
5296           Handle is created in Add methods.
5297
5298 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
5299          
5300         * DataGridDrawingLogic.cs: 
5301                 - Takes rows into account on Colum calculations
5302                 - Returns the column when clickig
5303         * DataGrid.cs:
5304                 - Fixes default HitTestInfo values
5305                 - Fixes HitTestInfo.ToString
5306                 - Fixes ResetBackColor          
5307         
5308 2005-09-28  Jackson Harper  <jackson@ximian.com>
5309
5310         * MdiChildContext.cs: Obey rules for fixed sized windows (no
5311         sizing or cursor changes). Also added some temp code to draw the
5312         titlebars text (Makes dev a little easier).
5313
5314 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
5315
5316         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
5317
5318 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
5319          
5320         * ListBox.cs: Fixes bug 76253
5321
5322 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
5323
5324         * ImageList.cs: Added comments about the current implementation. Added
5325           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
5326           Format32bppArgb to preserve transparency and can use Graphics.FromImage
5327           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
5328           with Bitmap.LockBits for better performance. Revised the whole file to
5329           match MS.NET behaviour and provide better performance. Non-public
5330           interface members are calling public members even when they throw
5331           NotSupportedException for better maintainability. Moved ColorDepth,
5332           ImageSize, ImageStream and TransparentColor implementations to
5333           ImageCollection for better performance as these properties are not used
5334           by ImageList.
5335         * ImageListStreamer.cs: Added a new internal constructor that takes an
5336           ImageList.ImageCollection and serializes Images based on
5337           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
5338           match ImageList property name.
5339
5340 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
5341
5342         * ListBox.cs: Fixes IndexFromPoint for last item
5343
5344 2005-09-27  Jackson Harper  <jackson@ximian.com>
5345
5346         * Form.cs: Set the position of new mdi children correctly.
5347
5348 2005-09-27  Jackson Harper  <jackson@ximian.com>
5349
5350         * MdiClient.cs: New mdi children need to be added to the back of
5351         the controls collection so the zorder is set correctly. Also add a
5352         count of all the child windows that have been created.
5353
5354 2005-09-27  Jackson Harper  <jackson@ximian.com>
5355
5356         * Form.cs (CreateParams): Setup MDI forms correctly.
5357
5358 2005-09-27  Jackson Harper  <jackson@ximian.com>
5359
5360         * MdiChildContext.cs:
5361         * MonthCalendar.cs:
5362         * UpDownBase.cs:
5363         * ListBox.cs:
5364         * ListView.cs:
5365         * TextBoxBase.cs:
5366         * TreeView.cs:
5367         * ScrollableControl.cs:
5368         * ComboBox.cs: Add implicit controls using the new implict control
5369         functionality in ControlCollection. Also try to block multiple
5370         control add in a suspend/resume layout to save some cycles.
5371         
5372 2005-09-27  Jackson Harper  <jackson@ximian.com>
5373
5374         * Control.cs: Add functionality to the controls collection to add
5375         'implicit controls' these are controls that are created by the
5376         containing control but should not be exposed to the user. Such as
5377         scrollbars in the treeview.
5378         * Form.cs: The list var of the ControlsCollection is no longer
5379         available because of the potential of implicit controls getting
5380         ignored by someone accessing the list directly.
5381
5382 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
5383
5384         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
5385           loose it's parent. (Fixed bug introduced in r49103 when we added
5386           setting the child parent to null on Remove)
5387
5388 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
5389
5390         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
5391         * Splitter.cs: Added missing attributes for BorderStyle property.
5392         * TextBoxBase.cs: Marked Calculate* methods internal.
5393         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
5394         MS.NET.
5395
5396 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
5397          
5398         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
5399
5400 2005-09-25  Jackson Harper  <jackson@ximian.com>
5401
5402         * TreeView.cs: Update the node bounds correctly regardless of
5403         whether the node is visible.
5404
5405 2005-09-25  Jackson Harper  <jackson@ximian.com>
5406
5407         * ImageList.cs: Don't dispose the image after it is added to the
5408         image list. Only reformat images that need to be resized.
5409
5410 2005-09-25  Jackson Harper  <jackson@ximian.com>
5411
5412         * ImageList.cs: Don't set the format when changing the image.
5413
5414 2005-09-25  Jackson Harper  <jackson@ximian.com>
5415
5416         * TreeView.cs: We can't just assume the node has a font. Use the
5417         treeviews font if no node font is available.
5418
5419 2005-09-25  Jackson Harper  <jackson@ximian.com>
5420
5421         * TreeView.cs: Allow the scrollbars to be reset with negative
5422         values.
5423         - Don't add scrollbars to negative sized windows.
5424
5425 2005-09-23  Jackson Harper  <jackson@ximian.com>
5426
5427         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
5428         old Mono.Posix. Also remove some stray code that shouldn't have
5429         been committed.
5430
5431 2005-09-23  Jackson Harper  <jackson@ximian.com>
5432
5433         * TreeView.cs: Attempt at proper sizing of the horizontal
5434         scrollbar. Also don't resize the scrollbars unless they are
5435         visible.
5436
5437 2005-09-23  Jackson Harper  <jackson@ximian.com>
5438
5439         * TreeView.cs: We don't need to expand the invalid area when the
5440         selection changes, as this is all drawn in the node's bounding
5441         box. The area needs to be expanded (previous typo was contracting
5442         it) when the focus rect moves.
5443
5444 2005-09-23  Jackson Harper  <jackson@ximian.com>
5445
5446         * TreeView.cs: Display the selection box under the correct
5447         circumstances. We were rendering white text with no selection box
5448         before.
5449
5450 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
5451
5452         * TextControl.cs(Split): Now updates selection start/end if it points 
5453           into a line that's being split. Fixes a FIXME and bug #75258
5454
5455 2005-09-23  Jackson Harper  <jackson@ximian.com>
5456
5457         * Binding.cs:
5458         * ListControl.cs: Don't use the path when retrieving binding
5459         managers from the binding context. My bat sense tells me that the
5460         path is only used on insertion.
5461
5462 2005-09-22  Jackson Harper  <jackson@ximian.com>
5463
5464         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
5465
5466 2005-09-22  Jackson Harper  <jackson@ximian.com>
5467
5468         * Splitter.cs: There are special cursors used for splitting.
5469         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
5470
5471 2005-09-22  Jackson Harper  <jackson@ximian.com>
5472
5473         * Splitter.cs: Change the cursor appropriately when the splitter
5474         is moused over, so the user actually knows there is a splitter
5475         there.
5476
5477 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
5478
5479        * Label.cs : Fix ToString method to give same output as MS.NET
5480
5481 2005-09-22  Jackson Harper  <jackson@ximian.com>
5482
5483         * TreeView.cs: Create the scrollbars when the handle is created
5484         and add them right away, just make them invisble. Also account for
5485         the window being shrunk vertically to the point that the vert
5486         scrollbar needs to be added.
5487         - Remove some 0.5 adjustments to get around anti aliasing issues.
5488         
5489 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
5490          
5491         * MainMenu.cs: Fixes default value
5492         * MenuItem.cs: Fixes default value
5493
5494 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
5495
5496         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
5497
5498 2005-09-21  Jackson Harper  <jackson@ximian.com>
5499
5500         * Control.cs: Don't try to set the border style on the window if
5501         it hasn't been created. When the window is created the border
5502         style will be used.
5503
5504 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
5505
5506         * Control.cs (Update): Don't call XplatUI if we don't have a
5507           window handle yet
5508
5509 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
5510
5511         * ContainerControl.cs: Instead of throwing an exception, print
5512           a one-time warning about Validate not being implemented
5513         * XplatUIWin32.cs: Removed debug output
5514
5515 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
5516
5517         * Control.cs: Only set XplatUI background if we expect the windowing
5518           system to handle the background. This stops controls that draw their
5519           own background from flickering
5520
5521         * XplatUIX11.cs: Support custom visuals and colormaps for window 
5522           creation. This allows, amongst other things, using MWF X11 windows 
5523           with OpenGL.
5524
5525 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
5526
5527         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
5528           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
5529           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
5530           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
5531           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
5532           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
5533           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
5534           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
5535           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
5536           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
5537           GridColumnStylesCollection.cs, 
5538           IDataGridColumnStyleEditingNotificationService.cs,
5539           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
5540           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
5541           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
5542           TreeNodeCollection.cs, AmbientProperties.cs, 
5543           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
5544           DataObject.cs, ErrorProvider.cs, Splitter.cs,
5545           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
5546           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
5547           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
5548           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
5549           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
5550           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
5551           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
5552           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
5553           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
5554           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
5555           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
5556           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
5557           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
5558           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
5559           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
5560           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
5561           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
5562           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
5563           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
5564           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
5565           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
5566           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
5567           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
5568           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
5569           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
5570           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
5571           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
5572           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
5573           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
5574           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
5575           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
5576           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
5577           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
5578           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
5579           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
5580
5581 2005-09-21  Jackson Harper  <jackson@ximian.com>
5582
5583         * TreeNode.cs: Call Before/After Expand not Collapse when
5584         expanding.
5585
5586 2005-09-20  Jackson Harper  <jackson@ximian.com>
5587         
5588         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
5589
5590 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
5591          
5592         * ListViewItem.cs:
5593                 - Fixes bug 76120
5594                 - Fixes proper storing of subitems
5595                 - Fixes not updated items
5596
5597 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
5598
5599         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
5600           things if our window handle isn't created yet. Also disabled 
5601           debug for TextBoxBase
5602
5603 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
5604
5605         * MenuAPI.cs: Remove filtering of events to allow menu usage
5606
5607 2005-09-20  Miguel de Icaza  <miguel@novell.com>
5608
5609         * Cursor.cs: Allow null to be passed to Cursor.Current.
5610
5611 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
5612
5613         * ThemeWin32Classic.cs:
5614           - Change some private methods/fields to protected virtual so that 
5615             they can be accessed and overriden in derived classes
5616           - First refactoring of some methods. Derived themes now don't 
5617             need to duplicate the complete code from ThemeWin32Classic
5618         * ThemeNice.cs:
5619           - Added nice StatusBar
5620           - Derive from ThemeWin32Classic and not Theme
5621           - Removed duplicate ThemeWin32Classic code
5622
5623 2005-09-20  Miguel de Icaza  <miguel@novell.com>
5624
5625         * Control.cs (ControlCollection.Add): If the value null is passed
5626         the control is ignored. 
5627
5628         Optimize this loop.
5629
5630 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
5631
5632         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
5633           PostQuitMessage state.
5634         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
5635
5636 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
5637
5638         * Application.cs: Our constructor will never get called, move 
5639           initialization to fields; fixes bug #75933
5640
5641 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
5642
5643         * FileDialog.cs :
5644                 - Allow files to be selected properly using file name
5645                 combo box.
5646                 - Add ability to change diretory (absolute / relative)
5647                 using file name combo box.
5648
5649 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
5650          
5651         * ListBox.cs: 
5652                 - Fixes Multicolumn listboxes item wrong calculations
5653                 - Allows to click when only one item is in the listbox
5654                 - Fixes crash when no items using keyboard navigation
5655
5656 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
5657
5658         * ComboBox.cs: Reverted almost everything from the latest patch which
5659           broke ComboBox
5660
5661 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
5662         
5663         * ToolTip.cs:
5664                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
5665         * ComboBox.cs:
5666                 - When DropDownStyle is Simple, it does not show scrollbar 
5667                 to the last item of the list.
5668                 - When DropDownStyle is Simple, it crashed when the list was 
5669                 scrolled down with the down cursor key.
5670                 - Fixed a bug that when DropDownStyle is DropDownList, the 
5671                 selected item was not shown.
5672                 - The position of the selected item was not preserved when 
5673                 the next dropdown happened.
5674         * ThemeWin32Classic.cs:
5675                 - Items were wrapped at the right end.
5676         * CheckedListBox.cs:
5677                 - Fixed Add method
5678         * ListBox.cs:
5679                 - Items should be fully shown.
5680                 - When resizing and vertical scrollbar disappeared, the item 
5681                 of index 0 should be on the top of the list.
5682                 - GetItemRectangle should consider the size of ver. scrollbar
5683         * StatusBar.cs:
5684                 - SizingGrip area should not be allocated when it is not 
5685                 displayed.
5686                 - Now it reflects MinWidth of the containing panel and 
5687                 fixed a crash that happens when its width becomes so small.
5688
5689 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
5690
5691         * CheckedListBox.cs: Fixes bug 76028
5692         * ListBox.cs: Fixes bug 76028
5693
5694 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
5695
5696         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
5697         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
5698
5699 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
5700
5701         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
5702
5703 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
5704
5705         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
5706
5707 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
5708
5709         * IRootGridEntry.cs: Added
5710         * PropertyGridCommands.cs: Added
5711         * PropertiesTab.cs: Added missing methods and property
5712         * PropertyGridView.cs: Made class internal
5713         * PropertyGridTextBox.cs: Made class internal
5714
5715 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
5716
5717         * MimeIcon.cs: Try to check some other environment variables
5718           if "DESKTOP_SESSION" returns "default"
5719
5720 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
5721
5722         * ThemeNice.cs: Corrected background colors (e.g. menus)
5723         * ColorDialog.cs: Use correct background colors for controls
5724
5725 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
5726
5727         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
5728
5729 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
5730
5731         * RichTextBox.cs: Added initial implementation
5732         * lang.cs: Removed. Was accidentally checked in long time ago
5733         * TODO: Removed. Contents were obsolete
5734
5735 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
5736                                                                                 
5737         * PropertiesTab.cs : Added
5738
5739 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
5740                                                                                 
5741         * PropertyGrid.cs : Update
5742         * PropertyGridView.cs : Update
5743         * System.Windows.Forms.resx : Added images and strings
5744
5745 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
5746
5747         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
5748  
5749 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
5750
5751         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
5752           a busy loop right after the Ungrab the X11 display is otherwise 
5753           blocked
5754
5755 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
5756
5757         * ThemeWin32Classic.cs: Optimise the use of clipping
5758
5759 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
5760
5761         * DataGrid.cs: fixes recursion bug
5762
5763 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
5764
5765         * ThemeNice.cs: 
5766           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
5767           - Cleanup
5768
5769 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
5770
5771         * ThemeNice.cs: Draw nice ProgressBars
5772
5773 2005-09-01  Miguel de Icaza  <miguel@novell.com>
5774
5775         * VScrollBar.cs: Another buglet found by Aaron's tool. 
5776
5777         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
5778         bug finder.
5779
5780 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
5781
5782         * ThemeNice.cs:
5783           - Added nicer menu drawing
5784           - Updated DrawTab
5785           - some refactoring
5786
5787 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
5788
5789         * CreateParams.cs (ToString): Made output match MS
5790         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
5791             handle is already created (to avoid forcing window creation)
5792         * XplatUIX11.cs: Set window text to caption after creating window,
5793           in case Text was set before window was created
5794         * Form.cs: Use this.Text instead of a static string as caption
5795
5796 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
5797
5798         * NotifyIcon.cs: Don't set the window to visible; this screws
5799           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
5800           OnPaint without a bitmap)
5801         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
5802           happen very often anyway; we could add the check to the WM_PAINT 
5803           event generation code
5804
5805 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
5806
5807         * NotifyIcon.cs: Fill the icon area with a background color, to 
5808           avoid 'residue' when transparent icons are drawn
5809         * XplatUIX11.cs:
5810           - Handle whole_window == client_window when destroying windows
5811           - SystrayAdd(): Set client_window to whole_window value to
5812             get mouse and other events passed to NotifyIcon
5813
5814 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
5815
5816         * Form.cs: Set proper default for Opacity property
5817         * NotifyIcon.cs:
5818           - ShowSystray(): Don't bother creating telling the OS
5819             about the systray item if no icon is provided
5820           - Now handles WM_NCPAINT message to deal with whole/client window
5821             split
5822           - Create window as visible to not get caught by Expose optimization
5823         * Hwnd.cs: Removed debug message
5824         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
5825           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
5826             PaintEventStart/End to use new client argument
5827         * TextBoxBase.cs:
5828           - Commented out debug messages
5829           - Switched PaintEventStart/End to use new client argument
5830         * XplatUI.cs: Added client window bool to PaintEventStart()/
5831           PaintEventEnd() calls, to support drawing in non-client areas
5832         * XplatUIDriver.cs: 
5833           - Added client window bool to PaintEventStart()/PaintEventEnd() 
5834             calls, to support drawing in non-client areas
5835           - Added conditional compile to allow using MWF BeginInvoke 
5836             on MS runtime
5837         * XplatUIX11.cs:
5838           - Added some conditional debug output
5839           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
5840             whole/client window split
5841           - Implemented handling of client argument to PaintEventStart()/End()
5842         * Control.cs:
5843           - Throw exception if BeginInvoke() is called and the window handle
5844             or one of the window's parent handles is not created
5845           - Added conditional compile to allow using MWF BeginInvoke on
5846             MS runtime
5847           - get_Parent(): Only sets parent if handle is created. This avoids
5848             forcing window handle creation when parent is set.
5849           - Now fires Layout and Parent changed events in proper order
5850           - Switched to use Handle instead of window.Handle for Z-Order setting,
5851             the get_Parent() patch above causes us to possibly get null for 'window'
5852           - Implemented handling of client argument to PaintEventStart()/End()
5853           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
5854             default handling)
5855           - Now sends a Refresh() to all child windows when Refresh() is called
5856
5857 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
5858
5859         * Form.cs: Added (non-functional) Opacity property
5860         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
5861
5862 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
5863         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
5864           use export MONO_THEME=nice to activate it.
5865           Currently supported controls:
5866           - Button
5867           - ComboBox
5868           - ScrollBar
5869           - TabControl (TabAlignment.Top only, other will follow)
5870         * ThemeEngine.cs: Add theme nice
5871         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
5872           if enabled
5873
5874 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
5875
5876         * Splitter.cs: Resize docked control and its neighbor.
5877
5878 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
5879         -- Making Windows with Menus layout correctly --
5880         * Form.cs : The first leg of the fix
5881                 Menu setter - adjust Client Size as needed to make space for the menu
5882                 SetClientSizeCore - doesn't call base version to be able to pass the 
5883                         menu handle to XplatUI.CalculateWindowRect
5884         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
5885         * XplatUIX11.cs: The critical second leg of the fix
5886                 GetWindowPos needs to use a recalculated client_rect
5887                 so that resizing the window doesn't break layout of child controls. 
5888                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
5889                 Lots of \t\n killed
5890
5891 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
5892
5893         * Label.cs: Now properly recalculates width and height on Font and Text
5894           changes if AutoSize is set
5895
5896 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
5897         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
5898
5899 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
5900
5901         * ImageList.cs: Makes ToString method compatible with MS
5902
5903 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
5904
5905         * MenuAPI.cs: fixes bug 75716
5906
5907 2005-08-11 Umadevi S <sumadevi@novell.com>
5908         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
5909
5910 2005-08-11 Umadevi S <sumadevi@novell.com>
5911         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
5912
5913 2005-08-10  Umadevi S <sumadevi@novell.com>
5914         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
5915
5916 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
5917
5918         * Menu.cs: fixes bug 75700
5919         * MenuAPI.cs: fixes navigation issues
5920
5921 2005-08-09  Umadevi S <sumadevi@novell.com>
5922         * CheckedListBox.cs - simple fix for GetItemChecked.
5923
5924 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
5925
5926         * ComboBox.cs: Serveral fixes
5927         * ListBox.cs: Serveral fixes
5928
5929 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
5930
5931         * ComboBox.cs: Fixes FindString methods and GetItemHeight
5932         * ListBox.cs: Fixes FindString methods
5933
5934 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
5935
5936         * DataGrid.cs: fixes bugs exposed by new tests
5937
5938 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
5939
5940         * Mime.cs: Compile Mono assembly references only if compiling
5941           with Mono (Allows to build with VS.Net again)
5942
5943 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
5944
5945         * Control.cs (PaintControlBackground): Draw background image
5946         corrrectly.
5947         (CheckForIllegalCrossThreadCalls): Stubbed.
5948         
5949         * Form.cs (OnCreateControl): Center when should be centered.
5950         
5951         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
5952
5953 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
5954
5955         * Binding.cs: Binding to properties should be case unsensitive
5956
5957 2005-07-18 vlindos@nucleusys.com
5958
5959         * DataGrid.cs: fixes setmember order
5960
5961 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
5962
5963         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
5964         * FileDialog.cs: FileDialog is now resizable and uses the new
5965           MimeIconEngine
5966
5967 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
5968
5969         * DataGridTextBoxColumn.cs: default value
5970         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
5971         * GridTableStylesCollection.cs: fixes checking MappingName
5972         * DataGridDrawingLogic.cs: fixes drawing logic issues
5973         * DataSourceHelper.cs: rewritten to make compatible with more data sources
5974         * DataGrid.cs: fixes    
5975
5976 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
5977
5978         * MimeGenerated.cs: Use case sensitive comparer for
5979           NameValueCollections
5980
5981 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
5982
5983         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
5984         * ThemeWin32Classic.cs: bug fixes, code refactoring
5985         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
5986         * DataGrid.cs: bug fixes, code refactoring
5987         * DataGridTextBox.cs: bug fixes, code refactoring
5988         * DataGridColumnStyle.cs:  bug fixes, code refactoring
5989         * Theme.cs:  bug fixes, code refactoring
5990
5991 2005-07-01  Peter Bartok  <pbartok@novell.com> 
5992
5993         * TextControl.cs: Quick fix for the reported crash on ColorDialog
5994           and other text box usage
5995
5996 2005-07-01  Jackson Harper  <jackson@ximian.com>
5997
5998         * TabControl.cs: Make sure the bottom of the tab covers the pages
5999         border.
6000
6001 2005-06-30  Peter Bartok  <pbartok@novell.com> 
6002
6003         * Form.cs (ShowDialog): Assign owner of the dialog
6004         * TextBoxBase.cs: Always refresh caret size when deleting, caret
6005           might have been moved to a tag with different height
6006
6007 2005-06-30  Jackson Harper  <jackson@ximian.com>
6008
6009         * Form.cs: Don't create an infinite loop when setting focus
6010         * MenuItem.cs: Don't dirty the parents if we don't have any
6011
6012 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
6013
6014         * LibSupport.cs: Rename
6015
6016 2005-06-29  Peter Bartok  <pbartok@novell.com>
6017
6018         * TextBoxBase.cs: Re-align caret after deleting a character
6019         * TextControl.cs:
6020           - DeleteChars(): Ensure that tag covers the provided position
6021           - StreamLine(): Drop reference for dropped tag
6022
6023 2005-06-29  Peter Bartok  <pbartok@novell.com> 
6024
6025         * TextControl.cs: 
6026           - Selections now work properly, anchoring at the initial location
6027             and properly extending in either direction (SetSelectionToCaret(),
6028             SetSelectionStart() and SetSelectionEnd())
6029           - No longer redraws the whole control on selection change, now
6030             calculates delta between previous and new selection and only
6031             invalidates/redraws that area
6032           - Fixed FindPos() math off-by-one errors
6033           - Changed DeleteChars() to verify the provided tag covers the
6034             provided position, selections may have a tag that doesn't cover
6035             the position if the selection is at a tag border
6036           - Fixed off-by-one errors in DeleteChars()
6037           - Added missing streamlining check in DeleteChars() to remove
6038             zero-length tags
6039           - Implemented Invalidate() method, now properly calculates exposures
6040             between two given lines/positions
6041           - Implemented SetSelection()
6042           - Obsoleted and removed FixupSelection()
6043           - Improved RecalculateDocument() logic, removing code duplication
6044
6045 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6046
6047         * LibSupport.cs: changes to match different input/output arguments.
6048
6049 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6050
6051         * LibSupport.cs: added libsupport.so init routine.
6052
6053 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
6054         
6055         * ControlBindingsCollection.cs
6056                 - Throws an exception on null datasource when adding
6057                 - Checks for duplicated bindings when adding
6058
6059 2005-06-28  Jackson Harper  <jackson@ximian.com>
6060
6061         * TreeView.cs (OnKeyDown): Support left and right properly
6062         (navigates as well as expanding and collapsing.
6063         - Add support for Multiply, this expands all the selected nodes
6064         children.
6065         - Fix some tabbing.
6066
6067 2005-06-28  Jackson Harper  <jackson@ximian.com>
6068
6069         * TreeView.cs: Implement keyboard navigation, currently supports,
6070         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
6071         support for toggling checkboxes with the space bar.
6072
6073 2005-06-28  Jackson Harper  <jackson@ximian.com>
6074
6075         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
6076         tree.
6077
6078 2005-06-28  Jackson Harper  <jackson@ximian.com>
6079
6080         * TreeView.cs: Add missing event.
6081
6082 2005-06-27  Peter Bartok  <pbartok@novell.com> 
6083
6084         * TextControl.cs:
6085           - Made line ending size configurable (now allows for counting 
6086             lineendings as \n or \r\n)
6087           - Added margin to viewport to keep caret visible on right side
6088           - Fixed translation routines for line/pos to documentpos to consider
6089             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
6090           - Fixed some line-endings to be unix style
6091           - Fixed Document.FormatText to perform it's calculations 1-based
6092           - Added descriptions for a few methods that might otherwise get 
6093             used wrong
6094           - Added NOTE section with some basic conventions to remember at 
6095             the top of the file
6096           - Major fixup for RichTextBox selection drawing:
6097             * Fixed crashes when multiple tags on a single line were selected
6098             * fixed selection box drawing not overlaying text
6099             * fixed bogus offset calculation for tags not starting at index 1
6100             * Switched behaviour from using multiple Substrings of a 
6101               StringBuilder.ToString() to using multiple 
6102               StringBuilder.ToString(start, length) statements, hoping this is
6103               faster (kept original version commented out in the code, in case
6104               original version was faster)
6105         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
6106           alignment != Left
6107         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
6108           call it as well
6109
6110 2005-06-27  Jackson Harper  <jackson@ximian.com>
6111
6112         * TabControl.cs: Move to the left and right with the arrow
6113         keys. These keys don't cycle beyond first and last like
6114         tab. Refresh all the tabs when scrolling them to the left or
6115         right.
6116
6117 2005-06-27  Jackson Harper  <jackson@ximian.com>
6118
6119         * TabControl.cs:
6120           - ToString: Added method
6121           - CreateParams: Remove TODO and comment
6122           - OnKeyDown: Cycle through bounds properly.
6123           - SelectedIndex: Scroll to the right or left if we need to
6124           display the newly selected tab.
6125
6126 2005-06-23  Jackson Harper  <jackson@ximian.com>
6127
6128         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
6129         set.
6130
6131 2005-06-23  Jackson Harper  <jackson@ximian.com>
6132
6133         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
6134         CTRL-SHIFT-TAB, and HOME, END are there any others?
6135
6136 2005-06-23  Jackson Harper  <jackson@ximian.com>
6137
6138         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
6139
6140 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
6141         
6142         * DataGridTextBoxColumn.cs: fixes and enhancements
6143         * ThemeWin32Classic.cs: fixes and enhancements
6144         * DataGridBoolColumn.cs:  fixes and enhancements
6145         * DataGridDrawingLogic.cs:  fixes and enhancements
6146         * CurrencyManager.cs: fixes and enhancements
6147         * DataGrid.cs: fixes and enhancements
6148         * DataGridColumnStyle.cs:  fixes and enhancements
6149
6150 2005-06-22  Jackson Harper  <jackson@ximian.com>
6151
6152         * TabControl.cs: Add some missing methods that just call into the
6153         base. Make the TabPageCollection's IList interface behave in the
6154         same manner as the MS implementation.
6155
6156 2005-06-22  Peter Bartok  <pbartok@novell.com> 
6157
6158         * TextControl.cs: Added sanity check
6159         * TextBoxBase.cs: 
6160           - Fixed wrapping behaviour, don't set wrap on single line controls
6161             (this fixes the breakage of colordialog introduced in an earlier
6162              checkin)
6163           - Added rudimentary support for autoscrolling right-aligned controls
6164             (still needs fixing, also, center alignment scroll is missing)
6165
6166 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
6167         
6168         * ScrollBar.cs: Fixes thumbpos on Maximum values
6169
6170 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
6171         
6172         * PropertyGridView.cs: Pass context information to UITypeEditors 
6173
6174 2005-06-21  Peter Bartok  <pbartok@novell.com> 
6175
6176         * TextBoxBase.cs:
6177           - Now calling PositionCaret with absolute space coordinates
6178           - Enabled vertical scrolling
6179           - Better tracking of scrollbar changes, tied into WidthChange
6180             event
6181           - Improved cursor tracking
6182           - Removed debug output
6183         * TextControl.cs:
6184           - PositionCaret coordinates are now works in absolute space, not 
6185             the canvas
6186           - Improved tracking of document size
6187           - Added events for width and height changes
6188
6189 2005-06-21  Peter Bartok  <pbartok@novell.com>
6190
6191         * Form.cs: Set focus to active control when form is activated
6192         * TextControl.cs: 
6193           - Added word-wrap functionality to RecalculateLine() 
6194           - Added some short function descriptions for VS.Net to aid in
6195             writing dependent controls
6196           - Added Caret property, returning the current coords of the caret
6197           - Added ViewPortWidth and ViewPortHeight properties
6198           - Added Wrap property
6199           - Added CaretMoved event
6200           - Removed some old debug code
6201           - Split() can now create soft splits
6202           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
6203           - Added method to format existing text
6204           - Fixed size/alignment calculations to use viewport
6205           - RecalculateDocument now can handle changing line-numbers while
6206             calculating lines
6207
6208         * TextBox.cs:
6209           - Added some wrap logic, we don't wrap if alignment is not left
6210           - Added casts for scrollbar var, base class switched types to
6211             also support RichTextBoxA
6212           - Implemented handling of scrollbar visibility flags
6213
6214         * TextBoxBase.cs:
6215           - Switched scrollbars type to RichTextBoxScrollBars to support
6216             RichTextBox
6217           - Added tracking of canvas width/height
6218           - Switched scrollbars to be not selectable (to keep focus on text)
6219           - Added central CalculateDocument() method to handle all redraw
6220             requirements
6221           - Added ReadOnly support
6222           - Added WordWrap support
6223           - Fixed handling of Enter key (we now treat it as a DialogKey)
6224           - Fixed caret positioning when h or v scroll is not zero
6225           - Fixed placing/generation of vertical scrollbar
6226           - Added CalculateScrollBars() method to allow updating scrollbar
6227             limits and visibility
6228           - Fixed handling of horizontal scroll
6229           - Added handling of vertical scroll
6230           - Implemented auto-'jump' when caret moves to close to a left or
6231             right border and there is text to be scrolled into view (currently
6232             there's the potential for a stack overflow, until a bug in
6233             scrollbar is fixed)
6234
6235 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
6236         
6237         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
6238
6239 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
6240
6241         * Mime.cs:
6242         - added inodes.
6243         - return application/x-zerosize for files with size zero
6244           (if no extension pattern matches).
6245         - check matches collection for strings too.
6246         - return only the first mime type if the name value
6247           collection has more than one mime type.
6248
6249 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
6250         
6251         * PropertyGrid.cs: Cleaned up some TODOs
6252         * PropertyGridView.cs: Added support for UITypeEditors
6253
6254 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
6255         
6256         * DataGrid.cs: clears cached value
6257
6258 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
6259
6260         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
6261         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
6262         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
6263         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
6264         
6265 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
6266
6267         * ThemeWin32Classic.cs: fixes colour
6268
6269 2005-06-15  Peter Bartok  <pbartok@novell.com>
6270
6271         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
6272         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
6273         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
6274         * Control.cs: Added some MWFCategory and MWFDescription attributes
6275         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
6276
6277 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
6278
6279         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
6280         usage
6281
6282 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
6283
6284         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
6285         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
6286         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
6287         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
6288         * DataGrid.cs: default datagrid settings for Default Styles, fixes
6289         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
6290
6291 2005-06-13  Jackson Harper  <jackson@ximian.com>
6292
6293         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
6294         isn't printed when the user enables dropping. (X11 does accept
6295         drops).
6296         
6297 2005-06-13  Jackson Harper  <jackson@ximian.com>
6298
6299         * TreeView.cs: Remove some TODOS.
6300
6301 2005-06-13  Jackson Harper  <jackson@ximian.com>
6302
6303         * Form.cs: Hook into the mdi framework.
6304         * MdiClient.cs: Use the base control collections add method so
6305         parents get setup correctly. Set the default back colour and dock
6306         style.
6307         * MdiChildContext.cs: New class, this bad actor handles an
6308         instance of an MDI window. Right now there is only basic
6309         support. You can drag, close, and resize windows. Minimize and
6310         Maximize are partially implemented.
6311
6312 2005-06-13  Jackson Harper  <jackson@ximian.com>
6313
6314         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
6315         freaky when both vals are negative. NOTE: There are probably other
6316         places in XplatUIX11 that this needs to be done.
6317
6318 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
6319
6320         * DataGrid.cs: implement missing methods, move KeyboardNavigation
6321         * DataGridColumnStyle.cs: fixes signature
6322
6323 2005-06-12  Jackson Harper  <jackson@ximian.com>
6324
6325         * XplatUIX11.cs: Use sizing cursors similar to the ones on
6326         windows.
6327
6328 2005-06-11  Jackson Harper  <jackson@ximian.com>
6329
6330         * StatusBarPanel.cs: Signature cleanups. Implement
6331         BeginInit/EndInit.
6332
6333 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
6334
6335         * DataGridTextBoxColumn.cs: Honors aligment
6336         * GridColumnStylesCollection.cs: Contains is case unsensitive
6337         * GridTableStylesCollection.cs: several fixes
6338         * DataGridTableStyle.cs: default column creation
6339         * DataGridDrawingLogic.cs: fixes
6340         * CurrencyManager.cs: ListName property
6341         * DataGrid.cs: multiple styles support
6342         * DataGridColumnStyle.cs: fixes
6343         
6344
6345 2005-06-10  Peter Bartok  <pbartok@novell.com>
6346
6347         * Control.cs(Select): Moved SetFocus call to avoid potential
6348           loops if controls change the active control when getting focus
6349         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
6350           the up/down buttons
6351
6352 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
6353
6354         * ImageListConverter.cs: Implemented
6355
6356 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
6357
6358         * MonthCalendar.cs: Wired in NumericUpDown control for year
6359
6360 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
6361
6362         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
6363           DoubleClick events, since they are not meant to be fired.
6364
6365 2005-06-09  Peter Bartok  <pbartok@novell.com>
6366
6367         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
6368           Jonathan's standalone controls into MWF, implemented missing
6369           events, attributes and methods; added xxxAccessible classes
6370         * AccessibleObject.cs: Made fields internal so other classes
6371           can change them if needed
6372
6373 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
6374
6375         * UpDownBase.cs: Complete implementation
6376         * NumericUpDown.cs: Complete implementation
6377         * DomainUpDown.cs: Complete implementation
6378
6379 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
6380
6381         * DataGridTextBoxColumn.cs: drawing fixes
6382         * DataGridCell.cs: fixes ToString method to match MSNet
6383         * DataGridTableStyle.cs: fixes
6384         * DataGridBoolColumn.cs: fixes, drawing
6385         * DataGridDrawingLogic.cs: fixes, new methods
6386         * DataGridTextBox.cs: Keyboard and fixes
6387         * DataGrid.cs:
6388                 - Keyboard navigation
6389                 - Scrolling fixes
6390                 - Row selection (single, multiple, deletion, etc)
6391                 - Lots of fixes
6392         
6393 2005-06-07  Jackson Harper  <jackson@ximian.com>
6394
6395         * ThemeWin32Classic.cs: Clear the background area when drawing
6396         buttons.
6397
6398 2005-06-06  Peter Bartok  <pbartok@novell.com>
6399
6400         * ImageListStreamer.cs: Fixed signature for GetData
6401         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
6402         * ComboBox.cs:
6403           - Added missing ChildAccessibleObject class
6404           - Added missing OnXXXFocus overrides, switched to using those
6405             instead of the event handler
6406         * Control.cs:
6407           - Added Parent property for ControlAccessibleObject
6408           - Fixed signatures
6409           - Fixed attributes
6410           - Added ResetBindings()
6411         * ListBindingConverter.cs: Implemented some methods
6412         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
6413         * ImageList.cs: Implemented basic handle scheme, removed TODOs
6414         * ContainerControl.cs: Fixed signature, now subscribing to the
6415           ControlRemoved event instead of overriding the handler, LAMESPEC
6416         * CurrencyManager.cs: Added missing attribute
6417         * MonthCalendar.cs: Added missing properties
6418
6419 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
6420
6421         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
6422         
6423 2005-06-06  Gaurav Vaish and Ankit Jain
6424
6425         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
6426         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
6427         
6428 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
6429
6430         * Control.cs: fixes CreateParams Width / Height.
6431
6432 2005-06-05  Peter Bartok  <pbartok@novell.com>
6433
6434         * Win32DnD.cs: Removed compilation warnings
6435
6436 2005-06-05  Peter Bartok  <pbartok@novell.com>
6437
6438         * Control.cs (CreateParams): Since we don't know if one of the
6439           properties we use is overridden, lets make sure if we fail accessing
6440           we continue with a backup plan
6441
6442 2005-06-05  Peter Bartok  <pbartok@novell.com>
6443
6444         * Win32DnD.cs:
6445           - Removed debug output
6446           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
6447             struct
6448           - Plugged resource leak
6449         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
6450           MS size
6451
6452 2005-06-05  Peter Bartok  <pbartok@novell.com>
6453
6454         * XplatUIWin32.cs: Removed DnD code
6455         * Win32DnD.cs: Implemented drop source and drop target functionality
6456
6457 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6458
6459         * UpDownBase.cs: remove duplicate addition of event, enable some code
6460         that was commented out.
6461         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
6462         Validate input when a key is pressed. It works fine now for every
6463         combination of Hexadecimal. Only missing some drawing love when sharing
6464         space with other controls.
6465
6466 2005-06-04  Peter Bartok  <pbartok@novell.com>
6467
6468         * Control.cs:
6469           - We need to pass a window for DragDrop, so enable callback events
6470           - Added DnD callback events when being a DragSource
6471         * XplatUI.cs (StartDrag): Added window handle argument
6472         * XplatUIDriver.cs (StartDrag): Added window handle argument
6473         * QueryContinueDragEventArgs: Made fields internally accessible so
6474           drivers can set them
6475         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
6476           can set them
6477
6478 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
6479
6480         * DataGridTextBoxColumn.cs: column text editing
6481         * DataGridTableStyle.cs: Respect columns styles created by the user
6482         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
6483         * DataGridBoolColumn.cs: bool column editing
6484         * DataGrid.cs: fixes to scrolling, properties, etc
6485         * DataGridTextBox.cs: handle keyboard
6486         * DataGridColumnStyle.cs: fixes
6487
6488 2005-06-02  Jackson Harper  <jackson@ximian.com>
6489
6490         * ImageListStreamer.cs: Somewhat broken implementation of
6491         GetObjectData. The RLE needs some work to match MS properly.
6492
6493 2005-06-02  Jackson Harper  <jackson@ximian.com>
6494
6495         * X11Dnd.cs: Attempting to keep at least one file in MWF
6496         monostyled.
6497
6498 2005-06-02  Peter Bartok  <pbartok@novell.com>
6499
6500         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
6501           that way
6502
6503 2005-06-02  Peter Bartok  <pbartok@novell.com>
6504
6505         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
6506         * XplatUI.cs: Added DoDragDrop() method
6507         * XplatUIDriver.cs: Added DoDragDrop() method
6508
6509 2005-06-02  Jackson Harper  <jackson@ximian.com>
6510
6511         * Splitter.cs: Implement BorderStyle.
6512
6513 2005-06-02  Jackson Harper  <jackson@ximian.com>
6514
6515         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
6516         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
6517         X11 using XDND.
6518
6519 2005-06-02  Peter Bartok  <pbartok@novell.com>
6520
6521         * DataObject.cs:
6522           - Added Data setter
6523           - Fixed broken insertion code for SetData, now also
6524             overwrites any existing entry of the same format name
6525         * Hwnd.cs: Added list of pointers that automatically gets
6526           freed when the window is disposed
6527         * XplatUI.cs: Call driver initialization method when loading
6528           a driver
6529         * Control.cs:
6530           - OnDragLeave takes EventArgs, not DragEventArgs
6531           - Added setting of WS_EX_ACCEPTFILES style when dropping is
6532             supported
6533           - Forces style update when drop state changes
6534         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
6535           not perfect since we cannot (yet) call the IDataObject.GetData()
6536           method, we keep getting 0x80004005 error, dunno why)
6537
6538 2005-06-02  Peter Bartok  <pbartok@novell.com>
6539
6540         * DragEventArgs.cs: Make fields internal so we can cache the
6541           object and re-set the fields from XplatUI
6542
6543 2005-06-02  Jackson Harper  <jackson@ximian.com>
6544
6545         * Control.cs: Add some internal methods so the DnD subsystem can
6546         raise DnD events. Also call into the driver when AllowDrop is set.
6547         * XplatUI.cs:
6548         * XplatUIDriver.cs: New method for setting whether or not a window
6549         is allowed to accept drag and drop messages.
6550                 
6551 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
6552         
6553         * ScrollBar.cs: Make sure that values sent in Scroll events
6554         are always between Maximum and Minimum.
6555
6556 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
6557
6558         * Menu.cs: Call MenuChanged when menuitem visibility has been
6559         changed.
6560         * MenuItem.cs: Rebuild menu when item is (not) visible.
6561         * MainMenu.cs: MainMenu has special MenuChanged.
6562         * Theme.cs: Caption and FrameBorderSize are not fixed.
6563         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
6564         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
6565         * XplatUIX11.cs,
6566         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
6567         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
6568
6569 2005-05-30  Jackson Harper  <jackson@ximian.com>
6570
6571         * DataFormat.cs: We can't statically initialize this stuff because
6572         it calls into the xplatui and could create a loop. So we lazy init
6573         it.
6574
6575 2005-05-28  Jackson Harper  <jackson@ximian.com>
6576
6577         * Control.cs: Proper implementation of Product(Name/Version).
6578
6579 2005-05-27  Jackson Harper  <jackson@ximian.com>
6580
6581         * DataObject.cs: Dont crash if no data is found.
6582
6583 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
6584         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
6585                 as per status page, guessing it should be set to true
6586
6587 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
6588
6589         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
6590         * DataGridTableStyle.cs: set proper formatting text, def header text
6591         * ThemeWin32Classic.cs: new themable paramaters
6592         * DataGridBoolColumn.cs: paint check box, get data, fixes
6593         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
6594         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
6595         * DataGridColumnStyle.cs: fixes
6596         * Theme.cs: new themable paramaters
6597                 
6598 2005-05-26  Peter Bartok  <pbartok@novell.com>
6599
6600         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
6601
6602 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
6603         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
6604
6605 2005-05-24  Peter Bartok  <pbartok@novell.com>
6606
6607         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
6608           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
6609           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
6610           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
6611           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
6612           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
6613           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
6614           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
6615           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
6616           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
6617           missing attributes, etc
6618         * DataGridPreferredColumnWidthTypeConverter.cs: Added
6619
6620 2005-05-24  Peter Bartok  <pbartok@novell.com>
6621
6622         * Help.cs: Added, implemented trivial functions, throws up MessageBox
6623           when user tries to get help
6624         * DataObject.cs, DataFormats.cs, LinkArea.cs,
6625           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
6626           to suppress warnings
6627         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
6628           avoid unreachable code warning
6629
6630 2005-05-20  Peter Bartok  <pbartok@novell.com>
6631
6632         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
6633
6634 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
6635
6636         * DataGridTextBoxColumn.cs: Basic painting methods
6637         * DataGridTableStyle.cs: Set table style in the column
6638         * ThemeWin32Classic.cs: Use Theme for colors
6639         * DataGridDrawingLogic.cs: Implement more drawing
6640         * DataGrid.cs: drawing, theming, enhacements, fixes
6641         * DataGridColumnStyle.cs: fixes, drawing
6642         * Theme.cs: theming for Datagrid
6643
6644 2005-05-20  Peter Bartok  <pbartok@novell.com>
6645
6646         * Cursor.cs: Implemented GetObjectData() method
6647
6648 2005-05-20  Peter Bartok  <pbartok@novell.com>
6649
6650         * Cursors.cs: Added setting of cursor name
6651         * Cursor.cs:
6652           - Implemented constructors
6653           - Implemented Draw and DrawStretched
6654           - Implemented Current property
6655           - Implemented == and != operators
6656           - Implemented Dispose()
6657           - Implemented ToString
6658           - Added missing attributes
6659         * XplatUIX11.cs:
6660           - Added missing reset for OverrideCursor when DoEvents is called
6661           - Fixed creation of cursor, logic was wrong
6662         * XplatUIWin32.cs:
6663           - Added missing reset for OverrideCursor when DoEvents is called
6664           - Fixed creation of cursor, bit arrays were swapped
6665         * Clipboard.cs: Removed obsolete MonoTODO attribute
6666
6667 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
6668
6669         * ComboBox.cs: fixes OnSelectedItemChanged
6670         * ControlBindingsCollection.cs: fixes item range check
6671
6672 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
6673
6674         * UpDownBase.cs:
6675                 - Calc preferred height properly
6676                 - Implement missing properties
6677                 
6678         * NumericUpDown.cs: Implement missing events
6679
6680 2005-05-19  Jackson Harper  <jackson@ximian.com>
6681
6682         * TabControl.cs: New method that resizes the tab pages before
6683         redrawing them. This as needed as the control is double buffered
6684         and sizing will not be recalculated unless ResizeTabPages is
6685         called.
6686         * TabPage.cs: Set base.Text instead of Text in the constructor so
6687         that UpdateOwner does not get called. Use the new Redraw method of
6688         TabControl instead of Refresh so the sizing is recalculated.
6689         * ThemeWin32Classic.cs: Draw the text for button tabs.
6690
6691 2005-05-19  Jackson Harper  <jackson@ximian.com>
6692
6693         * Control.cs: Paint control background images. Fix typo where
6694         PaintControlBackground was not getting called correctly.
6695
6696 2005-05-19  Peter Bartok  <pbartok@novell.com>
6697
6698         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
6699           I can investigate, apparently I broke FileDialog
6700
6701 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
6702
6703         * AxHost.cs: Some simple properties.
6704         * Control.cs: window must be accessible after ctor.
6705         * Form.cs: Added TransparencyKey property.
6706         * TextBoxBase.cs: Implemented Clear. Text property can be null.
6707         * XplatUIWin32.cs: SetBorderStyle implemented.
6708
6709 2005-05-18  Peter Bartok  <pbartok@novell.com>
6710
6711         * DataObject.cs: Entries are not global but particular to the
6712           DataObject, now it behaves that way
6713         * XplatUIWin32.cs: Implemented Clipboard methods
6714         * Clipboard.cs: Implemented
6715         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
6716         * XplatUIOSX.cs: Updated to final clipboard prototypes
6717         * XplatUIX11.cs: Implemented Clipboard methods
6718         * XplatUIDriver.cs: Updated to final clipboard prototypes
6719         * XplatUIStructs.cs:
6720           - Added BITMAPINFOHEADER struct
6721           - Added ClipboardFormats enum
6722         * X11Structs.cs:
6723           - Added ClipboardStruct
6724           - Added Atom enum items for clipboard types
6725           - Fixed atom types for Selection event structures
6726         * DataFormats.cs:
6727           - Added internal properties and methods for drivers to enumerate
6728             all known formats
6729           - Switched initialization method to allow drivers to assign their
6730             own IDs even for the MS predefined clipboard IDs
6731         * XplatUI.cs: Updated to final clipboard interface
6732
6733 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
6734         * PropertyGridView.cs: Fixed compiler warnings.
6735
6736 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
6737         * PropertyGrid.cs: Added some event calls
6738         * PropertyGridView.cs: Change drawing code to use double buffering
6739         * PropertyGridTextBox.cs: Changed Text property name
6740         * GridItem.cs: Added Bounds property.
6741         * GridEntry.cs: Added Bounds property.
6742
6743 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
6744
6745         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
6746         since GetType() may not return the correct type if the object is
6747         a remoting proxy.
6748
6749 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
6750
6751         * TreeNodeCollection.cs: fixes get/set item ranges
6752         
6753 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
6754
6755         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
6756                 
6757 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
6758
6759         * ComboBox.cs: Fix item range comparation
6760         * ListView.cs: Fix item range comparation
6761
6762 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
6763
6764         * FontDialog.cs:
6765           - Clear example panel when OnPaint is called
6766           - Better solution for displaying the example panel text
6767           - Select default indexes in the ListBoxes
6768
6769 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
6770
6771         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
6772
6773 2005-05-11  Peter Bartok  <pbartok@novell.com>
6774
6775         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
6776         * SelectionRangeConverter.cs: Implemented
6777         * PropertyGrid.cs: Fixed attribute value
6778         * Control.cs:
6779           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
6780           - Added Sebastien Pouliot's CAS Stack Propagation fixes
6781         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
6782           that's common to all drivers. First methods to go there are
6783           Sebastien Pouliot's CAS Stack Propagation helper methods
6784         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
6785           Sebastien Pouliot for CAS Stack Propagation
6786
6787 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
6788
6789         * OSXStructs.cs:
6790           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
6791
6792 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
6793
6794         * DataGridTextBoxColumn.cs: fixed some members
6795         * GridColumnStylesCollection.cs: indexed column is case insensitive
6796         * DataGridTableStyle.cs: fixes
6797         * ThemeWin32Classic.cs: add new theme parameter
6798         * Theme.cs: add new theme parameter
6799         * DataGridDrawingLogic.cs: Datagrid's drawing logic
6800         * DataGrid.cs: fixes, new internal properties, etc.
6801         * DataGridColumnStyle.cs: allows to set grid value
6802         *
6803
6804 2005-05-10  Peter Bartok  <pbartok@novell.com>
6805
6806         * AccessibleObject.cs:
6807           - Removed MonoTODO attribute on help, method is correct
6808           - Fixed Bounds property
6809         * AxHost.cs: Moved MonoTODO
6810         * ButtonBase.cs: Now setting AccessibleObject properties
6811         * RadioButton.cs: Setting proper AccessibleObject role
6812         * CheckBox.cs: Setting proper AccessibleObject role
6813         * ControlBindingsCollection.cs: Added properties, methods and attributes
6814         * DataFormats.cs: Fixed awkward internal API, and changed to enable
6815           userdefined DataFormats.Format items as well
6816         * ListControl.cs: Removed data_member from the public eye
6817         * OpenFileDialog.cs:
6818           - Made class sealed
6819           - Added missing attributes
6820         * SaveFileDialog.cs: Added missing attributes
6821         * ImageListStreamer.cs: Fixed code that caused warnings
6822         * LinkLabel.cs: Removed unreachable code
6823         * TreeView.cs: Fixed code that caused warnings
6824         * PropertyGridView.cs: Fixed code that caused warnings
6825         * GridColumnStylesCollection.cs: Added missing attributes
6826         * GridTableStylesCollection: Added missing attribute
6827         * PropertyManager: Added .ctor
6828         * SecurityIDType: Added
6829         * DataObject.cs: Implemented class
6830         * LinkArea.cs: Added missing attribute
6831
6832 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
6833
6834         * RadioButton.cs: call base method to allow to fire OnClick event
6835         * UpDownBase.cs: OnMouseUp call base method
6836         * CheckedListBox.cs: call base method before returning
6837         * TrackBar.cs: call base method before returning
6838         
6839
6840 2005-05-10  Peter Bartok  <pbartok@novell.com>
6841
6842         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
6843           for messages
6844
6845 2005-05-10  Peter Bartok  <pbartok@novell.com>
6846
6847         * DataFormats.cs: Implemented
6848         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
6849           XplatUIX11.cs: Added Clipboard APIs
6850         * XplatUIWin32.cs: Implemented Clipboard APIs
6851         * FolderBrowserDialog.cs: Added missing event, attributes
6852
6853 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
6854
6855         * CheckBox.cs: call base method to allow to fire OnClick event
6856
6857 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
6858
6859         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
6860
6861 2005-05-06  Peter Bartok  <pbartok@novell.com>
6862
6863         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
6864         * Screen.cs: Implemented
6865         * HelpNavigator.cs: Added
6866         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
6867           property
6868         * HelpProvider.cs: Implemented all we can do until we have a CHM
6869           help library (which means that "What's This" does work now)
6870
6871 2005-05-06  Jackson Harper  <jackson@ximian.com>
6872
6873         * XplatUIX11.cs: Fix waking up the main loop.
6874                 
6875 2005-05-05  Peter Bartok  <pbartok@novell.com>
6876
6877         * XplatUI.cs: Updated revision
6878         * Form.cs: Removed enless loop
6879         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
6880         * Label.cs (OnPaint): Added call to base.OnPaint()
6881         * ToolTip.cs: Made ToolTipWindow reusable for other controls
6882         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
6883         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
6884         * AxHost.cs: Added
6885         * ButtonBase.cs: Moved base.OnPaint() call to end of method
6886         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
6887           to ToolTip.ToolTipWindow for drawing and size methods; this allows
6888           reuse of ToolTipWindow by other controls
6889         * SizeGrip.cs: Moved base.OnPaint() call to end of method
6890         * XplatUIX11.cs: Now clipping drawing area (experimental)
6891         * PictureBox.cs: Moved base.OnPaint() call to end of method
6892         * Theme.cs: Fixed ToolTip abstracts to match new format
6893         * ErrorProvider.cs: Implemented
6894
6895 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
6896
6897         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
6898         * LinkLabel.cs:
6899                 - Adds cursors
6900                 - Handles focus
6901                 - Implements LinkBehavior
6902                 - Fixes many issues
6903
6904 2005-05-03  Jackson Harper  <jackson@ximian.com>
6905
6906         * ListView.cs: Calculate the scrollbar positioning on resize and
6907         paint, so they get put in the correct place.
6908
6909 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
6910
6911         * ColorDialogs.cs: The small color panels are now handled by
6912           SmallColorControl. This fixes drawing of the focus rectangle
6913           and adds a 3D border.
6914
6915 2005-05-03  Peter Bartok  <pbartok@novell.com>
6916
6917         * Control.cs: Modified version of Jonathan Chamber's fix for
6918           double-buffering
6919
6920 2005-05-03  Jackson Harper  <jackson@ximian.com>
6921
6922         * ListView.cs: Remove redraw variable. Control now handles whether
6923         or not a redraw needs to be done, and will only raise the paint
6924         event if redrawing is needed.
6925
6926 2005-05-03  Jackson Harper  <jackson@ximian.com>
6927
6928         * Splitter.cs: No decorations for the splitter form. Cache the
6929         hatch brush.
6930
6931 2005-05-03  Jackson Harper  <jackson@ximian.com>
6932
6933         * TreeView.cs: Use dashed lines to connect nodes. Use the
6934         ControlPaint method for drawing the focus rect instead of doing
6935         that in treeview.
6936
6937 2005-05-02  Peter Bartok  <pbartok@novell.com>
6938
6939         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
6940
6941 2005-04-29  Jackson Harper  <jackson@ximian.com>
6942
6943         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
6944         entire image buffer. Just clear the clipping rectangle.
6945
6946 2005-04-29  Jackson Harper  <jackson@ximian.com>
6947
6948         * ThemeWin32Classic.cs: Don't draw list view items that are
6949         outside the clipping rectangle.
6950
6951 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
6952
6953         * ListBox.cs: added horizontal item scroll
6954
6955 2005-04-29  Jackson Harper  <jackson@ximian.com>
6956
6957         * ThemeWin32Classic.cs: Remove some old debug code that was
6958         causing flicker with the new double buffering code.
6959
6960 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
6961
6962         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
6963         behave like combobox and comboboxlist (still not sure if this is
6964         correct though).
6965
6966 2005-04-28  Jackson Harper  <jackson@ximian.com>
6967
6968         * ThemeWin32Classic.cs: Don't fill the middle of progress
6969         bars. This fills areas outside of the clip bounds that don't need
6970         to be filled.
6971
6972 2005-04-28  Jackson Harper  <jackson@ximian.com>
6973
6974         * Control.cs: Don't expose functionality to touch the image buffers.
6975         * ProgressBar.cs:
6976         * ListView.cs: We do not need to (and no longer can) manipulate
6977         the image buffers directly. All of this is handled by Control.
6978
6979 2005-04-28  Peter Bartok  <pbartok@novell.com>
6980
6981         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
6982           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
6983           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
6984
6985 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
6986
6987         * Combobox:
6988                 - Adjust control's height for non-simple comboboxes (bug fix)
6989                 - Remove dead code
6990         * MenuAPI.cs: remove unused var
6991         * ScrollBar.cs: remove unsed var
6992                  
6993         * ListBox.cs: unselect items when clearing
6994
6995 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
6996
6997         * ListControl.cs: honors OnPositionChanged and default Selected Item
6998         * ListBox.cs: unselect items when clearing
6999
7000 2005-04-27  Jackson Harper  <jackson@ximian.com>
7001
7002         * X11Keyboard.cs: Initialize a default keyboard and give a warning
7003         if a "correct" keyboard is not found. This will make us not crash,
7004         but might give some users bad keyboard layouts...seems to be the
7005         same thing rewind does.
7006
7007 2005-04-27  Jackson Harper  <jackson@ximian.com>
7008
7009         * BindingManagerBase.cs: Attach the current/position changed
7010         handlers to their respective events.
7011
7012 2005-04-27  Jackson Harper  <jackson@ximian.com>
7013
7014         * Control.cs: Make sure that the first WM_PAINT does a full draw,
7015         not just a blit.
7016         * ThemeWin32Classic.cs: Don't fill the background for picture
7017         boxes. This could overright user drawing.
7018         * ComboBox.cs: Just fill the clipping rect not the entire client
7019         rect when drawing the background. This prevents pieces of the
7020         image buffer from getting overwritten and is theoretically faster.
7021
7022 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
7023
7024         * ComboBox.cs: Databinding support fixes, fire missing events
7025         * ListControl.cs: implement missing methods and properties, fixes
7026         * ThemeWin32Classic.cs: Databiding support on Drawing
7027         * CheckedListBox.cs: Databinding support fixes, fire missing events
7028         * ListBox.cs: Databinding support fixes, fire missing events
7029         
7030 2005-04-25  Peter Bartok  <pbartok@novell.com>
7031
7032         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
7033
7034 2005-04-25  Jackson Harper  <jackson@ximian.com>
7035
7036         * TreeView.cs: Use the horizontal scrollbars height not width when
7037         determining how much of the client area is available.
7038
7039 2005-04-25  Jackson Harper  <jackson@ximian.com>
7040
7041         * Control.cs: Double buffering is handled differently now. As per
7042         the spec, the extra buffer is created in the WM_PAINT message and
7043         passed down to the control's drawing code.
7044         * GroupBox.cs:
7045         * Label.cs:
7046         * CheckBox.cs:
7047         * ProgressBar.cs:
7048         * RadioButton.cs:
7049         * ColorDialog.cs:
7050         * ComboBox.cs:
7051         * PropertyGridView.cs:
7052         * UpDownBase.cs:
7053         * MessageBox.cs:
7054         * MenuAPI.cs:
7055         * ListView.cs:
7056         * ButtonBase.cs:
7057         * SizeGrip.cs:
7058         * ScrollBar.cs:
7059         * ListBox.cs:
7060         * TrackBar.cs:
7061         * ToolBar.cs:
7062         * PictureBox.cs:
7063         * DateTimePicker.cs:
7064         * StatusBar.cs:
7065         * TreeView.cs: Update to new double buffering system.
7066         * MonthCalendar.cs: Uncomment block, as Capture is now
7067         working. Update to new double buffering
7068         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
7069         * PaintEventArgs.cs: New internal method allows us to set the
7070         graphics object. This is used for double buffering.
7071         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
7072         rectangle. The internal paint_area var has been removed from
7073         StatusBar. The clipping rect should be used instead.
7074         * Theme.cs: Give the PictureBox drawing method a clipping rect.
7075         * TabPage.cs: The RefreshTabs method was removed, so just call the
7076         tab controls Refresh method now.
7077         * TabControl.cs: Update to new double buffering. Make sure the
7078         handle is created before sizing the tab pages, otherwise we will
7079         get stuck in a loop.
7080
7081 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
7082
7083         * LinkLabel.cs: Fix typo, bug #74719; patch
7084           from Borja Sanchez Zamorano
7085
7086 2005-04-22  Jackson Harper  <jackson@ximian.com>
7087
7088         * TreeNode.cs: Implement Handle stuff.
7089         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
7090
7091 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
7092
7093         * DataGridTextBoxColumn.cs: call base constructors, fixes
7094         * GridColumnStylesCollection.cs: missing events, methods, and functionality
7095         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
7096         * DataGridTableStyle.cs: implements create default column styles
7097         * DataGridBoolColumn.cs: which types can handle
7098         * DataGrid.cs: missing methods, fixes, new functionality
7099         * DataGridColumnStyle.cs: fixes
7100
7101 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
7102         * FolderBrowserDialog.cs:
7103         - Use a thread to fill the TreeView
7104         - Adjusted some sizes
7105
7106 2005-04-19  Peter Bartok  <pbartok@novell.com>
7107
7108         * LinkLabel.cs: (Re-)create the pieces when setting the Text
7109           property. Fixes #74360.
7110
7111 2005-04-19  Jackson Harper  <jackson@ximian.com>
7112
7113         * XEventQueue.cs: Lock when getting the lockqueue size.
7114         * PictureBox.cs: Call base OnPaint
7115         
7116 2005-04-19  Peter Bartok  <pbartok@novell.com>
7117
7118         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
7119           messages were no longer being processed (this broke BeginInvoke)
7120
7121           
7122 2005-04-18  Jackson Harper  <jackson@ximian.com>
7123
7124         * TreeView.cs: buglet that caused node images to get drawn
7125         regardless of whether or not they were in the clipping rectangle.
7126
7127 2005-04-18  Jackson Harper  <jackson@ximian.com>
7128
7129         * CurrencyManager.cs: There are four rules for GetItemProperties:
7130         - If the type is an array use the element type of the array
7131         - If the type is a typed list, use the type
7132         - If the list contains an Item property that is not an object, use
7133         that property
7134         - use the first element of the list if there are any elements in
7135         the list.
7136         
7137 2005-04-17  Jackson Harper  <jackson@ximian.oom>
7138
7139         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
7140         click. This handles offsets for scrolling properly and reduces
7141         memory. Also fixed GetNode to not offset now that TopNode works
7142         properly.
7143         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
7144         
7145 2005-04-17  Jackson Harper  <jackson@ximian.com>
7146
7147         * CursorConverter.cs: Initial implementation.
7148
7149 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
7150
7151         * ListControl.cs: work towards complex data binding support on ListControl
7152         * CurrencyManager.cs: work towards complex data binding support on ListControl
7153         * ListBox.cs: work towards complex data binding support on ListControl
7154
7155
7156 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
7157
7158         * GridTableStylesCollection.cs: fixes name and constructor
7159         * DataGridTableStyle.cs: fixes
7160         * DataGridBoolColumn.cs: fixes names and constructors
7161         * DataGrid.cs: define methods and properties. Some init implementations
7162         * DataGridCell.cs: define methods and properties. Some init implementations
7163         * GridTablesFactory.cs: Define methods and properties
7164
7165 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
7166
7167         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
7168         graphics port changes.  We still want the coordinates in global screen
7169         coordinates.
7170
7171 2005-04-14  Jackson Harper  <jackson@ximian.com>
7172
7173         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
7174         check plus minus or checkbox clicks unless those features are enabled.
7175
7176 2005-04-14  Jackson Harper  <jackson@ximian.com>
7177
7178         * TreeView.cs: Add methods for setting the top and bottom visible
7179         nodes. TreeNode::EnsureVisible uses these methods.
7180         * TreeNode.cs: Implement EnsureVisible
7181
7182 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
7183
7184         * Form.cs: Pospone menu assignation if the window has not been created yet
7185         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
7186         size and position
7187
7188 2005-04-12  Jackson Harper  <jackson@ximian.com>
7189
7190         * TreeView.cs: Set the TopNode properly when scrolling
7191         occurs. This has the added benifit of reducing the amount of
7192         walking that needs to be done when drawing. Also removed an old
7193         misleading TODO.
7194         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
7195         
7196 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
7197
7198         * Timer.cs: fixes interval setting when the timer is already enabled
7199         
7200 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
7201
7202         * FolderBrowserDialog.cs: First approach
7203
7204 2005-04-09  Peter Bartok  <pbartok@novell.com>
7205
7206         * FolderBrowserDialog: Added
7207
7208 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
7209
7210         * LinkLabel.cs: move drawing code into the theme
7211         * ThemeWin32Classic.cs: drawing code and painting background bugfix
7212         * Theme.cs: define DrawLinkLabel method
7213
7214 2005-04-05  Jackson Harper  <jackson@ximian.com>
7215
7216         * BindingContext.cs: Use weak references so these bad actors don't
7217         stay alive longer then they need to.
7218
7219 2005-04-05  Jackson Harper  <jackson@ximian.com>
7220
7221         * ListControl.cs: Basic implementation of complex databinding.
7222         * ComboBox.cs:
7223         * ListBox.cs: Add calls to ListControl databinding methods.
7224
7225 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
7226
7227         * FileDialog.cs:
7228           - Don't change PopupButtonState to Normal when the
7229             PopupButton gets pressed several times.
7230           - Renamed ButtonPanel to PopupButtonPanel
7231
7232 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
7233
7234         * ColorDialog.cs: Use cached objects instead of creating them
7235         * LinkLabel.cs: Use cached objects instead of creating them
7236         * Splitter.cs: Use cached objects instead of creating them
7237         * FontDialog.cs: Use cached objects instead of creating them
7238         * PropertyGridView.cs: Use cached objects instead of creating them
7239         * MessageBox.cs: Use cached objects instead of creating them
7240         * FileDialog.cs: Use cached objects instead of creating them
7241         * ThemeWin32Classic.cs: Use cached objects instead of creating them
7242         * TreeView.cs: Use cached objects instead of creating them
7243         
7244 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
7245
7246         * Control.cs: use Equals to compare the font since no == op
7247         * ScrollBar.cs: use Equals to compare the font since no == op
7248
7249 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
7250
7251         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
7252
7253 2005-04-01  Jackson Harper  <jackson@ximian.com>
7254
7255         * Binding.cs: Implement IsBinding.
7256         * BindingManagerBase.cs:
7257         * PropertyManager.cs:
7258         * CurrencyManager.cs: Add IsSuspended property.
7259
7260 2005-04-01  Jackson Harper  <jackson@ximian.com>
7261
7262         * Binding.cs: Had some IsAssignableFrom calls backwards.
7263
7264 2005-04-01  Jackson Harper  <jackson@ximian.com>
7265
7266         * Binding.cs: Handle null data members when pulling data.
7267         * PropertyManager.cs: Handle the data member being a property that
7268         does not exist.
7269
7270 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
7271
7272         * DataGridTextBoxColumn.cs: fixes signature
7273         * DataGrid.cs: calls right constructor
7274
7275 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
7276
7277         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
7278         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
7279         * GridTableStylesCollection.cs: implements GridTableStylesCollection
7280         * DataGridTableStyle.cs: implements DataGridTableStyle
7281         * DataGridBoolColumn.cs: implements DataGridBoolColumn
7282         * DataGridTextBox.cs: implements DataGridTextBox
7283         * DataGridColumnStyle.cs: implements DataGridColumnStyle
7284
7285 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
7286
7287         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
7288
7289 2005-03-29  Peter Bartok  <pbartok@novell.com>
7290
7291         * Application.cs:
7292           - Properly implemented CompanyName property
7293           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
7294             returns a path that includes CompanyName, ProductName and
7295             Version (fixes bug #70330)
7296
7297 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
7298
7299         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
7300           fixes bug #72588.
7301
7302 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
7303
7304         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
7305         
7306           - Added ReadOnly CheckBox
7307           - Further refactoring: moved some code from Open-/SaveFileDialog
7308             to FileDialog
7309
7310 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
7311
7312         * OpenFileDialog.cs: Fixed CheckFileExists
7313         * FileDialog.cs:
7314           Moved FileView and DirComboBox outside FileDialog class.
7315           They can now be used outside FileDialog
7316
7317 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
7318
7319         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
7320         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
7321
7322 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
7323
7324         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
7325           - Added missing CreatePrompt property in SaveDialog
7326           - Overall SaveDialog handling should be better now
7327           - Added non standard ShowHiddenFiles property
7328           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
7329           - Added InitialDirectory and RestoreDirectory support
7330
7331 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
7332
7333         * FileDialog.cs: Made dirComboBox usable
7334
7335 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
7336
7337         * FileDialog.cs: Added Filter support (case sensitiv)
7338
7339 2005-03-24  Jackson Harper  <jackson@ximian.com>
7340
7341         * TabControl.cs: Need a couple more pixels for the lines.
7342
7343 2005-03-23  Jackson Harper  <jackson@ximian.com>
7344
7345         * TabControl.cs: Give the tab page focus when it is selected.
7346
7347 2005-03-23  Jackson Harper  <jackson@ximian.com>
7348
7349         * TabControl.cs: Account for the drawing of tabs borders when
7350         invalidating. If the slider was clicked dont do click detection on
7351         the tabs.
7352
7353 2005-03-23  Jackson Harper  <jackson@ximian.com>
7354
7355         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
7356
7357 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
7358
7359         * CategoryGridEntry.cs: Added
7360         * GridItem.cs: Added helper properties
7361         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
7362         * GridEntry.cs: Updated code for collection
7363         * PropertyGrid.cs: Cleaned up some formatting
7364         * PropertyGridView.cs: Added drop down functionality for enums.
7365         * GridItemCollection.cs: Added enumerator logic
7366         * PropertyGridEntry.cs: Added
7367
7368 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
7369
7370         * FileDialog.cs:
7371           - Removed unnecessary commented code
7372           - Fixed handling for entering the filename manually in the combobox
7373
7374 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
7375
7376         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
7377
7378 2005-03-18  Peter Bartok  <pbartok@novell.com>
7379
7380         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
7381           them being touching the border
7382
7383 2005-03-18  Peter Bartok  <pbartok@novell.com>
7384
7385         * TextControl.cs: Quick hack to center text better
7386
7387 2005-03-18  Peter Bartok  <pbartok@novell.com>
7388
7389         * ControlPaint.cs:
7390           - Don't throw NotImplemented exceptions, just print a notice once
7391             instead (requested by Miguel). This makes running existing SWF
7392             apps a bit easier
7393         * Control.cs:
7394           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
7395           - Added context menu trigger on right click
7396         * Panel.cs: Trigger invalidate on resize
7397         * StatusBar.cs:
7398           - Removed old double-buffer drawing
7399           - Added ResizeRedraw style to force proper update of statusbar
7400         * ListView.cs:
7401           - Removed debug output
7402         * ThemeWin32Classic.cs:
7403           - Fixed drawing of status bar, now draws Text property if there
7404             are no defined panels
7405
7406 2005-03-18  Jackson Harper  <jackson@ximian.com>
7407
7408         * ImageList.cs: When the image stream is set pull all the images
7409         from it.
7410         * ImageListStreamer.cs: Implement reading image list streams.
7411
7412 2005-03-18  Peter Bartok  <pbartok@novell.com>
7413
7414         * ThemeWin32Classic.cs (DrawPictureBox):
7415           - Fixed calculations for centered drawing
7416           - Fixed drawing for normal mode, not scaling the image on normal
7417
7418 2005-03-18  Peter Bartok  <pbartok@novell.com>
7419
7420         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
7421           textbox
7422         * FileDialog.cs:
7423           - Made Open/Save button the accept button for FileDialog
7424           - Tied the cancel button to the IButtonControl cancel button
7425           - Save/Open now properly builds the pathname
7426           - Now handles user-entered text
7427           - Preventing crash on right-click if no item is selected
7428           - Fixed Text property, now uses contents of textbox
7429           - Fixed SelectedText property, now just returns the text part that
7430             is selected in the text box
7431
7432 2005-03-18  Jackson Harper  <jackson@ximian.com>
7433
7434         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
7435         rect, make sure to de-adjust the interior rect after drawing the
7436         tab text.
7437
7438 2005-03-18  Peter Bartok  <pbartok@novell.com>
7439
7440         * MenuAPI.cs: Remove menu *before* executing selected action to
7441           prevent the menu from 'hanging around'
7442           
7443 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
7444
7445         * XplatUIOSX.cs: Implemented WorkingArea property
7446
7447 2005-03-17  Peter Bartok  <pbartok@novell.com>
7448
7449         * XplatUIX11.cs: Fixed menu coord calculations
7450         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
7451           for calculating offsets
7452
7453 2005-03-17  Peter Bartok  <pbartok@novell.com>
7454
7455         * Hwnd.cs: Do not consider menu presence for default client
7456           rectangle location/size
7457         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
7458           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
7459           translation functions
7460         * FileDialog.cs: Fixed (what I presume is a) typo
7461
7462 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
7463
7464         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
7465           X access (avoids X-Async errors)
7466
7467 2005-03-16  Jackson Harper  <jackson@ximian.com>
7468
7469         * TabControl.cs: Raise the SelectedIndexChanged event.
7470
7471 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
7472
7473         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
7474           - Removed vertical ToolBar and replaced it with a custom panel
7475             (desktop and home button already work)
7476           - Added Help button (some controls get resized or relocated then)
7477           - Draw correct text depending on Open or Save.
7478           - Fixed some typos...
7479
7480 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
7481
7482         * ScrollBar.cs:
7483           - Only change Maximum and Minimum when need it (bug fix)
7484
7485 2005-03-15  Peter Bartok  <pbartok@novell.com>
7486
7487         * Form.cs: Use Handle for icon, to trigger creation if
7488           the window does not yet exist
7489         * Control.cs:
7490           - CanSelect: Slight performance improvement
7491           - Focus(): Preventing possible recursion
7492           - Invalidate(): Removed ControlStyle based clear flag setting
7493           - WM_PAINT: fixed logic for calling OnPaintBackground
7494           - WM_ERASEBKGND: Fixed logic, added call to new driver method
7495             EraseWindowBackground if the control doesn't paint background
7496         * XplatUIWin32.cs:
7497           - Moved EraseWindowBackground() method to internal methods
7498           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
7499             is sent via SendMessage on BeginPaint call on Win32
7500         * XplatUIX11.cs:
7501           - Added EraseWindowBackground() method
7502           - No longer sends WM_ERASEBKGND on .Expose, but on call to
7503             PaintEventStart, which more closely matches Win32 behaviour
7504           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
7505           - Fixed SetFocus() to properly deal with client and whole windows
7506         * Hwnd.cs: Added ErasePending property
7507         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
7508         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
7509
7510 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
7511
7512         * XplatUIOSX.cs:
7513           - Fix hard loop when timers exist.
7514           - Fix bugs with middle and right click for 3 button mice.
7515
7516 2005-03-11  Peter Bartok  <pbartok@novell.com>
7517
7518         * XplatUIX11.cs:
7519           - get_WorkingArea: Need to call X directly, GetWindowPos only
7520             returns cached data now
7521           - Added sanity check to GetWindowPos hwnd usage
7522
7523 2005-03-11  Jackson Harper  <jackson@ximian.com>
7524
7525         * BindingManagerBase.cs: This method isn't used anymore as
7526         PullData now updates the data in the control.
7527
7528 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
7529
7530         * Form.cs: fixes menu drawing on X11
7531         * MenuAPI.cs:  fixes menu drawing on X11
7532
7533 2005-03-11  Peter Bartok  <pbartok@novell.com>
7534
7535         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
7536           from Jonathan Gilbert; should fix bug #73606
7537         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
7538           in Screen coordinates. Thanks, Jordi.
7539         * Form.cs: Added missing attribute
7540
7541 2005-03-11  Peter Bartok  <pbartok@novell.com>
7542
7543         * Form.cs:
7544           - Rudimentary Mdi support
7545           - Removed outdated FormParent code
7546           - Implemented lots of missing properties and methods, still missing
7547             transparency support
7548           - Added missing attributes
7549           - Implemented support for MaximumBounds
7550           - Added firing of various events
7551         * XplatUI.cs: Added SetIcon() method
7552         * XplatUIDriver.cs: Added SetIcon() abstract
7553         * XplatUIOSX.cs: Stubbed out SetIcon() method
7554         * XplatUIX11.cs:
7555           - Implemented SetIcon() support
7556           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
7557           - Switched to unix line endings
7558         * XplatUIWin32.cs:
7559           - Made POINT internal so for can access it as part of MINMAX
7560           - Implemented SetIcon() support
7561           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
7562             native Mdi support again, might have to go managed)
7563         * Control.cs: Now fires the StyleChanged event
7564         * MdiClient.cs: Added; still mostly empty
7565
7566 2005-03-10  Peter Bartok  <pbartok@novell.com>
7567
7568         * SaveFileDialog.cs: Added emtpy file
7569
7570 2005-03-08  Peter Bartok  <pbartok@novell.com>
7571
7572         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
7573           in turn triggers OnCreateContro) when creating a handle for the
7574           first time.
7575         * TextControl.cs: Fixed endless loop in certain cases when
7576           replacing the current selection
7577
7578 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
7579
7580         * ScrollBar.cs:
7581           - Honors NewValue changes in Scroll events allowing apps to change it
7582           - Adds First and Last Scroll events
7583           - Fixes Thumb events
7584
7585 2005-03-07  Peter Bartok  <pbartok@novell.com>
7586
7587         * Hwnd.cs: Added DefaultClientRectangle property
7588         * XplatUI.cs: Now using the X11 driver Where() method, which provides
7589           more detailed debug information
7590         * XplatUIX11.cs:
7591           - Fixed size-change feedback loop, where we would pull an old size
7592             off the queue and mistakenly change our window's size to an
7593             earlier value
7594           - Now compressing ConfigureNotify events, to reduce looping and
7595             redraw issues
7596         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
7597           is called
7598
7599 2005-03-07  Jackson Harper  <jackson@ximian.com>
7600
7601         * Binding.cs: Push data pushes from data -> property. Check if the
7602         property is readonly when attempting to set it.
7603
7604 2005-03-07  Jackson Harper  <jackson@ximian.com>
7605
7606         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
7607         instead of IsSubclassOf. Pulling data now sets the value on the
7608         control.
7609         * PropertyManager.cs:
7610         * CurrencyManager.cs: Just need to pull data when updating now,
7611         because PullData will set the value on the control.
7612
7613 2005-03-04  Jackson Harper  <jackson@ximian.com>
7614
7615         * Binding.cs: Implement data type parsing and converting on pulled
7616         data. TODO: Are there more ways the data can be converted?
7617
7618 2005-03-04  Jackson Harper  <jackson@ximian.com>
7619
7620         * Binding.cs: Support <Property>IsNull checks. Also bind to the
7621         controls Validating method so we can repull the data when the
7622         control loses focus.
7623
7624 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
7625
7626         * ColumnHeader.cs:
7627           - Fixes null string format
7628           
7629         * ListView.cs:
7630           - Adds enum type checks
7631           - Fixes redrawing and recalc need after changing some properties
7632           - Fixes on focus_item set after the event
7633           - Fixes adding columns after the control has been created
7634           
7635         * ThemeWin32Classic.cs:
7636           - Fixes CheckBox focus rectangle
7637           - Fixes ColumnHeader drawing
7638
7639
7640 2005-03-03  Jackson Harper  <jackson@ximian.com>
7641
7642         * Binding.cs: Bind to <Property>Changed events so we can detect
7643         when properties are changed and update the data.
7644
7645 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
7646
7647         * ImageList.cs:
7648           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
7649           - Fixes ImageList constructor with ImageList container
7650           - Fixes image scaling (wrong parameters at DrawImage)
7651
7652 2005-02-02  Jackson Harper  <jackson@ximian.com>
7653
7654         * Binding.cs: Make property searches case-insensitive. Eliminate
7655         some duplicated code.
7656
7657 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
7658
7659         * ComboBox.cs:
7660                 - Handle focus event
7661                 - Fix scrollbar events
7662                 - Discard highlighted item if remove it
7663                 - Fixes SelectedItem with strings
7664
7665 2005-03-01  Peter Bartok  <pbartok@novell.com>
7666
7667         * Control.cs:
7668           - Fixed Visible property, now follows (once again) parent chain
7669             to return false if any control in the chain is visible=false
7670           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
7671           - Fixed several places where is_visible instead of Visible was used
7672           - Implemented FIXME related to focus selection when setting focused
7673             control to be invisible
7674
7675         * XplatUIWin32.cs: Now using proper method to find out if window is
7676           visible. Thanks to Jordi for pointing it out
7677
7678 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
7679
7680         * ComboBox.cs: show/hide scrollbar instead of creating it
7681
7682 2005-02-27  Jackson Harper  <jackson@ximian.com>
7683
7684         * CurrencyManager.cs: Add PositionChanged stuff.
7685
7686 2005-02-27  Peter Bartok  <pbartok@novell.com>
7687
7688         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
7689         * XplatUIOSX.cs: Added GetMenuOrigin() stub
7690         * XplatUIWin32.cs: Implemented GetMenuOrigin()
7691         * XplatUIX11.cs:
7692           - Implemented GetMenuDC()
7693           - Implemented GetMenuOrigin()
7694           - Implemented ReleaseMenuDC()
7695           - Implemented generation of WM_NCPAINT message
7696           - Implemented generation and handling of WM_NCCALCSIZE message
7697         * Form.cs: Added debug helper message for Jordi's menu work
7698         * Hwnd.cs:
7699           - Modified ClientRect property; added setter, fixed getter to handle
7700             setting of ClientRect
7701           - Added MenuOrigin property
7702
7703 2005-02-26  Peter Bartok  <pbartok@novell.com>
7704
7705         * XplatUIX11.cs:
7706           - Destroys the caret if a window that's being destroyed contains it
7707           - Ignores expose events coming from the X11 queue for windows that
7708             already are destroyed
7709           - Now uses the proper variable for handling DestroyNotify, before we
7710             marked the wrong window as destroyed
7711           - Improved/added some debug output
7712
7713 2005-02-26  Peter Bartok  <pbartok@novell.com>
7714
7715         * X11Keyboard.cs: Fixes to work on 64bit systems
7716
7717 2005-02-26  Peter Bartok  <pbartok@novell.com>
7718
7719         * Control.cs:
7720           - Now calling OnHandleDestroyed from DestroyHandle()
7721             instead of Dispose()
7722           - Removed bogus call to controls.Remove() from DestroyHandle()
7723
7724 2005-02-26  Peter Bartok  <pbartok@novell.com>
7725
7726         * Control.cs: Properly destroy child windows when our handle is
7727           destroyed
7728
7729 2005-02-25  Peter Bartok  <pbartok@novell.com>
7730
7731         * XplatUI.cs:
7732           - Added 'DriverDebug' define to allow tracing XplatUI API calls
7733           - Alphabetized Static Methods and Subclasses
7734
7735         * XplatUIX11.cs:
7736           - Added XException class to allow custom handling of X11 exceptions
7737           - Created custom X11 error handler, tied into XException class
7738           - Added support for MONO_XEXCEPTIONS env var to allow the user
7739             to either throw an exception on X errors or continue running
7740             after displaying the error
7741           - Added handling of DestroyNotify message
7742           - Added handler for CreateNotify message (still disabled)
7743           - Improved (tried to at least) Where method to provide file and lineno
7744         * X11Structs.cs:
7745           - Added XErrorHandler delegate
7746           - Added XRequest enumeration (to suppor translation of errors)
7747
7748 2005-02-25  Jackson Harper  <jackson@ximian.com>
7749
7750         * PropertyManager.cs: Implement editing features
7751         * CurrencyManager.cs:
7752         * Binding.cs: First attempt at UpdateIsBinding
7753         * BindingManagerBase.cs: Call UpdateIsBinding before
7754         pushing/pulling data.
7755
7756 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
7757
7758         * MenuAPI.cs: Respect disabled items
7759         * ThemeWin32Classic.cs
7760                 - Caches ImageAttributes creation for DrawImageDisabled
7761                 - Fixes vertical menu line drawing
7762                 - Draws disabled arrows in disable menu items
7763
7764 2005-02-24  Peter Bartok  <pbartok@novell.com>
7765
7766         * Hwnd.cs:
7767           - Added UserData property to allow associating arbitrary objects
7768             with the handle
7769           - Fixed leak; now removing Hwnd references from static windows array
7770         * XplatUIWin32.cs:
7771           - Fixed Graphics leak in PaintEventEnd
7772           - Removed usage of HandleData, switched over to Hwnd class
7773         * HandleData.cs: Removed, obsoleted by Hwnd.cs
7774
7775 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
7776
7777         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
7778         * ScrollBar.cs: Fixes bug
7779         * TrackBar.cs: removes death code, clipping, mimize refreshes,
7780          keyboard navigation enhancements
7781
7782 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
7783
7784         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
7785         * GroupBox.cs: Add control styles
7786         * Label.cs: Add control styles
7787         * UpDownBase.cs: Add control styles
7788         * ListBox.cs: Add control styles
7789         * XplatUIWin32.cs: Fixes wrong parameter order
7790
7791
7792 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
7793
7794         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
7795
7796 2005-02-23  Jackson Harper  <jackson@ximian.com>
7797
7798         * PropertyManager.cs: Implement property binding. This doesn't
7799         seem to work yet though as (I think) there are some bugs in
7800         System.ComponentModel.PropertyDescriptor.
7801         * BindingContext.cs: Use new PropertyManager constructor.
7802
7803 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
7804
7805         * ProgressBar.cs: use clip region in ProgressBar
7806         * ThemeWin32Classic.cs: use clip region in ProgressBar
7807
7808 2004-02-22  Jackson Harper  <jackson@ximian.com>
7809
7810         * BindingsCollection.cs: Remove some debug code.
7811
7812 2005-02-22  Jackson Harper  <jackson@ximian.com>
7813
7814         * BindingContext.cs:
7815         * ControlBindingsCollection.cs:
7816         * CurrencyManager.cs:
7817         * Binding.cs:
7818         * BindingManagerBase.cs: Initial implementation
7819         * BindingsCollection.cs: Add an internal contains method that the
7820         BindingManagerBase uses to ensure bindings aren't added twice to
7821         the collection.
7822         * PropertyManager.cs: Stubbed out.
7823         * Control.cs:
7824         * ContainerControl.cs: Hook up databinding
7825         
7826 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
7827
7828         * XplatUIOSX.cs:
7829           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
7830           Fixed Invalidate/Update chain.
7831           Fixed tons of other minor bugs (this is almost a complete rewrite).
7832
7833 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
7834
7835         * ComboBox.cs: do subcontrol creation when the control is created
7836
7837 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
7838
7839         * Label.cs: fixes image drawing (image and imagelist)
7840         * ThemeWin32Classic.cs: cache brushes
7841         
7842 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
7843
7844         * Form.cs: Move menu drawing code to Theme class
7845         * ComboBox.cs: Move ComboBox drawing code to Theme class
7846         * MenuItem.cs: Move menu drawing code to Theme class
7847         * MenuAPI.cs: Move menu drawing code to Theme class
7848         * ThemeWin32Classic.cs: New methods
7849         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
7850         * ListBox.cs: Move Listbox drawing code to Theme class
7851         * Theme.cs: New methods
7852
7853 2005-02-20  Peter Bartok  <pbartok@novell.com>
7854
7855         * Control.cs:
7856           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
7857             only process mnemonics on those)
7858           - Fixed event sequence for key handling; first calling
7859             ProcessKeyEventArgs now
7860         * TextBoxBase.cs:
7861           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
7862             for processing non-character keys
7863           - Fixed WM_CHAR to generate proper event sequence before processing
7864         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
7865           generation
7866
7867 2005-02-19  Peter Bartok  <pbartok@novell.com>
7868
7869         * UserControl.cs: Added TextChanged event; added attributes
7870         * SizeGrip.cs: Implemented resizing and optional display of grip
7871         * Form.cs: Fixed attribute
7872         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
7873           Changed meaning of ScrollWindow bool argument; instead of the
7874           clear attribute (which will be true usually anyway), it gives the
7875           option of moving child controls as well.
7876         * XplatUIX11.cs:
7877           - Changed to match new ScrollWindow argument
7878           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
7879             now handles the implicit parent window a WM puts around us
7880         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
7881           to work)
7882         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
7883         * TreeView.cs: Adjusted to new ScrollWindow arguments
7884
7885 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
7886
7887         * Form.cs: Menu integration with non-client area
7888         * MenuItem.cs: Menu integration with non-client area
7889         * MenuAPI.cs: Menu integration with non-client area
7890
7891 2005-02-18  Peter Bartok  <pbartok@novell.com>
7892
7893         * MethodInvoker.cs: Added
7894         * MdiLayout.cs: Added
7895         * SendKeys.cs: Started implementation
7896         * ErrorIconAlignment.cs: Added
7897
7898 2005-02-18  Peter Bartok  <pbartok@novell.com>
7899
7900         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
7901         * Form.cs: Added handling for Menu-related Non-client messages
7902
7903 2005-02-17  Peter Bartok  <pbartok@novell.com>
7904
7905         * UpDownBase.cs: Fixed typo, compilation errors
7906         * DomainUpDown.cs: Fixed attribute value
7907
7908 2005-02-16  Miguel de Icaza  <miguel@novell.com>
7909
7910         * UpDownBase.cs: Attach entry events.
7911         Propagate events.
7912         Add ForeColor property, Focused, InterceptArrowKeys (interception
7913         does not work yet).
7914
7915 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
7916
7917         * Form.cs:
7918                 - Redraw non client are on Setmenu
7919                 - Calc proper menu starting point
7920
7921 2005-02-17  Peter Bartok  <pbartok@novell.com>
7922
7923         * Application.cs: Fixed message_filter check
7924
7925 2005-02-17  Peter Bartok  <pbartok@novell.com>
7926
7927         * Application.cs: Now calls registered message filters
7928         * DockStyle.cs: Fixed attribute
7929         * Form.cs: Fixed attribute
7930         * Menu.cs: Fixed attribute
7931         * ToolTip.cs: Fixed attribute
7932         * TreeNode.cs: Added missing attributes and arranged in regions
7933         * PropertyGrid.cs: Fixed signatures
7934         * TreeNodeCollection.cs: Added attributes
7935         * Splitter.cs: Added missing attributes; arranged into regions
7936         * TabPage.cs: Added missing attributes; arranged into regions
7937         * TextBoxBase.cs: Added missing attributes
7938         * TextBox.cs: Added missing attributes
7939         * ArrangeDirection.cs: Added missing attributes
7940         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
7941         * ToolBarButton.cs: Fixed attributes
7942         * AnchorStyles.cs: Fixed attribute
7943         * TrackBar.cs: Fixed attributes
7944         * TabControl.cs: Added missing attributes and arranged into regions
7945         * ToolBar.cs: Fixed attribute
7946         * StatusBar.cs: Fixed signature, organized into regions and added
7947           attributes
7948         * StatusBarPanel.cs: Fixed attributes
7949         * ContentsResizedEventArgs.cs: Implemented
7950         * ContentsResizedEventHandler.cs: Implemented
7951         * DateBoldEventArgs.cs: Implemented
7952         * DateBoldEventHandler.cs: Implemented
7953         * UpDownEventArgs.cs: Implemented
7954         * UpDownEventHandler.cs: Implemented
7955         
7956 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
7957
7958         * Form.cs: first Menu NC refactoring
7959         * MenuAPI.cs: first Menu NC refactoring
7960         
7961 2005-02-16  Peter Bartok  <pbartok@novell.com>
7962
7963         * ImeMode.cs: Added missing attributes
7964         * Menu.cs: Fixed attribute
7965         * GroupBox.cs: Fixed attribute
7966         * Label.cs: Fixed attribute
7967         * ColorDialog.cs (RunDialog): Removed TODO attribute
7968         * ComboBox.cs: Fixed attributes
7969         * ListControl.cs: Added missing attributes
7970         * PropertyGrid.cs: Fixed attributes
7971         * Control.cs: Fixed attributes
7972         * ListViewItem.cs: Added TypeConverter attribute
7973         * NotifyIcon.cs: Fixed attributes
7974         * ListView.cs: Fixed attributes
7975         * ButtonBase.cs: Fixed attribute
7976         * ImageList.cs: Added missing attributes
7977         * ContainerControl.cs: Fixed signature
7978         * CheckedListBox.cs: Fixed attribute; added missing attributes
7979         * Panel.cs: Fixed attributes
7980         * PropertyTabChangedEventArgs.cs: Added missing attribute
7981         * PropertyValueChangedEventArgs.cs: Added missing attribute
7982         * Binding.cs: Fixed attribute
7983         * ListViewItemConverter: Implemented ListViewSubItemConverter class
7984         * ListBox.cs: Fixed attribute; added missing attributes;
7985         * ScrollableControl.cs: Added missing attributes
7986         * PictureBox.cs: Added missing attributes; implemented missing property
7987         * DateTimePicker.cs: Added missing attributes
7988         * Theme.cs (ToolWindowCaptionHeight): Fixed type
7989         * MonthCalendar.cs: Fixed attributes
7990         * StatusBarPanel.cs: Added missing attributes
7991         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
7992
7993 2005-02-16  Peter Bartok  <pbartok@novell.com>
7994
7995         * TextBoxBase.cs: The previous method to enforce height yet remember
7996           the requested high was less than ideal, this is an attempt to do
7997           it better.
7998         * Control.cs: Added comment about possible problem
7999         * Copyright: Updated format
8000         * GridItemType.cs: Fixed swapped values
8001
8002 2005-02-15  Jackson Harper  <jackson@ximian.com>
8003
8004         * BaseCollection.cs: Use property so we never access an
8005         uninitialized list. Also initialize the list in the property.
8006
8007 2005-02-15  Peter Bartok  <pbartok@novell.com>
8008
8009         * GroupBox.cs (ProcessMnemonic): Implemented
8010         * Label.cs (ProcessMnemonic): Implemented
8011         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
8012           hotkeys
8013
8014 2005-02-15  Peter Bartok  <pbartok@novell.com>
8015
8016         * RadioButton.cs (ProcessMnemonic): Implemented
8017         * CheckBox.cs (ProcessMnemonic): Implemented
8018         * Control.cs:
8019           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
8020             handling
8021           - Added internal method to allow calling ProcessMnemonic from other
8022             controls
8023         * ContainerControl.cs:
8024           - Started support for handling validation chain handling
8025           - Implemented ProcessMnemonic support
8026           - Added Select() call to Active, to make sure the active control
8027             receives focus
8028         * Form.cs: Setting toplevel flag for Forms (this was lost in the
8029           FormParent rewrite)
8030         * ThemeWin32Classic.cs:
8031           - DrawCheckBox(): Fixed stringformat to show hotkeys
8032           - DrawRadioButton(): Fixed stringformat to show hotkeys
8033         * CommonDialog.cs: Removed WndProc override, not needed
8034
8035 2005-02-14  Peter Bartok  <pbartok@novell.com>
8036
8037         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
8038           missed those in the rewrite
8039
8040 2005-02-14  Miguel de Icaza  <miguel@novell.com>
8041
8042         * NumericUpDown.cs (Increment, ToString): Add.
8043         (DecimalPlaces): implement.
8044         
8045         Add attributes.
8046         
8047         * UpDownBase.cs: Add the designer attributes.
8048
8049 2005-02-13  Peter Bartok  <pbartok@novell.com>
8050
8051         * Panel.cs: Removed border_style, now in Control
8052         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
8053           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
8054
8055 2005-02-13  Peter Bartok  <pbartok@novell.com>
8056
8057         * MouseButtons.cs: Added missing attributes
8058         * XplatUIStructs.cs: Added enumeration for title styles
8059         * LeftRightAlignment.cs: Added missing attributes
8060         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
8061           it compatible with Graphics.FromHwnd()
8062         * SelectedGridItemChangedEventArgs.cs: Fixed property type
8063         * Keys.cs: Added missing attributes
8064         * SelectionRange.cs: Added missing attributes
8065         * SelectionRangeConverter.cs: Added
8066         * XplatUI.cs:
8067           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
8068             ReleaseMenuDC methods
8069           - Renamed ReleaseWindow to UngrabWindow
8070           - Added proper startup notice to allow version identification
8071         * Form.cs:
8072           - Added missing attributes
8073           - Removed FormParent concept
8074         * Label.cs: Removed border_style field, now in Control
8075         * RadioButton.cs: Now properly selects RadioButton when focus is
8076           received
8077         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
8078         * Control.cs:
8079           - Added missing attributes
8080           - Added borderstyle handling
8081           - Removed FormParent concept support
8082           - Fixed calls to XplatUI to match changed APIs
8083           - Fixed bug that would case us to use disposed Graphics objects
8084           - Removed unneeded internal methods
8085           - PerformLayout(): Fixed to handle DockStyle.Fill properly
8086           - SelectNextControl(): Fixed to properly check common parents
8087         * TextBoxBase.cs: Removed border_style field (now in Control)
8088         * MessageBox.cs:
8089           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
8090             fixed calculations for form size
8091           - Added support for localized strings and icons
8092           - Improved form size calculations, added border
8093         * ListView.cs: Removed border_style field (now in Control)
8094         * X11Structs.cs: Moved several structs from X11 driver here
8095         * X11Keyboard.cs: Changed debug message
8096         * Application.cs: Removed FormParent concept support
8097         * CommonDialog.cs:
8098           - Resetting end_modal flag
8099           - Removed FormParent concept support
8100         * NativeWindow.cs: Removed FormParent concept support
8101         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
8102           Client area and Non-Client whole window to allow support for WM_NC
8103           messages
8104         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
8105           prevent using it until it supports Hwnd as per Geoff Norton's request
8106         * ToolBar.cs: Fixed drawing, was not doing proper drawing
8107         * PictureBox.cs: Removed border_style field, now in Control
8108         * XplatUIWin32.cs: Added new driver methods
8109
8110 2005-02-12  Peter Bartok  <pbartok@novell.com>
8111
8112         * OpacityConverter.cs: Implemented
8113         * Hwnd.cs: Internal class to support drivers that need to emulate
8114           client area/non-client area window behaviour
8115
8116 2005-02-11  Peter Bartok  <pbartok@novell.com>
8117
8118         * KeysConverter.cs: Implemented
8119
8120 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
8121
8122         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
8123         * LinkLabel: Added missing attributes
8124         * MainMenu.cs: fixes ToString
8125         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
8126         * ListBox.cs: fixes event position
8127         * TrackBar.cs: adds missing attributes and events
8128         
8129 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
8130
8131         * MenuItem.cs: Use SystemInformation and bug fixes
8132         * MenuAPI.cs: Use SystemInformation and bug fixes
8133
8134 2005-02-09  Jackson Harper  <jackson@ximian.com>
8135
8136         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
8137         their keystate otherwise things like VK_MENU get stuck "on".
8138
8139 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
8140
8141         * ListBox.cs: Fixes AddRange bug
8142         
8143 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
8144
8145         * ProgressBar.cs
8146                 - Add missing attributes
8147                 - Add missing method
8148                 
8149         * CheckedListBox.cs: Added missing attributes
8150                 - Add missing attributes
8151                 - Remove extra method
8152         
8153         * ComboBox.cs: Added missing attributes
8154         * VScrollBar.cs: Added missing attributes
8155         * ScrollBar.cs:  Added missing attributes
8156         * ListBox.cs: Fixes signature, add missing consts
8157         * LinkArea.cs:   Added missing attributes
8158         
8159
8160 2005-02-08  Peter Bartok  <pbartok@novell.com>
8161
8162         * Menu.cs: Added missing attributes
8163         * MainMenu.cs: Added missing attributes
8164         * GroupBox.cs: Added missing attributes
8165         * Label.cs: Added missing attributes
8166         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
8167         * ColorDialog.cs:
8168           - Added Instance and Options properties
8169           - Added missing attributes
8170         * Cursor.cs: Made Serializable
8171         * NotifyIcon: Added missing attributes
8172         * MenuItem.cs: Added missing attributes
8173         * TextBoxBase.cs: Implemented AppendText() and Select() methods
8174         * Panel.cs: Added Missing attributes
8175         * MonthCalendar.cs: Fixed CreateParams
8176
8177 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
8178         
8179         * LinkLabel.cs:
8180                 - Fixes signature
8181                 - Fixes issues with links
8182                 - Adds the class attributes
8183
8184 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
8185         
8186         * ComboBox.cs:
8187                 - Fixes button when no items available in dropdown
8188                 - Fixes repainting problems
8189                 - Adds the class attributes
8190                 
8191 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
8192
8193         * XplatUIOSX.cs: Detect the menu bar and title bar height from
8194         the current theme.  Cache these on startup.
8195
8196 2005-02-07  Jackson Harper  <jackson@ximian.com>
8197
8198         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
8199         the scrollbar buttons when they are depressed.
8200
8201 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
8202
8203         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
8204         Get the display size from the main displayid.  We currently dont
8205         support multiple display configurations.
8206
8207 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
8208
8209         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
8210
8211 2005-02-07  Miguel de Icaza  <miguel@novell.com>
8212
8213         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
8214
8215 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
8216
8217         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
8218
8219 2005-02-04  Jackson Harper  <jackson@ximian.com>
8220
8221         * ThemeWin32Classic.cs: Respect the clipping rect when
8222         drawing. Only fill the intersection of clips and rects so there
8223         isn't a lot of large fills.
8224         * ScrollBar.cs: Pass the correct clipping rect to the theme
8225         engine. Remove some debug code.
8226
8227 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
8228         
8229         * DateTimePicker.cs:
8230                 - Fixed crash on DateTime.Parse, use Constructor instead
8231
8232 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
8233         
8234         * MenuItem.cs:
8235         * MenuAPI.cs:
8236                 - Owner draw support (MeasureItem and DrawItem)
8237
8238 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
8239         
8240         *  Menu.cs:
8241                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
8242                 - Fixes MenuItems.Add range
8243         * MenuItem.cs:
8244                 - MergeMenu and Clone and CloneMenu functions
8245
8246 2005-02-03  Jackson Harper  <jackson@ximian.com>
8247
8248         * ScrollBar.cs: Make abstract
8249         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
8250         is abstract.
8251
8252 2005-02-03  Jackson Harper  <jackson@ximian.com>
8253
8254         * ScrollBar.cs: First part of my scrollbar fixups. This removes
8255         all the unneeded refreshes and uses invalidates with properly
8256         computed rects.
8257
8258 2005-02-03  Peter Bartok  <pbartok@novell.com>
8259
8260         * ComponentModel.cs: Added
8261         * IDataGridEditingService.cs: Added
8262         * Timer.cs: Added missing attributes
8263         * ToolTip.cs: Added missing attributes
8264
8265 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
8266
8267         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
8268
8269 2005-02-03  Peter Bartok  <pbartok@novell.com>
8270
8271         * ListBox.cs: Added missing attributes
8272
8273 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
8274         
8275         * ListBox.cs:
8276                 - Fixes font height after font change
8277                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
8278                 
8279 2005-02-02  Peter Bartok  <pbartok@novell.com>
8280
8281         * HandleData.cs: Introduced static methods to allow class
8282           to be more self-contained and track it's own HandleData objects
8283         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
8284           HandleData to use new static methods
8285
8286 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
8287
8288         * Combobox.cs:
8289                 - Fixes default size and PreferredHeight
8290                 - Missing events
8291                 - ObjectCollection.Insert implementation
8292                 
8293         * ListControl.cs
8294                 - Fixes signature
8295         * ListBox.cs:
8296                 - Several fixes
8297                 - ObjectCollection.Insert implementation
8298                 - No selection after clean
8299                 - Small fixes
8300
8301 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
8302
8303         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
8304
8305 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
8306
8307         * Combobox.cs:
8308                 - Caches ItemHeight calculation for OwnerDrawVariable
8309                 - Handles dropdown properly
8310                 - Fixes several minor bugs
8311
8312 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
8313
8314         * ListBox.cs:
8315                 - Fixes 71946 and 71950
8316                 - Fixes changing Multicolumn on the fly
8317                 - Fixes keyboard navigation on Multicolumn listboxes
8318
8319 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
8320         
8321         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
8322         crash reporter log.
8323
8324 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
8325
8326         * XplatUIOSX.cs: Allow applications to actually exit.
8327
8328 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
8329
8330         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
8331         their parent at creation time rather than lazily later.  Fixes a major
8332         regression we were experiencing.
8333
8334 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
8335
8336         * ThemeWin32Classic.cs: more date time picker painting fixes
8337         * DateTimePicker.cs: more monthcalendar drop down fixes
8338         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
8339
8340 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
8341
8342         * ScrollBar.cs:
8343                 - When moving the thumb going outside the control should stop the moving
8344                 - Adds the firing of missing events
8345                 - Fixes no button show if Size is not specified
8346                 - End / Home keys for keyboard navigation
8347
8348 2005-01-30  Peter Bartok  <pbartok@novell.com>
8349
8350         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
8351           sanity check to prevent theoretical loop
8352         * XplatUIWin32.cs (SetVisible): Removed debug output
8353         * XplatUIX11.cs (SystrayChange): Added sanity check
8354         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
8355         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
8356           behaviour, valid until the X11 client window rewrite is done
8357         * TextBox.cs (ctor): Setting proper default foreground and background
8358           colors
8359
8360 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
8361
8362         * Theme: Added DrawDateTimePicker to interface
8363         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
8364         * DateTimePicker.cs: Created (still needs keys and painting code)
8365         * DateTimePickerFormat.cs: added
8366         * MonthCalendar.cs: fixed CreateParams for popup window mode
8367           
8368 2005-01-29  Peter Bartok  <pbartok@novell.com>
8369
8370         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
8371           this should also the calculations for ligher/darker
8372         * Theme.cs: Fixed defaults for ScrollBar widths/heights
8373
8374 2005-01-29  Peter Bartok  <pbartok@novell.com>
8375
8376         * ArrangeDirection.cs: Added
8377         * ArrangeStartingPositon.cs: Added
8378         * SystemInformation.cs: Implemented
8379         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
8380           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
8381           used by SystemInformation class
8382         * X11Strucs.cs: Added XSizeHints structure
8383         * MenuAPI.cs:
8384           - Fixed CreateParams to make sure the menu window is always visible
8385           - TrackPopupMenu: Added check to make sure we don't draw the
8386             menu offscreen
8387
8388 2005-01-29  Peter Bartok  <pbartok@novell.com>
8389
8390         * HandleData.cs: Added method for altering invalid area
8391         * TextBoxBase.cs: Implemented TextLength
8392
8393 2005-01-28  Peter Bartok  <pbartok@novell.com>
8394
8395         * XplatUIX11.cs: Improvement over last patch, not sending
8396           the WM_PAINT directly anymore, instead we scroll any pending
8397           exposed areas and let the system pick out the WM_PAINT later
8398
8399 2005-01-28  Peter Bartok  <pbartok@novell.com>
8400
8401         * SWF.csproj: Deleted, no longer used. Instead,
8402           Managed.Windows.Forms/SWF.csproj should be used
8403         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
8404           directly, to avoid a potential race condition with the next
8405           scroll
8406
8407 2005-01-28  Peter Bartok  <pbartok@novell.com>
8408
8409         * XplatUI.cs: Made class internal
8410
8411 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
8412
8413         * CheckedListBox.cs:
8414                 - Draw focus
8415                 - Fixed Drawing
8416                 - Missing methods and events
8417
8418 2005-01-27  Peter Bartok  <pbartok@novell.com>
8419
8420         * Application.cs (Run): Don't use form if we don't have one
8421
8422 2005-01-27  Peter Bartok  <pbartok@novell.com>
8423
8424         * TextBoxBase.cs (get_Lines): Fixed index off by one error
8425
8426 2005-01-27  Peter Bartok  <pbartok@novell.com>
8427
8428         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
8429         * GridItem.cs: Added; Patch by Jonathan S. Chambers
8430         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
8431         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
8432         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
8433         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
8434         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
8435         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
8436         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
8437         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
8438         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
8439         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
8440
8441 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
8442
8443         * Combobox.cs:
8444                 - Draw focus on Simple Combobox
8445                 - Fixes drawing issues
8446                 - fixes 71834
8447
8448 2005-01-27  Peter Bartok  <pbartok@novell.com>
8449
8450         * Form.cs:
8451           - Place window in default location, instead of hardcoded 0/0
8452           - Send initial LocationChanged event
8453         * Control.cs:
8454           - UpdateBounds after creation to find out where the WM placed us
8455           - Make sure that if the ParentForm changes location the Form
8456             is notified
8457         * XplatUIX11.cs: XGetGeometry will not return the coords relative
8458             to the root, but to whatever the WM placed around us.
8459             Translate to root coordinates before returning toplevel
8460             coordinates
8461         * XplatUIWin32.cs: Removed debug output
8462         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
8463           flag to GetWindowPos, to allow translation of coordinates on X11
8464
8465 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
8466
8467         * ListBox.cs: connect LostFocus Event
8468
8469 2005-01-27  Peter Bartok  <pbartok@novell.com>
8470
8471         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
8472           XplatUIX11.cs: Extended the Systray API
8473         * Form.cs: Removed debug output
8474         * Application.cs: Fixed focus assignment, always need to call
8475           XplatUI.Activate() since Form.Activate() has rules that may
8476           prevent activation
8477         * NotifyIcon.cs: Should be complete now
8478         * ToolTip.cs: Worked around possible timer bug
8479
8480 2005-01-27  Jackson Harper  <jackson@ximian.com>
8481
8482         * TabControl.cs:
8483         - Only invalidate the effected tabs when the
8484         selected index changes. This reduces drawing and gets rid of some
8485         flicker.
8486         - Only refresh if the tabs need to be shifted, otherwise only
8487         invalidate the slider button.
8488         - On windows the tabs are not filled to right if the slider is
8489         visible.
8490         
8491 2005-01-27  Jackson Harper  <jackson@ximian.com>
8492
8493         * TabControl.cs: Only refresh on mouseup if we are showing the
8494         slider. Also only invalidate the button whose state has changed.
8495
8496 2005-01-26  Peter Bartok  <pbartok@novell.com>
8497
8498         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
8499         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
8500           and SystrayRemove() methods
8501         * XplatUIOSX.cs: Stubbed Systray methods
8502         * XplatUIX11.cs:
8503           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
8504             methods
8505           - Fixed broken XChangeProperty calls (marshalling messed up things)
8506         * X11Structs.cs: Added enums and structs required for Size hinting
8507         * NotifyIcon.cs: Added & implemented
8508
8509 2005-01-26  Jackson Harper  <jackson@ximian.com>
8510
8511         * TabControl.cs: Space vertically layed out tabs properly.
8512
8513 2005-01-26  Peter Bartok  <pbartok@novell.com>
8514
8515         * Form.cs (CreateClientParams): Always set the location to 0,0
8516           since we're a child window.
8517
8518         * Control.cs (SetVisibleCore): Always explicitly setting the location
8519           of a toplevel window, apparently X11 doesn't like to move windows
8520           while they're not mapped.
8521
8522 2005-01-26  Jackson Harper  <jackson@ximian.com>
8523
8524         * TabControl.cs: Implement FillToRight size mode with vertically
8525         rendered tabs.
8526
8527 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
8528
8529         * ControlPaint.cs, ThemeWin32Classic.cs
8530                 - Fixes DrawFocusRectangle
8531
8532 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
8533
8534         * MenuAPI.cs:
8535                 - MenuBar tracking only starts when item is first clicked
8536                 - Fixes menu hidding for multiple subitems
8537                 - Unselect item in MenuBar when item Executed
8538                 - Fixes bug 71495
8539
8540 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
8541
8542         * ListControl.cs:
8543                 - IsInputKey for ListBox
8544         * ListBox.cs:
8545                 - Focus item
8546                 - Shift and Control item selection
8547                 - Implement SelectionMode.MultiExtended
8548                 - Fixes RightToLeft
8549         * ComboBox.cs:
8550                 - IsInputKey implemented
8551                 - Do not generate OnTextChangedEdit on internal txt changes
8552                 
8553 2005-01-23  Peter Bartok  <pbartok@novell.com>
8554
8555         * AccessibleObject.cs: Partially implemented Select()
8556         * MonthCalendar.cs: Added missing attributes and events
8557         * Form.cs: Fixed CreateParams behaviour, now controls derived from
8558           form can properly override CreateParams.
8559         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
8560           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
8561           Control performs Invalidate & Update
8562         * NativeWindow (CreateHandle): Added special handling for Form
8563           and Form.FormParent classes to allow overriding of From.CreateParams
8564         * Control.cs:
8565           - ControlNativeWindow: Renamed 'control' variable to more intuitive
8566             name 'owner'
8567           - ControlNativeWindow: Added Owner property
8568           - Removed usage of Refresh() on property changes, changed into
8569             Invalidate(), we need to wait until the queue is processed for
8570             updates, direct calls might cause problems if not all vars for
8571             Paint are initialized
8572           - Added call to UpdateStyles() when creating the window, to set any
8573             styles that CreateWindow might have ignored.
8574           - Added support for Form CreateParent overrides to UpdateStyles()
8575         * MessageBox.cs: Removed no longer needed FormParent override stuff,
8576           CreateParams are now properly overridable
8577         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
8578           CreateParams are now properly overridable
8579
8580 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
8581
8582         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
8583         OnTextBoxChanged.
8584
8585         Capture LostFocus and OnTextBoxChanged.  The later introduces a
8586         recursive invocation that I have not figured out yet.
8587
8588         Reset the timer when not using (it was accumulating).
8589
8590
8591         (OnTextBoxChanged): Set UserEdit to true here to track whether the
8592         user has made changes that require validation.
8593
8594         Reset changing to avoid loops.
8595
8596 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
8597
8598         * NumericUpDown.cs: Display value at startup.
8599
8600         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
8601         ValidateEditText.
8602
8603         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
8604         filled in.  Added some basic parsing of text.
8605
8606         Still missing the OnXXX method overrides, and figuring out the
8607         events that must be emitted.
8608
8609         * UpDownBase.cs: Handle UserEdit on the Text property.
8610         
8611 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
8612
8613         * ComboBox.cs:
8614           - Fixes IntegralHeight
8615           - ToString method
8616
8617 2005-01-21  Jackson Harper  <jackson@ximian.com>
8618
8619         * TabControl.cs: Set the SelectedIndex property when SelectedTab
8620         is set so that the page visibility is updated and the tabs are
8621         sized correctly.
8622
8623 2005-01-21  Jackson Harper  <jackson@ximian.com>
8624
8625         * TabControl.cs: Use cliping rectangle for blitting. Give the
8626         theme the clipping rect so we can do clipping while
8627         drawing. Remove some debug code.
8628
8629 2005-01-21  Jackson Harper  <jackson@ximian.com>
8630
8631         * TabPage.cs: Add a new method so tab pages can force the tab
8632         control to recalculate the tab page sizes.
8633         * TabControl.cs: UpdateOwner needs to make the tab control recalc
8634         sizes.
8635
8636 2005-01-20  Jackson Harper  <jackson@ximian.com>
8637
8638         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
8639
8640 2005-01-20  Jackson Harper  <jackson@ximian.com>
8641
8642         * TreeView.cs: Set the bounds for nodes properly. They were
8643         getting screwed up when checkboxes were not enabled, but images
8644         were.
8645
8646 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
8647
8648         * ListBox.cs:
8649                 - Owner draw support
8650                 - Fixes
8651                 
8652 2005-01-20  Jackson Harper  <jackson@ximian.com>
8653
8654         * XplatUIStructs.cs: More misc keys
8655         * X11Keyboard.cs: Ignore some control keys.
8656
8657 2005-01-20  Jackson Harper  <jackson@ximian.com>
8658
8659         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
8660         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
8661
8662 2005-01-19  Peter Bartok  <pbartok@novell.com>
8663
8664         * Control.cs: Un-selecting the control when it is loosing focus
8665
8666 2005-01-19  Jackson Harper  <jackson@ximian.com>
8667
8668         * TreeView.cs: Hook up to the text controls leave event so we can
8669         end editing when the users clicks outside the text box.
8670         
8671 2005-01-19  Jackson Harper  <jackson@ximian.com>
8672
8673         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
8674         get set in the conversion array.
8675
8676 2005-01-19  Peter Bartok  <pbartok@novell.com>
8677
8678         * Application.cs (ModalRun): Added a call to CreateControl to ensure
8679           focus is properly set
8680         * Button.cs:
8681           - Added missing attributes
8682           - removed styles, those are already set in the base class
8683         * ButtonBase.cs:
8684           - Added missing attributes
8685           - Added clip window styles
8686         * CheckBox.cs: Added missing attributes
8687         * CommonDialog.cs:
8688           - FormParentWindow.CreateParams: Added required clip styles
8689         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
8690           also filters modifier keys
8691         * MessageBox.cs:
8692           - Added assignment of Accept and Cancel button to enable Enter
8693             and Esc keys in MessageBox dialogs
8694           - FormParentWindow.CreateParams: Added required clip styles
8695         * RadioButton.cs: Added missing attributes
8696         * TextControl.cs: No longer draws selection if control does not
8697           have focus
8698         * TextBoxBase.cs:
8699           - Now draws simple rectangle around test area to make it obvious
8700             there's a control. This is a hack until we properly support borders
8701           - A few simple fixes to support selections better, now erases selected
8702             text when typing, and resets selection when using movement keys
8703
8704 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
8705
8706         * UpDownBase.cs: Added some new properties.
8707
8708         * DomainUpDown.cs: Implement a lot to get my test working.
8709
8710 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
8711
8712         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
8713
8714 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
8715
8716         * OSXStructs (WindowAttributes): Fixed csc complaints
8717
8718 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
8719
8720         * XplayUIOSX.cs:
8721           OSXStructs.cs: Initial refactor to move enums and consts into
8722           OSXStructs and use them in the driver for greater readability.
8723
8724 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
8725
8726         * XplatUIOSX.cs: Initial support for Standard Cursors.
8727         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
8728
8729 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
8730
8731         * ComboBox.cs: ability to change style when the ctrl is already
8732         created, missing methods and events, bug fixes, signature fixes
8733
8734 2005-01-19  Peter Bartok  <pbartok@novell.com>
8735
8736         * Cursors.cs (ctor): Added ctor to fix signature
8737
8738 2005-01-18  Peter Bartok  <pbartok@novell.com>
8739
8740         * Button.cs: Implemented DoubleClick event
8741         * ButtonBase.cs:
8742           - Fixed keyboard handling to behave like MS, where the press of
8743             Spacebar is equivalent to a mousedown, and the key release is
8744             equivalent to mouseup. Now a spacebar push will give the same
8745             visual feedback like a mouse click.
8746           - Added missing attributes
8747           - Added ImeModeChanged event
8748           - Added support for generating DoubleClick event for derived classes
8749         * CheckBox.cs:
8750           - Implemented DoubleClick event
8751           - Added missing attributes
8752         * CommonDialog.cs: Added missing attribute
8753         * ContextMenu.cs: Added missing attributes
8754         * RadioButton.cs:
8755           - AutoChecked buttons do not allow to be unselected when clicked
8756             (otherwise we might end up with no selected buttons in a group)
8757           - Added missing attributes
8758           - Implemented DoubleClickEvent
8759         * ThreadExceptionDialog.cs: Enabled TextBox code
8760
8761 2005-01-18  Peter Bartok  <pbartok@novell.com>
8762
8763         * Form.cs: Removed debug output
8764         * Button.cs: Added support for DoubleClick method
8765
8766 2005-01-18  Peter Bartok  <pbartok@novell.com>
8767
8768         * Form.cs:
8769           - Added method to parent window that allows triggering size
8770             calculations when a menu is added/removed
8771           - set_Menu: Cleaned up mess from early days of Form and Control,
8772             now properly triggers a recalc when a menu is added/removed
8773           - Added case to select form itself as focused form if no child
8774             controls exist
8775           - Added PerformLayout call when showing dialog, to ensure properly
8776             placed controls
8777         * Control.cs:
8778           - Select(): Made internal so Form can access it
8779           - Focus(): Only call Xplat layer if required (avoids loop), and sets
8780             status
8781         * Application.cs (Run): Removed hack and calls PerformLayout instead
8782           to trigger calculation when Form becomes visible
8783
8784 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
8785
8786         * ComboBox.cs: fixes for ownerdraw
8787
8788 2005-01-18  Peter Bartok  <pbartok@novell.com>
8789
8790         * TextControl.cs:
8791           - Sentinel is no longer static, each Document gets it's own, this
8792             avoids locking or alternatively overwrite problems when more
8793             than one text control is used simultaneously.
8794           - Switched to use Hilight and HilightText brushes for text selection
8795
8796         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
8797
8798 2005-01-18  Peter Bartok  <pbartok@novell.com>
8799
8800         * Control.cs:
8801           - Hooked up the following events:
8802                 o ControlAdded
8803                 o ControlRemoved
8804                 o HandleDestroyed
8805                 o ImeModeChanged
8806                 o ParentChanged
8807                 o TabStopChanged
8808                 o Invalidated
8809                 o SystemColorsChanged
8810                 o ParentFontChanged
8811                 o Move
8812           - Removed debug output
8813           - Added a call to the current theme's ResetDefaults when a color change
8814             is detected
8815         * Form.cs: Now setting the proper ImeMode
8816         * Theme.cs: Defined a method to force recreation of cached resources
8817           and rereading of system defaults (ResetDefaults())
8818         * ThemeWin32Classic.cs: Added ResetDefaults() stub
8819
8820 2005-01-17  Peter Bartok  <pbartok@novell.com>
8821
8822         * Control.cs: Added missing attributes
8823
8824 2005-01-17  Jackson Harper  <jackson@ximian.com>
8825
8826         * TreeNode.cs: Implement editing. Add missing properties selected
8827         and visible.
8828         * TreeView.cs: Implement node editing. Also some fixes to use
8829         Invalidate (invalid area) instead of Refresh when selecting.
8830
8831 2005-01-17  Peter Bartok  <pbartok@novell.com>
8832
8833         * Control.cs:
8834           - Implemented InvokeGotFocus() method
8835           - Implemented InvokeLostFocus() method
8836           - Implemented InvokePaint() method
8837           - Implemented InvokePaintBackground() method
8838           - Implemented InvokeClick() method
8839           - Implemented FindForm() method
8840           - Implemented RectangleToClient() method
8841           - Implemented ClientToRectangle() method
8842           - Implemented ResetBackColor() method
8843           - Implemented ResetCursor() method
8844           - Implemented ResetFont() method
8845           - Implemented ResteForeColor() method
8846           - Implemented ResetImeMode() method
8847           - Implemented ResetLeftToRight() method
8848           - Implemented ResetText() method
8849           - Implemented Scale() methods
8850           - Implemented ScaleCore() method
8851           - Implemented Update() method
8852           - Removed unused variables
8853           - Stubbed AccessibilityNotifyClients and
8854             ControlAccessibleObject.NotifyClients() methods (dunno what to do
8855             with those yet)
8856           - Now setting proper default for RightToLeft property
8857           - Fixed bug in SetClientSizeCore that would cause windows to get
8858             really big
8859           - Now sending Click/DoubleClick events
8860           - Now selecting controls when left mouse button is clicked on
8861             selectable control
8862         * AccessibleEvents.cs: Added
8863         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
8864         * XplatUIOSX.cs: Stubbed UpdateWindow() method
8865         * XplatUIWin32.cs: Implemented UpdateWindow() method
8866         * XplatUIX11.cs: Implemented UpdateWindow() method
8867         * Form.cs: Removed stray semicolon causing CS0162 warning
8868         * ThemeWin32Classic.cs: Fixed unused variable warnings
8869         * ScrollableControl.cs: Now calls base method for ScaleCore
8870         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
8871           style to avoid interference with internal click handler (which is
8872           different than standard Control click handling)
8873         * RadioButton.cs:
8874           - Now unchecks all sibling radio buttons when control is
8875             selected (Fixes #68756)
8876           - Removed internal tabstop variable, using the one inherited from
8877             Control
8878
8879 2005-01-17  Jackson Harper  <jackson@ximian.com>
8880
8881         * NavigateEventArgs.cs: Fix base type.
8882         * LinkLabel.cs: Sig fix
8883         
8884 2005-01-17  Jackson Harper  <jackson@ximian.com>
8885
8886         * TreeView.cs: Only invalidate the effected nodes bounds when
8887         selecting nodes.
8888
8889 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
8890
8891         * XplatUIWin32.cs: fixes Win32 marshaling
8892         * XplatUIX11.cs: fixes method signature
8893
8894 2005-01-17  Peter Bartok  <pbartok@novell.com>
8895
8896         * XplatUIX11.cs: Clean up resources when we no longer need them
8897
8898 2005-01-17  Peter Bartok  <pbartok@novell.com>
8899
8900         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
8901           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
8902           and DestroyCursor() methods.
8903         * Cursor.cs: Partially implemented, now supports standard cursors;
8904           still contains some debug code
8905         * Cursors.cs: Implemented class
8906         * Control.cs:
8907           - WndProc(): Added handling of WM_SETCURSOR message, setting the
8908             appropriate cursor
8909           - Implemented Cursor property
8910           - Replaced break; with return; more straightforwar and possibly
8911             faster
8912           - Now properly setting the result for WM_HELP
8913         * X11Structs.cs: Added CursorFontShape enum
8914         * XplatUIStructs.cs:
8915           - Added StdCursor enum (to support DefineStdCursor() method)
8916           - Added HitTest enum (to support sending WM_SETCURSOR message)
8917         * XplatUIX11.cs:
8918           - Now sends the WM_SETCURSOR message
8919           - Implemented new cursor methods
8920         * XplatUIOSX.cs: Stubbed new cursor methods
8921         * XplatUIWin32.cs:
8922           - Implemented new cursor methods
8923           - Added GetSystemMetrics function and associated enumeration
8924
8925 2005-01-15  Peter Bartok  <pbartok@novell.com>
8926
8927         * Control.cs:
8928           - WndProc(): Now handles EnableNotifyMessage
8929           - SelectNextControl(): Fixed bug where if no child or sibling
8930             controls exist we looped endlessly
8931
8932 2005-01-14  Jackson Harper  <jackson@ximian.com>
8933
8934         * TreeView.cs: Recalculate the tab pages when a new one is added
8935         so that the proper bounding rects are created.
8936
8937 2005-01-14  Jackson Harper  <jackson@ximian.com>
8938
8939         * TreeView.cs: Draw a gray box instead of a grip in the lower
8940         right hand corner when there are both horizontal and vertical
8941         scroll bars.
8942
8943 2005-01-14  Jackson Harper  <jackson@ximian.com>
8944
8945         * Control.cs: When erasing backgrounds use FromHwnd instead of
8946         FromHdc when there is a NULL wparam. This occurs on the X driver.
8947         * XplatUIX11.cs: Set the wparam to NULL.
8948
8949 2005-01-13  Jackson Harper  <jackson@ximian.com>
8950
8951         * PictureBox.cs: Implement missing methods (except ToString, need
8952         to test that on windows) and events. When visibility is changed we
8953         need to redraw the image because the buffers are killed. When size
8954         is changed refresh if the sizemode needs it.
8955
8956 2005-01-13  Peter Bartok  <pbartok@novell.com>
8957
8958         * Control.cs (SelectNextControl): Was using wrong method to select
8959           a control
8960
8961 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
8962
8963         * ComboBox.cs: fixes dropstyle
8964
8965 2005-01-13  Peter Bartok  <pbartok@novell.com>
8966
8967         * Form.cs:
8968           - Implemented Select() override
8969           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
8970           - Now sets keyboard focus on startup
8971         * Control.cs (SelectNextControl): Now properly handles directed=true
8972         * TextBoxBase.cs:
8973           - WndProc: Now passes tab key on to base if AcceptTabChar=false
8974           - Added (really bad) focus rectangle (mostly for testing)
8975         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
8976           to enforce redraw on focus changes
8977         * ContainerControl.cs:
8978           - Fixed detection of Shift-Tab key presses
8979           - Fixed traversal with arrow keys
8980         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
8981           gonna keep this or if it's complete yet
8982         
8983 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
8984
8985         * ComboBox.cs: missing properties, fixes
8986
8987 2005-01-13  Peter Bartok  <pbartok@novell.com>
8988
8989         * Panel.cs (ctor): Setting Selectable window style to off
8990         * Splitter.cs (ctor): Setting Selectable window style to off
8991         * GroupBox.cs (ctor): Setting Selectable window style to off
8992         * Label.cs (ctor): Setting Selectable window style to off
8993
8994 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
8995
8996         * UpDownBase.cs (InitTimer): If the timer has been already
8997         created, enable it.
8998
8999         Use a TextBox instead of a Label.
9000
9001 2005-01-12  Jackson Harper  <jackson@ximian.com>
9002
9003         * TreeView.cs: Refresh the tree after sorting the nodes. Always
9004         draw the connecting node lines (when ShowLines is true).
9005         * TreeNode.cs: The nodes index can now be updated. This is used
9006         when a node collection is sorted.
9007         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
9008         insert or an existing unsorted node collection can be sorted.
9009         
9010 2005-01-12  Peter Bartok  <pbartok@novell.com>
9011
9012         * ContainerControl.cs: Implemented ProcessDialogKeys()
9013
9014 2005-01-12  Peter Bartok  <pbartok@novell.com>
9015
9016         * Control.cs:
9017           - Implemented SelectNextControl() method
9018           - Several focus related bug fixes
9019           - Fixed Docking calculations to match MS documentation and
9020             behaviour
9021
9022 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
9023
9024         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
9025         bug fixes
9026
9027 2005-01-12  Peter Bartok  <pbartok@novell.com>
9028
9029         * Control.cs:
9030           - Fixed broken Contains() method
9031           - Implemented GetNextControl() method. Finally. This is the pre-
9032             requisite for focus handling.
9033
9034 2005-01-12  Peter Bartok  <pbartok@novell.com>
9035
9036         * OSXStrucs.cs: Added
9037
9038 2005-01-12  Peter Bartok  <pbartok@novell.com>
9039
9040         * XplatUIWin32.cs:
9041           - Removed PeekMessageFlags
9042           - Implemented SetWindowStyle() method
9043         * XplatUIStructs.cs: Added PeekMessageFlags
9044         * X11Structs: Added missing border_width field to XWindowChanges struct
9045         * XplatUIX11.cs:
9046           - PeekMessage: Now throws exception if flags which are not yet
9047             supported are passed
9048           - Implemented SetWindowStyle() method
9049           - Fixed SetZOrder to handle AfterHwnd properly
9050         * XplatUI.cs: Added SetWindowStyle() method
9051         * XplatUIDriver.cs: Added SetWindowStyle() abstract
9052         * Control.cs:
9053           - Implemented UpdateStyles() method
9054           - Implemented UpdateZOrder() method
9055         * XplatUIOSX.cs: Added SetWindowStyle() stub
9056
9057 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
9058
9059         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
9060         button mouse).
9061
9062
9063 2005-01-11  Jackson Harper  <jackson@ximian.com>
9064
9065         * TreeView.cs: Still need to draw lines to siblings even if out of
9066         the current node is out of the clip.
9067
9068 2005-01-11  Jackson Harper  <jackson@ximian.com>
9069
9070         * TreeView.cs: When setting the hbar/vbar/grip position use
9071         SetBounds so that perform layout is only called once. Also suspend
9072         and resume layout so layout is only done once for all controls.
9073         - Removed some debug fluff
9074         * SizeGrip.cs: Call base implmentation in overriding methods.
9075         - When visibility is changed the drawing buffers are killed so we
9076         need to redraw.
9077
9078 2005-01-11  Jackson Harper  <jackson@ximian.com>
9079
9080         * TreeView.cs: Calculate the open node count while drawing. This
9081         saves us an entire tree traversal for every paint operation. Use
9082         a member var for the open node count so less vars are passed around.
9083
9084 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
9085
9086         * MonthCalendar.cs:
9087         - fixed selection to use mousemove, not mouse polling on timer
9088         * ThemeWin32Classic.cs
9089         - removed redundant unused variable "no_more_content"
9090         
9091 2005-01-11  Peter Bartok  <pbartok@novell.com>
9092
9093         * XplatUIX11.cs (DoEvents): Needs to return when no more events
9094           are pending, so it now calls PeekMessage instead of GetMessage;
9095           implemented a incomplete version of PeekMessage
9096         
9097 2005-01-11  Peter Bartok  <pbartok@novell.com>
9098
9099         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
9100           I18n issues
9101         * TextBoxBase.cs: Added sending of TextChanged event
9102
9103 2005-01-10  Jackson Harper  <jackson@ximian.com>
9104
9105         * TreeView.cs: Try not to draw outside the clipping rectangle on
9106         each node element.
9107
9108 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
9109
9110         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
9111
9112 2005-01-10  Jackson Harper  <jackson@ximian.com>
9113
9114         * TreeView.cs:
9115         - Implement fast scrolling. Now only the newly
9116         exposed nodes are drawn and the old image is moved using the
9117         XplatUI::ScrollWindow method.
9118         - Factor in height of nodes when calculating whether or not the
9119         node is in the clipping rect.
9120
9121 2005-01-10  Jackson Harper  <jackson@ximian.com>
9122
9123         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
9124
9125 2005-01-10  Peter Bartok  <pbartok@novell.com>
9126
9127         * Application.cs: Added temporary hack to resolve all our resize
9128           required issues on startup. This will get fixed properly at
9129           some point in the future
9130
9131 2005-01-10  Jackson Harper  <jackson@ximian.com>
9132
9133         * SizeGrip.cs: New internal class that is used as a sizing
9134         grip control...hence the name.
9135
9136 2005-01-10  Peter Bartok  <pbartok@novell.com>
9137
9138         * Control.cs: Implemented proper TabIndex handling, now assigning
9139           a tabindex when a control is added to a container
9140         * GroupBox.cs (ctor): Now sets the Container style bit, required
9141           for Control.GetNextControl()
9142
9143 2005-01-09  Jackson Harper  <jackson@ximian.com>
9144
9145         * TextBoxBase.cs: Clear window when scrolling (fixes build).
9146
9147 2005-01-09  Peter Bartok <pbartok@novell.com>
9148
9149         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
9150           XplatUIX11.cs: Added ability to control ScrollWindow expose and
9151           an overload for ScrollWindow to allow only scrolling a rectangle
9152
9153 2005-01-09  Peter Bartok <pbartok@novell.com>
9154
9155         * Form.cs:
9156           - Implemented SetDesktopBounds method
9157           - Implemented SetDesktopLocation method
9158
9159 2005-01-08  Jackson Harper  <jackson@ximian.com>
9160
9161         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
9162         the node count has changed, this removes to VScroll::Refresh calls
9163         when drawing.
9164
9165 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
9166
9167         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
9168
9169 2005-01-07  Jackson Harper  <jackson@ximian.com>
9170
9171         * TreeNode.cs: Just update the single node when it is
9172         checked. Don't refresh after toggling, the Expand/Collapse already
9173         handles this.
9174         * TreeView.cs: Respect clipping a little more when drawing. Try
9175         not to redraw things that don't need to be redrawn. Just hide the
9176         scrollbars when they are no longer needed instead of removing
9177         them, so they don't have to be created again and again.
9178         
9179 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
9180
9181         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
9182         coordinates to window space to place the caret properly, FIXED.
9183         Implement GetWindowState & SetWindowState
9184
9185 2005-01-06  Peter Bartok <pbartok@novell.com>
9186
9187         * Form.cs:
9188           - Implemented ClientSize property
9189           - Implemented DesktopBounds property
9190           - Implemented DesktopLocation property
9191           - Implemented IsRestrictedWindow property
9192           - Implemented Size property
9193           - Implemented TopLevel property
9194           - Implemented FormWindowState property
9195         * Control.cs:
9196           - Implemented GetTopLevel() method
9197           - Implemented SetTopLevel() method
9198         * X11Structs.cs (Atom):
9199           - Added AnyPropertyType definition
9200           - Added MapState definiton and updated XWindowAttribute struct
9201         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
9202         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
9203         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
9204         * XplatUIWin32.cs:
9205           - Implemented GetWindowState() and SetWindowState() methods
9206           - Fixed Win32GetWindowLong return type
9207         * XplatUIX11.cs:
9208           - Introduced central function for sending NET_WM messages
9209           - Implemented GetWindowState() and SetWindowState() methods
9210         * TextBoxBase.cs (set_Lines):
9211           - Now uses Foreground color for text added via Text property (Duh!)
9212           - Added code to remember programmatically requested size (fixes
9213             behaviour when Multiline is set after Size)
9214           - Added AutoSize logic
9215
9216 2005-01-06  Jackson Harper  <jackson@ximian.com>
9217
9218         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
9219
9220 2005-01-06  Jackson Harper  <jackson@ximian.com>
9221
9222         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
9223         set to less then 0.
9224
9225 2005-01-06  Jackson Harper  <jackson@ximian.com>
9226
9227         * ScrollableControl.cs: Lazy init the scrollbars.
9228         
9229 2005-01-06  Jackson Harper  <jackson@ximian.com>
9230
9231         * Theme.cs: Speed up getting pens and solid brushes, by using
9232         their ARGB as a hash instead of tostring and not calling Contains.
9233
9234 2005-01-06  Peter Bartok <pbartok@novell.com>
9235
9236         * Form.cs:
9237           - Implemented OnActivated and OnDeactivate event trigger
9238           - Implemented Activate() method
9239           - Fixed ShowDialog() to activate the form that was active before
9240             the dialog was shown
9241         * XplatUIX11.cs:
9242           - Added global active_window var that tracks the currently active
9243             X11 window
9244           - Now always grabs Property changes from the root window to always
9245             catch changes on the active window property
9246           - Added code to PropertyNotify handler to send Active/Inactive
9247             messages when state changes. This puts X11 and Win32 en par on
9248             WM_ACTIVATE notifications (except for double notifications when
9249             the user clicks away from our modal window to another one of our
9250             windows)
9251
9252 2005-01-05  Jackson Harper  <jackson@ximian.com>
9253
9254         * ImageList.cs: Implment ctor
9255
9256 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
9257
9258         * XplatUIOSX.cs: Implement Activate/SetTopmost
9259
9260 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
9261
9262         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
9263
9264 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
9265
9266         * XplatUIOSX.cs: Implement GetActive/SetFocus.
9267
9268 2005-01-05  Peter Bartok <pbartok@novell.com>
9269
9270         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
9271           XplatUIOSX.cs: Added GetActive method to return the currently
9272           active window for the application (or null, if none is active)
9273         * Form.cs:
9274           - Implemented ActiveForm
9275           - Commented out owner assignment for modal dialogs (causes problems
9276             on Win32, since the owner will be disabled)
9277           - Reworked some Active/Focus handling (still incomplete)
9278         * CommonDialog.cs: Commented out owner assignment for modal dialogs
9279           (causes problems on Win32, since the owner will be disabled)
9280         * IWin32Window: Added ComVisible attribute
9281
9282 2005-01-05  Peter Bartok <pbartok@novell.com>
9283
9284         * ToolTip.cs (WndProc): Enable setting focus now that we have the
9285           required XplatUI functions.
9286
9287 2005-01-05  Peter Bartok <pbartok@novell.com>
9288
9289         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
9290           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
9291           to implement focus and activation handling; still incomplete and
9292           with debug output
9293
9294 2005-01-04  Peter Bartok <pbartok@novell.com>
9295
9296         * TextBoxBase.cs: Changed access level for Document property to
9297           match switch to internal for TextControl
9298
9299 2005-01-04  Peter Bartok <pbartok@novell.com>
9300
9301         * AccessibleObject: Added ComVisible attribute
9302
9303 2005-01-04  Jackson Harper  <jackson@ximian.com>
9304
9305         * X11Keyboard.cs: Remove unneeded var.
9306
9307 2005-01-04  Jackson Harper  <jackson@ximian.com>
9308
9309         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
9310         but PAINT.
9311         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
9312         ClientMessage. This makes apps exit cleanly (more often).
9313         
9314 2005-01-04  Jackson Harper  <jackson@ximian.com>
9315
9316         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
9317         handling focus, return correct colors and fonts,
9318         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
9319         handle selection, horizontal scrolling, and mouse interaction.
9320
9321 2005-01-04  Peter Bartok <pbartok@novell.com>
9322
9323         * ICommandExecutor.cs: Added
9324         * IDataGridColumnStyleEditingNotificationService.cs: Added
9325         * IFeatureSupport.cs: Added
9326         * IFileReaderService.cs: Added
9327         * IDataObject.cs: Added ComVisible attribute
9328         * AmbientProperties.cs: Added
9329         * BaseCollection.cs: Added missing attributes
9330         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
9331         * BaseCollection.cs: Added missing attributes
9332         * Binding.cs: Added TypeConverter attribute
9333         * BindingContext.cs: Added DefaultEvent attribute
9334         * BindingsCollection.cs: Added DefaultEvent attribute
9335         * Button.cs: Added DefaultValue attribute
9336         * DragEventArgs.cs: Added ComVisible attribute
9337         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
9338         * KeyEventArgs.cs: Added ComVisible attribute
9339         * KeyPressEventArgs.cs: Added ComVisible attribute
9340         * MouseEventArgs.cs: Added ComVisible attribute
9341         * NavigateEventArgs.cs: Added
9342         * NavigateEventHandler.cs: Added
9343         * FeatureSupport.cs: Added
9344         * OSFeature.cs: Added
9345         * Theme.cs: Added abstract Version property to support OSFeature
9346         * ThemeWin32Classic.cs: Added Version property to
9347           support OSFeature.Themes
9348         * ProgressBar.cs: Removed OnPaintBackground override, not required since
9349           the proper styles to avoid background drawing are set, also doesn't
9350           match MS signature
9351         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
9352         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
9353         * ScrollEventArgs.cs: Added ComVisible attribute
9354         * SplitterEventArgs.cs: Added ComVisible attribute
9355         * AccessibleSelection.cs: Added Flags attribute
9356         * Appearance.cs: Added ComVisible attribute
9357         * Border3DSide.cs: Added ComVisible attribute
9358         * Border3DStyle.cs: Added ComVisible attribute
9359         * BorderStyle.cs: Added ComVisible attribute
9360         * DragAction.cs: Added ComVisible attribute
9361         * ErrorBlinkStyle.cs: Added
9362         * ScrollEventType.cs: Added ComVisible attribute
9363         * AnchorStyles.cs: Added Editor attribute
9364         * DockStyle.cs: Added Editor attribute
9365         * HorizontalAlignment.cs: Added ComVisible attribute
9366         * HelpEventArgs.cs: Added ComVisible attribute
9367         * PaintEventArgs.cs: Added IDisposable
9368
9369 2005-01-04  Peter Bartok <pbartok@novell.com>
9370
9371         * TextControl.cs: Switched Line, LineTag and Document classes to
9372           internal
9373
9374 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
9375
9376         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
9377         Simple mode, fixes, IntegralHeight, etc.
9378
9379 2005-01-04  Peter Bartok <pbartok@novell.com>
9380
9381         * TextBoxBase.cs: Using proper font variable now
9382
9383 2005-01-04  Peter Bartok <pbartok@novell.com>
9384
9385         * Form.cs (ShowDialog): Set parent to owner, if provided
9386         * GroupBox.cs: Removed unused vars
9387         * TextControl.cs:
9388           - Added GetHashCode() for Document and LineTag classes
9389           - Removed unused variables
9390           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
9391             to allow translation between continuous char position and line/pos
9392         * CheckBox.cs: Removed vars that are provided by base class
9393         * RadioButton.cs: Removed vars that are provided by base class, added
9394           new keyword where required
9395         * LinkLabel.cs: Added new keyword where required
9396         * Control.cs (WndProc): Removed unused variable
9397         * TextBoxBase.cs:
9398           - Finished SelectionLength property
9399           - Implemented SelectionStart property
9400           - Implemented Text property
9401           - Removed unused vars
9402         * MessageBox.cs: Added new keyword where required
9403         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
9404           WndProc signature
9405         * MenuAPI.cs: Added new keyword where required
9406         * ButtonBase.cs: Removed vars that are provided by base class, added
9407           new keyword where required
9408         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
9409           argument to double, to allow compiling with csc 2.0 (Atsushi ran
9410           into this)
9411         * Application.cs (Run): Now triggers the ThreadExit event
9412         * CommonDialog.cs: Added new keyword where required; now properly sets
9413           parent (owner) for dialog
9414         * XplatUIX11.cs: Commented out unused vars
9415         * StatusBar.cs: Fixed signature for Text property
9416         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
9417
9418 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
9419
9420         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
9421         TrackBar.cs, MonthCalendar.cs: remove unused vars
9422
9423 2005-01-03  Jackson Harper  <jackson@ximian.com>
9424
9425         * ThemeWin32Classic.cs:
9426         * X11Keyboard.cs: Remove unused vars.
9427
9428 2005-01-03  Peter Bartok  <pbartok@novell.com>
9429
9430         * TextBox.cs:
9431           - set_Text: Tied into TextControl
9432           - set_TextAlignment: Tied into TextControl
9433         * TextControl.cs:
9434           - Added alignment properties and implemented alignment handling
9435             and drawing (still has a bug, not generating proper expose events)
9436           - Added new Line() constructor to allow passing the line alignment
9437           - Fixed selection setting, properly handling end<start now
9438           - Added aligment considerations to RecalculateDocument()
9439         * TextBoxBase.cs:
9440           - Now properly enforces control height for single line controls
9441           - Added support for CharacterCasing
9442           - Added IsInputKey override
9443           - Fixed Keys.Enter logic
9444           - Added SetBoundsCore override
9445           - Fixed mouse selection handling
9446
9447 2005-01-03  Jackson Harper  <jackson@ximian.com>
9448
9449         * TreeView.cs:
9450           - Collapse and uncheck all nodes when CheckBoxes is disabled.
9451           - Checkboxes are always aligned to the bottom of the node,
9452           regardless of item height.
9453           - Use the node bounds to draw the text so we can center it when
9454           the item height is greater then the font height.
9455           - Node::Bounds are only the text part of the node.
9456         * TreeNode.cs: New method to combine collapsing and unchecking all
9457           nodes recursively.
9458
9459 2005-01-02  Jackson Harper  <jackson@ximian.com>
9460
9461         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
9462         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
9463         tree when a check is changed. TODO: Only refresh the checked node.
9464
9465 2004-12-30  Jackson Harper  <jackson@ximian.com>
9466
9467         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
9468         * TreeNode.cs: When collapsing make sure to never collapse the
9469         root node.
9470
9471 2004-12-29  Jackson Harper  <jackson@ximian.com>
9472
9473         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
9474         
9475 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
9476
9477         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
9478
9479 2004-12-28  Peter Bartok  <pbartok@novell.com>
9480
9481         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
9482           not yet assigned
9483
9484 2004-12-28  Peter Bartok  <pbartok@novell.com>
9485
9486         * Control.cs (WndProc): Added WM_HELP handler, now generates
9487           HelpRequested event
9488         * Form.cs: Added HelpButton property and required support code
9489         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
9490
9491 2004-12-28  Peter Bartok  <pbartok@novell.com>
9492
9493         * CommonDialog.cs:
9494           - Made DialogForm.owner variable internal
9495           - Added check to ensure owner form is set before setting
9496             owner properties in CreateParams
9497
9498 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
9499
9500         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
9501           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
9502           GetCursorPos.  Fix major visibility issues.  Rework the windowing
9503           system to support borderless/titleless windows (implements menus).
9504           Fix GetWindowPos.  Implement initial background color support for
9505           views.
9506
9507 2004-12-28  Peter Bartok  <pbartok@novell.com>
9508
9509         * Form.cs (get_CreateParams): Make sure we have an owner before using
9510           the owner variable. Implement proper default if no owner exists
9511
9512 2004-12-28  Peter Bartok  <pbartok@novell.com>
9513
9514         * In preparation for making Managed.Windows.Forms the default build target
9515           for System.Windows.Forms, the following stubbed files were added.
9516           Dialogs are currently being implemented by contributors and are only
9517           short-term place holders.
9518         * ColorDialog.cs: Initial check-in (minmal stub)
9519         * DataGrid.cs: Initial check-in (minimal stub)
9520         * DataGridLineStyle.cs: Initial check-in (minimal stub)
9521         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
9522         * DataGridTableStyle.cs: Initial check-in (minimal stub)
9523         * FontDialog.cs: Initial check-in (minimal stub)
9524         * FileDialog.cs: Initial check-in (minimal stub)
9525         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
9526         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
9527         * OpenFileDialog: Initial check-in (minimal stub)
9528         * IComponentEditorPageSite.cs: Initial check-in
9529         * Splitter.cs: Initial check-in (for Jackson)
9530         * SplitterEventArgs.cs: Initial check-in (for Jackson)
9531         * SplitterEventHandler.cs: Initial check-in (for Jackson)
9532         * TextBox.cs: Initial check-in; still needs some wiring to
9533           TextControl backend
9534         * Form.cs: Implemented ControlBox property
9535         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
9536         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
9537         * TextControl.cs: Added selection functionality; added todo header
9538         * TextBoxBase.cs:
9539           - Implemented Lines property
9540           - Implemented TextHeight property
9541           - Implemented SelectedText property
9542           - Implemented SelectionLength property
9543           - Implemented SelectAll method
9544           - Implemented ToString method
9545           - Removed and cleaned up some debug code
9546           - Implemented (still buggy) mouse text selection
9547
9548 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
9549
9550         * ComboBox.cs: Complete DropDownList implementation, fixes.
9551
9552 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
9553
9554         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
9555         * ComboBoxStyle.cs: ComboBoxStyle enum
9556         * ComboBox.cs: Initial work on ComboBox control
9557
9558 2004-12-21  Peter Bartok  <pbartok@novell.com>
9559
9560         * Control.cs (ctor, CreateParams): Moved setting of is_visible
9561           forward so that anything that creates a window gets the default,
9562           also no longer uses Visible property in CreateParams to avoid
9563           walking up the parent chain and possibly get the wrong visible
9564           status. Fixed IsVisible to no longer walk up to the parent.
9565
9566 2004-12-21  Peter Bartok  <pbartok@novell.com>
9567
9568         * Form.cs (ShowDialog): Unset modality for the proper window
9569  
9570 2004-12-20  Peter Bartok  <pbartok@novell.com>
9571
9572         * CommonDialog.cs: Initial check-in
9573
9574 2004-12-20  Peter Bartok  <pbartok@novell.com>
9575
9576         * Control.cs (Visible): Now uses the parent window instead of the
9577           client area window for the property
9578
9579         * Form.cs
9580           - ShowDialog(): Now uses the proper window for modality
9581           - The default visibility state for the form parent is now false. This
9582             will prevent the user from seeing all the changes to the form and
9583             its controls before the application hits Application.Run()
9584           - Removed some stale commented out code
9585
9586         * NativeWindow.cs:
9587           - Added FindWindow() method to have a method to check for existence
9588             of a window handle
9589           - Added ability to override default exception handling (for example
9590             when debugging with VS.Net; to do this the ExternalExceptionHandler
9591             define must be set
9592           - Removed some useless debug output
9593
9594         * XplatUIX11.cs:
9595           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
9596             not working as expected
9597           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
9598             property to allow switching back to the modal window if focus is
9599             given to another one of our windows (Application Modal)
9600           - Now only sets override_redirect if we create a window
9601             without WS_CAPTION
9602           - Moved EventMask selection before mapping of newly created window
9603             so we can catch the map event as well
9604           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
9605           - Added various Atom related DllImports
9606           - Implemented Exit() method
9607           - .ctor() : No longer shows window if WS_VISIBLE is not defined
9608             in the CreateParams
9609
9610         * MessageBox.cs: Now properly deals with the FormParent window by
9611           providing an override the FormParent CreateParams property to
9612           set as POPUP instead of OVERLAPPED window.
9613
9614 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
9615
9616         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
9617         Minor code cleanup.
9618
9619 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
9620         
9621         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
9622
9623 2004-12-18  Peter Bartok  <pbartok@novell.com>
9624
9625         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
9626           implementing SetModal() method
9627
9628 2004-12-18  Peter Bartok  <pbartok@novell.com>
9629
9630         * X11Structs.cs (XGCValues): Fixed type of function element
9631         * XplatUI.cs: Added ScrollWindow() method
9632         * XplatUIDriver.cs: Added ScrollWindow() abstract
9633         * XplatUIWin32.cs: Implemented ScrollWindow() method
9634         * XplatUIX11.cs: Implemented ScrollWindow() method
9635         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
9636
9637 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
9638
9639         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
9640         Some more keyboard support (INCOMPLETE)
9641
9642 2004-12-17  Peter Bartok  <pbartok@novell.com>
9643
9644         * TextControl.cs:
9645         - Added color attribute to line tags.
9646         - Added color argument to all functions dealing with tags
9647         - Added color argument support to various functions
9648         - Fixed miss-calculation of baseline/shift in certain circumstances
9649
9650         * TextBoxBase.cs: Added new color option to test code
9651
9652 2004-12-17  Jackson Harper  <jackson@ximian.com>
9653
9654         * TreeNode.cs:
9655         * MonthCalendar.cs: Signature fixes
9656
9657 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
9658
9659         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
9660         keyboard event moved it.  Create a new graphics context for each paint resolves this
9661
9662 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
9663
9664         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
9665         Make caret exist and go blink blink.  Initial keyboard support.
9666         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
9667         works.
9668
9669 2004-12-17  Jackson Harper  <jackson@ximian.com>
9670
9671         * XplatUIStructs.cs: Updated set of virtual keycodes.
9672         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
9673
9674 2004-12-17  Jackson Harper  <jackson@ximian.com>
9675
9676         * XplatUIX11.cs: Prune old keyboard code.
9677
9678 2004-12-17  Jackson Harper  <jackson@ximian.com>
9679
9680         * XplatUIX11.cs: When generating mouse wparams get the modifier
9681         keys from the ModifierKeys property.
9682
9683 2004-12-17  Jackson Harper  <jackson@ximian.com>
9684
9685         * X11Keyboard.cs: Send up/down input when generating
9686         messages. Remove some unused vars.
9687
9688 2004-12-17  Jackson Harper  <jackson@ximian.com>
9689
9690         * TabControl.cs:
9691         * TreeView.cs: get rid of warnings.
9692
9693 2004-12-17  Jackson Harper  <jackson@ximian.com>
9694
9695         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
9696
9697 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
9698
9699         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
9700           CheckedListBox.cs: Implementation
9701
9702 2004-12-17  Peter Bartok  <pbartok@novell.com>
9703
9704         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
9705
9706 2004-12-16  Peter Bartok  <pbartok@novell.com>
9707
9708         * TextControl.cs:
9709           - InsertCharAtCaret(): Fixed start pos fixup
9710           - CaretLine_get: No longer derives the line from the tag, the tag
9711             could be stale if lines in the document have been added or deleted
9712           - RebalanceAfterDelete(): Fixed bug in balancing code
9713           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
9714           - Line.Streamline(): Now can also elminate leading empty tags
9715           - DumpTree(): Added a few more tests and prevented exception on
9716             uninitialized data
9717           - Added Debug section for Combining lines
9718           - Delete(): Now copies all remaining properties of a line
9719           
9720         * TextBoxBase.cs:
9721           - Left mousebutton now sets the caret (and middle button still acts
9722             as formatting tester, which must go away soon)
9723           - Added Debug section for Deleting/Combining lines
9724           - Fixed calculations for UpdateView after Combining lines
9725
9726 2004-12-16  Peter Bartok  <pbartok@novell.com>
9727
9728         * TextControl.cs: Now properly aligns text on a baseline, using the
9729           new XplatUI.GetFontMetrics() method. Simplified several calculations
9730         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
9731           defined
9732
9733 2004-12-16  Peter Bartok  <pbartok@novell.com>
9734
9735         * XplatUI.cs: Added GetFontMetrics() method
9736         * XplatUIDriver.cs: Added GetFontMetrics() abstract
9737         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
9738           into libgdiplus, our private GetFontMetrics function
9739         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
9740         * XplatUIWin32.cs: Implemented GetFontMetrics() method
9741
9742 2004-12-16  Jackson Harper  <jackson@ximain.com>
9743
9744         * XplatUIStruct.cs: Add enum for dead keys
9745         * X11Keyboard.cs: Map and unmap dead keys.
9746
9747 2004-12-16  Jackson Harper  <jackson@ximian.com>
9748
9749         * X11Keyboard.cs: Detect and use the num lock mask.
9750
9751 2004-12-16  Peter Bartok  <pbartok@novell.com>
9752
9753         * Control.cs (CreateGraphics): Added check to make sure the
9754           handle of the window exists before calling Graphics.FromHwnd()
9755
9756 2004-12-16  Peter Bartok  <pbartok@novell.com>
9757
9758         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
9759           contains a lot of code that's not supposed to be there for the
9760           real thing, but required for developing/testing the textbox
9761           backend.
9762
9763 2004-12-16  Peter Bartok  <pbartok@novell.com>
9764
9765         * TextControl.cs:
9766         - Fixed Streamline method
9767         - Added FindTag method to Line
9768         - Added DumpTree method for debugging
9769         - Added DecrementLines() method for deleting lines
9770         - Fixed UpdateView to update the cursor to end-of-line on single-line
9771           updates
9772         - Added PositionCaret() method
9773         - Fixed MoveCaret(LineDown) to move into the last line, too
9774         - Added InsertChar overload
9775         - Fixed InsertChar tag offset calculations
9776         - Added DeleteChar() method
9777         - Added Combine() method for folding lines
9778         - Fixed Delete() method, no longer allocates wasted Line object and
9779           now copies all properties when swapping nodes
9780         - Delete() method now updates document line counter
9781
9782 2004-12-15  Jackson Harper  <jackson@ximian.com>
9783
9784         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
9785         * X11Keyboard.cs: Expose the currently selected modifier keys
9786         through a property.
9787
9788 2004-12-15  Peter Bartok  <pbartok@novell.com>
9789
9790         * TextControl.cs: Initial check-in. Still incomplete
9791
9792 2004-12-15  Jackson Harper  <jackson@ximian.com>
9793
9794         * TreeNode.cs:
9795         * TreeView.cs: Fix build on csc (second time today ;-))
9796
9797 2004-12-15  Jackson Harper  <jackson@ximian.com>
9798
9799         * TreeView.cs: Store the treenodes plus/minus box bounds when it
9800         is calculated and use this for click testing.
9801         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
9802
9803 2004-12-15  Jackson Harper  <jackson@ximian.com>
9804
9805         * TreeView.cs: Pass the nodes image index to the image list when
9806         drawing that image.
9807
9808 2004-12-15  Jackson Harper  <jackson@ximian.com>
9809
9810         * X11Keyboard.cs: Set messages hwnd.
9811         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
9812         post_message calls.
9813
9814 2004-12-15  Jackson Harper  <jackson@ximian.com>
9815
9816         * X11Keyboard.cs: Fix to compile with csc.
9817         
9818 2004-12-15  Jackson Harper  <jackson@ximian.com>
9819
9820         * X11Structs.cs: Add key mask values
9821         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
9822         * X11Keyboard.cs: New file - Extrapolates and interpolates key
9823         down/up foo into WM_CHAR foo
9824         * KeyboardLayouts.cs: Common keyboard layouts
9825         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
9826         post messages into the main queue.
9827
9828 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
9829
9830         * Button.cs: implement ProcessMnemonic
9831         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
9832           brushes everytime
9833         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
9834         * ButtonBase.cs: Show HotkeyPrefix (not the &)
9835
9836 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
9837         
9838         * MonthCalendar.cs: Implemented click-hold for next/previous month
9839           and date selection
9840           
9841 2004-12-11  Peter Bartok  <pbartok@novell.com>
9842
9843         * X11Structs.cs:
9844           - Added XKeyboardState (moved from XplatUIX11.cs)
9845           - Added XCreateGC related enums and structures
9846           - Added GXFunction for XSetFunction
9847
9848         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
9849
9850         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
9851           CaretVisible() calls
9852
9853         * ToolTip.cs: Added code to prevent stealing focus from app windows
9854
9855         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
9856           DestroyCaret, SetCaretPos and CaretVisible)
9857
9858         * XplatUIX11.cs:
9859           - Added implementation for caret functions
9860           - Moved hover variables into a struct, to make it a bit easier
9861             on the eyes and to debug
9862           - Removed XKeyboardState (moved to XplatUIX11.cs)
9863           - Moved Keyboard properties into the properties region
9864
9865         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
9866           call to get a graphics context for our control
9867
9868         * XplatUIOSX.cs: Added empty overrides for the new caret functions
9869
9870         * TreeView.cs: Fixed bug. No matter what color was set it would always
9871           return SystemColors.Window
9872
9873         * XplatUIWin32.cs: Implemented caret overrides
9874
9875 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
9876
9877         * ListBox.cs: fire events, implement missing methods and properties,
9878         sorting.
9879
9880 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
9881
9882         * MonthCalendar.cs: invalidation bug fixing
9883         * ThemeWin32Classic.cs: paint fixing
9884
9885 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
9886
9887         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
9888         prepare the CGContextRef there now.
9889
9890 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
9891
9892         * MonthCalendar.cs:
9893           - optimisationL only invalidate areas that have changed
9894         * ThemeWin32Classic.cs:
9895           - only paint parts that intersect with clip_area
9896
9897 2004-12-09  Peter Bartok  <pbartok@novell.com>
9898
9899         * Application.cs: Undid changes from r37004 which cause problems
9900         on X11
9901
9902 2004-12-09  Ravindra  <rkumar@novell.com>
9903
9904         * ToolBar.cs: Added support for displaying ContextMenu
9905         attached to a button on ToolBar.
9906         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
9907         property.
9908
9909 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
9910
9911         * Label.cs: autosize works in text change and removes unnecessary
9912         invalidate
9913
9914 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
9915
9916         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
9917         remove warnings
9918
9919 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
9920
9921         * XplatUIOSX.cs: Added mouse move/click/grab support
9922         Remove some debugging WriteLines not needed anymore.
9923         Add window resizing/positioning.
9924         Fix visibility on reparenting.
9925
9926 2004-12-08  Peter Bartok  <pbartok@novell.com>
9927
9928         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
9929
9930 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
9931
9932         * XplatUIOSX.cs: Initial checkin
9933         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
9934
9935 2004-12-03  Ravindra <rkumar@novell.com>
9936
9937         * ListView.cs: Added some keybindings and fixed scrolling.
9938         ScrollBars listen to ValueChanged event instead of Scroll
9939         Event. This would let us take care of all changes being
9940         done in the scrollbars' values programmatically or manually.
9941         * ListView.cs (CanMultiselect): Added a check for shift key.
9942         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
9943         * ListViewItem.cs (Clone): Fixed. We need to make a copy
9944         of ListViewSubItemCollection as well.
9945
9946 2004-12-06  Peter Bartok <pbartok@novell.com>
9947
9948         * Control.cs (Parent): Added check and exception to prevent
9949         circular parenting
9950
9951 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
9952
9953         * ListBox.cs: implemented clipping, selection single and multiple,
9954         bug fixing
9955
9956 2004-12-03  Ravindra <rkumar@novell.com>
9957
9958         * ListView.cs (ListView_KeyDown):
9959         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
9960         when CTRL key is pressed.
9961         * ListViewItem.cs (Selected): Fixed setting the property.
9962
9963 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
9964
9965         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
9966
9967         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
9968         MinimizeBox, ShowInTaskbar, TopMost properties.
9969
9970         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
9971         will be implemented).
9972
9973 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
9974
9975         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
9976
9977         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
9978         tests.
9979         
9980         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
9981         
9982         * TreeView.cs: BackColor is Colors.Window.
9983
9984 2004-12-01  Jackson Harper  <jackson@ximian.com>
9985
9986         * TreeView.cs: When resizing the tree if the user is making it
9987         smaller we don't get expose events, so we need to handle adding
9988         the horizontal scrollbar in the size changed handler as well as
9989         the expose handler.
9990
9991 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
9992
9993         * DrawItemState.cs: fixes wrong enum values
9994
9995 2004-12-01  Jackson Harper  <jackson@ximian.com>
9996
9997         * TreeView.cs: Resize the hbar as well as the vbar on resize.
9998
9999 2004-12-01  Jackson Harper  <jackson@ximian.com>
10000
10001         * NodeLabelEditEventArgs.cs:
10002         * NodeLabelEditEventHandler.cs:
10003         * OpenTreeNodeEnumerator.cs:
10004         * TreeNode.cs:
10005         * TreeNodeCollection.cs:
10006         * TreeView.cs:
10007         * TreeViewAction.cs:
10008         * TreeViewCancelEventArgs.cs:
10009         * TreeViewCancelEventHandler.cs:
10010         * TreeViewEventArgs.cs:
10011         * TreeViewEventHandler.cs: Initial implementation.
10012
10013 2004-12-01  Ravindra <rkumar@novell.com>
10014
10015         * ListView.cs (CalculateListView): Fixed scrolling related
10016         calculations. Also, removed some debug statements from other
10017         places.
10018         * ListViewItem.cs: Changed access to 'selected' instance variable
10019         from private to internal.
10020         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
10021
10022 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
10023
10024         * ThemeWin32Classic.cs: remove cache of brush and pens for
10025         specific controls and use the global system, fixes scrollbutton
10026         bugs (for small sizes, disabled, etc)
10027         
10028         * ScrollBar.cs: does not show the thumb for very small controls
10029         (as MS) and allow smaller buttons that the regular size
10030
10031 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
10032
10033         * UpDownBase.cs: Add abstract methods for the interface.
10034         Add new virtual methods (need to be hooked up to TextEntry when it
10035         exists).
10036         Add override methods for most features.
10037         Computes the size, forces the height of the text entry.
10038
10039         * NumericUpDown.cs: Put here the current testing code.
10040
10041         * Set eol-style property on all files that do not have mixed line
10042         endings, to minimize the future problems.  There are still a few
10043         files with mixed endings, and someone should choose whether they
10044         want to move it or not.
10045
10046 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
10047
10048         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
10049         System.Colors
10050         
10051 2004-11-30  Ravindra <rkumar@novell.com>
10052
10053         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
10054         drawing and replaced use of SystemColors by theme colors.
10055         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
10056         * ListView.cs (ListViewItemCollection.Add): Throw exception when
10057         same ListViewItem is being added more than once.
10058
10059 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
10060
10061         * MonthCalendar.cs:
10062           - ControlStyles love to make the control not flicker
10063           
10064 2004-11-30  Peter Bartok  <pbartok@novell.com>
10065
10066         * CharacterCasing.cs: Added
10067
10068 2004-11-29  Peter Bartok  <pbartok@novell.com>
10069
10070         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
10071           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
10072           I am removing these files as they conflict with already completed
10073           work. While it is fantastic to get contributions to MWF, I
10074           respectfully ask that everyone please coordinate their contributions
10075           through mono-winforms-list or #mono-winforms at this time. We're
10076           explicitly avoiding stubbing and don't want controls that don't have
10077           their basic functionality implemented in svn. Please also see
10078           http://www.mono-project.com/contributing/winforms.html
10079
10080
10081 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
10082
10083         * Application.cs (ModalRun): Don't hang after exit.
10084
10085         * Theme.cs: New TreeViewDefaultSize property.
10086
10087         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
10088         with less hardcoded SystemColors constant.
10089         Implemented TreeViewDefaultSize.
10090
10091         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
10092         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
10093
10094
10095 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
10096
10097         * MonthCalendar.cs:
10098           - Fix NextMonthDate and PrevMonthDate click moving calendar
10099
10100 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
10101
10102         * MonthCalendar.cs:
10103           - Fix usage of ScrollChange Property when scrolling months
10104
10105 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
10106
10107         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
10108          - Fixes menu destroying
10109          - Support adding and removing items on already created menus
10110
10111 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
10112
10113         * MonthCalendar.cs:
10114           - Re-worked all bolded dates handling to match win32
10115         * ThemeWin32Classic.cs:
10116           - Fixed rendering with bolded dates
10117
10118 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
10119
10120         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
10121         - Horizontal scroolbar
10122         - Multicolumn
10123         - Fixes
10124
10125
10126 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
10127
10128         * MonthCalendar.cs:
10129           - Fix Usage of MaxSelectionCount from SelectionRange
10130           - Fixed Shift + Cursor Selection
10131           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
10132           - Fixed normal cursor selection to be compat with win32
10133           - Fixed Shift + Mouse Click selection
10134
10135 2004-11-24  Peter Bartok <pbartok@novell.com>
10136
10137         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
10138         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
10139         * XplatUIX11.cs:
10140           - CreatedKeyBoardMsg now updates keystate with Alt key
10141           - Added workaround for timer crash to CheckTimers, Jackson will
10142             develop a proper fix and check in later
10143           - Implemented DispatchMessage
10144           - Removed calling the native window proc from GetMessage (call
10145             now moved to DispatchMessage)
10146
10147         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
10148           the keydata (Fixes bug #69831)
10149
10150         * XplatUIWin32.cs:
10151           - (DispatchMessage): Switched to return IntPtr
10152           - Added DllImport for SetFocus
10153
10154 2004-11-24  Ravindra <rkumar@novell.com>
10155
10156         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
10157         background drawing.
10158         * ListViewItem.cs: Fixed various properties, calculations
10159         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
10160         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
10161         and some internal properties. Fixed MouseDown handler and Paint
10162         method.
10163
10164 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
10165
10166         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
10167
10168 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
10169
10170         * ContainerControl.cs: correct accidental check in of local changes
10171
10172 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
10173
10174         * ThemeWin32Classic.cs:
10175                 - Fixed Drawing Last month in grid (sometimes not showing)
10176         * MonthCalendar.cs:
10177                 - Fixed title width calculation bug (makeing title small)
10178
10179 2004-11-23  Peter Bartok <pbartok@novell.com>
10180
10181         * XplatUIX11.cs:
10182           - Added generation of WM_MOUSEHOVER event
10183           - Added missing assignment of async_method atom
10184           - Fixed WM_ERASEBKGND; now only redraws the exposed area
10185
10186 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
10187
10188         * ThemeWin32Classic.cs:
10189                 - Fixed Drawing of today circle when showtodaycircle not set
10190                 - fixed drawing of first and last month in the grid (gay dates)
10191         * MonthCalendar.cs:
10192                 - Fixed Drawing of today circle
10193                 - Fixed drawing of grady dates
10194                 - Fixed HitTest for today link when ShowToday set to false
10195                 - Fixed DefaultSize to obey ShowToday
10196
10197 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
10198
10199         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
10200         * System.Windows.Forms/Theme.cs
10201         * MonthCalendar.cs: added for MonthCalendar
10202         * SelectionRange.cs: added for MonthCalendar
10203         * Day.cs: added for MonthCalendar: added for MonthCalendar
10204         * DateRangeEventArgs.cs: added for MonthCalendar
10205         * DateRangeEventHandler.cs: added for MonthCalendar
10206
10207 2004-11-22  Ravindra <rkumar@novell.com>
10208
10209         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
10210         property.
10211
10212 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
10213
10214         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
10215         event handler.
10216         
10217         * NumericUpDown.cs: Added new implementation.
10218         * UpDownBase.cs: Added new implementation.
10219
10220         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
10221         implementations.
10222         
10223         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
10224         implementations.
10225
10226         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
10227         methods.
10228
10229 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
10230
10231         * Timer.cs  (Dispose): Should call the base dispose when
10232         overriding.
10233
10234 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
10235
10236         * ScrollBar.cs: updates thumb position when max, min or increment
10237         is changed
10238
10239 2004-11-21  Ravindra <rkumar@novell.com>
10240
10241         * ListView.cs: Implemented item selection, activation and
10242         column header style. Fixed properties to do a redraw, if
10243         required. Added support for MouseHover, DoubleClick, KeyDown
10244         and KeyUp event handling and some minor fixes.
10245         * ListViewItem.cs: Fixed constructor.
10246         * ThemeWin32Classic.cs: Improved drawing for ListView.
10247
10248 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
10249
10250         * ThemeWin32Classic.cs: initial listbox drawing code
10251         * DrawMode.cs: new enumerator
10252         * ListControl.cs: stubbed class
10253         * ListBox.cs: initial implementation
10254         * Theme.cs: new methods definitions
10255         * SelectionMode.cs: new enumerator
10256
10257 2004-11-17  Peter Bartok  <pbartok@novell.com>
10258
10259         * XplatUIWin32.cs: Added double-click events to the class style
10260         * Control.cs (WndProc):
10261           - Added handling of click-count to MouseDown/ MouseUp events.
10262           - Added handling of middle and right mouse buttons
10263           - Removed old debug code
10264
10265 2004-11-17  Jackson Harper  <jackson@ximian.com>
10266
10267         * XplatUIX11.cs: Use the new Mono.Unix namespace.
10268
10269 2004-11-17  Ravindra <rkumar@novell.com>
10270
10271         * ListView.cs: Added event handling for MouseMove/Up/Down.
10272         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
10273         * ThemeWin32Classic.cs: We need to clear the graphics context and
10274         draw column header in a proper state.
10275
10276
10277 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
10278
10279         *  Menu.cs: fixes signature
10280
10281 2004-11-16  Peter Bartok  <pbartok@novell.com>
10282
10283         * XplatUIX11.cs (GetMessage): Implemented generation of
10284           double click mouse messages
10285
10286 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
10287
10288         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
10289         not by menu
10290
10291 2004-11-11  Peter Bartok  <pbartok@novell.com>
10292
10293         * HandleData.cs: Added Visible property
10294         * XplatUIX11.cs (IsVisible): Now uses Visible property from
10295           HandleData
10296         * XplatUIX11.cs: Removed old debug leftovers
10297         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
10298         * Control.cs (WndProc): Removed old debug leftovers,
10299           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
10300           needed WM_SIZE handling
10301
10302 2004-11-11  Jackson Harper  <jackson@ximian.com>
10303
10304         * OwnerDrawPropertyBag.cs:
10305         * TreeViewImageIndexConverter.cs: Initial implementation
10306
10307 2004-11-10  Jackson Harper  <jackson@ximian.com>
10308
10309         * ThemeWin32Classic.cs:
10310         * TabControl.cs: instead of moving tabs by the slider pos just
10311         start drawing at the tab that is offset by the slider. This way
10312         scrolling always moves by exactly one tab.
10313
10314 2004-11-10  Jackson Harper  <jackson@ximian.com>
10315
10316         * TabControl.cs: You can only scroll left when the slider has
10317         already ben moved right.
10318         
10319 2004-11-10  Jackson Harper  <jackson@ximian.com>
10320
10321         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
10322         the clip area.
10323         
10324 2004-11-10  Jackson Harper  <jackson@ximian.com>
10325
10326         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
10327         clip area.
10328         
10329 2004-11-09  Jackson Harper  <jackson@ximian.com>
10330
10331         * TabControl.cs (CalcXPos): New helper method so we can determine
10332         the proper place to start drawing vertical tabs.
10333         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
10334         
10335 2004-11-09  Jackson Harper  <jackson@ximian.com>
10336
10337         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
10338         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
10339         and Bottom, left and right are illegal values for this and
10340         multiline is enabled when the alignment is set to left or right.
10341         (DrawTab): Each alignment block should draw the text itself now
10342         because Left requires special love. Also add rendering for Left
10343         aligned tabs.
10344         
10345 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
10346
10347         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
10348         does not destroy the windows, removes debugging messages
10349
10350 2004-11-09  jba  <jba-mono@optusnet.com.au>
10351
10352         * ThemeWin32Classic.cs
10353         (DrawButtonBase): Fix verticle text rect clipping in windows
10354         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
10355         rendering and incorrect text rect clipping
10356         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
10357         rendering and incorrect text rect clipping
10358         
10359 2004-11-08  Jackson Harper  <jackson@ximian.com>
10360
10361         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
10362         bottom when they are bottom aligned so the bottoms of the tabs get
10363         displayed.
10364         * TabControl.cs (DropRow): Move rows up instead of down when the
10365         tab control is bottom aligned.
10366
10367 2004-11-08 13:59  pbartok
10368
10369         * XplatUIX11.cs:
10370           - Added handling for various window styles
10371           - Added handling for popup windows
10372           - Added SetTopmost handling
10373
10374 2004-11-08 13:55  pbartok
10375
10376         * XplatUIWin32.cs:
10377           - Added argument to SetTopmost method
10378           - Fixed broken ClientToScreen function
10379
10380 2004-11-08 13:53  pbartok
10381
10382         * XplatUIStructs.cs:
10383           - Added missing WS_EX styles
10384
10385 2004-11-08 13:53  pbartok
10386
10387         * XplatUI.cs, XplatUIDriver.cs:
10388           - Added argument to SetTopmost
10389
10390 2004-11-08 13:52  pbartok
10391
10392         * X11Structs.cs:
10393           - Added XSetWindowAttributes structure
10394           - Improved XWindowAttributes structure
10395           - Added SetWindowValuemask enum
10396           - Added window creation arguments enum
10397           - Added gravity enum
10398           - Added Motif hints structure
10399           - Added various Motif flags and enums
10400           - Added PropertyMode enum for property functions
10401
10402 2004-11-08 13:50  pbartok
10403
10404         * Form.cs:
10405           - Fixed arguments for updated SetTopmost method
10406
10407 2004-11-08 13:49  pbartok
10408
10409         * ToolTip.cs:
10410           - Fixed arguments for updated SetTopmost function
10411           - Fixed usage of PointToClient
10412
10413 2004-11-08 13:44  pbartok
10414
10415         * MenuAPI.cs:
10416           - Added Clipping of children and siblings
10417
10418 2004-11-08 13:41  pbartok
10419
10420         * MainMenu.cs:
10421           - Removed SetMenuBarWindow call. We do this in Form.cs
10422
10423 2004-11-08 13:40  jackson
10424
10425         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
10426           scrolling jimmi in the correct location with bottom aligned tabs
10427
10428 2004-11-08 13:36  pbartok
10429
10430         * ContainerControl.cs:
10431           - Implemented BindingContext
10432           - Implemented ParentForm
10433
10434 2004-11-08 12:46  jackson
10435
10436         * TabControl.cs: Put bottom rendered tabs in the right location
10437
10438 2004-11-08 07:15  jordi
10439
10440         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
10441           removes dead code
10442
10443 2004-11-05 17:30  jackson
10444
10445         * TabControl.cs: When selected tabs are expanded make sure they
10446           don't go beyond the edges of the tab control
10447
10448 2004-11-05 14:57  jackson
10449
10450         * TabControl.cs: Reset show_slider so if the control is resized to
10451           a size where it is no longer needed it's not displayed anymore
10452
10453 2004-11-05 13:16  jackson
10454
10455         * TabControl.cs: Make tab pages non visible when added to the
10456           control
10457
10458 2004-11-05 12:42  jackson
10459
10460         * TabControl.cs: Implement SizeMode.FillToRight
10461
10462 2004-11-05 12:16  jackson
10463
10464         * Control.cs: Do not call CreateHandle if the handle is already
10465           created
10466
10467 2004-11-05 11:46  jackson
10468
10469         * TabControl.cs: Remove superflous call to CalcTabRows
10470
10471 2004-11-05 09:07  jackson
10472
10473         * XplatUIX11.cs: Update for Mono.Posix changes
10474
10475 2004-11-05 07:00  ravindra
10476
10477         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
10478           scrolling.
10479
10480 2004-11-04 22:47  jba
10481
10482         * ThemeWin32Classic.cs:
10483           - Fix Button rendering for FlatStyle = Flat or Popup
10484           - Fix RadioButton and CheckBox rendering when Appearance = Button
10485             (normal and flatstyle).
10486           - Correct outer rectangle color when drawing focus rectangle
10487           - Adjust button bounds to be 1 px smaller when focused
10488           - Make button not draw sunken 3d border when pushed (windows compat)
10489           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
10490           - Offset the text in RadioButton and Checkbox when being rendered as
10491           a button.
10492           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
10493           radiobuttons
10494           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
10495           - Fixed disabled text rendering for normally rendered radiobuttons
10496
10497 2004-11-04 10:26  jackson
10498
10499         * TabControl.cs: Recalculate tab rows when resizing
10500
10501 2004-11-04 07:47  jordi
10502
10503         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
10504           collection completion, drawing issues, missing features
10505
10506 2004-11-04 05:03  ravindra
10507
10508         * ScrollBar.cs:
10509                 - We need to recalculate the Thumb area when
10510                 LargeChange/maximum/minimum values are changed.
10511           - We set the 'pos' in UpdatePos() method to minimum, if it's less
10512                 than minimum. This is required to handle the case if large_change is
10513                 more than max, and use LargeChange property instead of large_change
10514                 variable.
10515           - We return max+1 when large_change is more than max, like MS does.
10516
10517 2004-11-04 04:29  ravindra
10518
10519         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
10520                 - Changed default value signatures (prefixed all with ListView).
10521                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
10522                 ListView.
10523           - Fixed calculations for ListViewItem and implemented Clone()
10524           method.
10525
10526 2004-11-04 04:26  ravindra
10527
10528         * Theme.cs, ThemeWin32Classic.cs:
10529                 - Changed default ListView values signatures (prefixed all with
10530                 ListView).
10531           - Fixed default size values for VScrollBar and HScrollBar.
10532                 - Fixed DrawListViewItem method.
10533
10534 2004-11-04 04:05  ravindra
10535
10536         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
10537
10538 2004-11-04 04:04  ravindra
10539
10540         * ImageList.cs: Implemented the missing overload for Draw method.
10541
10542 2004-11-03 19:29  jackson
10543
10544         * TabControl.cs: Handle dropping rows on selection properly
10545
10546 2004-11-03 11:59  jackson
10547
10548         * TabControl.cs: remove debug code
10549
10550 2004-11-03 11:52  jackson
10551
10552         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
10553           the scrolly widgerywoo
10554
10555 2004-11-02 13:52  jackson
10556
10557         * TabControl.cs: Resize the tab pages and tabs when the tab control
10558           is resized
10559
10560 2004-11-02 13:40  jackson
10561
10562         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
10563           selected tab to the bottom
10564
10565 2004-11-02 13:39  jackson
10566
10567         * TabPage.cs: Store the tab pages row
10568
10569 2004-11-02 12:33  jordi
10570
10571         * MenuItem.cs: fixes handle creation
10572
10573 2004-11-02 11:42  jackson
10574
10575         * TabControl.cs: signature fix
10576
10577 2004-11-02 08:56  jackson
10578
10579         * TabControl.cs: Calculate whether the tab is on an edge properly.
10580           Remove top secret debugging code
10581
10582 2004-11-01 19:57  jackson
10583
10584         * TabControl.cs: Add click handling, and proper sizing
10585
10586 2004-11-01 19:47  jackson
10587
10588         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
10589           tab controls
10590
10591 2004-11-01 19:39  jackson
10592
10593         * TabPage.cs: add internal property to store the bounds of a tab
10594           page
10595
10596 2004-10-30 04:23  ravindra
10597
10598         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
10599           values.
10600
10601 2004-10-30 04:21  ravindra
10602
10603         * ListView.cs, ListViewItem.cs: Added support for scrolling and
10604           fixed calculations.
10605
10606 2004-10-30 03:06  pbartok
10607
10608         * XplatUIX11.cs:
10609           - Removed extension of DllImported libs
10610
10611 2004-10-29 09:55  jordi
10612
10613         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
10614           navigation, itemcollection completion, menu fixes
10615
10616 2004-10-27 22:58  pbartok
10617
10618         * XplatUIX11.cs:
10619           - Now throws a nice error message when no X display could be opened
10620
10621 2004-10-26 13:51  jordi
10622
10623         * ListView.cs: removes warning
10624
10625 2004-10-26 03:55  ravindra
10626
10627         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
10628           ThemeWin32Classic.cs: Some formatting for my last checkins.
10629
10630 2004-10-26 03:36  ravindra
10631
10632         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
10633           control and default values.
10634
10635 2004-10-26 03:35  ravindra
10636
10637         * Theme.cs: Added some default values for ListView control.
10638
10639 2004-10-26 03:33  ravindra
10640
10641         * ToolBar.cs: ToolBar should use the user specified button size, if
10642           there is any. Added a size_specified flag for the same.
10643
10644 2004-10-26 03:33  ravindra
10645
10646         * ColumnHeader.cs: Added some internal members and calculations for
10647           ColumnHeader.
10648
10649 2004-10-26 03:32  ravindra
10650
10651         * ListViewItem.cs: Calculations for ListViewItem.
10652
10653 2004-10-26 03:31  ravindra
10654
10655         * ListView.cs: Added some internal members and calculations for
10656           ListView.
10657
10658 2004-10-22 13:31  jordi
10659
10660         * MenuAPI.cs: speedup menus drawing
10661
10662 2004-10-22 13:16  jackson
10663
10664         * XplatUIX11.cs: Make sure to update exposed regions when adding an
10665           expose event
10666
10667 2004-10-22 11:49  jackson
10668
10669         * Control.cs: oops
10670
10671 2004-10-22 11:41  jackson
10672
10673         * Control.cs: Check to see if the window should have its background
10674           repainted by X when drawing.
10675
10676 2004-10-22 11:31  jackson
10677
10678         * XplatUIX11.cs: When invalidating areas only use XClearArea if
10679           clear is true, this way we do not get flicker from X repainting the
10680           background
10681
10682 2004-10-22 11:28  jackson
10683
10684         * XEventQueue.cs: Queue properly
10685
10686 2004-10-21 09:38  jackson
10687
10688         * XEventQueue.cs: Fix access modifier
10689
10690 2004-10-21 09:36  jackson
10691
10692         * XEventQueue.cs: Don't loose messages
10693
10694 2004-10-21 09:22  jackson
10695
10696         * XEventQueue.cs: Don't loose messages
10697
10698 2004-10-20 04:15  jordi
10699
10700         * BootMode.cs: enum need it by SystemInfo
10701
10702 2004-10-19 21:58  pbartok
10703
10704         * XplatUIWin32.cs:
10705           - Small sanity check
10706
10707 2004-10-19 21:56  pbartok
10708
10709         * Form.cs:
10710           - Added private FormParentWindow class which acts as the container
10711             for our form and as the non-client area where menus are drawn
10712           - Added/Moved required tie-ins to Jordi's menus
10713           - Fixed/Implemented the FormStartPosition functionality
10714
10715 2004-10-19 21:52  pbartok
10716
10717         * Control.cs:
10718           - Removed unneeded locals
10719           - Added code to all size and location properties to understand and
10720             deal with the parent container of Form
10721
10722 2004-10-19 21:33  pbartok
10723
10724         * Application.cs:
10725           - Fixed to deal with new Form subclasses for menus
10726
10727 2004-10-19 17:48  jackson
10728
10729         * XEventQueue.cs: commit correct version of file
10730
10731 2004-10-19 16:50  jackson
10732
10733         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
10734
10735 2004-10-19 16:15  jordi
10736
10737         * MenuAPI.cs: MenuBarCalcSize returns the height
10738
10739 2004-10-19 08:31  pbartok
10740
10741         * Control.cs:
10742           - Added missing call to PreProcessMessage before calling OnXXXKey
10743           methods
10744
10745 2004-10-19 00:04  ravindra
10746
10747         * ToolTip.cs: Fixed constructor.
10748
10749 2004-10-18 09:31  jordi
10750
10751         * MenuAPI.cs: menuitems in menubars do not have shortcuts
10752
10753 2004-10-18 09:26  jordi
10754
10755         * MenuItem.cs: fixes MenuItem class signature
10756
10757 2004-10-18 08:56  jordi
10758
10759         * MenuAPI.cs: prevents windows from showing in the taskbar
10760
10761 2004-10-18 00:28  ravindra
10762
10763         * ToolTip.cs: Suppressed a warning message.
10764
10765 2004-10-18 00:27  ravindra
10766
10767         * Control.cs: Default value of visible property must be true.
10768
10769 2004-10-17 23:19  pbartok
10770
10771         * ToolTip.cs:
10772           - Complete implementation
10773
10774 2004-10-17 23:19  pbartok
10775
10776         * XplatUIX11.cs:
10777           - Added EnableWindow method
10778           - Added SetModal stub
10779           - Added generation of WM_ACTIVATE message (still needs testing)
10780           - Added SetTopMost stub
10781           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
10782
10783 2004-10-17 23:17  pbartok
10784
10785         * XplatUIWin32.cs:
10786           - Removed VirtualKeys to XplatUIStructs
10787           - Implemented SetTopMost method
10788           - Implemented EnableWindow method
10789           - Bugfix in ScreenToClient()
10790           - Bugfixes in ClientToScreen()
10791
10792 2004-10-17 22:51  pbartok
10793
10794         * XplatUIStructs.cs:
10795           - Added WS_EX styles to WindowStyles enumeration
10796
10797 2004-10-17 22:50  pbartok
10798
10799         * XplatUI.cs, XplatUIDriver.cs:
10800           - Added method for enabling/disabling windows
10801           - Added method for setting window modality
10802           - Added method for setting topmost window
10803
10804 2004-10-17 22:49  pbartok
10805
10806         * ThemeWin32Classic.cs:
10807           - Added ToolTip drawing code
10808
10809 2004-10-17 22:49  pbartok
10810
10811         * Theme.cs:
10812           - Added ToolTip abstracts
10813
10814 2004-10-17 22:47  pbartok
10815
10816         * Form.cs:
10817           - Fixed Form.ControlCollection to handle owner relations
10818           - Added Owner/OwnedForms handling
10819           - Implemented Z-Ordering for owned forms
10820           - Removed unneeded private overload of ShowDialog
10821           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
10822             so I hope)
10823           - Fixed Close(), had wrong default
10824           - Added firing of OnLoad event
10825           - Added some commented out debug code for Ownership handling
10826
10827 2004-10-17 22:16  pbartok
10828
10829         * Control.cs:
10830           - Fixed/implemented flat list of controls
10831
10832 2004-10-17 22:14  pbartok
10833
10834         * Application.cs:
10835           - Added code to simulate modal dialogs on Win32
10836
10837 2004-10-17 16:11  jordi
10838
10839         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
10840           mouse event
10841
10842 2004-10-17 13:39  jordi
10843
10844         * MenuAPI.cs: menu drawing fixes
10845
10846 2004-10-15 09:10  ravindra
10847
10848         * StructFormat.cs: General Enum.
10849
10850 2004-10-15 09:09  ravindra
10851
10852         * SizeGripStyle.cs: Enum for Form.
10853
10854 2004-10-15 09:08  ravindra
10855
10856         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
10857           in Theme for ListView.
10858
10859 2004-10-15 09:06  ravindra
10860
10861         * ColumnHeader.cs: Flushing some formatting changes.
10862
10863 2004-10-15 09:05  ravindra
10864
10865         * ListViewItem.cs: Implemented GetBounds method and fixed coding
10866           style.
10867
10868 2004-10-15 09:03  ravindra
10869
10870         * ListView.cs: Implemented Paint method and fixed coding style.
10871
10872 2004-10-15 07:34  jordi
10873
10874         * MenuAPI.cs: fix for X11
10875
10876 2004-10-15 07:32  ravindra
10877
10878         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
10879                 - Renamed Paint() method to Draw() for clarity. Also, moved
10880                 DrawImage() to OnPaint().
10881
10882 2004-10-15 07:25  ravindra
10883
10884         * CheckBox.cs, RadioButton.cs:
10885                 - Removed Redraw (), we get it from ButtonBase.
10886                 - Implemented Paint (), to do class specific painting.
10887
10888 2004-10-15 07:16  ravindra
10889
10890         * ButtonBase.cs:
10891                 - Redraw () is not virtual now.
10892                 - Added an internal virtual method Paint (), so that
10893                 derived classes can do their painting on their own.
10894                 - Modified OnPaint () to call Paint ().
10895
10896 2004-10-15 06:43  jordi
10897
10898         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
10899           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
10900
10901 2004-10-15 00:30  ravindra
10902
10903         * MessageBox.cs:
10904                 - MessageBox on windows does not have min/max buttons.
10905                 This change in CreateParams fixes this on Windows. We
10906                 still need to implement this windowstyle behavior in
10907                 our X11 driver.
10908
10909 2004-10-14 05:14  ravindra
10910
10911         * ToolBar.cs:
10912                 - Changed Redraw () to do a Refresh () always.
10913                 - Fixed the MouseMove event handling when mouse is pressed,
10914                 ie drag event handling.
10915                 - Replaced the usage of ToolBarButton.Pressed property to
10916                 ToolBarButton.pressed internal variable.
10917
10918 2004-10-14 05:10  ravindra
10919
10920         * ToolBarButton.cs:
10921                 - Added an internal member 'inside' to handle mouse move
10922                 with mouse pressed ie mouse drag event.
10923                 - Changed 'Pressed' property to return true only when
10924                 'inside' and 'pressed' are both true.
10925                 - Some coding style love.
10926
10927 2004-10-14 00:17  ravindra
10928
10929         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
10930           public method.
10931
10932 2004-10-14 00:15  ravindra
10933
10934         * ButtonBase.cs: Redraw () related improvements.
10935
10936 2004-10-14 00:14  ravindra
10937
10938         * MessageBox.cs: Moved InitFormSize () out of Paint method and
10939           removed unnecessary calls to Button.Show () method.
10940
10941 2004-10-13 17:50  pbartok
10942
10943         * XplatUIX11.cs:
10944           - Formatting fix
10945           - Removed destroying of window until we solve the problem of X
10946             destroying the window before us on shutdown
10947
10948 2004-10-13 16:32  pbartok
10949
10950         * ButtonBase.cs:
10951           - Now Redraws on MouseUp for FlatStyle Flat and Popup
10952
10953 2004-10-13 14:18  pbartok
10954
10955         * XplatUIX11.cs:
10956           - Added code to destroy the X window
10957
10958 2004-10-13 14:18  pbartok
10959
10960         * XplatUIWin32.cs:
10961           - Added code to destroy a window
10962
10963 2004-10-13 14:12  pbartok
10964
10965         * ButtonBase.cs:
10966           - Added the Redraw on Resize that got dropped in the last rev
10967
10968 2004-10-13 09:06  pbartok
10969
10970         * ThemeWin32Classic.cs:
10971           - Path from John BouAntoun:
10972             * Fix check rendering (centre correctly for normal style, offset
10973               correctly for FlatStyle).
10974             * Fix border color usage (use backcolor) for FlatStyle.Popup
10975             * Use checkbox.Capture instead of checkbox.is_pressed when
10976               rendering flatstyle states.
10977
10978 2004-10-12 21:48  pbartok
10979
10980         * ThemeWin32Classic.cs:
10981           - Removed all occurences of SystemColors and replaced them with the
10982             matching theme color
10983
10984 2004-10-12 21:41  pbartok
10985
10986         * ThemeWin32Classic.cs:
10987           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
10988             him using the function for flatstyle drawing
10989           - Changed functions to use the new version of CPDrawBorder3D
10990
10991 2004-10-12 21:15  pbartok
10992
10993         * ControlPaint.cs:
10994           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
10995             match MS documentation. They need to return defined colors if the
10996             passed color matches the configured control color. Thanks to John
10997             BouAntoun for pointing this out.
10998
10999 2004-10-12 20:57  pbartok
11000
11001         * Control.cs:
11002           - Fix from John BouAntoun: Raise ForeColorChanged event when text
11003             color is changed
11004
11005 2004-10-12 20:46  pbartok
11006
11007         * CheckBox.cs:
11008           - Fix from John BouAntoun: Now properly sets the Appearance property
11009
11010 2004-10-12 20:45  pbartok
11011
11012         * ThemeWin32Classic.cs:
11013           - Fixes from John BouAntoun: now handles forecolors and backcolors
11014             for flatstyle rendered controls much better; It also fixes normal
11015             checkbox rendering when pushed or disabled.
11016
11017 2004-10-08 02:50  jordi
11018
11019         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
11020           work
11021
11022 2004-10-07 08:56  jordi
11023
11024         * ThemeWin32Classic.cs: Removes deletion of cached brushes
11025
11026 2004-10-06 03:59  jordi
11027
11028         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
11029           XplatUIWin32.cs: removes warnings from compilation
11030
11031 2004-10-05 12:23  jackson
11032
11033         * RadioButton.cs: Fix ctor
11034
11035 2004-10-05 11:10  pbartok
11036
11037         * MessageBox.cs:
11038           - Partial implementation by Benjamin Dasnois
11039
11040 2004-10-05 10:15  jackson
11041
11042         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
11043           by John BouAntoun
11044
11045 2004-10-05 03:07  ravindra
11046
11047         * ToolBar.cs:
11048                 - Removed a private method, Draw ().
11049                 - Fixed the ButtonDropDown event handling.
11050                 - Fixed MouseMove event handling.
11051
11052 2004-10-05 03:04  ravindra
11053
11054         * ThemeWin32Classic.cs:
11055                 - Added DrawListView method and ListViewDefaultSize property.
11056                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
11057                 - Changed DOS style CRLF to Unix format (dos2unix).
11058
11059 2004-10-05 03:03  ravindra
11060
11061         * Theme.cs:
11062                 - Added DrawListView method and ListViewDefaultSize property.
11063
11064 2004-10-05 02:42  ravindra
11065
11066         * ToolBarButton.cs: Added an internal member dd_pressed to handle
11067           clicks on DropDown arrow.
11068
11069 2004-10-04 22:56  jackson
11070
11071         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
11072           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
11073           Control handle the buffers, derived classes should not have to
11074           CreateBuffers themselves.
11075
11076 2004-10-04 21:20  jackson
11077
11078         * StatusBar.cs: The control handles resizing the buffers now.
11079
11080 2004-10-04 21:18  jackson
11081
11082         * Control.cs: When resizing the buffers should be invalidated. This
11083           should be handled in Control not in derived classes.
11084
11085 2004-10-04 14:45  jackson
11086
11087         * TabPage.cs: oops
11088
11089 2004-10-04 02:14  pbartok
11090
11091         * LeftRightAlignment.cs:
11092           - Initial check-in
11093
11094 2004-10-04 01:09  jordi
11095
11096         * ThemeWin32Classic.cs: fixes right button position causing right
11097           button not showing on horizontal scrollbars
11098
11099 2004-10-02 13:12  pbartok
11100
11101         * XplatUIX11.cs:
11102           - Simplified the Invalidate method by using an X call instead of
11103             generating the expose ourselves
11104           - Added an expose when the window background is changed
11105           - Implemented ClientToScreen method
11106
11107 2004-10-02 13:08  pbartok
11108
11109         * XplatUIWin32.cs:
11110           - Added Win32EnableWindow method (test for implementing modal
11111           dialogs)
11112           - Added ClientToScreen method and imports
11113
11114 2004-10-02 13:07  pbartok
11115
11116         * XplatUI.cs, XplatUIDriver.cs:
11117           - Added ClientToScreen coordinate translation method
11118
11119 2004-10-02 13:06  pbartok
11120
11121         * KeyPressEventArgs.cs:
11122           - Fixed access level for constructor
11123
11124 2004-10-02 13:06  pbartok
11125
11126         * NativeWindow.cs:
11127           - Changed access level for the window_collection hash table
11128
11129 2004-10-02 13:05  pbartok
11130
11131         * Form.cs:
11132           - Added KeyPreview property
11133           - Added Menu property (still incomplete, pending Jordi's menu work)
11134           - Implemented ProcessCmdKey
11135           - Implemented ProcessDialogKey
11136           - Implemented ProcessKeyPreview
11137
11138 2004-10-02 13:02  pbartok
11139
11140         * Control.cs:
11141           - Added private method to get the Control object from the window
11142           handle
11143           - Implemented ContextMenu property
11144           - Implemented PointToScreen
11145           - Implemented PreProcessMessage
11146           - Implemented IsInputChar
11147           - Implemented IsInputKey
11148           - Implemented ProcessCmdKey
11149           - Completed ProcessKeyEventArgs
11150           - Fixed message loop to call the proper chain of functions on key
11151           events
11152           - Implemented ProcessDialogChar
11153           - Implemented ProcessDialogKey
11154           - Implemented ProcessKeyMessage
11155           - Implemented ProcessKeyPreview
11156           - Added RaiseDragEvent stub (MS internal method)
11157           - Added RaiseKeyEvent stub (MS internal method)
11158           - Added RaiseMouseEvent stub (MS Internal method)
11159           - Added RaisePaintEvent stub (MS Internal method)
11160           - Added ResetMouseEventArgs stub (MS Internal method)
11161           - Implemented RtlTranslateAlignment
11162           - Implemented RtlTranslateContent
11163           - Implemented RtlTranslateHorizontal
11164           - Implemented RtlTranslateLeftRight
11165           - Added generation of KeyPress event
11166
11167 2004-10-02 05:57  ravindra
11168
11169         * ListViewItem.cs: Added attributes.
11170
11171 2004-10-02 05:32  ravindra
11172
11173         * ListView.cs: Added attributes.
11174
11175 2004-10-01 11:53  jackson
11176
11177         * Form.cs: Implement the Close method so work on MessageBox can
11178           continue.
11179
11180 2004-09-30 14:06  pbartok
11181
11182         * XplatUIX11.cs:
11183           - Bug fixes
11184
11185 2004-09-30 11:34  jackson
11186
11187         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
11188
11189 2004-09-30 07:26  ravindra
11190
11191         * ListViewItemConverter.cs: Converter for ListViewItem.
11192
11193 2004-09-30 07:26  ravindra
11194
11195         * SortOrder.cs: Enum for ListView control.
11196
11197 2004-09-30 07:25  ravindra
11198
11199         * ColumnHeader.cs: Supporting class for ListView control.
11200
11201 2004-09-30 07:24  ravindra
11202
11203         * ListView.cs, ListViewItem.cs: Initial implementation.
11204
11205 2004-09-30 07:20  ravindra
11206
11207         * ItemActivation.cs: Enum for ListView Control.
11208
11209 2004-09-29 20:29  pbartok
11210
11211         * XplatUIX11.cs:
11212           - Added lookup of pixel value for background color; tries to get a
11213             color 'close' to the requested color, it avoids having to create a
11214             colormap.  Depending on the display this could mean the used color
11215             is slightly off the desired color. Might have to change it to a more
11216             resource intensive colormap approach, but it will work as a
11217           workaround to avoid red screens.
11218
11219 2004-09-29 14:27  jackson
11220
11221         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
11222
11223 2004-09-28 12:44  pbartok
11224
11225         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
11226           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
11227           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
11228           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
11229           TrackBar.cs, VScrollBar.cs:
11230           - Streamlined Theme interfaces:
11231             * Each DrawXXX method for a control now is passed the object for
11232               the control to be drawn in order to allow accessing any state the
11233               theme might require
11234
11235             * ControlPaint methods for the theme now have a CP prefix to avoid
11236               name clashes with the Draw methods for controls
11237
11238             * Every control now retrieves it's DefaultSize from the current
11239             theme
11240
11241 2004-09-28 12:17  jackson
11242
11243         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
11244           drawing
11245
11246 2004-09-24 14:57  jackson
11247
11248         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
11249           Gives us a nice little performance boost.
11250
11251 2004-09-24 12:02  jackson
11252
11253         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
11254           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
11255           Control and supporting classes. Initial checkin
11256
11257 2004-09-23 13:08  jackson
11258
11259         * Form.cs: Temp build fixage
11260
11261 2004-09-23 01:39  ravindra
11262
11263         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
11264           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
11265           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
11266           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
11267           EventHandlers needed by ListView Control.
11268
11269 2004-09-22 14:12  pbartok
11270
11271         * ScrollableControl.cs:
11272           - Implemented DockPadding property
11273           - Implemented AutoScroll property
11274           - Implemented AutoScrollMargin property
11275           - Implemented AutoScrollMinSize property
11276           - Implemented AutoScrollPosition property
11277           - Implemented DisplayRectangle property (still incomplete)
11278           - Implemented CreateParams property
11279           - Implemented HScroll property
11280           - Implemented VScroll property
11281           - Implemented OnVisibleChanged property
11282
11283 2004-09-22 14:09  pbartok
11284
11285         * Form.cs:
11286           - Added Form.ControllCollection class
11287           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
11288             RemoveOwnedForm (still incomplete, missing on-top and common
11289             minimize/maximize behaviour)
11290           - Added StartPosition property (still incomplete, does not use when
11291             creating the form)
11292           - Added ShowDialog() methods (still incomplete, missing forcing the
11293             dialog modal)
11294
11295 2004-09-22 14:05  pbartok
11296
11297         * Application.cs:
11298           - Added message loop for modal dialogs
11299
11300 2004-09-22 14:02  pbartok
11301
11302         * GroupBox.cs:
11303           - Fixed wrong types for events
11304
11305 2004-09-22 14:00  pbartok
11306
11307         * Shortcut.cs, FormWindowState.cs:
11308           - Fixed wrong values
11309
11310 2004-09-22 12:01  jackson
11311
11312         * Control.cs: Text is never null
11313
11314 2004-09-20 22:14  pbartok
11315
11316         * XplatUIWin32.cs:
11317           - Fixed accessibility level for Idle handler
11318
11319 2004-09-20 18:54  jackson
11320
11321         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
11322           XplatUIX11.cs: New message loop that uses poll so we don't get a
11323           busy loop
11324
11325 2004-09-17 10:43  pbartok
11326
11327         * ScrollBar.cs:
11328           - Fixed behaviour of arrow buttons. Now properly behaves like
11329             Buttons (and like Microsoft's scrollbar arrow buttons)
11330
11331 2004-09-17 10:14  pbartok
11332
11333         * ScrollBar.cs:
11334           - Added missing release of keyboard/mouse capture
11335
11336 2004-09-17 06:18  jordi
11337
11338         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
11339           Theme.cs: Very early menu support
11340
11341 2004-09-16 17:45  pbartok
11342
11343         * XplatUIWin32.cs:
11344           - Fixed sending a window to the front
11345           - Added overload for SetWindowPos to avoid casting
11346
11347 2004-09-16 17:44  pbartok
11348
11349         * Control.cs:
11350           - Added SendToBack and BringToFront methods
11351
11352 2004-09-16 07:00  ravindra
11353
11354         * Copyright: Added Novell URL.
11355
11356 2004-09-16 07:00  ravindra
11357
11358         * ToolBar.cs: Invalidate should be done before redrawing.
11359
11360 2004-09-15 21:19  ravindra
11361
11362         * ColumnHeaderStyle.cs: Enum for ListView Control.
11363
11364 2004-09-15 21:18  ravindra
11365
11366         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
11367           ListView Control.
11368
11369 2004-09-13 18:26  jackson
11370
11371         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
11372           properly
11373
11374 2004-09-13 18:13  jackson
11375
11376         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
11377           a second thread and post messages into the main threads message
11378           queue. This makes timing much more consistent. Both win2K and XP
11379           have a minimum timer value of 15 milliseconds, so we now do this
11380           too.
11381
11382 2004-09-13 15:18  pbartok
11383
11384         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
11385           XplatUIX11.cs:
11386           - Added Z-Ordering methods
11387
11388 2004-09-13 10:56  pbartok
11389
11390         * Form.cs:
11391           - Fixed #region names
11392           - Moved properties and methods into their proper #regions
11393
11394 2004-09-13 10:51  pbartok
11395
11396         * Form.cs:
11397           - Added Accept and CancelButton properties
11398           - Added ProcessDialogKey() method
11399
11400 2004-09-13 08:18  pbartok
11401
11402         * IWindowTarget.cs:
11403           - Initial check-in
11404
11405 2004-09-10 21:50  pbartok
11406
11407         * Control.cs:
11408           - Added DoDragDrop() [incomplete]
11409           - Properly implemented 'Visible' handling
11410           - Added SetVisibleCore()
11411           - Implemented FindChildAtPoint()
11412           - Implemented GetContainerControl()
11413           - Implemented Hide()
11414
11415 2004-09-10 19:28  pbartok
11416
11417         * Control.cs:
11418           - Moved methods into their appropriate #regions
11419           - Reordered methods within regions alphabetically
11420
11421 2004-09-10 18:57  pbartok
11422
11423         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
11424           - Added method to retrieve text from window
11425
11426 2004-09-10 18:56  pbartok
11427
11428         * Control.cs:
11429           - Moved some internal functions into the internal region
11430           - Implemented FontHeight
11431           - Implemented RenderRightToLeft
11432           - Implemented ResizeRedraw
11433           - Implemented ShowFocusCues
11434           - Implemented ShowKeyboardCues
11435           - Implemented FromChildHandle
11436           - Implemented FromHandle
11437           - Implemented IsMnemonic
11438           - Implemented ReflectMessage
11439           - All public and protected Static Methods are now complete
11440
11441 2004-09-10 16:54  pbartok
11442
11443         * Control.cs:
11444           - Implemented remaining missing public instance properties
11445           - Alphabetized some out of order properties
11446
11447 2004-09-10 05:51  ravindra
11448
11449         * PictureBox.cs: Added a check for null image.
11450
11451 2004-09-10 00:59  jordi
11452
11453         * GroupBox.cs: remove cvs tag
11454
11455 2004-09-09 05:25  ravindra
11456
11457         * ToolBar.cs: Make redraw accessible from ToolBarButton.
11458
11459 2004-09-09 05:23  ravindra
11460
11461         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
11462           parent redraw.
11463
11464 2004-09-09 02:28  pbartok
11465
11466         * ThemeWin32Classic.cs:
11467           - Improve disabled string look
11468
11469 2004-09-09 01:15  jordi
11470
11471         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
11472           args and handler
11473
11474 2004-09-08 23:56  ravindra
11475
11476         * ItemBoundsPortion.cs: It's enum, not a class!
11477
11478 2004-09-08 23:47  ravindra
11479
11480         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
11481           Enums for Form.
11482
11483 2004-09-08 21:13  ravindra
11484
11485         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
11486           ListView control.
11487
11488 2004-09-08 21:03  ravindra
11489
11490         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
11491           avoid crash.
11492
11493 2004-09-08 21:01  ravindra
11494
11495         * ScrollableControl.cs: Removed unreachable code.
11496
11497 2004-09-08 06:45  jordi
11498
11499         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
11500
11501 2004-09-08 01:00  jackson
11502
11503         * XplatUIX11.cs: Only run the timers when updating the message
11504           queue. This effectively gives X messages a higher priority then
11505           timer messages. Timers still need love though
11506
11507 2004-09-07 14:01  jackson
11508
11509         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
11510           this for us and the handle is no longer valid.
11511
11512 2004-09-07 13:59  jackson
11513
11514         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
11515           loop that manages to not crash. TODO: Add poll and cleanup timers
11516
11517 2004-09-07 11:12  jordi
11518
11519         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
11520
11521 2004-09-07 03:40  jordi
11522
11523         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
11524           fixes, methods, multiple links
11525
11526 2004-09-06 06:55  jordi
11527
11528         * Control.cs: Caches ClientRectangle rectangle value
11529
11530 2004-09-05 02:03  jordi
11531
11532         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
11533           certain situations
11534
11535 2004-09-04 11:10  jordi
11536
11537         * Label.cs: Refresh when font changed
11538
11539 2004-09-02 16:24  pbartok
11540
11541         * Control.cs:
11542           - Added sanity check to creation of double buffer bitmap
11543
11544 2004-09-02 16:24  pbartok
11545
11546         * ButtonBase.cs:
11547           - Fixed selection of text color
11548           - Fixed handling of resize event; now properly recreates double
11549             buffering bitmap
11550           - Added missing assignment of TextAlignment
11551           - Added proper default for TextAlignment
11552
11553 2004-09-02 14:26  pbartok
11554
11555         * RadioButton.cs:
11556           - Added missing RadioButton.RadioButtonAccessibleObject class
11557
11558 2004-09-02 14:26  pbartok
11559
11560         * Control.cs:
11561           - Added missing Control.ControlAccessibleObject class
11562           - Started to implement Select()ion mechanisms, still very incomplete
11563
11564 2004-09-02 14:25  pbartok
11565
11566         * AccessibleObject.cs:
11567           - Added missing methods
11568
11569 2004-09-02 14:23  pbartok
11570
11571         * AccessibleNavigation.cs, AccessibleSelection.cs:
11572           - Initial check-in
11573
11574 2004-09-02 10:32  jordi
11575
11576         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
11577           pool for pens, brushes, and hatchbruses
11578
11579 2004-09-01 15:30  jackson
11580
11581         * StatusBar.cs: Fix typo
11582
11583 2004-09-01 14:44  pbartok
11584
11585         * RadioButton.cs:
11586           - Fixed state
11587
11588 2004-09-01 14:39  pbartok
11589
11590         * Button.cs, RadioButton.cs:
11591           - Functional initial check-in
11592
11593 2004-09-01 14:01  pbartok
11594
11595         * CheckBox.cs:
11596           - Added missing default
11597           - Added missing region mark
11598
11599 2004-09-01 09:10  jordi
11600
11601         * Label.cs: fixes method signatures, new methods, events, fixes
11602           autosize
11603
11604 2004-09-01 07:19  jordi
11605
11606         * Control.cs: Init string variables with an empty object
11607
11608 2004-09-01 04:20  jordi
11609
11610         * Control.cs: fires OnFontChanged event
11611
11612 2004-08-31 20:07  pbartok
11613
11614         * ButtonBase.cs:
11615           - Enabled display of strings
11616
11617 2004-08-31 20:05  pbartok
11618
11619         * Form.cs:
11620           - Added (partial) implementation of DialogResult; rest needs to be
11621             implemented when the modal loop code is done
11622
11623 2004-08-31 19:55  pbartok
11624
11625         * CheckBox.cs:
11626           - Fixed to match the removal of the needs_redraw concept
11627
11628 2004-08-31 19:55  pbartok
11629
11630         * ButtonBase.cs:
11631           - Removed the rather odd split between 'needs redraw' and redrawing
11632           - Now handles the events that require regeneration (ambient
11633             properties and size)
11634
11635 2004-08-31 19:41  pbartok
11636
11637         * Control.cs:
11638           - Added firing of BackColorChanged event
11639           - Added TopLevelControl property
11640           - Fixed handling of WM_ERASEBKGRND message
11641
11642 2004-08-31 12:49  pbartok
11643
11644         * ButtonBase.cs:
11645           - Removed debug
11646           - Minor fixes
11647
11648 2004-08-31 12:48  pbartok
11649
11650         * CheckBox.cs:
11651           - Finished (famous last words)
11652
11653 2004-08-31 04:35  jordi
11654
11655         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
11656           scrolling bugs, adds new methods
11657
11658 2004-08-30 14:42  pbartok
11659
11660         * CheckBox.cs:
11661           - Implemented CheckBox drawing code
11662
11663 2004-08-30 14:42  pbartok
11664
11665         * ButtonBase.cs:
11666           - Made Redraw() and CheckRedraw() virtual
11667           - Improved mouse up/down/move logic to properly track buttons
11668
11669 2004-08-30 09:44  pbartok
11670
11671         * CheckBox.cs:
11672           - Updated to fix broken build. Not complete yet.
11673
11674 2004-08-30 09:28  pbartok
11675
11676         * CheckState.cs:
11677           - Initial checkin
11678
11679 2004-08-30 09:17  pbartok
11680
11681         * Appearance.cs:
11682           - Initial check-in
11683
11684 2004-08-27 16:12  ravindra
11685
11686         * ToolBarButton.cs: Added TypeConverter attribute.
11687
11688 2004-08-27 16:07  ravindra
11689
11690         * ImageIndexConverter.cs: Implemented.
11691
11692 2004-08-27 14:17  pbartok
11693
11694         * Control.cs:
11695           - Removed unneeded stack vars
11696           - First attempt to fix sizing issues when layout is suspended
11697
11698 2004-08-25 15:35  jordi
11699
11700         * ScrollBar.cs: more fixes to scrollbar
11701
11702 2004-08-25 14:04  ravindra
11703
11704         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
11705           Added the missing divider code and grip for ToolBar Control.
11706
11707 2004-08-25 13:20  pbartok
11708
11709         * Control.cs:
11710           - Control now properly passes the ambient background color to child
11711             controls
11712
11713 2004-08-25 13:20  jordi
11714
11715         * ScrollBar.cs: small bug fix regarding bar position
11716
11717 2004-08-25 12:33  pbartok
11718
11719         * Timer.cs:
11720           - Now only calls SetTimer or KillTimer if the enabled state has
11721           changed
11722
11723 2004-08-25 12:33  pbartok
11724
11725         * XplatUIWin32.cs:
11726           - Fixed timer handling, now seems to work
11727           - Improved error message for window creation
11728
11729 2004-08-25 12:32  pbartok
11730
11731         * Control.cs:
11732           - Fixed generation of MouseUp message
11733
11734 2004-08-25 12:29  jordi
11735
11736         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
11737           and fixes for progressbar
11738
11739 2004-08-24 18:43  ravindra
11740
11741         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
11742           in ToolBar control.
11743
11744 2004-08-24 17:15  pbartok
11745
11746         * Panel.cs:
11747           - Added #region
11748           - Added missing events
11749           - Alphabetized
11750
11751 2004-08-24 17:14  pbartok
11752
11753         * StatusBar.cs, PictureBox.cs:
11754           - Now uses Control's CreateParams
11755
11756 2004-08-24 16:36  pbartok
11757
11758         * XplatUIX11.cs:
11759           - Fixed background color handling
11760           - Fixed sending of enter/leave events on a grab
11761
11762 2004-08-24 16:35  pbartok
11763
11764         * X11Structs.cs:
11765           - Refined definitions for CrossingEvent
11766
11767 2004-08-24 12:37  jordi
11768
11769         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
11770           formmating, methods signature, and adds missing events
11771
11772 2004-08-24 12:24  jordi
11773
11774         * Control.cs: fire OnEnabledChanged event
11775
11776 2004-08-24 11:17  pbartok
11777
11778         * XplatUIWin32.cs:
11779           - Implemented SetTimer() and KillTimer()
11780
11781 2004-08-24 11:16  pbartok
11782
11783         * XplatUIX11.cs:
11784           - Now uses Remove instead of Add to kill the timer
11785
11786 2004-08-24 10:16  jackson
11787
11788         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
11789           picture boxes in the theme now. Draw picture box borders and obey
11790           sizing modes
11791
11792 2004-08-24 05:49  jackson
11793
11794         * Timer.cs: Remove top secret debugging code
11795
11796 2004-08-24 05:34  jackson
11797
11798         * PictureBox.cs: Temp hack to make picture boxes draw their full
11799           image
11800
11801 2004-08-24 05:29  jackson
11802
11803         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
11804           XplatUIX11.cs: Move timers to the driver level. On X they are
11805           queued by the driver and checked on idle.
11806
11807 2004-08-24 01:07  jackson
11808
11809         * XplatUIX11.cs: Use a queue for async messages instead of passing
11810           them as ClientMessages since that was totally broken. Also simply
11811           check for events and return an idle message if none are found. This
11812           gives us an idle handler, and prevents deadlocking when no messages
11813           are in the queue.
11814
11815 2004-08-23 18:19  ravindra
11816
11817         * XplatUIWin32.cs: Removed the unwanted destructor.
11818
11819 2004-08-23 17:27  pbartok
11820
11821         * ButtonBase.cs:
11822           - Finishing touches. Works now, just needs some optimizations.
11823
11824 2004-08-23 16:53  jordi
11825
11826         * ScrollBar.cs: small fix
11827
11828 2004-08-23 16:45  pbartok
11829
11830         * Application.cs:
11831           - Removed debug output
11832           - Simplifications
11833
11834 2004-08-23 16:43  jordi
11835
11836         * ScrollBar.cs: [no log message]
11837
11838 2004-08-23 16:10  pbartok
11839
11840         * Form.cs:
11841           - Fixed handling of WM_CLOSE message
11842           - Removed debug output
11843
11844 2004-08-23 16:09  pbartok
11845
11846         * Application.cs:
11847           - Added handling of Idle event
11848           - Added handling of form closing
11849           - Fixed reporting of MessageLoop property
11850           - Removed some unneeded code, should provide a bit of a speedup
11851
11852 2004-08-23 15:22  pbartok
11853
11854         * Control.cs:
11855           - Added InitLayout() method
11856           - Added code to properly perform layout when Anchor or Dock property
11857             is changed
11858           - Changed 'interpretation' of ResumeLayout. MS seems to have a
11859             LAMESPEC, tried to do it in a way that makes sense
11860
11861 2004-08-23 14:10  jordi
11862
11863         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
11864           properties and methods
11865
11866 2004-08-23 13:55  pbartok
11867
11868         * Control.cs:
11869           - Properly fixed Jordi's last fix
11870           - Now uses Cursor's Position property instead of calling XplatUI
11871           directly
11872
11873 2004-08-23 13:44  jordi
11874
11875         * PaintEventHandler.cs: Adding missing attribute
11876
11877 2004-08-23 13:39  pbartok
11878
11879         * Cursor.cs:
11880           - Implemented Position property
11881
11882 2004-08-23 13:39  pbartok
11883
11884         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
11885           - Added method to move mouse cursor
11886
11887 2004-08-23 13:39  pbartok
11888
11889         * XplatUIX11.cs:
11890           - Fixed setting of background color
11891           - Added method to move mouse cursor
11892
11893 2004-08-23 13:16  jordi
11894
11895         * Control.cs: avoids null exception
11896
11897 2004-08-22 17:46  jackson
11898
11899         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
11900           PictureBox
11901
11902 2004-08-22 17:40  jackson
11903
11904         * XplatUIX11.cs: Add some missing locks
11905
11906 2004-08-22 15:10  pbartok
11907
11908         * Control.cs, Form.cs:
11909           - Removed OverlappedWindow style from Control, instead it's default
11910             now is child
11911           - Made form windows OverlappedWindow by default
11912
11913 2004-08-22 13:34  jackson
11914
11915         * ScrollBar.cs: Update the position through the Value property so
11916           the OnValueChanged event is raised.
11917
11918 2004-08-22 12:04  pbartok
11919
11920         * SWF.csproj:
11921           - Added Cursor.cs and UserControl.cs
11922
11923 2004-08-22 12:03  pbartok
11924
11925         * Cursor.cs:
11926           - Started implementation, not usable yet
11927
11928 2004-08-22 12:00  pbartok
11929
11930         * UserControl.cs:
11931           - Implemented UserControl (complete)
11932
11933 2004-08-21 19:20  ravindra
11934
11935         * ToolBar.cs: Correcting the formatting mess of VS.NET.
11936
11937 2004-08-21 18:49  ravindra
11938
11939         * ToolBar.cs: Probably this completes the missing attributes in
11940           toolbar control.
11941
11942 2004-08-21 18:03  ravindra
11943
11944         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
11945           Fixed toolbar control signatures.
11946
11947 2004-08-21 16:32  pbartok
11948
11949         * LinkLabel.cs:
11950           - Signature Fixes
11951
11952 2004-08-21 16:30  pbartok
11953
11954         * Label.cs:
11955           - Signature fixes
11956
11957 2004-08-21 16:19  pbartok
11958
11959         * Control.cs, Label.cs:
11960           - Signature fixes
11961
11962 2004-08-21 15:57  pbartok
11963
11964         * ButtonBase.cs:
11965           - Added loads of debug output for development
11966           - Fixed typo in method name
11967
11968 2004-08-21 15:52  pbartok
11969
11970         * ToolBarButtonClickEventArgs.cs:
11971           - Added missing base class
11972
11973 2004-08-21 14:53  pbartok
11974
11975         * Control.cs:
11976           - Updated to match new GrabWindow signature
11977
11978 2004-08-21 14:51  pbartok
11979
11980         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
11981           - Added method to get default display size
11982
11983 2004-08-21 14:23  pbartok
11984
11985         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
11986           - Added method to query current grab state
11987           - Added argument to allow confining a grab to a window
11988
11989 2004-08-21 14:22  pbartok
11990
11991         * Keys.cs:
11992           - Added [Flags] attribute so that modifiers can be used in bitwise
11993           ops
11994
11995 2004-08-21 14:21  pbartok
11996
11997         * TrackBar.cs, ScrollBar.cs:
11998           - Replaced direct XplatUI calls with their Control counterpart
11999
12000 2004-08-21 13:32  pbartok
12001
12002         * Control.cs:
12003           - Implemented Created property
12004
12005 2004-08-21 13:28  pbartok
12006
12007         * Control.cs:
12008           - Implemented ContainsFocus
12009
12010 2004-08-21 13:26  pbartok
12011
12012         * Control.cs:
12013           - Implemented CausesValidation
12014
12015 2004-08-21 13:21  pbartok
12016
12017         * Control.cs:
12018           - Implemented CanFocus
12019           - Implemented CanSelect
12020           - Implemented Capture
12021
12022 2004-08-21 12:35  pbartok
12023
12024         * XplatUIWin32.cs:
12025           - Fixed bug with Async message handling
12026           - Implemented getting the ModifierKeys
12027
12028 2004-08-21 12:32  jackson
12029
12030         * AsyncMethodResult.cs: Make sure we have the mutex before we
12031           release it. Fixes BeginInvoke on windows
12032
12033 2004-08-21 11:31  pbartok
12034
12035         * XplatUIWin32.cs, XplatUIX11.cs:
12036           - Drivers now return proper mouse state
12037
12038 2004-08-21 10:54  jackson
12039
12040         * Control.cs: Implement EndInvoke
12041
12042 2004-08-21 10:48  jackson
12043
12044         * Timer.cs: Remove unneeded finalizer
12045
12046 2004-08-20 19:52  ravindra
12047
12048         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
12049           in mouse event handling in the ToolBar control.
12050
12051 2004-08-20 19:50  ravindra
12052
12053         * ImageList.cs: Changed draw method to use the arguments passed in
12054           to draw the image.
12055
12056 2004-08-20 18:58  pbartok
12057
12058         * XplatUIStructs.cs:
12059           - Added private message for async communication
12060
12061 2004-08-20 17:38  ravindra
12062
12063         * Control.cs: Made RightToLeft property virtual and removed a
12064           Console.WriteLine.
12065
12066 2004-08-20 14:39  jordi
12067
12068         * ThemeGtk.cs: use style_attach
12069
12070 2004-08-20 14:39  pbartok
12071
12072         * XplatUIWin32.cs:
12073           - Added jackson's Async code from X11 to Win32
12074
12075 2004-08-20 14:09  pbartok
12076
12077         * SWF.csproj:
12078           - Added all new files
12079
12080 2004-08-20 14:09  pbartok
12081
12082         * Control.cs:
12083           - Added call to set window background color
12084
12085 2004-08-20 14:03  pbartok
12086
12087         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
12088           - Added method for setting the window background
12089
12090 2004-08-20 14:02  pbartok
12091
12092         * XplatUIWin32.cs:
12093           - Added method for setting the background color
12094           - Added handling for erasing the window background
12095
12096 2004-08-20 13:45  jordi
12097
12098         * TrackBar.cs: fixes timer, new properties and methods
12099
12100 2004-08-20 13:34  jackson
12101
12102         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
12103           correct thread
12104
12105 2004-08-20 13:22  jackson
12106
12107         * Timer.cs: Timer Tick events are now handed through Controls Async
12108           mechanism so the callbacks are executed in the same thread as X
12109
12110 2004-08-20 13:19  jackson
12111
12112         * XplatUIDriver.cs: Expose functionality to send async messages
12113           through the driver
12114
12115 2004-08-20 13:18  jackson
12116
12117         * Control.cs: Implement Begininvoke
12118
12119 2004-08-20 13:14  jackson
12120
12121         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
12122           messages through the driver
12123
12124 2004-08-20 13:12  jackson
12125
12126         * XplatUIX11.cs: Lock before all X operations. Also added Async
12127           method functionality through XSendEvent
12128
12129 2004-08-20 13:11  jackson
12130
12131         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
12132           This will screw up on 64 bit systems)
12133
12134 2004-08-20 13:10  jackson
12135
12136         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
12137           Async messages through X/Win32
12138
12139 2004-08-19 19:39  pbartok
12140
12141         * XplatUIX11.cs:
12142           - Updated code to match new HandleData.DeviceContext type
12143
12144 2004-08-19 19:38  pbartok
12145
12146         * HandleData.cs:
12147           - Made DeviceContext a generic object to allow usage from various
12148           drivers
12149           - Added support for queueing Windows messages
12150
12151 2004-08-19 19:37  pbartok
12152
12153         * XplatUIWin32.cs:
12154           - Added generation of MouseEnter, MouseLeave and MouseHover events
12155           - Added cleanup on EndPaint
12156
12157 2004-08-19 19:17  pbartok
12158
12159         * Control.cs:
12160           - Added handling of WM_MOUSEHOVER
12161           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
12162           code
12163
12164 2004-08-19 18:55  jordi
12165
12166         * ThemeGtk.cs: fixes button order
12167
12168 2004-08-19 18:12  jordi
12169
12170         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
12171
12172 2004-08-19 17:09  pbartok
12173
12174         * Control.cs:
12175           - Added Right property
12176           - Added RightToLeft property
12177
12178 2004-08-19 16:27  jordi
12179
12180         * ThemeGtk.cs: experimental GTK theme support
12181
12182 2004-08-19 16:26  jordi
12183
12184         * ITheme.cs, Theme.cs: move themes from an interface to a class
12185
12186 2004-08-19 16:25  jordi
12187
12188         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
12189           theme enhancaments
12190
12191 2004-08-19 16:04  pbartok
12192
12193         * XplatUIX11.cs:
12194           - Added colormap basics
12195           - Added a way to re-initialize with a different display handle
12196           - Fixed setting of the window background color
12197           - Added various X11 imports related to colors and colormaps
12198
12199 2004-08-19 15:51  pbartok
12200
12201         * X11Structs.cs:
12202           - Removed packing hints (Paolo suggested this a while back)
12203           - fixed colormap type
12204           - Added default Atom types
12205           - Added Screen and color structs and enums
12206
12207 2004-08-19 15:39  pbartok
12208
12209         * ImageList.cs:
12210           - Added missing Draw() method
12211           - Added missing RecreateHandle event
12212
12213 2004-08-19 15:30  pbartok
12214
12215         * Form.cs:
12216           - Added handling of WM_CLOSE
12217
12218 2004-08-18 13:16  jordi
12219
12220         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
12221           a table
12222
12223 2004-08-18 09:56  jordi
12224
12225         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
12226
12227 2004-08-17 15:31  ravindra
12228
12229         * SWF.csproj: Updated project.
12230
12231 2004-08-17 15:25  pbartok
12232
12233         * Control.cs:
12234           - Drawing improvement; don't call UpdateBounds if we are not visible
12235             (or have been minimized)
12236
12237 2004-08-17 15:24  pbartok
12238
12239         * XplatUIWin32.cs:
12240           - Finished IsVisible
12241           - Added Win32GetWindowPlacement
12242
12243 2004-08-17 15:08  jackson
12244
12245         * Panel.cs: Initial checkin of the Panel
12246
12247 2004-08-17 14:25  pbartok
12248
12249         * Control.cs:
12250           - Fixed broken handling of default window sizes
12251
12252 2004-08-17 13:29  jackson
12253
12254         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
12255           has a large startup time.
12256
12257 2004-08-17 10:25  jackson
12258
12259         * HandleData.cs: union areas properly
12260
12261 2004-08-17 10:12  jackson
12262
12263         * HandleData.cs: union areas properly
12264
12265 2004-08-16 20:00  ravindra
12266
12267         * ToolBar.cs, ToolBarButton.cs: Added attributes.
12268
12269 2004-08-16 18:48  ravindra
12270
12271         * ToolBar.cs: Added attributes.
12272
12273 2004-08-16 17:17  ravindra
12274
12275         * SWF.csproj: Updated project.
12276
12277 2004-08-16 17:16  jackson
12278
12279         * XplatUIX11.cs: Check for more expose events before sending a
12280           WM_PAINT so they can all be grouped together. This makes dragging a
12281           window across another window redraw in a sane way.
12282
12283 2004-08-16 15:47  pbartok
12284
12285         * Control.cs:
12286           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
12287             support OnMouseEnter/Leave()
12288           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
12289             exposure handling
12290
12291 2004-08-16 15:46  pbartok
12292
12293         * XplatUIStructs.cs, XplatUIX11.cs:
12294           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
12295           OnMouseEnter/Leave()
12296
12297 2004-08-16 15:34  jackson
12298
12299         * XplatUIX11.cs: Group multiple expose events in HandleData, make
12300           sure messages get the message field set to WM_NULL if they are not
12301           handled.
12302
12303 2004-08-16 15:24  jackson
12304
12305         * HandleData.cs: HandleData is used for storing message information
12306           for window handles
12307
12308 2004-08-15 17:23  ravindra
12309
12310         * ColorDepth.cs: Added attribute.
12311
12312 2004-08-15 17:23  ravindra
12313
12314         * SWF.csproj: Updated project for ToolBar Control.
12315
12316 2004-08-15 17:20  ravindra
12317
12318         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
12319           control and also dos2unix format.
12320
12321 2004-08-15 17:13  ravindra
12322
12323         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
12324           ToolBarButtonClickEventArgs.cs,
12325           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
12326           ToolBarTextAlign.cs: First Implementation of ToolBar control.
12327
12328 2004-08-15 15:31  pbartok
12329
12330         * ButtonBase.cs:
12331           - First (mostly) working version
12332
12333 2004-08-13 16:15  pbartok
12334
12335         * Control.cs:
12336           - Fixed Anchor default
12337
12338 2004-08-13 15:43  pbartok
12339
12340         * Control.cs:
12341           - Changed GetCursorPos signature
12342
12343 2004-08-13 15:42  pbartok
12344
12345         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12346           - Changed signature for GetCursorPos
12347
12348 2004-08-13 15:25  pbartok
12349
12350         * XplatUIX11.cs:
12351           - Cleanup
12352           - Fixed resizing/exposure handling
12353
12354 2004-08-13 15:22  jordi
12355
12356         * ThemeWin32Classic.cs: removes redundant code and fixes issues
12357           with tickposition
12358
12359 2004-08-13 14:55  jordi
12360
12361         * TrackBar.cs: change from wndproc to events
12362
12363 2004-08-13 13:00  jordi
12364
12365         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12366           XplatUIX11.cs: implements PointToClient (ScreenToClient)
12367
12368 2004-08-13 12:53  pbartok
12369
12370         * XplatUIWin32.cs:
12371           - Changed GetWindowPos to also provide client area size
12372           - Fixed broken prototypes for several win32 functions
12373
12374 2004-08-13 12:53  pbartok
12375
12376         * XplatUI.cs, XplatUIDriver.cs:
12377           - Changed GetWindowPos to also provide client area size
12378
12379 2004-08-13 12:52  pbartok
12380
12381         * XplatUIX11.cs:
12382           - Added generation of WM_POSCHANGED
12383           - Changed GetWindowPos to also provide client area size
12384
12385 2004-08-13 12:52  pbartok
12386
12387         * Control.cs:
12388           - Added Dispose() and destructor
12389           - Fixed resizing and bounds calculation
12390           - Fixed Layout
12391           - Added memory savings for invisible windows
12392
12393 2004-08-13 12:46  jordi
12394
12395         * TrackBar.cs: adds timer and grap window
12396
12397 2004-08-13 10:25  jackson
12398
12399         * Timer.cs: SWF Timer
12400
12401 2004-08-12 16:59  pbartok
12402
12403         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12404           - Implemented method to get current mouse position
12405
12406 2004-08-12 14:29  jordi
12407
12408         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
12409           enhancement, fix mouse problems, highli thumb, etc
12410
12411 2004-08-12 13:31  pbartok
12412
12413         * Control.cs:
12414           - Fixed Anchoring bugs
12415
12416 2004-08-12 13:01  jackson
12417
12418         * StatusBar.cs: Don't forget things
12419
12420 2004-08-12 12:54  jackson
12421
12422         * ThemeWin32Classic.cs: Handle owner draw status bars
12423
12424 2004-08-12 12:54  jackson
12425
12426         * StatusBar.cs: Implement missing properties, events, and methods.
12427           Handle mouse clicking
12428
12429 2004-08-12 10:19  jackson
12430
12431         * StatusBarPanelClickEventArgs.cs,
12432           StatusBarPanelClickEventHandler.cs: Classes for handling status
12433           bar panel click events
12434
12435 2004-08-12 10:10  jackson
12436
12437         * Control.cs: Add missing properties
12438
12439 2004-08-12 09:46  pbartok
12440
12441         * BindingsManagerBase.cs:
12442           - Name changed to BindingManagerBase.cs
12443
12444 2004-08-12 09:25  jordi
12445
12446         * ScrollableControl.cs: calls ctrlbase instead of exeception
12447
12448 2004-08-11 16:28  pbartok
12449
12450         * InputLanguageChangingEventArgs.cs:
12451           - Never check in before compiling. Fixes the last check-in
12452
12453 2004-08-11 16:26  pbartok
12454
12455         * InputLanguageChangingEventArgs.cs:
12456           - More signature fixes
12457
12458 2004-08-11 16:20  pbartok
12459
12460         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
12461           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
12462           ImageListStreamer.cs, InputLanguage.cs,
12463           InputLanguageChangedEventArgs.cs,
12464           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
12465           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
12466           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
12467           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12468           - Signature fixes
12469
12470 2004-08-11 16:16  pbartok
12471
12472         * Application.cs:
12473           - Fixed Signature
12474           - Added .Net 1.1 method
12475
12476 2004-08-11 15:25  pbartok
12477
12478         * SWF.csproj:
12479           - Fixed BindingManagerBase.cs filename
12480
12481 2004-08-11 15:22  pbartok
12482
12483         * BindingManagerBase.cs:
12484           - Was checked in with wrong filename
12485
12486 2004-08-11 14:50  pbartok
12487
12488         * SWF.csproj:
12489           - Updated
12490
12491 2004-08-11 13:41  jordi
12492
12493         * XplatUIWin32.cs: Fixes ClientRect
12494
12495 2004-08-11 13:19  pbartok
12496
12497         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12498           XplatUIX11.cs:
12499           - We had SetWindowPos and MoveWindow to set window positions and
12500             size, removed MoveWindow. We have GetWindowPos, so it made sense to
12501             keep SetWindowPos as matching counterpart
12502           - Added some X11 sanity checking
12503
12504 2004-08-11 12:59  pbartok
12505
12506         * Control.cs:
12507           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
12508             (It seems that SetBounds is just a front for SetBoundsCore and
12509              SetBoundsCore updates the underlying window system and
12510              UpdateBounds is responsible for updating the variables associated
12511              with the Control and sending the events)
12512           - Major cleanup of Size handling; we now have two sizes, client_size
12513             and bounds. Bounds defines the window with decorations, client_size
12514             without them.
12515
12516 2004-08-11 12:55  pbartok
12517
12518         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12519           - Added method to calculate difference between decorated window and
12520             raw client area
12521
12522 2004-08-11 12:54  pbartok
12523
12524         * Label.cs:
12525           - Forcing redraw on resize
12526
12527 2004-08-11 11:43  pbartok
12528
12529         * ImageList.cs:
12530           - Removed disposing of the actual images when the list is disposed
12531
12532 2004-08-11 09:13  pbartok
12533
12534         * Control.cs:
12535           - Now properly reparents windows
12536
12537 2004-08-11 08:37  pbartok
12538
12539         * Control.cs:
12540           - Duh!
12541
12542 2004-08-11 07:47  pbartok
12543
12544         * Control.cs:
12545           - Rewrote the collection stuff. Might not be as fast now, not
12546             keeping the number of children around and accessible directly, but
12547             it's more straightforward
12548
12549 2004-08-11 07:44  pbartok
12550
12551         * AccessibleObject.cs:
12552           - Fixed to match ControlCollection rewrite
12553
12554 2004-08-11 07:43  pbartok
12555
12556         * ImageList.cs:
12557           - Added missing creation of the collection list
12558
12559 2004-08-10 20:08  jackson
12560
12561         * StatusBar.cs: Get the paint message from WndProc
12562
12563 2004-08-10 19:31  jackson
12564
12565         * ThemeWin32Classic.cs: Create Brushes as little as possible
12566
12567 2004-08-10 19:20  jackson
12568
12569         * UICues.cs: Add Flags attribute
12570
12571 2004-08-10 19:19  jackson
12572
12573         * StatusBarPanel.cs: Signature cleanup
12574
12575 2004-08-10 19:10  jackson
12576
12577         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
12578           Initial implementation of status bar item drawing
12579
12580 2004-08-10 17:27  jordi
12581
12582         * TrackBar.cs: add missing methods, properties, and restructure to
12583           hide extra ones
12584
12585 2004-08-10 16:24  jackson
12586
12587         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
12588           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
12589           attribute
12590
12591 2004-08-10 13:21  jordi
12592
12593         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
12594           enhancements and standarize on win colors defaults
12595
12596 2004-08-10 12:52  jackson
12597
12598         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
12599           ThemeWin32Classic.cs: Implement DrawItem functionality
12600
12601 2004-08-10 12:47  jordi
12602
12603         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
12604
12605 2004-08-10 12:32  jordi
12606
12607         * Control.cs: throw ontextchange event
12608
12609 2004-08-10 11:43  pbartok
12610
12611         * Control.cs:
12612           - Added more to the still unfinished Dock/Anchor layout code
12613
12614 2004-08-10 11:39  pbartok
12615
12616         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
12617           - Added GetWindowPos method
12618
12619 2004-08-10 11:36  pbartok
12620
12621         * XplatUIWin32.cs:
12622           - Implemented several methods
12623
12624 2004-08-10 09:47  jackson
12625
12626         * TrackBar.cs: Allow control to handle buffering
12627
12628 2004-08-10 09:41  jackson
12629
12630         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
12631
12632 2004-08-10 09:24  jackson
12633
12634         * Label.cs, LinkLabel.cs: Let Control handle buffering.
12635
12636 2004-08-10 09:09  jackson
12637
12638         * StatusBar.cs: Let Control handle all the buffering.
12639
12640 2004-08-10 09:08  jackson
12641
12642         * Control.cs: Control will now handle the buffering code, so each
12643           control does not have to implement this.
12644
12645 2004-08-10 08:34  jackson
12646
12647         * XplatUIDriver.cs: Use default colors from the theme
12648
12649 2004-08-09 17:12  pbartok
12650
12651         * ImageList.cs:
12652           - Fixed several bugs Ravindra pointed out
12653
12654 2004-08-09 16:11  pbartok
12655
12656         * Control.cs:
12657           - Added incomplete dock layout code
12658           - Added support for mouse wheel
12659
12660 2004-08-09 16:09  pbartok
12661
12662         * XplatUIX11.cs:
12663           - Added handling for middle and right mousebutton
12664           - Added handling for mouse wheel
12665           - Added handling for key state and mouse state and position
12666           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
12667           messages
12668
12669 2004-08-09 15:40  jackson
12670
12671         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
12672           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
12673           checkin
12674
12675 2004-08-09 15:37  jackson
12676
12677         * StatusBar.cs: Initial implementation of StatusBar
12678
12679 2004-08-09 15:36  jackson
12680
12681         * ITheme.cs: Add support for drawing status bar and getting status
12682           bar item sizes
12683
12684 2004-08-09 15:35  pbartok
12685
12686         * MouseButtons.cs:
12687           - Fixed values
12688
12689 2004-08-09 15:34  jackson
12690
12691         * ThemeWin32Classic.cs: Add support for drawing status bar and get
12692           status bar item sizes
12693
12694 2004-08-09 15:21  jackson
12695
12696         * ThemeWin32Classic.cs: Use known colors for default control
12697           colours
12698
12699 2004-08-09 15:12  jackson
12700
12701         * ThemeWin32Classic.cs: Make the default font static, it is static
12702           in control so this doesn't change functionality and creating fonts
12703           is sloooooow.
12704
12705 2004-08-09 14:56  pbartok
12706
12707         * X11Structs.cs:
12708           - Added GrabMode enum
12709
12710 2004-08-09 14:55  pbartok
12711
12712         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12713           - Removed Run method, was only required for initial development
12714
12715 2004-08-09 14:51  pbartok
12716
12717         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12718           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
12719           capture
12720
12721 2004-08-09 13:48  pbartok
12722
12723         * XplatUIX11.cs:
12724           - Fixed default sizing for child windows
12725
12726 2004-08-09 12:56  pbartok
12727
12728         * XplatUIX11.cs:
12729           - Added generation of WM_DESTROY message
12730           - Added handling of window manager induced shutdown
12731
12732 2004-08-09 11:31  jackson
12733
12734         * ThemeWin32Classic.cs: New names for control properties
12735
12736 2004-08-09 11:25  jackson
12737
12738         * Control.cs: Use new color names
12739
12740 2004-08-09 11:02  jackson
12741
12742         * XplatUI.cs: Get default window properties from the theme
12743
12744 2004-08-09 11:01  jackson
12745
12746         * ITheme.cs: The theme engine now controls default window
12747           properties
12748
12749 2004-08-09 11:00  jackson
12750
12751         * ThemeWin32Classic.cs: Add default window color properties
12752
12753 2004-08-09 10:17  jackson
12754
12755         * ThemeWin32Classic.cs: Use correct default back color
12756
12757 2004-08-09 10:05  jackson
12758
12759         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
12760           the theme now.
12761
12762 2004-08-09 09:56  jackson
12763
12764         * XplatUI.cs: Remove defaults, these are handled by the theme now.
12765
12766 2004-08-09 09:54  jackson
12767
12768         * Control.cs: Get default properties from the theme.
12769
12770 2004-08-09 09:53  jackson
12771
12772         * ITheme.cs: Themes now handle default control properties
12773
12774 2004-08-09 09:53  jackson
12775
12776         * ThemeWin32Classic.cs: Themes now handle default control
12777           properties so coloring will be consistent
12778
12779 2004-08-08 16:54  jordi
12780
12781         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
12782
12783 2004-08-08 15:08  jordi
12784
12785         * XplatUIX11.cs: fixes keyboard crash
12786
12787 2004-08-08 13:47  jordi
12788
12789         * Label.cs: add cvs header info
12790
12791 2004-08-08 12:09  jackson
12792
12793         * ThemeWin32Classic.cs: Add pen_buttonface
12794
12795 2004-08-08 11:52  jordi
12796
12797         * Label.cs, LinkLabel.cs: [no log message]
12798
12799 2004-08-08 11:34  jordi
12800
12801         * ThemeWin32Classic.cs: Use Windows Standard Colours
12802
12803 2004-08-07 17:32  jordi
12804
12805         * TrackBar.cs: throw exceptions of invalid enums values
12806
12807 2004-08-07 17:31  jordi
12808
12809         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
12810           draw method name
12811
12812 2004-08-07 16:56  jackson
12813
12814         * HorizontalAlignment.cs: Initial checkin
12815
12816 2004-08-07 13:16  jordi
12817
12818         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
12819           methods
12820
12821 2004-08-07 13:05  jordi
12822
12823         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
12824           GetSysColor defines
12825
12826 2004-08-06 18:01  pbartok
12827
12828         * ThemeWin32Classic.cs:
12829           - Fixed some rounding issues with float/int
12830
12831 2004-08-06 18:00  jackson
12832
12833         * DockStyle.cs, AnchorStyles.cs:
12834
12835                   Add flags and serializable attributes.
12836
12837 2004-08-06 17:46  pbartok
12838
12839         * XplatUIX11.cs:
12840           - Implemented GetParent
12841
12842 2004-08-06 17:18  pbartok
12843
12844         * TrackBar.cs:
12845           - Fixed some rounding issues with float/int
12846
12847 2004-08-06 17:17  pbartok
12848
12849         * X11Structs.cs, XplatUIX11.cs:
12850           - Fixed Refresh and Invalidate
12851
12852 2004-08-06 15:30  pbartok
12853
12854         * Control.cs, X11Structs.cs, XplatUIX11.cs:
12855           - Fixed recursive loop when resizing
12856           - Improved/fixed redrawing on expose messages
12857
12858 2004-08-06 09:53  jordi
12859
12860         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
12861           keyboard navigation
12862
12863 2004-08-06 08:02  pbartok
12864
12865         * X11Structs.cs, XplatUIX11.cs:
12866           - Fixed reparenting
12867           - Fixed window border creation
12868
12869 2004-08-05 15:38  pbartok
12870
12871         * XplatUIX11.cs:
12872           - Attempted fix for reparenting problems
12873
12874 2004-08-04 15:14  pbartok
12875
12876         * Control.cs:
12877           - Fixed Invalidation bug (calculated wrong client area)
12878           - Added ClientSize setter
12879
12880 2004-08-04 15:13  pbartok
12881
12882         * Form.cs:
12883           - Added AutoScale properties
12884
12885 2004-08-04 15:13  pbartok
12886
12887         * SWF.csproj:
12888           - Added latest files
12889
12890 2004-08-04 14:11  pbartok
12891
12892         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12893           XplatUIX11.cs:
12894           - Added Invalidate handling
12895
12896 2004-08-03 17:09  jordi
12897
12898         * XplatUIDriver.cs: fixes spelling mistake
12899
12900 2004-07-27 09:53  jordi
12901
12902         * TrackBar.cs: fixes trackbar events, def classname, methods
12903           signature
12904
12905 2004-07-27 09:29  jordi
12906
12907         * ScrollBar.cs: fixes scrollbar events
12908
12909 2004-07-27 04:38  jordi
12910
12911         * Control.cs: changes to be able to run winforms samples
12912
12913 2004-07-26 11:42  jordi
12914
12915         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
12916           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
12917
12918 2004-07-26 05:41  jordi
12919
12920         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
12921           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
12922           implementation
12923
12924 2004-07-22 09:22  jordi
12925
12926         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
12927           check link overlapping, implement events, and fixes
12928
12929 2004-07-21 10:28  jordi
12930
12931         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
12932
12933 2004-07-21 10:19  jordi
12934
12935         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
12936           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
12937           LinkLabelLinkClickedEventArgs.cs,
12938           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
12939           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
12940           implementation
12941
12942 2004-07-19 13:09  jordi
12943
12944         * Control.cs, Label.cs: label control re-written: added missing
12945           functionlity, events, and properties
12946
12947 2004-07-19 10:49  jordi
12948
12949         * Control.cs: fixes SetBounds logic
12950
12951 2004-07-19 01:29  jordi
12952
12953         * Control.cs: Call RefreshWindow only if the window has created
12954
12955 2004-07-15 14:05  pbartok
12956
12957         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
12958           - Implemented ImageList and ImageList.ImageCollection classes
12959           - Added ColorDepth enumeration
12960           - Updated SWF VS.Net project
12961
12962 2004-07-15 11:06  jordi
12963
12964         * XplatUIStructs.cs: added MsgButons enum
12965
12966 2004-07-15 11:03  jordi
12967
12968         * Control.cs: added basic mouse handeling events
12969
12970 2004-07-15 03:38  jordi
12971
12972         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
12973           Vertical TrackBar control implementation
12974
12975 2004-07-13 09:33  jordi
12976
12977         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
12978
12979 2004-07-13 09:31  jordi
12980
12981         * Control.cs, Form.cs: commit: new properties and fixes form size
12982           problems
12983
12984 2004-07-09 14:13  miguel
12985
12986         * ProgressBar.cs: Spelling
12987
12988 2004-07-09 11:25  pbartok
12989
12990         * ProgressBar.cs:
12991           - Removed usage of Rectangle for drawing. Miguel pointed out it's
12992           faster
12993
12994 2004-07-09 11:17  miguel
12995
12996         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
12997
12998                 * ProgressBar.cs: Fixed spelling for `block'
12999
13000                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
13001                 style guidelines.
13002
13003                 Avoid using the += on rect.X, that exposed a bug in the compiler.
13004
13005 2004-07-08 23:21  pbartok
13006
13007         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
13008           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
13009           BaseCollection.cs, Binding.cs, BindingContext.cs,
13010           BindingMemberInfo.cs, BindingsCollection.cs,
13011           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
13012           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
13013           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
13014           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
13015           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
13016           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
13017           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
13018           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
13019           FrameStyle.cs, GiveFeedbackEventArgs.cs,
13020           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
13021           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
13022           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
13023           InputLanguageChangedEventArgs.cs,
13024           InputLanguageChangedEventHandler.cs,
13025           InputLanguageChangingEventArgs.cs,
13026           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
13027           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
13028           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
13029           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
13030           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
13031           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
13032           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
13033           QueryAccessibilityHelpEventArgs.cs,
13034           QueryAccessibilityHelpEventHandler.cs,
13035           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
13036           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
13037           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
13038           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
13039           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
13040           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
13041           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
13042           XplatUIX11.cs, lang.cs:
13043           - Initial check-in
13044