b90eb9b0ce04027fcec88004cc8166a20c851cfb
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2006-09-15  Chris Toshok  <toshok@ximian.com>
2
3         * XplatUIX11.cs:
4         - make the MessageQueues hashtable Synchronized.
5         
6         - SendMessage: if the Hwnd is owned by a different thread, use the
7         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
8         thread.  Fixes bug #79201.
9
10 2006-09-15  Chris Toshok  <toshok@ximian.com>
11
12         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
13         ControlBox == false, we disallow maximize/minimize/close.  If the
14         form Caption is "" we also disallow move (and get rid of the Title
15         decoration).  Unfortunately, regardless of how things are set,
16         we're stuck with the Title and WM menu.
17
18 2006-09-15  Chris Toshok  <toshok@ximian.com>
19
20         * Application.cs: add locking around the static message_filters
21         ArrayList, part of #79196.
22
23 2006-09-15  Chris Toshok  <toshok@ximian.com>
24
25         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
26         Form.ControlBox == false, the window has no titlebar nor resize
27         handles.  fixes bug #79368.
28
29 2006-09-15  Chris Toshok  <toshok@ximian.com>
30
31         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
32         >= 0.  Fixes bug #79370.
33
34 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
35         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
36         * Control.cs:
37             Add properties: LayoutEngine, Margin, DefaultMargin.
38             Add method: GetPreferredSize.
39             Move layout logic from PerformLayout to layout engines. 
40
41 2006-09-13  Chris Toshok  <toshok@ximian.com>
42
43         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
44         fix for #79326 broke #78718, so this change addresses that.
45
46         - in SendWMDestroyMessages remove the call to
47         CleanupCachedWindows, since we might be recreating the control and
48         need to maintain the references to right Hwnd handles.  Also, set
49         the zombie flag to true for each of the children in the hierarchy
50         instead of calling hwnd.Dispose.  This will cause GetMessage to
51         ignore all events for the window except for DestroyNotify.
52
53         - In GetMessage, ignore messages except for DestroyNotify for
54         zombie hwnds.
55         
56         * Control.cs: revert the is_recreating fix from the last
57         ChangeLog.  It's definitely "right", but it breaks switching from
58         an MDI form to a non-MDI form.  Will need to revisit that.
59
60         * Hwnd.cs: add a zombie flag, which means "the
61         client_window/whole_window handles are invalid, but we're waiting
62         for the DestroyNotify event to come in for them".  Set the flag to
63         false explicitly if setting WholeWindow/ClientWindow, and also
64         when Disposing.
65         
66 2006-09-13  Chris Toshok  <toshok@ximian.com>
67
68         * XplatUIX11.cs: rework window destruction slightly.
69
70         - when destroying the windows associated with a control, we don't
71         need 2 separate XDestroyWindow calls.  Just the one for the
72         whole_window (or for client_window if whole_window is somehow
73         IntPtr.Zero -- can this happen?) is enough.
74
75         - reworked SendWMDestroyMessages slightly, so we always dispose
76         the child control hwnd's after sending the messages.
77         
78         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
79         the two places it was used (one was even using hwnd.Handle and the
80         other hwnd.client_window.  ugh), adding another call in
81         SendWMDestroyMessages.  We need this new call because now the
82         DestroyNotify events in the queue will be ignored for the child
83         controls (as their hwnd's were disposed, and the window id's
84         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
85
86         - this fixes bug #79326.
87
88 2006-09-13  Chris Toshok  <toshok@ximian.com>
89
90         * Control.cs: don't always set is_recreating to false at the end
91         of RecreateHandle, since sometimes we're not done (and won't be
92         until WndProc handles the WM_DESTROY message).  Also, set
93         is_recreating to false in the WM_DESTROY handling code.  Part of
94         the fix for bug #79326.
95
96 2006-09-13  Miguel de Icaza  <miguel@novell.com>
97
98         * X11DesktopColors.cs: Start the droppage of debugging messages.
99
100         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
101
102 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
103
104         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
105
106 2006-09-12  Chris Toshok  <toshok@ximian.com>
107
108         * DataGrid.cs (get_ListManager): if the list_manager is null, try
109         to create it using SetDataSource.  Fixes bug #79151.
110
111 2006-09-11  Chris Toshok  <toshok@ximian.com>
112
113         * XEventQueue.cs: add a DispatchIdle property.
114
115         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
116         either the queue is null, or the queue has DispatchIdle set to
117         true.
118         (DoEvents): set queue.DispatchIdle to false around the
119         peek/translate/dispatch message loop in this method.  This keeps
120         Application.Doevents from emitting idle events.  Part of the fix
121         for #78823.
122
123 2006-09-11  Chris Toshok  <toshok@ximian.com>
124
125         * DataGrid.cs (set_DataSource): make this work for both the
126         winforms/datagrid test and ReportBuilder.  It seems as though when
127         we've created a ListManager (or maybe it's if we have a
128         BindingContext?), when we set the DataSource it clears the
129         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
130         #79333.
131
132 2006-09-11  Chris Toshok  <toshok@ximian.com>
133
134         * XplatUIX11.cs: deal with queue being null, which happens in all
135         the Clipboard functions.  Fixes one of the two problems mentioned
136         in #78612.
137
138 2006-09-11  Chris Toshok  <toshok@ximian.com>
139
140         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
141         button on various spots (including outside the menu) works closer
142         to MS, and doesn't crash.  Fixes #79343.
143
144 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
145
146         * ListView.cs: Do not initialize item_sorter in init. To match MS,
147         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
148         and the internal comparer is set. When a new ListViewItemSorter is set,
149         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
150         was specified. No further processing is necessary if SortOrder is set
151         to it's current value. If Sorting is modified to None, and View is
152         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
153         (either custom or our internal ItemComparer) to null, on 1.0 profile
154         only set item_sorter to null if its our internal IComparer. If Sorting
155         is modified to Ascending or Descending, then use our internal IComparer
156         if none is set, and if the current IComparer is our internal one then:
157         on 2.0 profile always replace it with one for new Sorting, and on 1.0
158         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
159         Enum.IsDefined to verify whether a valid View value is specified in
160         its setter. Automatically sort listview items when listview is
161         created. In Sort, do nothing if ListView is not yet created, or if
162         no item_sorter is set (no Sorting was set, Sorting was explicitly set
163         to None or ListViewItemSorter was set to null). Added Sort overload
164         taking a bool to indicate whether the ListView should be redrawn when
165         items are sorted (we use this in ListViewItemCollection to avoid double
166         redraws). Modified our internal IComparer to take the sort order into
167         account. In Add and AddRange methods of ListViewItemCollection, also
168         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
169         view), but use overload with noredraw option to avoid double redraw.
170         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
171         true when View is Tile, and do the same when attempting to set View to
172         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
173         for selected/checked indices, as it involves overhead when sorting is
174         done while these collections are not used all that often. Instead
175         we'll build the indices on demand. Modified IList implementation of
176         CheckedIndexCollection to use public methods if object is int.
177         Modified CheckedListViewItemCollection to hide checked items if
178         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
179         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
180         IList implementation in SelectedIndexCollection to use public methods
181         if object is int. Modified SelectedListViewItemCollection to hide
182         selected items if listview is not yet created.
183         * ListViewItem.cs: CheckedIndices list no longer needs to be
184         maintained separately (see ListView changes). Also clone font, fixes
185         test failure.
186
187 2006-09-11  Mike Kestner  <mkestner@novell.com>
188
189         * ComboBox.cs: if we are updating the contents of the currently
190         selected index, refresh the control or the textbox selection.
191         [Fixes #79066]
192
193 2006-09-11  Mike Kestner  <mkestner@novell.com>
194
195         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
196         the 'specified' logic has been moved there.  This seems like a bug 
197         in Control.cs, since our current SetBoundsCore completely ignores 
198         the specified parameter.  Peter's commit seems to indicate that is 
199         the way the MS control implementation works.  [Fixes #79325]
200
201 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
202
203         * XplatUI.cs: Set default_class_name to be composed
204         of current domain id. This allows MWF to be loaded in multiple
205         domains on Win32.
206
207 2006-09-09  Miguel de Icaza  <miguel@novell.com>
208
209         * X11Keyboard.cs: If we are unable to obtain the input method, do
210         not call CreateXic to create the input context.   Should fix
211         #78944/79276.
212
213 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
214
215         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
216           Simplified gnome support by adding more pinvokes to get the
217           icon for a file or mime type.
218
219 2006-09-08  Jackson Harper  <jackson@ximian.com>
220
221         * MenuAPI.cs: Deslect popup context menu items before closing the
222         window, so that you don't see the previously selected item
223         selected when you reopen the menu.
224         * TextControl.cs: Update the cursor position even if we don't have
225         focus.  This fixes typing in things like the ComboBox.  I'm not
226         totally sure we should always set the visibility if we don't have
227         focus, but couldn't find any corner cases where the cursor showed
228         up when it shouldn't.
229
230 2006-09-08  Chris Toshok  <toshok@ximian.com>
231
232         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
233         our arrays are length 256.  & 0xff before indexing.  Fixes the
234         crash in bug #78077.
235         
236 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
237
238         * ThemeWin32Classic.cs: 
239         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
240         is true. Handle that check box too.
241
242 2006-09-07  Chris Toshok  <toshok@ximian.com>
243
244         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
245         79244.
246
247 2006-09-07  Chris Toshok  <toshok@ximian.com>
248
249         * Control.cs: in set_BackColor only do the work if
250         background_color != value.
251
252         * XplatUIX11.cs: move the clearing of invalid areas (both client
253         and nc) to the same block of code where we set (nc_)expose_pending
254         to false.  That is, move it from PaintEventEnd to PaintEventStart,
255         so things that cause invalidates from within OnPaint will trigger
256         another call to OnPaint.  Fixes bug #79262.
257
258 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
259
260         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
261         * FileDialog.cs: Fix typo
262
263 2006-09-07  Jackson Harper  <jackson@ximian.com>
264
265         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
266         for tab pages if they have any.
267
268 2006-09-06  Mike Kestner  <mkestner@novell.com>
269
270         * Splitter.cs: use the "current" rect when finishing drag handle
271         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
272
273 2006-09-06  Mike Kestner  <mkestner@novell.com>
274
275         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
276         support offset splitters. [Fixes #79298]
277
278 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
279
280         * Mime.cs: Fixed a bug that could override the global mime type
281           result.
282
283 2006-09-05  Jackson Harper  <jackson@ximian.com>
284
285         * TabControl.cs: Better calculation method for setting the slider
286         pos. Prevents crashes on really wide tabs.
287         - Draw Image on tab pages if an image list is used.
288
289 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
290
291         * MonthCalendar.cs: When Font changes, the Size should be
292         updated to fit the new font's space requirements.
293
294 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
295
296         * ListBox.cs: If the items are cleared with Items.Clear set
297           top_index to 0.
298
299 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
300
301         * MonthCalendar.cs: Handle arrow keys as input keys. Also
302         fire DateChanged event instead of DateSelected event when
303         the date was changed by keyboard interaction.
304
305 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
306
307         * DateTimePicker.cs: Handle DateChanged for the associated
308         month_calendar control, and set month_calendar.Font from 
309         OnFontChanged method, as well as resize the height of the
310         control when needed. Make PreferredHeight proportional.
311
312 2006-09-01  Chris Toshok  <toshok@ximian.com>
313
314         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
315         properties.
316
317         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
318
319 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
320
321         * FileDialog.cs: Set ClientSize instead of window size, to allow space
322           for decorations (Fixes #79219)
323
324 2006-09-01  Mike Kestner  <mkestner@novell.com>
325
326         * ComboBox.cs: first stab at sorting plus some selection handling
327         fixes to bring us more in line with MS behavior.  Also switches back
328         to index based selection.  Alternative patches for index-based 
329         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
330         and latency@gmx.de on bug 78848.  I assume they were similar to this
331         code I've had simmering in my tree forever.
332         [Fixes #78848]
333
334 2006-09-01  Chris Toshok  <toshok@ximian.com>
335
336         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
337         when setting list position guard against ending up with a -1 index
338         (the other part of the fix for #78812).  Should probably make sure
339         we don't need the analogous fix in the ItemDeleted case.
340
341         * DataGrid.cs:
342         - in SetDataSource, work around the fact that the way
343         OnBindingContextChanged is invoked will cause us to re-enter this
344         method.  I'll remove the hack once I investigate
345         OnBindingContextChanged.
346
347         - fix the logic in set_DataSource and set_DataMember (basically
348         what to do if the other of the two is null.)
349         
350         - in OnListManagerItemChanged, we need to take into account the
351         edit row when deciding whether or not to call RecreateDataGridRows
352         (part of the fix for #78812).
353
354 2006-09-01  Jackson Harper  <jackson@ximian.com>
355
356         * Splitter.cs: Don't do anything if there is no control to affect
357         (prevents us from crashing in weird tet cases).
358         * TreeView.cs: Bounding box for the mouse movement reverting
359         focus/selection back to previously selected node.  This matches
360         MS, and makes the tree a lot more useable.
361         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
362         use clipping so they are not drawn.  This fixes when the control
363         is set to have a transparent background, or if it was over an
364         image.
365
366 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
367
368         * MimeIcon.cs: Improved handling for reading default icons when
369           using gnome (2.16 made it necessary). Check and read svg icons
370           first, then 48x48 and then 32x32 icons.
371
372 2006-08-31  Chris Toshok  <toshok@ximian.com>
373
374         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
375         visible.
376
377         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
378         ProcessKeyPreview.  Fixes part of #77806.
379
380         * DataGrid.cs: big patch.
381
382         - revert the queueing up of DataSource/DataMember if inside
383         BeginInit/EndInit calls.  That's not the way the datagrid achieves
384         its delayed databinding.  Instead, call SetDataSource in
385         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
386         #78811.
387
388         - Also, it wasn't mentioned in #78811, but the test case exhibits
389         behavior that was lacking in our datagrid implementation - Columns
390         that have mapping names that don't exist in the datasource's
391         properties aren't shown.  Yuck.  To fix this I added the bound
392         field to the column style, and basically any calculation to figure
393         out anything about columns uses a loop to find the bound columns.
394         still need to investigate if I can cache an array of the bound
395         columns or if the indices must be the same.
396
397         - When setting CurrentCell, we no longer abort if the cell being
398         edited was in the add row.  This fixes the other part of #77806.
399
400         - The new code also fixes #78807.
401         
402         * ThemeWin32Classic.cs: perpetrate the same disgusting
403         column.bound field hack, and only render bound fields.
404
405 2006-08-31  Chris Toshok  <toshok@ximian.com>
406
407         * DataGridColumnStyle.cs: add bound field.  this field is true if
408         the datasource has a property corresponding to the mapping name.
409
410         * DataGridTableStyle.cs: set the bound field on the column styles
411         depending on whether or not we have a column for that property.
412
413 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
414
415         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
416           splitter control (fixes #79228)
417
418 2006-08-31  Chris Toshok  <toshok@ximian.com>
419
420         * DataGridColumnStyle.cs: we need to delay the assignment of
421         property descriptor until the last possible moment due to the lazy
422         databinding stuff in the datagrid.  Also, fix the exceptions
423         thrown by CheckValidDataSource to match MS.
424
425 2006-08-31  Jackson Harper  <jackson@ximian.com>
426
427         * Form.cs: When activated select the active control, if there is
428         no active control, we select the first control.
429         * XplatUIX11.cs: If there is no focus control when we get a
430         FocusIn event, find the toplevel form and activate it.  This
431         occurs when you popup a window, it becomes the focus window, then
432         you close that window, giving focus back to the main window.
433
434 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
435
436         * MonthCalendar.cs: 
437         * ThemeWin32Classic.cs: Cache Font in bold style, as well
438         as StringFormat with Center alignments in MonthCalendar,
439         instead of creating new ones when drawing the control. 
440         Also, draw the month name in bold style.
441
442 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
443
444         * Control.cs:
445           - PerformLayout(): It would seem MS performs the fill even if the 
446             control is not visible (part of #79218 fix)
447           - ResetBackColor(): Use the setter to reset the color, to allow
448             overriders to catch the change.
449         * Form.cs:
450           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
451           - CreateHandle(): dito (part of $79218 fix)
452           - Don't set an icon if we have a dialog
453         * ScrollableControl.cs:
454           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
455           - ScrollIntoView(): No need to scroll if control is already visible
456             (resolves fixme and fixes #79218)
457
458 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
459
460         * MonthCalendar.cs: Change proportions in SingleMonthSize
461         to match the aspect of the original control.
462
463 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
464
465         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
466           get updated when they get maximized.
467
468 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
469
470         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
471
472 2006-08-29  Chris Toshok  <toshok@ximian.com>
473
474         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
475
476 2006-08-29  Jackson Harper  <jackson@ximian.com>
477
478         * TreeView.cs: Need to track selected node and highlighted node,
479         they aren't always the same thing, when the mouse is down on a
480         node it is hilighted, but not selected yet.
481         - Do the HideSelection stuff right
482         - Need to focus on rbutton mouse down. And redraw selection when
483         right click is mouse upped.
484
485 2006-08-29  Mike Kestner  <mkestner@novell.com>
486
487         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
488         when SubItems.Count < Columns.Count.  [Fixes #79167]
489
490 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
491
492         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
493
494 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
495
496         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
497           from X. Only send based on ConfigureNotify if we don't have the
498           correct location in hwnd (if the window manager moved us)
499
500 2006-08-28  Mike Kestner  <mkestner@novell.com>
501
502         * ListView.cs: remove a TODO. 
503         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
504         [Fixes ListView part of #79166]
505
506 2006-08-28  Mike Kestner  <mkestner@novell.com>
507
508         * ListView.cs: move wheel handler to parent since it is focused
509         instead of the item_control now.  [Fixes #79177]
510
511 2006-08-28  Mike Kestner  <mkestner@novell.com>
512
513         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
514         when the control is focused. [Fixes #79171]
515
516 2006-08-28  Mike Kestner  <mkestner@novell.com>
517
518         * ListView.cs: size the item and header controls for empty and
519         unscrollable views.
520         * ThemeWin32Classic.cs: draw disabled backgrounds.
521         [Fixes #79187]
522
523 2006-08-28  Chris Toshok  <toshok@ximian.com>
524
525         * Form.cs: remove unused "active_form" static field.
526
527         * Hwnd.cs: lock around accesses to static windows collection.
528
529         * Application.cs: lock threads in Exit ().
530
531 2006-08-28  Chris Toshok  <toshok@ximian.com>
532
533         * NativeWindow.cs: lock around accesses to window_collection.
534         
535 2006-08-28  Chris Toshok  <toshok@ximian.com>
536
537         * Control.cs: err, fix this the right way, by locking on controls
538         when using it.  not by making it synchronized.
539
540 2006-08-28  Chris Toshok  <toshok@ximian.com>
541
542         * Control.cs: make the static "controls" field synchronized, as it
543         gets updated from multiple threads.
544
545 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
546
547         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
548           Prevent other threads from exiting when calling thread sets quit state.
549         * XEventQueue.cs: Added PostQuitState property
550
551 2006-08-27  Chris Toshok  <toshok@ximian.com>
552
553         * AsyncMethodData.cs: add a slot for the window handle.
554
555         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
556         window (the destination control's window, not the foster window).
557
558         * Control.cs (BeginInvokeInternal): store the window's handle in
559         the AsyncMethodData.
560         
561
562 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
563
564         * XplatUIX11.cs:
565           - PostQuitMessage: Removed resetting S.D display handle, we might have
566             another loop started after calling PostQuitMessage (Fixes #79119)
567           - Created destructor to reset S.D handle
568
569 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
570
571         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
572
573 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
574
575         * TextControl.cs (Insert): Update the caret position even if we don't
576           have a handle yet, just don't call the driver in that case.
577         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
578           to the end of the new selection text (Fixes #79184)
579
580 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
581
582         * Form.cs (Activate): Only activate if the handle is created)
583         * Control.c:
584           - Mark window as invisible when it's disposed
585           - Check if window handle is created when setting window visible, 
586             instead of relying just on the is_created variable
587           - Check if object is disposed when creating the control (Fixes #79155)
588
589 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
590
591         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
592           when allowing layout again. Otherwise we re-generate the anchoring 
593           distance to the border again and actually alter what the user wanted
594           This is ugly, it'd be better if we used DisplayRectangle instead of
595           ClientRectangle for Control.UpdateDistances, but that causes us to
596           have other problems (initial anchoring positons would be wrong)
597           (Fixes #78835)
598
599 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
600
601         * Control.cs:
602           - The size and location setters shouldn't go directly to 
603             SetBoundsCore, but to SetBounds, which triggers layout on the
604             parent, then calls SetBoundsCore. (Related to fix for #78835)
605           - SetBounds: Moved actual location update code into this function
606             from SetBoundsCore, to match MS. Added call to PerformLayout if
607             we have a parent (to trigger resizing of anchored parents if the 
608             child size has changed (see testcase for #78835) 
609         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
610           new control code
611         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
612
613 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
614
615         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
616           System.Drawing when a toplevel window gets closed; there might
617           be other toplevel windows belonging to the same app (Fixes #78052)
618
619 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
620
621         * FileDialog.cs: After reading FileDialog settings from mwf_config
622           use Desktop prefix only if a real folder doesn't exist anymore.
623         * FontDialog.cs: Added char sets.
624           It is now possible to select the font, size or style with the
625           textboxes.
626
627 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
628
629         * PrintPreviewDialog.cs: Use assembly name constants.
630
631 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
632
633         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
634           scrollbar from whacking it's buttons)
635
636 2006-08-24  Chris Toshok  <toshok@ximian.com>
637
638         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
639         in this patch (aggregating setting Left/Top/Width/Height to
640         setting Bounds on the scrollbars), but the crux of the fix is in
641         Recalculate, where we scroll by the remaining scroll_position if
642         we're hiding a scrollbar.  The 2*$5 reward in the comment is
643         serious.
644
645 2006-08-24  Jackson Harper  <jackson@ximian.com>
646
647         * MdiClient.cs:
648         * MdiWindowManager.cs: If the form is made a non-mdi window we
649         need to remove the form closed event so that closing forms works
650         correctly.
651
652 2006-08-24  Jackson Harper  <jackson@ximian.com>
653
654         * Control.cs: Make IsRecreating internal so that the driver can
655         check it
656         - Temporarily remove the Hide when controls are removed, its
657         making a whole bunch of things not work because visibility isn't
658         getting reset elsewhere correctly
659         * Form.cs: Need to do a full handle recreation when the mdi parent
660         is set.
661         * XplatUIX11.cs: If we are recreating handles don't dispose the
662         HWNDs.  What was happening is the handles were being recreated in
663         SendWMDestroyMessages, but then flow continued on in that method
664         and destroyed the new handles.
665
666 2006-08-23  Jackson Harper  <jackson@ximian.com>
667
668         * Form.cs: MdiClient is always at the back of the bus
669         * Control.cs: When the order of items in the collection is changed
670         we need to reset the all_controls array
671         - do the same sorta setup thats done when adding a control when a
672         control is set on the collection.
673
674 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
675
676         * TextBoxBase.cs (get_Text): Return an empty array if our document
677           is empty (fixes #79052)
678
679 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
680
681         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
682           on WM_SYSCHAR messages (fixes #79053)
683
684 2006-08-23  Chris Toshok  <toshok@ximian.com>
685
686         * DataGrid.cs: fix flickering when scrolling vertically.
687
688 2006-08-23  Chris Toshok  <toshok@ximian.com>
689
690         * DataGrid.cs (EndEdit): only invalidate the row header when we
691         need to.
692
693 2006-08-23  Chris Toshok  <toshok@ximian.com>
694
695         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
696         methods.  fixes the flicker when scrolling around.
697
698 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
699
700         * FileDialog.cs: Making sure the control is created before we get a 
701           chance to use it with BeginInvoke (Fixes #79096)
702
703 2006-08-23  Chris Toshok  <toshok@ximian.com>
704
705         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
706         width to use when painting the rows.
707
708 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
709
710         * TextBoxBase.cs:
711           - Throw ArgumentException if a negative value is passed to SelectionLength
712           - Update the selection end if start is moved. end needs to be always
713             after start. (Fixes #79095)
714           - Track selection length; MS keeps the selection length even if start
715             is changed; reset on all other operations affection selection
716
717 2006-08-22  Jackson Harper  <jackson@ximian.com>
718
719         * TreeView.cs: Make sure both scrollbars get displayed and sized
720         correctly when the other bar is visible.
721         - Use the original clip rectangle for checking if the area between
722         the two scrollbars is visible, not the viewport adjusted clipping
723         rectangle.
724
725 2006-08-22  Jackson Harper  <jackson@ximian.com>
726
727         * Binding.cs: We don't use IsBinding because it requires the
728         control to be created, which really shouldn't be necessary just to
729         set a property on the control.
730
731 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
732
733         * ComboBox.cs: Some CB.ObjectCollection methods must throw
734         ArgumentNullReferenceException when the argument is null.
735
736 2006-08-21  Jackson Harper  <jackson@ximian.com>
737
738         * Timer.cs: Track the thread that the timer is started in (NOT
739         CREATED), this way messages for it will only be triggered on its
740         queue.
741         * XEventQueue.cs: Track the timers here, this makes timers per
742         thread, like MS.
743         * XplatUIX11.cs: The timers are moved to the XEventQueue.
744
745 2006-08-19  Chris Toshok  <toshok@ximian.com>
746
747         * XplatUIX11.cs: after further communication with pdb, we get the
748         best of both worlds.  SetZOrder working for un-Mapped windows, and
749         no X errors for un-mapped windows.
750
751 2006-08-19  Chris Toshok  <toshok@ximian.com>
752
753         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
754         as it was causing pdn toolbars to not have the correct stacking.
755
756 2006-08-18  Mike Kestner  <mkestner@novell.com> 
757
758         * ListView.cs : guard against negative ClientArea.Width in scrollbar
759         calculation.  Not sure why control should ever be setting a negative
760         width though.  Fixes #78931.
761
762 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
763
764         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
765         null items in ObjectCollection class.
766         * ListBox.cs.: Likewise.
767
768 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
769
770         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
771           as the base method in ThemeWin32Classic should work fine.
772           Fixed bug #78607.
773
774 2006-08-18  Jackson Harper  <jackson@ximian.com>
775
776         * Binding.cs: When validating if the value entered doesn't convert
777         properly reset to the old value.
778         * RadioButton.cs: Don't fire click when we get focus.
779
780 2006-08-18  Jackson Harper  <jackson@ximian.com>
781
782         * FileDialog.cs: Paint the selection on the directory combobox the
783         same way as on MS. 
784
785 2006-08-17  Jackson Harper  <jackson@ximian.com>
786
787         * ErrorProvider.cs: Don't allow the error control to be selected.
788         * Control.cs: Don't send the SetFocus messages, the control
789         activation will do this, and if we do it blindly here validation
790         does not work.
791
792 2006-08-17  Jackson Harper  <jackson@ximian.com>
793
794         * Control.cs:
795         * ContainerControl.cs: Make validation events fire in the correct
796         order.  TODO: For some reason the first validation event is not
797         getting fired.
798
799 2006-08-17  Mike Kestner  <mkestner@novell.com> 
800
801         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
802
803 2006-08-17  Mike Kestner  <mkestner@novell.com> 
804
805         * ComboBox.cs : implement scroll wheel support for popped-down
806         state. Fixes #78945. 
807
808 2006-08-17  Jackson Harper  <jackson@ximian.com>
809
810         * TreeView.cs: Specify treeview actions (old patch that didn't get
811         committed for some reason).
812         - Don't let the mouse wheel scroll us too far.  Just want to make
813         the bottom node visible, not scroll it all the ways to the top.
814
815 2006-08-17  Jackson Harper  <jackson@ximian.com>
816
817         * XplatUIX11.cs: Mouse wheel events go to the focused window.
818
819 2006-08-17  Mike Kestner  <mkestner@novell.com> 
820
821         * ComboBox.cs : don't do mouseover selection in simple mode.
822
823 2006-08-16  Jackson Harper  <jackson@ximian.com>
824
825         * Form.cs: Fire the closing events for all the mdi child windows
826         when a window is closed.  If the cancel args are set to true, the
827         main window still gets the event fired, but it doesn't not close.
828         * MdiWindowManager.cs: Do this closing cleanup in a Closed
829         handler, instead of when the button is clicked, so cancelling the
830         close works correctly.
831         * ComboBox.cs: Send the mouse down to the scrollbar.
832
833 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
834
835         * ListBox.cs: When passing 'null' to SelectedItem,
836         set SelectedIndex to -1, to unselect items. This is the
837         observed behaviour in .Net.
838
839 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
840
841         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
842           MS flags saying there won't be any. (fixes #78800)
843         * Control.cs (HandleClick): Made virtual
844
845 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
846
847         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
848           cultures. Fixed bug #78399.
849
850 2006-08-16  Jackson Harper  <jackson@ximian.com>
851
852         * Form.cs: Use the MdiClients MdiChildren property to access
853         MdiChildren instead of creating the array from the child controls.
854         * MdiClient.cs: Maintain a separate array of the mdi children, so
855         that insertion order is maintained when the Z-order is changed.
856
857 2006-08-16  Mike Kestner  <mkestner@novell.com> 
858
859         * ListView.cs : add an ItemComparer and default to it for sorting.
860         Fixes #79076, but sorting needs a complete overhaul to be compat with
861         MS.
862
863 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
864
865         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
866
867 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
868
869         * Hwnd.cs (Mapped): Properly traverse the tree
870
871 2006-08-15  Chris Toshok  <toshok@ximian.com>
872
873         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
874         pass manager.Current.GetType() to ParseData.  It has to be the
875         property type.  So, hold off doing the ParseData until we're in
876         SetPropertyValue where we know the type.  This fixes the crash in
877         #78821 but the textbox is still empty.
878
879 2006-08-15  Chris Toshok  <toshok@ximian.com>
880
881         * DataGrid.cs:
882         - when we're scrolling, only call Edit() again if the
883         current cell is still unobscured. Fixes bug #78927.
884         - when handling mousedown on a cell, ensure the cell is visible
885         before calling Edit.
886         - remove the properties from DataGridRow, and remove the
887         DataGridParentRow class altogether.
888         
889
890 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
891
892         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
893           fire OnTextChanged by ourselves. There's no point calling base,
894           we don't set the base value anywhere else. Fixes #78773.
895
896 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
897
898         * ListBox.cs: Call CollectionChanged when modifying
899         an item from Items indexer, to update the actual items
900         in the list box.
901
902 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
903
904         * PrintDialog.cs: Small fixes for focus and a pair of checks,
905         to match .Net behaviour.
906
907 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
908
909         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
910
911 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
912
913         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
914
915 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
916
917         * MessageBox.cs: Prevent potential NRE exception.
918         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
919
920 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
921
922         * MessageBox.cs: Calculate the owner of a messagebox, also make
923           it topmost. Fixes #78753
924
925 2006-08-14  Chris Toshok  <toshok@ximian.com>
926
927         * XplatUIX11.cs: A couple of fixes so that metacity will let us
928         programmatically move windows.  first, set the PPosition hint as
929         well as the USPosition hint.  Second include some code from pdb
930         that sets the window type to NORMAL when we set the transient for
931         hint.  This is because, in the absence of a window type, metacity
932         thinks any window with TransientFor set is a dialog, and refuses
933         to let us move it programmatically.  fascists.
934
935 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
936
937         * XplatUIX11.cs: When setting normal hints, take into consideration
938           an different hints previously set so we don't delete them (fixes #78866)
939
940 2006-08-12  Chris Toshok  <toshok@ximian.com>
941
942         * ToolBarButton.cs: make Layout return a boolean, if something to
943         do with the button's layout changed.
944
945         * ToolBar.cs:
946         - add another parameter to Redraw, @force, which all existing
947           calls set to true.
948         - make the Layout function return a boolean which is true if the
949           layout has actually changed.  Redraw now uses this (and @force)
950           to determine when to invalidate.  At present the only place
951           where @force can be false is the call from OnResize, when
952           background_image == null.  So, resizing a toolbar when the
953           layout doesn't change results in no drawing.
954
955 2006-08-12  Chris Toshok  <toshok@ximian.com>
956
957         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
958         the VScrollBar and HScrollbar reversed.  oops.
959
960         * DataGrid.cs: fix the logic that assigns sizes to the implicit
961         scrollbars.  we were assigning them twice (once in
962         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
963         therefore causing two scrollbar resizes (and redraws?) to happen
964         per grid resize.
965
966 2006-08-12  Chris Toshok  <toshok@ximian.com>
967
968         * ToolBarButton.cs: redraw the entire button if the theme tells us
969         to.
970
971         * Theme.cs: add ToolBarInvalidateEntireButton.
972
973         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
974         buttons, just the border.
975
976         * ThemeNice.cs: redraw the entire toolbar button since we need to
977         draw the highlight image.
978
979         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
980         we need to redraw the entire button (not just the border).
981
982 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
983
984         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
985           for vertical bars. Fixes the mismatches shown by #78513
986
987 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
988
989         * FileDialog.cs: If a saved/remembered path doesn't exist
990           anymore, fall back to "Desktop".
991
992 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
993
994         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
995           parent. It's apparently legal to not have one
996         * XplatUIX11.cs:
997           - SetZOrder: Don't try to set Z-Order on an unmapped window
998           - CreateWindow: 0,0 are legal coordinates for a window. don't move
999             it unless the coordinates are negative
1000
1001 2006-08-10  Mike Kestner  <mkestner@novell.com>
1002
1003         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
1004         when setting to null per msdn docs.  Fixes #78854.
1005
1006 2006-08-10  Chris Toshok  <toshok@ximian.com>
1007
1008         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
1009         flickering by setting a clip rectangle on the Graphics when we
1010         need to redraw just a particular menuitem.  Also, rename "OnClick"
1011         to "OnMouseDown" to reflect what it actually is.
1012         
1013         * Form.cs: track the OnMouseDown change.
1014
1015 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
1016
1017         * CommonDialog.cs: Properly inherit the CreateParams from the form
1018           and only change what we need. Fixes #78865
1019
1020 2006-08-10  Chris Toshok  <toshok@ximian.com>
1021
1022         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
1023         flickering in flat mode (and most of the flickering in general) by
1024         only invalidating the button border (and not the entire rectangle)
1025         when the state changes.  A couple of cases still flicker:
1026         ToggleButtons, and the dropdown arrow case when the user mouse
1027         ups.
1028
1029 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
1030
1031         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
1032           for german keyboards. Numlock state shouldn't affect the behaviour
1033           of the Del key. Fixes bug #78291.
1034
1035 2006-08-10  Chris Toshok  <toshok@ximian.com>
1036
1037         * ListControl.cs: remove the items.Clear line from BindDataItems,
1038         as this is the first thing done by both subclasses in their
1039         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
1040         passed -1, refresh the list.  This gets databinding working when
1041         the datasource is set on the list before the datasource is
1042         populated (as in wf-apps/ReportBuilder.)
1043
1044         * ComboBox.cs: remove the argument to BindDataItems.  This call
1045         should really go away, and be initiated by the ListControl code.
1046
1047         * ListBox.cs: same.
1048
1049 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
1050
1051         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
1052           if no data is in the document when the control is displayed
1053
1054 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
1055
1056         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
1057           yes (fixes #78806)
1058         * TextControl.cs: 
1059           - PositionCaret: Allow positioning of caret but don't call methods 
1060             requiring a handle if the window isn't created yet
1061           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
1062           - owner_HandleCreated: Don't position the caret, just update it's 
1063             location. User might have already set a different position
1064
1065 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
1066
1067         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
1068           windows. Screws up the returned coordinates for child windows. 
1069           Fixes #78825. I'm hoping this doesn't break something, since the
1070           code was explicitly put in 8 months ago, but no bug was attached.
1071           Menus still seem to work properly.
1072
1073 2006-08-08  Chris Toshok  <toshok@ximian.com>
1074
1075         * DataGrid.cs: make BeginInit/EndInit actually do what they're
1076         supposed to do - delay data binding until the EndInit call.  Also,
1077         make the table style collection's CollectionChangeAction.Refresh
1078         work properly.
1079
1080         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
1081         (with action = Refresh) when a consituent table's MappingName is
1082         changed.
1083
1084 2006-08-08  Chris Toshok  <toshok@ximian.com>
1085
1086         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
1087         Invalidate, since changing the text can change the size of the all
1088         toolbar buttons.
1089
1090 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
1091
1092         * Form.cs (AddOwnedForm): Still need to add the form to our listif
1093           we don't have it yet
1094
1095 2006-08-08  Chris Toshok  <toshok@ximian.com>
1096
1097         * PrintControllerWithStatusDialog.cs: don't .Close() the status
1098         dialog, as this causes X errors later on, since we actually
1099         destroy the window.  Instead, .Hide() it.
1100
1101 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
1102
1103         * ComboBox.cs: Added focus reflection for popup window
1104         * XplatUIX11.cs: 
1105           - Removed transient setting for non-app windows for now, not sure it
1106             was needed
1107           - Fixed logic checking if we have captions when deciding 
1108             override_redirect, WS_CAPTION is two bits and a 0 check was not
1109             sufficient
1110           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
1111             complicated
1112         * Form.cs: 
1113           - AddOwnedForm: Don't just add the form to the list, call the property
1114             to ensure the driver is informed about the ownership as well
1115           - CreateHandle: Set the TopMost status in the driver if we have an owner
1116         * XplatUI.cs: Fixed debug statement
1117
1118 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
1119         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
1120           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
1121           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
1122           TrackBarRenderer.cs: Make constructor private.
1123         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
1124         * ProfessionalColorTable.cs: Make properties virtual.
1125
1126 2006-08-06  Duncan Mak  <duncan@novell.com>
1127
1128         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
1129         is not changing.
1130
1131 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
1132         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
1133           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
1134           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
1135           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
1136           Initial import of new 2.0 classes.
1137
1138 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
1139         * Application.cs: Add 2.0 VisualStyles properties.
1140
1141 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
1142         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
1143           XplatUIX11.cs: Create property to allow access to existing private
1144           variable "themes_enabled"
1145
1146 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1147
1148         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
1149         file size, as otherwise our class libraries fail using windows. Fixes
1150         bug #78759.
1151
1152 2006-08-04  Jackson Harper  <jackson@ximian.com>
1153
1154         * Form.cs:
1155         * XplatUIX11.cs: Move the toolwindow window manager creation into
1156         the X11 driver, this way on win32 we can let windows create/handle
1157         the toolwindows.
1158
1159 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1160
1161         * PrintDialog.cs: Remove some redundant checks, add some others,
1162         clean some code, and move the focus to the text boxes when the
1163         values are incorrect.
1164
1165 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
1166
1167         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
1168
1169 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
1170
1171         * NumericUpDown.cs: Setting the Minimum and Maximum is now
1172           handled correctly. Fixes bug #79001.
1173
1174 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1175
1176         * PrintDialog.cs: The "Copies" numeric up down must have
1177         set the Minimum property to 1; only if the value is bigger
1178         than 1, activate "Collate" check box. This is the behaviour of .Net.
1179         Also modify the Document elements only if it is not null.
1180
1181 2006-08-03  Jackson Harper  <jackson@ximian.com>
1182
1183         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
1184         length. (We have a larger array then actual node count).
1185                 
1186 2006-08-03  Jackson Harper  <jackson@ximian.com>
1187
1188         * ComboBox.cs: Don't show selection by default.
1189         - The SelectAll isn't needed here, since the focus code should do
1190         that
1191         - DDL style lists to manual selection drawing, so when they
1192         get/lose focus they have to invalidate.
1193
1194 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
1195
1196         * TextBoxBase.cs: Don't always show all selections by default.
1197
1198 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
1199         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
1200           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
1201           Fixed various typos.
1202
1203 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
1204
1205         * Control.cs: Removing the controls in a ControlCollection with
1206           Clear now hides the controls as expected. Fixes bug #78804. 
1207
1208 2006-08-03  Jackson Harper  <jackson@ximian.com>
1209
1210         * Control.cs: Revert previous focus patch, it breaks reflector.
1211
1212 2006-08-03  Jackson Harper  <jackson@ximian.com>
1213
1214         * ComboBox.cs: Cleanup selection and focus with the combobox.
1215         This also eliminates some duplicated keyboard code, since now
1216         everything is handled by the main class.
1217         - Make list selection work on mouse up instead of down, to match
1218         MS.
1219
1220 2006-08-02  Jackson Harper  <jackson@ximian.com>
1221
1222         * Control.cs: Setting focus needs to go through the whole
1223         selection mechanism.
1224
1225 2006-08-02  Chris Toshok  <toshok@ximian.com>
1226
1227         * PrintPreviewDialog.cs: change MinimumSize to use
1228         base.MinimumSize so it works.
1229
1230 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
1231
1232         * TextControl.cs:
1233           - UpdateCaret: Added sanity check in case caret isn't defined yet
1234           - Line.Delete: Now updating selection and caret markers if we're
1235             transfering a node (Properly fixes #78323)
1236           - SetSelectionEnd: Added sanity check
1237         * TextBoxBase.cs: Removed broken attempt to fix #78323
1238
1239 2006-08-01  Chris Toshok  <toshok@ximian.com>
1240
1241         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
1242         Close() call is handled in Form, not here.
1243
1244 2006-08-01  Chris Toshok  <toshok@ximian.com>
1245
1246         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
1247         layout/rendering.
1248
1249         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
1250         for sizes < 100% zoom.  The code now aggressively attempts to keep
1251         from calling document.Print (), and tries not to use the scaling
1252         g.DrawImage whenever possible (it still does if you scale to >
1253         100%, since usually that involves huge images).
1254
1255         * PrintPreviewControl.cs: hook up the close button.
1256
1257 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
1258         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
1259           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
1260           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
1261           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
1262           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
1263           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
1264           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
1265           Removed [Serializable] for 2.0 Event Handlers.
1266
1267 2006-07-31  Jackson Harper  <jackson@ximian.com>
1268
1269         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
1270         * TextControl.cs: Uncomment out the body of this method.
1271
1272 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
1273
1274         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
1275           standard cursors.
1276
1277 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
1278
1279         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
1280           that embed TextBox and need selections visible even if textbox is not
1281           focused to enforce that behaviour.
1282         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
1283           selection drawing
1284
1285 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
1286
1287         * TextControl.cs:
1288           - Added new SetSelectionStart/SetSelectionEnd overloads
1289           - Fixed viewport width assignment to be accurate
1290           - Adjusted alignment line shift calculations to allow cursor on right
1291             aligned lines to be always visible at the right border (like MS)
1292         * TextBoxBase.cs:
1293           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
1294           - TextBoxBase_SizeChanged: recalculating canvas on size changes
1295           - CalculateScrollBars: Use ViewPort size instead of window size, to
1296             properly consider space occupied by the border and scrollbars 
1297             (Fixes #78661)
1298           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
1299             calculations; no longer leaves artifacts
1300           - CaretMoved: Adjusted window scrolling to match MS and fixed several
1301             calculation bugs (Still missing right/center align calculations)
1302
1303 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
1304
1305         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
1306           use of both scroll rect and clip rect, as they do the same.
1307
1308 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
1309
1310         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
1311           in the event handler (fixes #78912)
1312
1313 2006-07-31  Chris Toshok  <toshok@ximian.com>
1314
1315         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
1316         grid.ListManager.Count, since grid.ListManager might be null.
1317         This of course begs the question "why are we drawing rows for a
1318         grid with no list manager (and therefor no rows)?"  Fixes the
1319         crash in bug #78929.
1320
1321 2006-07-31  Chris Toshok  <toshok@ximian.com>
1322
1323         * RelatedPropertyManager.cs: Don't always chain up to the parent
1324         ctor.  instead, call SetDataSource if the parent's position is !=
1325         -1.  Fixes the crash in #78822.
1326
1327 2006-07-31  Chris Toshok  <toshok@ximian.com>
1328
1329         * DataGrid.cs (get_ListManager): use field instead of property
1330         accessors for datasource and datamember.
1331         (RowsCount): make internal again.
1332         (OnMouseDown): end edits before resizing columns/rows.
1333         (OnMouseUp): restart edits after resizing columns/rows.
1334
1335 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
1336
1337         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
1338           This fixes the situation where the last set cursor is displayed
1339           whenever the mouse is over scrollbars.
1340
1341 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1342
1343         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
1344         Document properties, as well as initial values.
1345
1346 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
1347
1348         * XplatUIWin32.cs (SetBorderStyle): Setting both border
1349           and ClientEdge results in a 3-pixel border, which is
1350           wrong.
1351
1352 2006-07-28  Jackson Harper  <jackson@ximian.com>
1353
1354         * TreeNodeCollection.cs: Fix the clear method.
1355         - Fix the Shrink also
1356
1357 2006-07-27  Jackson Harper  <jackson@ximian.com>
1358
1359         * TreeView.cs: Make sure the visible order is computed when we
1360         attempt to size the scrollbars (for trees that mess with the
1361         scrolling when they shouldn't.
1362         - Make sure to give the scrollbars valid values.
1363
1364 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
1365
1366         * XplatUIX11.cs: Move motion compression code to where it
1367           has less performance impact
1368
1369 2006-07-26  Jackson Harper  <jackson@ximian.com>
1370
1371         * UpDownBase.cs: When the control is selected make the child
1372         controls non selectable, so that a click on them won't do a
1373         focus/unfocus cycle.
1374         - Don't give focus to the text box when the spinner is selected.
1375         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
1376
1377 2006-07-26  Chris Toshok  <toshok@ximian.com>
1378
1379         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
1380         satisfied with this solution.  If the bitmaps are small, we should
1381         just cache them in the PrintPreviewDialog and draw them here.
1382         Also, the layout is broken for the 2-up and 3-up cases.
1383
1384         * Theme.cs: add PrintPReviewControlPaint.
1385
1386         * PrintPreviewDialog.cs: first pass implementation.
1387
1388         * PrintPreviewControl.cs: first pass implementation.  No
1389         scrollbars yet.
1390
1391         * PrintDialog.cs: only validate fields if that particular portion
1392         of the UI is enabled.  Also, set the document's controller to a
1393         PrintControllerWithStatusDialog wrapping the document's print
1394         controller.
1395
1396         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
1397         bring up a SaveFileDialog (i hope we don't want to match the
1398         behavior of the crappy windows file entry) and set the
1399         PrinterSettings.PrintFileName accordingly.
1400
1401 2006-07-26  Jackson Harper  <jackson@ximian.com>
1402
1403         * ContainerControl.cs: Add a field that disables auto selecting
1404         the next control in a container when the container is activated.
1405         * UpDownBase.cs: Don't select the text box when the up down is
1406         selected.
1407
1408 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
1409
1410         * XEventQueue.cs: Added methods for peeking (used for compression
1411           of successive events)
1412         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
1413           mouse move events (fixes #78732)
1414
1415 2006-07-25  Jackson Harper  <jackson@ximian.com>
1416
1417         * UpDownBase.cs: Use an internal class for the textbox so that we
1418         can control focus.  the updown control should always have focus,
1419         if either the text area or the buttons are clicked.
1420         - Send the key messages to the textbox, since it never actually
1421         has focus
1422         - Activate and decativate the textbox caret.
1423
1424 2006-07-24  Jackson Harper  <jackson@ximian.com>
1425
1426         * Control.cs: Use the directed select when selecting a control,
1427         this way the container controls override will get called and the
1428         whole ActiveControl chain will get triggered.  TODO: probably need
1429         to make sure this gets done everywhere instead of the old
1430         Select(Control).
1431         * ContainerControl.cs: Implement the directed Select method to
1432         find and activate the correct child control.    
1433         
1434 2006-07-22  Mike Kestner  <mkestner@novell.com>
1435
1436         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
1437         menu handling code so that clicks without a grab work too.
1438         [Fixes #78914]
1439
1440 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
1441
1442         * FileDialog.cs: Enable the BackButton when dirstack has one element.
1443           Added some small optimizations.
1444
1445 2006-07-21  Matt Hargett  <matt@use.net>
1446
1447         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
1448
1449 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
1450
1451         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
1452           tests pass and match MS in some strange border cases.
1453
1454 2006-07-21  Chris Toshok  <toshok@ximian.com>
1455
1456         * ThemeWin32Classic.cs: handle drawing of the relation links and
1457         parent row buttons.
1458
1459         * Theme.cs: change args to DataGridPaintParentRow.
1460
1461         * DataGrid.cs: Don't use controls for the relation links and
1462         parent buttons, so we have to handle all their interactions in
1463         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
1464         when we're navigating through child tables, so we can reinstate
1465         selection, expanded state, current cell, etc.
1466
1467 2006-07-20  Chris Toshok  <toshok@ximian.com>
1468
1469         * ToolBar.cs: When we redraw a button, for whatever reason,
1470         there's no reason to redraw the entire toolbar.  Also, don't call
1471         Control.Refresh from within Redraw, as it's much heavier than
1472         Invalidate (which is really what we want).
1473
1474 2006-07-20  Chris Toshok  <toshok@ximian.com>
1475
1476         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
1477         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
1478         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
1479         traces from within a debug IBindingList datasource
1480         (in mono/winforms/datagrid) for *days*, I've finally gotten things
1481         to work in a similar fashion.
1482
1483 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1484
1485         * ListBox.cs: Don't call Sort () when setting 
1486         the Sorted property to false (avoid an unnecessary sort).
1487
1488 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1489
1490         * ListControl.cs: DataSource should throw an ArgumentException
1491         instead of a normal exception when the argument is not of the 
1492         correct type.
1493
1494 2006-07-20  Mike Kestner  <mkestner@novell.com>
1495
1496         * Control.cs: add InternalPreProcessMessage to allow us to steal
1497         key events before MWF gets its paws on them.  Adapted from a
1498         suggestion by eno.
1499         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
1500         up/down/left/right navigation. Override the new internal control
1501         method to steal the events since they never make it to WndProc.
1502         * ToolBarButton.cs: don't worry about pushed when setting hilight
1503         since the drawing code prefers pushed to hilight. Invalidate on 
1504         Hilight changes. Fixes #78547 and #78525.
1505
1506 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
1507
1508         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
1509           the canvas size. Fixes #78868
1510
1511 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
1512
1513         * Splitter.cs: Track requested split position until first layout
1514           is performed. Fixes #78871
1515
1516 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
1517
1518         * Application.cs: Removed code that forces 1.x for the version
1519           number if the version started with 0. Not sure why that code was
1520           there and I couldn't find any bugs that indicated we needed it.
1521           Fixes #78869
1522
1523 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
1524
1525         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
1526           ResetDefaults(), just write some output to the console until it's
1527           implemented. Fixes bug #78907 for now. Eliminated two warnings.
1528
1529 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
1530
1531         * PropertyGridView.cs: set StartPosition of drop down forms
1532         so they appear in correct initial spot.  Fixes #78190.
1533
1534 2006-07-19  Mike Kestner  <mkestner@novell.com>
1535
1536         * ThemeWin32Classic.cs: use parent background color when drawing
1537         flat toolbars.  Restructure the conditionals to make sure non-flat
1538         non-Divider toolbars are filled too.  Fixes #78837.
1539
1540 2006-07-19  Mike Kestner  <mkestner@novell.com>
1541
1542         * ListBox.cs: Sort on collection changes even if the handle
1543         isn't created yet.  Fixes #78813.
1544
1545 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1546
1547         * ListControl.cs: DisplayMember should never be null,
1548         and now we assign String.Empty when null is passed to it (this
1549         is the .Net way).
1550
1551 2006-07-17  Mike Kestner  <mkestner@novell.com>
1552
1553         * ListViewItem.cs: restructure Font and subitem Font handling 
1554         to hold a specific font and refer back to owner on null.
1555         Fixes #78761.
1556
1557 2006-07-17  Mike Kestner  <mkestner@novell.com>
1558
1559         * ToolBar.cs: bandaid for side-effect of previous patch which was
1560         discarding explicit heights for non-AutoSize toolbars.  Need to
1561         extend my format tester to deal with AutoSize=false. Fixes #78864.
1562
1563 2006-07-15  Jackson Harper  <jackson@ximian.com>
1564
1565         * LabelEditTextBox.cs:
1566         * TreeView.cs: Use a new LabelEdit class for node editing, this
1567         class automatically 'closes' itself when it gets the enter key or
1568         loses focus.
1569         - Use the client rectangle when setting the trees scrollbars, so
1570         border style is taken into account.
1571         
1572 2006-07-14  Jackson Harper  <jackson@ximian.com>
1573
1574         * TreeNode.cs:
1575         * TreeView.cs: Make the editing work similar to MSs, firing the
1576         events correctly and ending edits correctly.
1577
1578 2006-07-14  Mike Kestner  <mkestner@novell.com>
1579
1580         * ToolBarButton.cs:
1581         * ToolBar.cs: layout restructuring and redraw enhancements to support
1582         formatting changes gracefully, like setting TextAlign, ImageList, 
1583         ButtonSize, and Appearance.  Handles explicit button sizing quirks
1584         of the MS controls.  Things like flat toolbars ignoring button size
1585         but becoming constant sized at the largest button's size.  Normal
1586         toolbars with an image set cannot be shrunk smaller than the image,
1587         but text can be clipped/ignored.
1588         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
1589         is zero.  Seems like DrawString should be smart enough to not put
1590         anything on screen though. Also trim labels and ellipsize at the char
1591         boundary, not word.
1592         Fixes #78711 and #78483.
1593
1594 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
1595
1596         * FolderBrowserDialog.cs: Disable "New Folder" button and
1597           "New Folder" contextmenu menuitem if a folder like "My Computer"
1598           is selected.
1599
1600 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
1601
1602         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
1603         * FolderBrowserDialog.cs:
1604           - Use MWFConfig to store and read size and position settings
1605           - Added code to create a new folder (button or context menu).
1606             Use TreeView labeledit to change the name of the new folder.
1607
1608 2006-07-14  Jackson Harper  <jackson@ximian.com>
1609
1610         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
1611         when the tree is scrolled we end editing.
1612
1613 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
1614
1615         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
1616           Down arrows
1617
1618 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
1619
1620         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
1621         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
1622         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
1623         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
1624         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
1625         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
1626         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
1627         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
1628         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
1629         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
1630         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
1631         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
1632         ListViewItemSelectionChangedEventHandler.cs,
1633         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
1634         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
1635         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
1636         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
1637         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
1638         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
1639         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
1640         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
1641         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
1642         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
1643         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
1644         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
1645         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
1646         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
1647         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
1648         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
1649         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
1650         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
1651         WebBrowserNavigatingEventHandler.cs, 
1652         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
1653
1654 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
1655
1656         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
1657         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
1658         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
1659         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
1660         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
1661         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
1662         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
1663         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
1664         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
1665         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
1666         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
1667         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
1668         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
1669         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
1670         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
1671         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
1672         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
1673         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
1674         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
1675         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
1676         ListViewItemStates.cs, MaskFormat.cs: Added
1677
1678 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
1679
1680         * PropertyGridView.cs: Fix keyboard navigation of drop down.
1681         Patch from eno for bug 78558.
1682         
1683 2006-07-13  Jackson Harper  <jackson@ximian.com>
1684
1685         * TreeView.cs: When an edit is finished make sure that the
1686         selected node is visible.
1687         - When setting the top/bottom use the scrollbars is_visible, so
1688         everything will be set correctly even if the tree isn't visible
1689         yet.
1690
1691 2006-07-13  Jackson Harper  <jackson@ximian.com>
1692
1693         * ComboBox.cs: Revert the item->index part of my previous patch.
1694         * TreeView.cs: Use LostFocus instead of Leave for detecting when
1695         the edit box has lost focus (duh).
1696         - Just make the edit box not visible when we get return, that will
1697         take the focus, which will call EndEdit
1698         * TreeNode.cs When we start editing, notify the treeview.
1699
1700 2006-07-12  Jackson Harper  <jackson@ximian.com>
1701
1702         * ComboBox.cs: Clear out old items before setting the item list.
1703         This prevents databound controls from having their items added
1704         twice.
1705         - Switch the combobox to use indices whereever possible instead of
1706         using Item's.  This allows usto navigate through lists that have
1707         more then one item with the same string value (ie a, b, b, a).
1708         - Scroll the listboxes scrollbar when a non visible item is
1709         highlighted
1710         - Allow keypress to cycle through all the possible values. For
1711         example if you have b1, b2, b3 and hold down the B key all the
1712         values will be cycled through.
1713         
1714 2006-07-12  Jackson Harper  <jackson@ximian.com>
1715
1716         * TextBoxBase.cs:
1717         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
1718         this using the internal methods.
1719         * Control.cs: Add OnGotFocusInternal.  A new method that allows
1720         controls to "override" OnGotFocus and change focus behavior if
1721         needed.
1722         - Same thing for LostFocus
1723         * ComboBox.cs: Pass off focus to the text control properly.
1724
1725 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
1726
1727         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
1728         * FolderBrowserDialog.cs: Almost a complete rewrite.
1729           - Better support for Environment.Specialfolders
1730           - Added support for MWFVFS
1731           - Made setting SelectedPath work
1732
1733 2006-07-12  Jackson Harper  <jackson@ximian.com>
1734
1735         * Control.cs: Optimze getting all the controls.
1736
1737 2006-07-11  Jackson Harper  <jackson@ximian.com>
1738
1739         * ContainerControl.cs: Override SETFOCUS in the container control,
1740         so that it is not selected on mouse click.
1741
1742 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
1743
1744         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
1745           Hopefully we will have a better way once all of focus is complete.
1746
1747 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
1748
1749         * ThemeWin32Classic.cs: Commented out some debug code and fixed
1750           a compile error with csc.
1751
1752 2006-07-11  Jackson Harper  <jackson@ximian.com>
1753
1754         * Control.cs: When hiding a control only select the next control
1755         if the current control was focused.
1756         - Don't handle enter/leave when setting/killing focus, this is
1757         done by the container control.
1758         - Remove is_selected, it's not needed anymore.
1759         - Add utility methods for selecting a child control, and for
1760         firing the Enter/Leave events.
1761         * ContainerControl.cs: When a control is activated fire the
1762         enter/leave events.
1763         - Don't wrap when processing the tab key, so that focus can be
1764         moved outside of the container.
1765         - Use the correct active control
1766
1767 2006-07-11  Jackson Harper  <jackson@ximian.com>
1768
1769         * ComboBox.cs: Remove some debug code that was blinding me.
1770         * UpDownBase.cs: These controls actually aren't implicit, they are
1771         visible to the user.
1772
1773 2006-07-10  Chris Toshok  <toshok@ximian.com>
1774
1775         * DataGrid.cs: move back to the is_adding boolean field.  god i
1776         hate this is_editing/is_adding/is_changing stuff.
1777
1778 2006-07-10  Chris Toshok  <toshok@ximian.com>
1779
1780         * DataGridTableStyle.cs: just check if the property type is bool.
1781         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
1782         Don't use CanRenderType.
1783
1784         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
1785         if our text == NullText.  Remove CanRenderType.
1786
1787         * DataGridBoolColumn.cs: nuke CanRenderType.
1788
1789         * DataGrid.cs: reenable some code to end the current edit inside
1790         of set_CurrentCell.  This fixes the other 1.1.16 regression.
1791         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
1792         Also, remove the visible_row_count arg from CalcRowHeaders, since
1793         we don't need to worry about the actual height of the area.
1794
1795 2006-07-10  Chris Toshok  <toshok@ximian.com>
1796
1797         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
1798         mode, just return.
1799
1800         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
1801         the real sense of the IsInEditOrNavigateMode property (true =
1802         navigate, false = edit).  Also, update OnKeyPress to reflect this.
1803
1804         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
1805         column style exists, we still need to set its property descriptor
1806         to match up with our list manager.
1807
1808 2006-07-10  Chris Toshok  <toshok@ximian.com>
1809
1810         * ThemeWin32Classic.cs: implement the new row/header painting
1811         approach.  The parent row painting will likely go away and
1812         replaced with label controls, but the rest seems to work ok (and
1813         efficiently).
1814
1815         * Theme.cs: change the way we draw datagrid rows.  we don't draw
1816         the row headers as a block now.  Instead we draw them in the
1817         normal draw-row loop.  Add some calls for drawing parent rows and
1818         relation rows.
1819
1820         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
1821         a default table style.  Set the defaults from ThemeEngine.Current,
1822         not SystemColors.  Fix lots of misc issues with property setters.
1823
1824         * DataGrid.cs: move loads of style information out of this class
1825         as it's being duplicated with DataGridTableStyle.  keep track of a
1826         special DataGridTableStyle for the properties we used to mirror
1827         here.  Switch all the style properties to access this table style
1828         instead of instance fields of this class.  Also add a internal
1829         class to represent parent rows (more needs to be stored here, like
1830         the selection state from the parent table, as well as the
1831         expansion state.)  Also, for datasources with relations, do the
1832         right thing for collapse/expand, and add support for the
1833         navigation/parent row buttons.
1834
1835         Lastly, fix the crash in the 1.1.16 build.
1836
1837         * GridTableStylesCollection.cs: make the explicit interface
1838         implementations call the class's methods as opposed to duplicating
1839         them.
1840
1841         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
1842         0 so the text doesn't jump around when we move the cursor.
1843
1844 2006-07-10  Jackson Harper  <jackson@ximian.com>
1845
1846         * TextBoxBase.cs:
1847         * ListBox.cs: Match MS's ToString (this makes debugging focus
1848         stuff infinitely easier).
1849
1850 2006-07-10  Jackson Harper  <jackson@ximian.com>
1851
1852         * Control.cs (SelectNextControl): When checking the control's
1853         parent use this instead of ctrl.parent so that null can be passed
1854         to SelectNextControl. (I have unit tests for this).
1855         - Remove unused var.
1856
1857 2006-07-10  Chris Toshok  <toshok@ximian.com>
1858
1859         * CurrencyManager.cs: correct one regression, the removal of the
1860         finalType field.  Also, add a MonoTODO on CanAddRows, implement
1861         Refresh() correctly, and fix some event emission in
1862         ListChangedHandler.
1863
1864 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
1865
1866         * FileDialog.cs: Don't use brackets for new folders if they exist
1867           under *nix. Instead use -(number of existing folders +1).
1868
1869 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
1870
1871         * FileDialog.cs:
1872           - Fixed really nasty bug #78771
1873           - Don't block the whole GUI when reading directories with a lot of
1874             entries. Use an other thread instead and call BeginInvoke to
1875             update the ListView in MWFFileView
1876
1877 2006-07-07  Chris Toshok  <toshok@ximian.com>
1878
1879         * Control.cs (Dispose): release any Capture when disposing.
1880
1881 2006-07-07  Chris Toshok  <toshok@ximian.com>
1882
1883         * LinkLabel.cs (Select): if we chain up to the parent, set
1884         focused_index to -1 so we'll search for the first available link
1885         the next time the user tabs into us.  Also, if the direction is
1886         backward and focused_index == -1, start the search from the last
1887         element.
1888
1889 2006-07-07  Chris Toshok  <toshok@ximian.com>
1890
1891         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
1892         is beyond the end of the text, don't do anything.
1893         (CreateLinkPieces): set our ControlStyles.Selectable based on
1894         whether or not we have any links.
1895         (Link.Invalidate): use a loop instead of foreach.
1896         (Link.set_Start): null out owner.sorted_links so it'll be
1897         recreated by CreateLinkPieces.
1898
1899 2006-07-06  Chris Toshok  <toshok@ximian.com>
1900
1901         * LinkLabel.cs: revert the SetStyle change.
1902
1903 2006-07-06  Chris Toshok  <toshok@ximian.com>
1904
1905         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
1906         (OnEnableChanged): s/Refresh/Invalidate
1907         (OnGotFocus): if we have a focused index already, refocus it (so
1908         if we mouse out/in to the window it'll focus the right link).
1909         (OnKeyDown): move the tab handling out of here.
1910         (OnLostFocus): don't set focused_index to -1, so we can refocus it
1911         when we lose focus.
1912         (OnMouseDown): don't Capture here - Control handles it.  Also,
1913         focus the active link.
1914         (OnMouseUp): don't deal with Capture.
1915         (OnPaintBackgroundInternal): remove.
1916         (OnTextAlignChanged): CreateLinkPieces before calling the
1917         superclass's method.
1918         (OnTextChanged): call CreateLinkPieces before calling superclass's
1919         method.
1920         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
1921         move around.
1922         (Select): implement this, moving the selection between different
1923         links, and call parent.SelectNextControl if we don't have another
1924         link to focus in the given direction.
1925         (CreateLinkPieces): call Invalidate instead of Refresh.
1926         
1927 2006-07-06  Chris Toshok  <toshok@ximian.com>
1928
1929         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
1930         new LinkLabel internals.
1931
1932         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
1933         over pieces looking for active/focused/etc links.  also, deal with
1934         runs of text (and links) with embedded \n's in them, and use
1935         MeasureCharacterRanges instead of MeasureString to figure out the
1936         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
1937         two-step.
1938
1939 2006-07-04  Jackson Harper  <jackson@ximian.com>
1940
1941         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
1942         XKB or key auto repeat, do it manually.  Without key auto repeat,
1943         when a key is held down we get key press, key release, key press,
1944         key release, ... with auto repeat we get key press, key press, key
1945         press ..., and then a release when the key is actually released.
1946
1947 2006-07-03  Jackson Harper  <jackson@ximian.com>
1948
1949         * TabControl.cs:
1950         * ThemeWin32Classic.cs: Tabs do not obey normal background color
1951         rules, they are always control color regardless of the background
1952         color.
1953
1954 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
1955
1956         * FileDialog.cs: Added internal class MWFConfig.
1957           Removed Registry support and replaced it with support for the new
1958           MWFConfig class. See MWFConfig comments for more information.
1959
1960 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
1961
1962         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
1963           rectangle. Added some patches from eno from bug #78490 and fixed
1964           the arrow position for small up and down CPDrawScrollButtons.
1965
1966 2006-06-30  Jackson Harper  <jackson@ximian.com>
1967
1968         * InternalWindowManager.cs: Remove some debug code.
1969         * Form.cs: When an MdiParent is set to null, the window is
1970         "detatched" and becomes a normal window.
1971         * MdiClient.cs: Don't bring the new child form to the front until
1972         it is activated (setting it as active does this), this makes the
1973         previously active forms titlebar get redrawn as inactive.
1974
1975 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
1976
1977         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
1978           with later controls
1979
1980 2006-06-29  Mike Kestner  <mkestner@novell.com>
1981
1982         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
1983         arrow in keynav state.  Fixes #78682.
1984
1985 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
1986
1987         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
1988           order (fixes #78393)
1989
1990 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
1991
1992         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
1993           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
1994           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
1995           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
1996           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
1997           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
1998           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
1999           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
2000           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
2001           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
2002           enumerations (FlagsAttribute, SerializableAttribute, added/removed
2003           values)
2004
2005 2006-06-28  Mike Kestner  <mkestner@novell.com>
2006
2007         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
2008
2009 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
2010
2011         * PropertyGrid.cs,
2012           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
2013           item lines from other area (It also makes BackColor consistent and
2014           compatible with .NET). Fixed bug #78564.
2015
2016 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
2017
2018         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
2019         Patch from Eno for #78555.
2020
2021 2006-06-27  Chris Toshok  <toshok@ximian.com>
2022
2023         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
2024
2025         * DataGridColumnStyle.cs: same.
2026
2027         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
2028         
2029         * DataGridDrawingLogic.cs: nuke.
2030
2031 2006-06-27  Chris Toshok  <toshok@ximian.com>
2032
2033         * DataGridTableStyle.cs: clean up the constructors, and build the
2034         list of child relations for this table.  I have no idea if this is
2035         where we should be doing it (it probably isn't), but since we're
2036         already iterating over the properties..
2037
2038         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
2039         struct and array for keeping track of row information, similar to
2040         what's shown in a hack on
2041         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
2042
2043         * Theme.cs: be consistent about the naming of DataGrid methods,
2044         prefering ColumnWidths and RowHeights over columnsWidths and
2045         RowsHeights.
2046
2047         * ThemeWin32Classic.cs: same, and also add support for variable
2048         sized rows (and the +/- expansion icons for related rows).
2049
2050 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
2051
2052         * TextBoxBase.cs: Applied Eno's patch from #78660
2053
2054 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
2055
2056         * Form.cs (ScaleCore): We don't want to scale our form if it's
2057           state is minimized or maximized, but we still need to scale our
2058           child windows. Also, added try/finally block to ensure layout
2059           gets reset (Fixes #78697)
2060
2061 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
2062
2063         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
2064
2065 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
2066
2067         * Form.cs: Fixed c+p error and added check to resize form if minimum
2068           size is bigger than current size (Fixes #78709)
2069
2070 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
2071
2072         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
2073
2074 2006-06-26  Mike Kestner  <mkestner@novell.com>
2075
2076         * ComboBox.cs: only do Keypress handling in the combo when there  
2077         are items in the collection. Fixes #78710.
2078
2079 2006-06-26  Chris Toshok  <toshok@ximian.com>
2080
2081         * Binding.cs: make this work bi-directionally.  also, clear up
2082         other mixups between Push/Pull Data (e.g. we're supposed to pull
2083         data when validating).
2084
2085         * BindingManagerBase.cs: trim some fully qualified collection
2086         types.
2087
2088         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
2089
2090 2006-06-23  Chris Toshok  <toshok@ximian.com>
2091
2092         * PropertyManager.cs: It appears (according to the unit tests)
2093         that PropertyManager doesn't use
2094         PropertyDescriptor.AddValueChanged to track propery value changes
2095         in its datasource, but uses the same scheme as Binding, where it
2096         looks for a <Property>Changed event and binds to it.
2097
2098         Also, according to the docs, IsSuspended always returns false for
2099         a property manager with a non-null datasource.
2100
2101 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
2102
2103         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
2104           need to update the actual DialogResult. (Fixes #78613)
2105
2106 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
2107
2108         * Form.cs (ShowDialog): Release any captures before running the
2109           new message pump (fixes #78680)
2110
2111 2006-06-22  Mike Kestner  <mkestner@novell.com>
2112
2113         * ListView.cs: Layout column widths properly in details mode even 
2114         if HeaderStyle.None is set.  Fixes #78691.
2115
2116 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
2117
2118         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
2119
2120 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
2121
2122         * Control.cs (ContainsFocus): Using new driver method to get focused
2123           window, instead of trying to use internal tracking var, which can
2124           recursion issues (Fixes #78685)
2125         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
2126           XplatUIWin32.cs: Added GetFocus method to return focused window
2127
2128 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2129
2130         * ColorDialog.cs: when the mouse button is pressed inside the color
2131         matrix, don't let the cursor move out of it until the button is
2132         released, which is the behavior on windows. Changed 'colours' by
2133         'colors' to use the same word consistently.
2134
2135 2006-06-21  Chris Toshok  <toshok@ximian.com>
2136
2137         * DataGrid.cs: add in some basic navigation stuff (navigating to a
2138         child relation and back, using a stack).  Also, remove
2139         GetDataSource and the code that calls it - it's not needed.  Also,
2140         track CurrencyManager.ListName's removal.
2141
2142 2006-06-21  Chris Toshok  <toshok@ximian.com>
2143
2144         * CurrencyManager.cs: push some of the original type checking from
2145         BindingContext.CreateBindingManager to here, and remove some of
2146         the finalType stuff.  Need more tests to make sure I've got the
2147         ListName part right, and we might need more in SetDataSource.
2148
2149         * PropertyManager.cs: add a ctor that takes just the datasource,
2150         and no property name.  Make SetDataSource work with a null
2151         property_name, and make Current return the data_source if the
2152         property descriptor is null.  this makes 'string foo = "hi";
2153         BindingContext[foo].Current' return "hi" as it should.
2154
2155         * RelatedCurrencyManager.cs: make this code more generic - there's
2156         no reason the parent manager has to be CurrencyManager, and
2157         there's no reason to pass the DataRelation.  It suffices to use a
2158         BindingManagerBase and PropetyDescriptor.
2159
2160         * RelatedPropertyManager.cs: make a similar change here.
2161         
2162         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
2163         flower I knew it could be.
2164
2165 2006-06-20  Chris Toshok  <toshok@ximian.com>
2166
2167         * PropertyManager.cs: the PropertyChangedHandler is invoked when
2168         data in the source has changed and we need to update the control,
2169         so s/PullData/PushData.
2170
2171         * CurrencyManager.cs: Refresh is meant to update the control from
2172         data in the datasource.  So, s/PullData/PushData.
2173
2174         * BindingContext.cs: add more ugliness (we weren't handling the
2175         case where data_source = DataTable and data_member = column_name).
2176
2177         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
2178         from the perspective of the datasource.  PullData pulls from the
2179         control, PushData pushes to the control.
2180
2181 2006-06-20  Chris Toshok  <toshok@ximian.com>
2182
2183         * BindingContext.cs: rewrite the CreateBindingManager code to
2184         handle navigation paths more or less properly.  This could
2185         definitely stand some more work, in particular to push the
2186         recursion up to the toplevel.  But that relies on fixes in other
2187         places (System.Data comes to mind).
2188
2189         Also, move to a flat hashtable (and encode the twolevel nature of
2190         the dictionary into the hash key).  This lets us implement the
2191         IEnumerable.GetEnumerator method.
2192
2193         * RelatedCurrencyManager.cs: new class.  Update our view based on
2194         our relation and our parent CurrencyManager's position.
2195
2196         * CurrencyManager.cs: split out some logic from the ctor into
2197         SetView, so it can be called from the new RelatedCurrencyManager
2198         subclass.
2199
2200         * RelatedPropertyManager.cs: new class.  Update our datasource
2201         based on the position of our parent CurrencyManager.
2202
2203         * PropertyManager.cs: split out some logic from the ctor into
2204         SetDataSource, so it can be called from the new RelatedDataSource
2205         subclass.  Also, make the Current getter return the value
2206         of the PropertyDescriptor, not the data_source.
2207
2208         * Binding.cs: no need to duplicate the string splitting code here.
2209
2210 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
2211
2212         * Control.cs:
2213           - set_Enabled: OnEnabledChanged is not called if the inherited state 
2214             of the control is not altered, even though  we might be changing the
2215             internal state of the control (#78458)
2216           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
2217             OnEnabledChanged, to allow easy altering of any child window state
2218           - OnEnabledChanged: Added code to enable/disable driver window state
2219           - OnParentEnabledChanged: Instead of firing the event, call 
2220             OnEnabledChanged, which will fire the event and also a) set driver
2221             window state and pass the enabled state to any grandchildren (#78458)
2222
2223 2006-06-19  Jackson Harper  <jackson@ximian.com>
2224
2225         * InternalWindowManager.cs: We don't set the cursor explicitly
2226         thats done via the response to NCHITTESTs.
2227         - Don't need to adjust for titlebar heights anymore, the
2228         coordinates are coming in the correct coordinates now (see peters
2229         last patch).
2230
2231
2232 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
2233
2234         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
2235           being translated relative to whole window, instead of client window.
2236           That caused broken offsets on mouseclick (and caused gas for our
2237           InternalWindowManager)
2238
2239 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
2240
2241         * TextControl.cs:
2242           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
2243           - Undo(): Added replay of cursor move on DeleteChars action; added
2244             calling Undo() again if a recorded cursor move is invalid (to
2245             ensure that some action is performed on Undo)
2246         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
2247
2248 2006-06-16  Jackson Harper  <jackson@ximian.com>
2249
2250         * MdiClient.cs: Instead of just sizing maximized windows when
2251         there is a resize we also have to adjust the Y of minimized
2252         windows, so they stay pinned to the bottom of the mdi container.
2253         - Eliminate separate tracking of the active control, we can just
2254         get this from the controls collection.
2255         - Paint the decorations for the newly activated titlebar so we get
2256         a pretty blue bar.
2257         * InternalWindowManager.cs:
2258         * ThemeWin32Classic.cs: Minimized windows get all three buttons
2259         even if they are a tool window.
2260         
2261 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
2262
2263         * TextControl.cs (Undo): Handle non-existent cursor locations in the
2264           undo buffer, these can happen when text was deleted and the cursor
2265           was recorded first. Since we will also have a recorded cursor
2266           after the delete this is not an issue. (Fixes #78651)
2267
2268 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
2269
2270         * AccessibleObject.cs: Remove dependence on Control.is_selected;
2271           instead properly track control states internally (allows us to
2272           remove is_selected from Control)
2273
2274 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2275
2276         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
2277         whose width is not a multiple of 8.
2278
2279 2006-06-13  Jackson Harper  <jackson@ximian.com>
2280
2281         * MdiClient.cs:  Only maximize the next child if the current one
2282         is maximized.
2283
2284 2006-06-13  Chris Toshok  <toshok@ximian.com>
2285
2286         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
2287         modified.  Also, guard against grid or grid_drawing being null in
2288         Invalidate.
2289
2290         * DataGrid.cs: Reformat tons of getters/setters.  In the
2291         DataMember setter, just call SetNewDataSource instead of
2292         duplicating some of its functionality.  In SetNewDataSource, don't
2293         check ListManager for null, since the property getter creates the
2294         object if needed.
2295
2296         * DataGridTableStyle.cs: don't set TableStyle or call
2297         SetDataGridInternal on the column here, it's done in
2298         GridColumnStylesCollection.Add.
2299
2300         * GridColumnStylesCollection.cs: fix all the explicit interface
2301         implementations to just call our methods.  Nuke AddInternal() and
2302         move the body of it to Add().  Also, add a call to
2303         column.SetDataGridInternal to Add().
2304
2305         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
2306         base()+duplicate code.  Also, use the Format property instead of
2307         format to generate an Invalidate ala MS.  Lastly, create the
2308         textbox here, unconditionally.
2309         (set_Format): call Invalidate.
2310         (get_TextBox): no need to call EnsureTextBox.
2311         (Commit): remove the message box.
2312         (Edit) remove the call to EnsureTextBox.
2313         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
2314         (EnterNullValue): no need to check textbox for null.
2315         (HideEditBox): no need to check textbox for null.
2316         (SetDataGridInColumn): add the textbox to the grid's controls.
2317         (EnsureTextBox): nuke.
2318         
2319 2006-06-13  Jackson Harper  <jackson@ximian.com>
2320
2321         * MdiWindowManager.cs: Hook up to the maximized menus paint event
2322         and redraw the buttons when needed. Unhook when the window is
2323         unmaximized.
2324         * MainMenu.cs: Add an internal Paint event, the mdi window manager
2325         needs this so that it can redraw its buttons when the menu is
2326         repainted.
2327         * InternalWindowManager.cs:
2328         * Form.cs: The method order has changed for DrawMaximizedButtons,
2329         so that it can be a PaintEventHandler.
2330         
2331 2006-06-13  Jackson Harper  <jackson@ximian.com>
2332
2333         * MdiClient.cs: When we close a maximized mdi window, the next mdi
2334         window is activated and maximized, even if it wasn't before.
2335         - When  a new window is activated repaint the decorations of the
2336         old one, so that it no longer has the Active "look" (the blue
2337         titlebar).
2338         * InternalWindowManager.cs: Open up CreateButtons to base classes
2339         so they can recreate the buttons on state changes.
2340         - If a window is maximized give it all three buttons
2341         * MdiWindowManager.cs: Create the titlebar buttons when the state
2342         is changed, this is needed because a toolwindow will not have all
2343         three buttons until it is maximized.
2344
2345 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
2346
2347         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
2348           Fixed bug #78609.
2349
2350 2006-06-12  Jackson Harper  <jackson@ximian.com>
2351
2352         * KeysConverter.cs: Make sure we handle the Ctrl special case
2353         if its the only key.
2354         
2355 2006-06-12  Jackson Harper  <jackson@ximian.com>
2356
2357         * Theme.cs: Add a method to get the size of a managed window
2358         toolbar button.
2359         * InternalWindowManager.cs: Remove the ButtonSize property, this
2360         should be retrieved from the theme.
2361         * MdiWindowManager.cs: Get the button size from the theme
2362         * ThemeWin32Classic.cs: Make the method to get the managed window
2363         titlebar button size public.
2364         - Handle the different button sizes of maximized toolwindows
2365         (should match any maximized window).
2366         - Get the titlebar height from the theme, not the WM (which gets
2367         it from the theme).
2368
2369 2006-06-12  Jackson Harper  <jackson@ximian.com>
2370
2371         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
2372         event down to the mdi window manager.
2373         - Expose some extra stuff to base classes
2374         - Make sure to end the Capture on an NC Mouse up, so that we can
2375         get double clicks properly, and the sizing doens't stick.
2376         - When doing PointToClient contain it in the workable desktop
2377         area, this prevents windows from changing size when the cursor is
2378         pulled outside of the working area while sizing.
2379         * MdiWindowManager.cs: When we get a double click maximize the
2380         window.
2381         - Reset the cursor after handling mode changes.
2382
2383 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
2384
2385         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
2386           current desktop, instead of just assuming a 0, 0 origin. This
2387           is needed for our internal window manager, to know the top
2388           margin of the desktop
2389
2390 2006-06-12  Chris Toshok  <toshok@ximian.com>
2391
2392         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
2393         we need this to get rid of the selected background in the bool
2394         column.
2395         (CancelEditing): move the ConcedeFocus call to above the Abort
2396         call.  Also, set is_changing to false and invalidate the row
2397         header if we were changing before.
2398         (ProcessKeyPreviewInternal): remove, since noone outside this
2399         class calls it anymore.  Roll the code into ProcessKeyPreview.
2400         (EndEdit): remove the internal version.
2401         (InvalidateCurrentRowHeader): make private.
2402
2403         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
2404         Keys.Escape handling (and with it the last call to
2405         DataGrid.EndEdit from outside the class.)
2406
2407
2408 2006-06-12  Chris Toshok  <toshok@ximian.com>
2409
2410         * DataGridTextBox.cs (.ctor): isedit defaults to false.
2411         (OnKeyPress): set isedit to true.
2412         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
2413         already handled by the grid.
2414
2415         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
2416         right.  ugh.
2417         (set_DataSource): SetDataSource always returns true, so stop
2418         putting it in an if statement.
2419         (EndEdit): get rid of some {}'s
2420         (ProcessGridKey): return true in case Keys.Escape.
2421         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
2422         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
2423         PositionChanged, stopped connecting to CurrentChanged.
2424         (GetDataSource): simplify this a bunch.
2425         (SetDataSource): change return type from bool to void.
2426         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
2427         to this, and make sure we don't set ListManager.Position inside
2428         set_CurrentCell.
2429         (OnListManagerItemChanged): if we're passed an actual index,
2430         redraw that row.
2431
2432         * CurrencyManager.cs (set_Position): don't call PullData here.
2433
2434 2006-06-09  Jackson Harper  <jackson@ximian.com>
2435
2436         * TreeNode.cs:  Recalculate the visible order before doing the
2437         Expand/Collapse Below calls, because those calls generate an
2438         expose.
2439         - Reduce calls to the TreeView property, which is mildly expensive
2440         by using a local var.
2441         * Form.cs: Layout the MDI child windows when creating the parent
2442         form.
2443         - Don't use the internal constructor anymore
2444         * MdiClient.cs: use the parent form width/height (if available)
2445         when laying out the child windows, we do this because the
2446         mdiclient isn't docked yet when the initial layout is done.
2447         - Don't need an internal constructor anymore.
2448
2449 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2450
2451         * FileDialog.cs: handle access errors when trying to create a folder
2452         or changing to a directory. No need to initialize out parameters.
2453
2454 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
2455
2456         * FileDialog.cs: Append a number when creating a new folder if the
2457           folder already exists (use parenthesis instead of square brackets)
2458
2459 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
2460
2461         * FileDialog.cs:
2462           - Disabled registry support for windows and added better registry
2463             error checking for other systems (need to investigate why it
2464             works perfectly on my system)
2465           - If a folder already exist show an error MessageBox instead of
2466             trying to create an indexed name.
2467           - Fixed a non intentional typo.
2468
2469 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2470
2471         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
2472
2473 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
2474
2475         * FileDialog.cs: When creating a new folder don't crash if the
2476           folder already exists.
2477
2478 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
2479
2480         * FileDialog.cs: Allmost a complete rewrite.
2481           - added a "virtual" file system that handles the differences
2482             between unix and windows file systems (especially the directory
2483             structure). Moved most of the directory and file handling code
2484             into the vfs.
2485             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
2486             UnixFileSystem and FSEntry.
2487           - Recently used folder/directory, size, location and used file names
2488             (file name ComboBox) are now stored in the registry and get read
2489             before the dialog shows up (fixes part 6 of bug #78446).
2490           - Creation of new folders/directories is now possible (context menu
2491             or ToolBar). Added TextEntryDialog for this that fills in the gap
2492             until ListView.LabelEdit works.
2493           - Fixed cursor handling (bug #78527) and focus handling for
2494             PopupButtonPanel
2495           - Various "Search in" ComboBox enhancements. The content of the
2496             dropdown listbox now almost matches ms.
2497           - Changed the behaviour when the user switches to SpecialFolder
2498             Recent to show the ListView in View.Details.
2499           - Beside using the ToolBar to change the View property of the
2500             file ListView it is now possible to use the context menu too.
2501
2502 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
2503
2504         * ComboBox.cs: Don't create a new ObjectCollection when an item
2505           gets inserted. Just insert the item in the existing object_items
2506           ArrayList.
2507
2508 2006-06-08  Jackson Harper  <jackson@ximian.com>
2509
2510         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
2511         that the treeview and root node checks are done also, this fixes a
2512         regression i caused in the unit tests.
2513
2514 2006-06-07  Wade Berrier <wberrier@novell.com> 
2515
2516         * RichTextBox.cs: More ISO8859-1 -> unicode
2517
2518 2006-06-07  Mike Kestner  <mkestner@novell.com>
2519
2520         * ComboBox.cs : use items to hold highlight/selection so that
2521         collection insertions don't require synchronization.
2522
2523 2006-06-07  Jackson Harper  <jackson@ximian.com>
2524
2525         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
2526         routine.  We now always keep the sized edge at the cursor instead
2527         of computing movement and adjusting rects.  There is one buglet
2528         with this method though when the cursor is moved over area that
2529         the window can not expand too (such as the toolbars on the desktop).
2530
2531 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2532
2533         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
2534         here. Fixes crash on startup in AlbumSurfer.
2535
2536 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
2537
2538         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
2539           values
2540
2541 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2542
2543         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
2544         statement to avoid calling XNextEvent which will block if another thread
2545         took the event that we were expecting. Fixes bug #78605.
2546
2547 2006-06-07  Mike Kestner  <mkestner@novell.com>
2548
2549         * ListView.cs : isolated checkbox clicking from the selection logic.
2550         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
2551
2552 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2553
2554         * Form.cs: Check that the value passed to Form.DialogResult
2555         is a valid enum value.
2556
2557 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2558
2559         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
2560         Computer'. Clicking it in the network view goes to 'My Computer'.
2561         Added CIFS filesystem type. Display the mount point of filesystems.
2562         Avoid duplicate mount points (happens for me with CIFS);
2563
2564 2006-06-06  Jackson Harper  <jackson@ximian.com>
2565
2566         * InternalWindowManager.cs: Draw the maximized windows buttons
2567         when resizing.
2568
2569 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2570
2571         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
2572         all other dialogs. Fixes bug #78585.
2573
2574 2006-06-06  Mike Kestner  <mkestner@novell.com>
2575
2576         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
2577         Only invalidate checkbox on checkstate changes to avoid flicker.
2578         * ListBox.cs : avoid unselect/select when clicking selected item.
2579         avoid reselection flicker for already multiselected items.
2580         Fixes #78382.
2581
2582 2006-06-06  Jackson Harper  <jackson@ximian.com>
2583
2584         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
2585         the parent form so that the menu is removed if needed.
2586
2587 2006-06-06  Mike Kestner  <mkestner@novell.com>
2588
2589         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
2590         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
2591
2592 2006-06-06  Mike Kestner  <mkestner@novell.com>
2593
2594         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
2595
2596
2597 2006-06-06  Jackson Harper  <jackson@ximian.com>
2598
2599         * Control.cs: Use the property (instead of the field) to get the
2600         default cursor so it is instantiated correctly.
2601         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
2602         resizes so we need to manually repaint the window decorations here.
2603         - Set the titlebar button locations as soon as they are created,
2604         otherwise they are not set correctly on win32.
2605         
2606 2006-06-06  Chris Toshok  <toshok@ximian.com>
2607
2608         * CurrencyManager.cs (set_Position): call PullData before
2609         OnCurrentChanged.
2610         (AddNew): after calling IBindingList.AddNew, update our
2611         listposition, and call OnCurrentChanged/OnPositionChanged (without
2612         calling PullData).
2613         (OnCurrentChanged): remove the call to PullData from here.
2614         (OnItemChanged): remove the call to PushData from here.
2615         (OnPositionChanged): change the test from == null to != null to
2616         match the other methods.
2617         (ListChangedHandler): the grossest part of the patch.  Implement
2618         this such that it passes the unit tests in CurrencyManagerTest and
2619         the output more or less matches that of MS's implementation.
2620  
2621 2006-06-06  Mike Kestner  <mkestner@novell.com>
2622
2623         * ListView.cs : only update check state on single click.
2624         * ThemeWin32Classic.cs : fix focus drawing for details view without
2625         fullrowselect.  Fixes #78454.
2626         * XplatUIX11.cs : fix for double click emission.
2627
2628 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
2629
2630         * PropertyGridView.cs : Applied Atsushi's patch to fix
2631         font dialog bug  (#78197).
2632
2633 2006-06-05  Jackson Harper  <jackson@ximian.com>
2634
2635         * TreeNode.cs: Compute the next node for expanding/collapsing
2636         correctly. We now factor in nodes without a NextNode
2637         correctly. (Fixes somes cases in nunit-gui).
2638         * InternalWindowManager.cs: Set the bounds when updating the
2639         virtual position of a tool window.
2640         
2641 2006-06-05  Chris Toshok  <toshok@ximian.com>
2642
2643         * DataGrid.cs: rename cached_currencymgr to list_manager.
2644         (set_CurrentCell): move SetCurrentCell code here, and clean it up
2645         some.
2646         (CurrentRow, CurrentColumn): single accessors so we can make the
2647         cursor movement code a lot easier to understand.
2648         (CurrentRowIndex): implement this in terms of CurrentRow.
2649         (BeginEdit): clean this up a bit.
2650         (CancelEditing): sort out the is_editing/is_changing/is_adding
2651         stuff a little.
2652         (EndEdit): minor changes.
2653         (OnKeyDown): add a comment about a (most likely) unnecessary
2654         check.
2655         (OnMouseDown): cancel editing when we click on a row header.  And
2656         use the CurrentRow setter, not CurrentCell.
2657         (ProcessDialogKey): directly call ProcessGridKey.
2658         (UpdateSelectionAfterCursorMove): factor out this common block of
2659         code (it's used everywhere that we move the cursor by updating row
2660         or column).
2661         (ProcessGridKey): pretty substantial overhaul.  Use the
2662         CurrentRow/CurrentColumn properties to make the code a lot more
2663         readable.  Only use the CurrentCell property when we have to
2664         modify both row and column at once.  Tab behavior is still broken,
2665         and Delete is untested.
2666         (Select): if we have no selected rows, set selection_start to
2667         @row.
2668         (EditCurrentCell): rename EditCell this.  It was only ever invoked
2669         with CurrentCell as the arg, so drop the arg and rename it.
2670
2671         * DataGridColumnStyle.cs: clean up the constructors a little, and
2672         drop CommonConstructor().
2673
2674         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
2675         actually get notified when the user hits it.
2676         (ProcessKeyMessage): *substantially* simplify this method.
2677         There's no reason (that I can see) for the textbox to be making
2678         calls into the datagrid at all.  Remove all of them but the ones
2679         for Enter handling.  those will take some more work.
2680
2681         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
2682         calling HideEditBox.
2683         (HideEditBox): if we have an active textbox, render it invisible
2684         without causing a re-layout of the datagrid.
2685
2686 2006-06-05  Mike Kestner  <mkestner@novell.com>
2687
2688         * ListView.cs : fix NRE crasher when focuseditem is cleared by
2689         collection changes by resetting it to Items[0].  Fixes #78587.
2690
2691 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2692
2693         * MessageBox.cs: if the height of the text is larger than the icon_size,
2694         use that. Fixes bug #78575.
2695
2696 2006-06-05  Jackson Harper  <jackson@ximian.com>
2697
2698         * TreeView.cs: Fix line drawing when scrolling.  To do this each
2699         node is basically responsible for drawing its entire horizontal
2700         area.  When drawing a node it draws its parent node lines if
2701         needed.
2702         - Adjust the clip area to the viewport rectangle
2703         - Fix Left/Right key handling to match MS. (It expand/collapses
2704         and moves to parents/first child but does not move selection to
2705         sibling nodes).
2706         - Fix SetTop to work with new bound calculation code
2707         - When scrollbars are no longer needed we need to reset scrolling
2708         vars and recalculate the visible order so the redraw is correct
2709         * TreeNode.cs: We can't expand/collapse nodes with no children.
2710
2711 2006-06-03  John Luke  <john.luke@gmail.com> 
2712
2713         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
2714         so the colors work without dev packages
2715         
2716 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
2717
2718         * Control.cs 
2719           - Select: Implemented to just use activate. Seems to match MS 
2720             behaviour closest. Documented to only do actual control walking 
2721             based on it's parameters if in a container control so I moved 
2722             the code there.
2723           - Removed selection check logic from our internal Select() method
2724         * ContainerControl.cs:
2725           - Select: Moved selection logic from Control here, since MS documents
2726             that containers obey the bool arguments. No longer calling base
2727
2728 2006-06-02  Jackson Harper  <jackson@ximian.com>
2729
2730         * TreeView.cs: If the selected node isn't changed when we get
2731         focus update the previously selected node so that we see the
2732         selection box.
2733
2734 2006-06-02  Mike Kestner  <mkestner@novell.com>
2735
2736         * ComboBox.cs: restructure grab and general mouse event handling.
2737         Make the composite control raise mouse events like it was a single
2738         control for leaves/enters/motion/up/down events.  fix dropdown list
2739         coordinate mangling and refactor it into the scrollbar subclass to
2740         reduce code duplication.  Fixes #78282 #78361 and #78457.
2741
2742 2006-06-02  Mike Kestner  <mkestner@novell.com>
2743
2744         * ScrollBar.cs: remove Capture setting/clearing, as it happens
2745         automatically in the Control.WndProc.
2746
2747 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2748
2749         * FileDialog.cs: fix crash when running SharpChess, which sets the
2750         FilterIndex to 2 with only one Filter.
2751
2752 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2753
2754         * ToolBar.cs: add SizeSpecified property.
2755         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
2756         try to figure out our real size, otherwise fallback to what the
2757         container says.
2758
2759 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
2760
2761         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
2762         * Control.cs (WndProc): MS always calls the DefWndProc to pass
2763           up the event
2764
2765 2006-06-01  Mike Kestner  <mkestner@novell.com>
2766
2767         * ListView.cs: revamp the focus management in ListView.  It still
2768         causes churn of LostFocus/GotFocus emissions on clicks, but it's
2769         better than not handling focus at all.  Will revisit when pdb feels
2770         the general focus handling is solid.  Fixes #78526.
2771
2772 2006-06-01  Jackson Harper  <jackson@ximian.com>
2773
2774         * TreeView.cs: Set the default border style in the constructor.
2775         - Move painting to use OnPaintInternal instead of capturing
2776         WM_PAINT, this is the correct way of doing things
2777         - UpdateBelow shouldn't invalidate the scrollbar area
2778         - Cap the top on update below in case the node was above the top
2779         of the viewport rectangle.
2780         - ExpandBelow and Collapse below need to obey Begin/End Update.
2781         * TreeNode.cs: Make is_expanded internal so the treenode
2782         collection can change it without firing the whole event chain.
2783         * TreeNodeCollection.cs: When clearing all the child nodes make
2784         sure to recalc the visible order.
2785         - Improve algo for remove the top node
2786
2787 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
2788
2789         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
2790           SendMessage directly calling window procedures, which in turn might
2791           call SetFocus()
2792
2793 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
2794
2795         * Control.cs: Don't handle WM_SETFOCUS if the same window already
2796           has focus (works around X11 sending a FocusIn after our SetFocus)
2797         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
2798
2799 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
2800
2801         * Mime.cs: Fix for the NET_2_0 build.
2802           NameValueCollection needs StringComparer now.
2803
2804 2006-05-31  Chris Toshok  <toshok@ximian.com>
2805
2806         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
2807         return (via an out parameter) the starting X of the column.
2808         (UpdateVisibleColumn): track change to FromPixelToColumn.
2809         (HitTest): add a ColumnResize case here.
2810         (DrawResizeLine): new function, probably poorly named.
2811
2812         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
2813         only need to keep one reference.
2814         (set_ListManager): same.
2815         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
2816         Also, add support for HitTestType.ColumnResize.
2817         (OnMouseMove): add column resize behavior here, and change the
2818         cursor to the correct one as we move around the datagrid.
2819         (OnMouseUp): terminate the column resize if we're resizing.
2820         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
2821         for the current cell.
2822         (ConnectListManagerEvents): use cached_currencymgr.
2823         (DisconnectListManagerEvents): fill this in, using
2824         cached_currencymgr.
2825         (SetCurrentCell): remove cached_currencymgr_events handling.
2826         (SetDataMember): only call DisconnectListManagerEvents if
2827         cached_currencymgr is != null.
2828         (SetDataSource): same.
2829         (OnListManagerCurrentChanged): cached_currencymgr_events ->
2830         cached_currencymgr.
2831
2832 2006-05-31  Jackson Harper  <jackson@ximian.com>
2833
2834         * BindingManagerBase.cs: Remove somedebug code that creeped into
2835         SVN.
2836         * TreeNode.cs: We get the indent level dynamically right now, so
2837         don't track it as a member.
2838         * TreeNodeCollection.cs: Make sure all nodes added to the list
2839         have parents, treeviews/topnodes setup properly.
2840         - Don't attempt to track indent level.
2841
2842 2006-05-30  Jackson Harper  <jackson@ximian.com>
2843
2844         * BindingContext.cs: Create the currency manager tables here.
2845         This allows us to more easily create null tables (when bad data
2846         members are used), and more easily create related currency
2847         managers.
2848         * CurrencyManager.cs: All the table creation stuff is done by the
2849         binding context now.
2850         - Current should throw an exception if listposition is -1.
2851         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
2852         been bound yet.
2853
2854 2006-05-30  Mike Kestner  <mkestner@novell.com>
2855
2856         * ListView.cs: allow reexpansion of zero-width column headers.
2857         Fixes #78528.
2858
2859 2006-05-28  Chris Toshok  <toshok@ximian.com>
2860
2861         * CurrencyManager.cs (get_Current): after the late binding
2862         listposition = -1 fix, we need to guard against it here and return
2863         null, otherwise we raise an exception (which is swallowed
2864         elsewhere, and breaks datagrid databinding.)
2865
2866 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
2867
2868         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
2869           than WM_SYSKEY, don't throw if get something unexpected (#78507)
2870
2871 2006-05-26  Jackson Harper  <jackson@ximian.com>
2872
2873         * ControlPaint.cs:
2874         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
2875         values, it's faster and it's all we care about (we don't care if
2876         the names aren't equal).
2877         * KeyboardLayouts.cs: Eliminate some dead code.
2878         - Lazy init things
2879         * X11Keyboard.cs: Lazy init keyboard detection.
2880         - Cleanup access modifiers a little.
2881
2882 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
2883
2884         * XplatUIX11.cs: Once again, attempting to get layout just right.
2885
2886 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
2887
2888         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
2889           the sizes of each link section, that will result in sizes that
2890           match DrawString's layout (Fixes #78391)
2891
2892 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
2893
2894         * FileDialog.cs: If AddExtension property is true autocomplete the
2895           extensions in SaveFileDialog correctly. Fixes bug #78453.
2896           Set MyNetwork and MyComputer to "C:\" for windows. This should
2897           fix part 8 of bug #78446 for now.
2898
2899 2006-05-26  Chris Toshok  <toshok@ximian.com>
2900
2901         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
2902         invalidate the current row header if we need to, but presumably
2903         we'll invalidate the row corrsponding to the bounds or
2904         editingControl.
2905         (GridHScrolled): switch back to this method, as it's part of the
2906         public api.  *sigh*.
2907         (GridVScrolled): same.
2908         (OnMouseWheel): hack up something that more or less works.  Call
2909         GridHScrolled/GridVScrolled directly, instead of duplicating much
2910         of their code here.
2911         (EnsureCellVisibility): reinstate a bunch of this code, since we
2912         can't just set the scrollbar Value and expect to do all the work
2913         in the ValueChanged handler.  Also, Call Update() after scrolling
2914         in one direction so the other XplatX11.ScrollWindow call has the
2915         proper stuff in the proper places.
2916         (EditCell): set is_editing to true before calling .Edit.
2917
2918         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
2919         don't bother comparing first.
2920         (OnKeyPress): call grid.ColumnStartedEditing before calling
2921         base.OnKeyPress.  this will set is_changing and invalidate the row
2922         header if necessary.
2923         (ProcessKeyMessage): for WM_CHAR messages, call
2924         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
2925         and WM_KEYDOWN.
2926         
2927         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
2928         it's done in the DataGrid.
2929         (NextState): call grid.ColumnStartedEditing, which takes care of
2930         invalidating the row header (and setting is_changing).
2931
2932         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
2933         here.  it's done in the DataGrid.
2934
2935 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2936
2937         * Control.cs: allow changing the cursor when the mouse position is
2938         out of bounds but Capture is set.
2939         * LinkLabel.cs: handle the case when the mouse button is pressed on the
2940         linklabel but released somewhere else.
2941
2942 2006-05-25  Jackson Harper  <jackson@ximian.com>
2943
2944         * TreeView.cs: When we get focus if there is no selected node make
2945         it the top node
2946         - Remove some uneeded setup code from Draw.
2947         * TreeNodeCollection.cs: If the tree doesn't have a top node when
2948         a new node is inserted make the new node the top.
2949         * XplatUIX11.cs:
2950         * Timer.cs: Use Utc time so that no local time zone stuff needs to
2951         be used (should be faster).
2952         
2953 2006-05-25  Chris Toshok  <toshok@ximian.com>
2954
2955         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
2956         problem with the last commit.
2957
2958 2006-05-25  Chris Toshok  <toshok@ximian.com>
2959
2960         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
2961         need the invalidate call here, while scrolling right-to-left via
2962         the left arrow key (i.e. moving the editing cell while scrolling).
2963
2964         * DataGrid.cs (.ctor): remove the initialization of
2965         ctrl_pressed/shift_pressed.  We no longer track them using key
2966         up/down handlers, but by using Control.ModifierKeys.  Also, switch
2967         to using ValueChanged handlers on the scrollbars instead of
2968         Scrolled event handlers.  This simplifies a bunch of the scrolling
2969         code.
2970         (GridHValueChanged): rename from GridHScrolled, and change it to
2971         work with the new event args.
2972         (GridVValueChanged): same.
2973         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
2974         (OnMouseWheel): actually scroll the datagrid.  Don't change the
2975         selected cell.
2976         (ProcessGridKey): correct all the keyboard navigation stuff I
2977         could find.  Ctrl up/down/left/right/home/end work now.
2978         (EnsureCellVisibility): correct method name spelling.  Also,
2979         simplify this a touch by not explicitly calling the
2980         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
2981         scrollbar value.
2982         (OnKeyUpDG): no need for this method now.
2983         
2984 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2985
2986         * LinkLabel.cs: display the OverrideCursor when hovering the label.
2987         Fixes bug #78392.
2988
2989 2006-05-25  Chris Toshok  <toshok@ximian.com>
2990
2991         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
2992         r61019.
2993
2994 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
2995
2996         * Application.cs: Moved setting of is_modal and closing to before
2997           we create the control, to allow the event handlers called as a
2998           result of creation affect closing. Also removed Gonzalo's previous
2999           change to setting DialogResult, the behaviour has been moved to 
3000           Form.ShowDialog()
3001         * Form.cs: 
3002           - ShowDialog(): Removed explicit creation of the form, let RunLoop
3003             handle it instead
3004           - ShowDialog(): If no dialog result is set, we need to return Cancel
3005           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
3006             the close is cancelled
3007
3008 2006-05-25  Jackson Harper  <jackson@ximian.com>
3009
3010         * StatusBar.cs: We only need to update the sizes of the other
3011         panels when we have auto size contents.  Also we are only updating
3012         the contents of the panel, not the borders, so compensate for the
3013         border width (TODO: get this width from the theme somehow).
3014         * TreeView.cs: Scrollable is true by default
3015         - Use invalidate instead of refresh where needed
3016         - Factor the scrollable value into scrollbar updating
3017         - Update the scrollbars if the Scrollable property is altered
3018         - Update the selected node if its ImageIndex is changed
3019         - Handle null nodes in UpdateNode (mainly so we don't have to
3020         check if selected is null when updating it
3021         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
3022         are factored into the visible count
3023         - Use VisibleCount for clarity in the code
3024         - When the font is changed we need to recurse through all the
3025         nodes and invalidate their sizes
3026         
3027 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3028
3029         * Application.cs: set the DialogResult to fixed when the main form is
3030         hidden or destroyed while being modal.
3031
3032 2006-05-25  Miguel de Icaza  <miguel@novell.com>
3033
3034         * Theme.cs: Use Tangoified messagebox icons. 
3035
3036         (GetSizedResourceImage): Also cope with width = 0 and do not
3037         trigger a warning in that case (0 means "give me your icon from
3038         the resouce, no special size needed).
3039
3040 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
3041
3042         * Application.cs: Leave runloop if the the main modal form is 
3043           hidden (fixes #78484)
3044
3045 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
3046
3047         * BindingContext.cs : reject null datasource in Contains() and
3048           Item[].
3049         * CurrencyManager.cs : check data_member validity when data_source
3050           is dataset. When it is late binding, the initial position is -1.
3051
3052 2006-05-24  Jackson Harper  <jackson@ximian.com>
3053
3054         * TreeNodeCollection.cs: Dont't recalculate the visible order on
3055         inserted nodes that aren't visible.  This changes the
3056         max_visible_order which confuses scrollbar settings.
3057         - Use the enumerator to get the prev node instead of duplicating
3058         code.
3059         * TreeView.cs: Use new method for setting scrollbar values
3060         - Don't set the bounds every time the scrollbar is updated
3061         - When updating below the root node use an invalidate instead of a
3062         refresh to prevent the child controls (scrollbars) from being
3063         refreshed. (UpdateBelow still needs to be reworked anyways).
3064         - Reenable SetBottom now that visible orders are set correctly,
3065         added some debug code incase we ever get bad values there again.
3066         - Set the scrollbar max to 2 less then the max value, this
3067         compensates for the max value being one above the node count, and
3068         for scrollbars adding one extra "notch".
3069         - When drawing image nodes if there is an imagelist we draw the
3070         first image in the list if the supplied image index is out of the
3071         image list's bounds.
3072         
3073 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
3074
3075         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
3076           we receive a size change from the WM (Fixes #78503)
3077
3078 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
3079
3080         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
3081           rectangle (Fixes #78501)
3082
3083 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
3084
3085         * ButtonBase.cs: 
3086           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
3087             as a bitfield.
3088           - Fixed MouseMove to no longer switch pressed state unless the left
3089             mouse button is pressed. Atsushi provided the original patch (#78485)
3090           
3091 2006-05-24  Jackson Harper  <jackson@ximian.com>
3092
3093         * ScrollBar.cs: New internal methods that allow us to change a
3094         couple values on the scrollbar (the most common case is maximum
3095         and large change) without getting multiple invalidates.
3096
3097 2006-05-24  Chris Toshok  <toshok@ximian.com>
3098
3099         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
3100         (Edit): save off the original state in oldState, and set
3101         grid.is_editing to true.
3102         (OnKeyDown): abort editing if escape is pressed.  also, call
3103         NextState if space is pressed.
3104         (OnMouseDown): call NextState.
3105         (NextState): factor out shared code from OnKeyDown and OnMouseDown
3106         here.  Also, only invalidate the row header once (on the initial
3107         is_changing switch) to save on redraws.
3108
3109 2006-05-24  Chris Toshok  <toshok@ximian.com>
3110
3111         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
3112         if the value in the cell is different than it was before.  This
3113         keeps us from triggering a layout when we move around a datarid
3114         with a highlighted cell.
3115         (Edit): suspend layout when creating/positining the text box, and
3116         resume passing false so we don't ever actually re-layout.
3117         (ReleaseHostedControl): same.
3118         (EnsureTextBox): reformat slightly, and set WordWrap to false.
3119
3120         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
3121         control-key sequences should go to the datagrid - remove that
3122         lock.  Also, modify the conditions under which we move between
3123         cells when moving the cursor within a cell, and remove the "this"
3124         and "base" from field accesses.  We weren't even consistent, given
3125         they all were in the base class.
3126
3127 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
3128
3129         * Binding.cs : (.ctor)
3130           An obvious NRE fix for BindingTest.CtorNullTest().
3131
3132 2006-05-23  Chris Toshok  <toshok@ximian.com>
3133
3134         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
3135         them between lines.  This fixes some quirks editing cells in the
3136         datagrid.
3137
3138 2006-05-23  Jackson Harper  <jackson@ximian.com>
3139
3140         * TreeView.cs: Use begin/end update when doing expand/collapse all
3141         so that we don't get flicker on the scrollbar.
3142
3143 2006-05-23  Jackson Harper  <jackson@ximian.com>
3144
3145         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
3146         treenode calculations to be independant of the painting code. To
3147         do this nodes track a visible order which is calculated by the
3148         treeview.
3149         - Call new methods for expanding/collapsing nodes.  These methods
3150         use scrollwindow so we don't have to update everything below the
3151         node.
3152         * TreeView.cs: Refactored drawing and scrolling code.  We don't
3153         need to update nodes when drawing anymore or calculate scrollbar
3154         stuff.
3155         - Added new methods for expanding/collapsing nodes. These methods
3156         use ScrollWindow so as to not have to redraw all the nodes below.
3157         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
3158         we add/remove nodes or sort.
3159         - Handle removing the selected and the top node properly.
3160
3161 2006-05-23  Chris Toshok  <toshok@ximian.com>
3162
3163         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
3164         maybe this should actually happen in the datagrid code?
3165         (EndEdit): no need to invalidate anything, given that
3166         ReleaseHostedControl causes the datagrid to relayout, which
3167         invalidates everything anyway.
3168
3169         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
3170         in SetCurrentCell).
3171         (set_SelectionBackColor): call InvalidateSelection instead of
3172         Refresh.
3173         (set_SelectionForeColor): same.
3174         (BeginEdit): Flesh this out a bit.
3175         (CancelEditing): only do any of this if we're editing/adding.
3176         (EndEdit): same.
3177         (OnMouseDown): there's no need to cancel editing here, it's done
3178         in SetCurrentCell.
3179         (SetCurrentCell): only invalidate the current row header if it's a
3180         different row than the new one.
3181         (ShiftSelection): fix this to work like MS does.
3182         (ResetSelection): factor out the invalidation of selected_rows to
3183         InvalidateSelection.
3184         (SetDataSource): cancel any editing that's going on.
3185
3186         * DataGridColumnStyle.cs
3187         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
3188         call the non-interface version.
3189
3190         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
3191         header rectangle with the clip rectangle so we don't redraw the
3192         entire header for just a small area.  Gets rid of the last flicker
3193         when horizontally scrolling.
3194         (DataGridPaintRow): same.
3195
3196 2006-05-23  Mike Kestner  <mkestner@novell.com>
3197
3198         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
3199         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
3200         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
3201         Critical bug report.
3202
3203 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
3204
3205         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
3206           and this fixes #78493
3207
3208 2006-05-23  Miguel de Icaza  <miguel@novell.com>
3209
3210         * Theme.cs (GetSizedResourceImage): Scale images if the proper
3211         size is not found.  
3212         
3213         * FileDialog.cs: Do not change the background for the side bar as
3214         it wont work nicely with the theme, and also reduces the artifacts
3215         in rendering the icons (which I want to fix too).
3216
3217         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
3218         resources, not resgen resources. 
3219
3220         (PlatformDefaultHandler): Pull images using the new API.
3221
3222 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
3223
3224         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
3225           a reference to the hwnd and will not remove it unless there are
3226           no pending exposures (fixes #78341)
3227         * XplatUI.cs: Improved debug
3228
3229 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
3230
3231         * MenuAPI.cs : don't handle OnClick event when it was not the left
3232           button. Fixed bug #78487.
3233
3234 2006-05-23  Mike Kestner  <mkestner@novell.com>
3235
3236         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
3237         prefer submenus to the top menu for item lookup, to avoid popping down
3238         top-row items.
3239
3240 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
3241
3242         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
3243           Graphics.FillRectangle as the visual results are really bad (even
3244           on win). We now draw perfect arrows (and perfect shadows when the
3245           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
3246           Pen.DashPattern to draw the dots of each line.
3247
3248 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
3249
3250         * FileDialog.cs: Update the filename combobox when navigating through
3251           the ListView with the cursor keys. Fixes part 7 of bug #78446.
3252
3253 2006-05-22  Mike Kestner  <mkestner@novell.com>
3254
3255         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
3256         Fixes #78463.
3257
3258 2006-05-22  Mike Kestner  <mkestner@novell.com>
3259
3260         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
3261         requests. Fix a misspelled parameter and a copy paste exception error
3262         in Select.
3263
3264 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
3265
3266         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
3267           to get the same width/height (5/13) on X11 as the default font has on
3268           win32. This means that our DefaultFont emSize is smaller than the 
3269           the MS SWF equivalent (even thought the width/height stays the same)
3270
3271 2006-05-20  Jackson Harper  <jackson@ximian.com>
3272
3273         * MdiClient.cs:
3274         * MdiWindowManager.cs:
3275         * InternalWindowManager.cs: Make sure to use the border width from
3276         the theme.
3277
3278 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
3279
3280         * PrintDialog.cs: Implements printer details
3281
3282 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
3283
3284         * FileDialog.cs: Added focus handling for PopupButtonPanel.
3285           Fixes part 1 and 2 of bug #78446
3286
3287 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
3288
3289         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
3290           instead of sticking to the first ever calculated value
3291
3292 2006-05-19  Mike Kestner  <mkestner@novell.com>
3293
3294         * ComboBox.cs: fix mouse motion selection to use MousePosition and
3295         PointToClient, since Capture is set. Fixes #78344.
3296
3297 2006-05-19  Mike Kestner  <mkestner@novell.com>
3298
3299         * ListView.cs: match MS behavior in Details view where items are not
3300         drawn if Columns.Count == 0. 
3301         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
3302         Use a separate pen to draw the check, since changing the width affects
3303         the box as well.  Fixes #78454.
3304
3305 2006-05-18  Miguel de Icaza  <miguel@novell.com>
3306
3307         * ListView.cs: ArgumentOutOfRangeException, single versions of the
3308         exception should throw the name of the invalid argument.
3309
3310         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
3311         there are no files listed. 
3312
3313 2006-05-18  Jackson Harper  <jackson@ximian.com>
3314
3315         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
3316         up.
3317
3318 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
3319
3320         * Control.cs: Brought back our old UpdateZOrder method as a private
3321           function and switched our calls from UpdateZOrder to the new one.
3322           This fixes the Paint.Net canvas disappearing bug.
3323
3324 2006-05-18  Jackson Harper  <jackson@ximian.com>
3325
3326         * Theme.cs:
3327         * ThemeWin32Classic.cs:
3328         * InternalWindowManager.cs: Move the drawing into the theme,
3329         expose everything the theme should need from the window manager.
3330
3331 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
3332
3333         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
3334           from the call to NativeWindow to avoid walking up the parent chain
3335           further than needed (speeds up setting cursors and avoids setting
3336           the wrong cursor if a parent has another cursor defined)
3337         * Cursor.cs: When loading an icon as cursor, MS uses the center of
3338           the icon as hotspot, not what's contained as hotspot in the icon
3339           file. This fixes the perceived drawing offset seen with Paint.Net
3340         
3341 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
3342
3343         * XplatUIX11.cs: 
3344           - Store the calculated rectangle in Hwnd object and use it when 
3345             setting the client size
3346           - Force Toolwindows to always be type Dock, to ensure they're on top
3347
3348 2006-05-18  Mike Kestner  <mkestner@novell.com>
3349
3350         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
3351         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
3352         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
3353         Substantial refactoring to remove confusing nested classes. Coding
3354         standard and Get+Set->property refactorings.  Shift to index based
3355         highlighting in ComboListBox instead of constantly using IndexOf and
3356         Items[]. Add invalidations on resize for DropDownList to fix ugliness
3357         in FileDialog growth.  Draw borders manually since Simple mode needs
3358         to look like two independent controls.  Make listbox border
3359         conditional to DropDownStyle.  Improved OwnerDraw support.
3360
3361 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
3362
3363         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
3364         Don't set the disposed graphics to null, so we can throw the "right"
3365         exception if the graphics is reused later (added a flag to avoid 
3366         double disposing). Some behaviours are different under 2.0 and are
3367         filled under bug #78448.
3368
3369 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
3370
3371         * Control.cs: When double-buffering is enabled, we need to reset
3372           our graphics context between paint calls. Otherwise, any 
3373           transformations and other alterations on the context will 
3374           become cumulative (#77734)
3375
3376 2006-05-18  Mike Kestner  <mkestner@novell.com>
3377
3378         * ListView.cs: do focused item selection like MS on clicks. 
3379         Rework focus handling for ItemControl so LostFocus invalidates as
3380         well.
3381         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
3382         the ListView ItemControl has focus.
3383
3384 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
3385
3386         * XplatUIX11.cs: If client_window ends up being width or height zero
3387           due to border settings, move it off window inside whole_window (#78433)
3388
3389 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
3390
3391         * Mime.cs: Shrink the mime file cache correctly.
3392
3393 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
3394
3395         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
3396
3397 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
3398
3399         * XplatUIX11.cs (AddExpose): More sanity checks
3400
3401 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
3402
3403         * XplatUIX11.cs:
3404           - AddExpose: Don't add expose ranges outside the size of our
3405             window
3406           - Cast opacity values to Int32 to avoid crashes with certain
3407             values
3408           - Added disabled code paths that protect against illegal cross-
3409             thread painting (Developers.exe)
3410
3411 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
3412
3413         * ProgressBar.cs: Invalidate the control when it's resized
3414           since block size is based on control size. (#78388)
3415
3416 2006-05-16  Miguel de Icaza  <miguel@novell.com>
3417
3418         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
3419         of setting the incoming argument to the "reset" value, we set the
3420         this.datamember to string.empty (before we were invalidating the
3421         incoming data).   
3422
3423         Fixes 78420
3424
3425 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
3426
3427         * Form.cs: Only apply transparency settings after the form
3428           is created. (Fixes #77800)
3429
3430 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
3431
3432         * ApplicationContext.cs: Grab the HandleDestroyed event so
3433           we know when to fire OnMainFormClosed 
3434
3435 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
3436
3437         * Application.cs: Introduced sub-class to allow tracking of
3438           threads and centralized triggering of the event mess for
3439           ThreadExit, AppExit, etc..  (#76156)
3440
3441 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
3442
3443         * MimeIcon.cs:
3444           - Do not return a null icon index value for a mime subclass.
3445             Instead try the main mime type class too.
3446           - Seems that some newer distributions don't have a link to some
3447             gnome default icons anymore. So check the default gnome dir too.
3448           
3449
3450 2006-05-16  Jackson Harper  <jackson@ximian.com>
3451
3452         * MdiClient.cs: Don't paint the parent background image if we have
3453         our own background image.
3454
3455 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
3456
3457         * Control.cs:
3458           - PerformLayout: Do not shrink space filled by DockStyle.Fill
3459             controls, all filled controls are supposed to overlap (#78080)
3460           - UpdateZOrder is supposed to update the control's z-order in the
3461             parent's z-order chain. Fixed to behave like that
3462           - BringToFront: Removed obsolete code
3463           - SendToBack: Simplyfied
3464           - SetChildIndex: Trigger layout calculations when Z-order changes
3465             since layout is done by z-order
3466
3467 2006-05-16  Chris Toshok  <toshok@ximian.com>
3468
3469         [ fixes bug #78410 ]
3470         * DataGrid.cs (set_AlternatingBackColor): use
3471         grid_drawing.InvalidateCells instead of Refresh().
3472         (set_BackColor): call grid_drawing.InvalidateCells.
3473         (set_BackgroundColor): use Invalidate instead of Refresh.
3474
3475         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
3476         invalidate the cell area.
3477
3478 2006-05-15  Chris Toshok  <toshok@ximian.com>
3479
3480         [ fixes bug #78011 ]
3481         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
3482         on to DataGridPaintRow.
3483         (DataGridPaintRow): take a clip argument, and only draw the cells
3484         which intersect it.  same with the not_usedarea.
3485
3486         * Theme.cs (DataGridPaintRow) add @clip parameter.
3487
3488         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
3489         XplatUI.ScrollWindow.
3490         (ScrollToRow): same.
3491
3492         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
3493         with last column which was causing a gray swath to appear with the
3494         XplatUI.ScrollWindow code.
3495
3496 2006-05-15  Chris Toshok  <toshok@ximian.com>
3497
3498         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
3499         use XplatUI.ScrollWindow.
3500         (VerticalScrollEvent): use XplatUI.ScrollWindow.
3501
3502 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
3503
3504         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
3505
3506 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
3507
3508         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
3509           file since there are no equivalent X11 cursors
3510
3511 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
3512
3513         * MonthCalendar.cs : DateTimePicker should reflect selected date
3514           on mouse*up*, not mouse*down*. Fixed originally reported part of
3515           bug #76474.
3516
3517 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
3518
3519         * TabControl.cs : When argument index is equal or more than tab
3520           count, just ignore. Fixed bug #78395.
3521
3522 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
3523
3524         * Control.cs: Dispose all child controls when control is diposed (#78394)
3525
3526 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
3527
3528         * ColorDialog.cs: Finally it is possible to select the color with
3529           the text boxes
3530
3531 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
3532
3533         * PrintDialog.cs: Fix typo
3534
3535 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
3536
3537         * PrintDialog.cs: PrintDialog is not resizable
3538         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
3539           color. Made some ToolBar drawing methods protected virtual.
3540
3541 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
3542
3543         * PrintDialog.cs: Implementation of the PrintDialog
3544
3545 2006-05-12  Chris Toshok  <toshok@ximian.com>
3546
3547         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
3548         thumb, instead use MoveThumb.  This has the side effect of making
3549         most of the other thumb moving machinery use MoveThumb as well.
3550         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
3551         need to actually invalidate the rectangle where the new thumb will
3552         go.
3553         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
3554         We force an Update() after, so it's not as fast as it could be,
3555         but at least there's zero flicker and no droppings.
3556         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
3557         (UpdateThumbPos): add another argument (dirty), which says whether
3558         or not to calculate/add dirty regions which we later invalidate.
3559         For cases where we know we're going to use MoveThumb, we pass
3560         false for this.  Otherwise, pass true.
3561
3562 2006-05-12  Jackson Harper  <jackson@ximian.com>
3563
3564         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
3565         the status bar.
3566         
3567 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
3568
3569         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
3570           and GetClipRegion methods and UserClipWontExposeParent property.
3571         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
3572           overriding UserClipWontExposeParent property, setting to false, since
3573           Win32 handles the required expose messages to draw our clipped parent
3574           areas internally
3575         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
3576           PaintEventStart to set the user clip region if set.
3577         * Control.cs: 
3578           - Now internally tracking the Region for the control since we need to
3579             store it if the handle is not yet created and only set it when it
3580             becomes created. Before setting the region forced handle creation
3581           - Added code to draw the parents underneath a user-clipped region
3582         * Hwnd.cs: Added UserClip property
3583
3584 2006-05-12  Chris Toshok  <toshok@ximian.com>
3585
3586         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
3587         (set_Maximum): same.
3588         (set_Minimum): same.
3589         (set_SmallChange): same.
3590         (OnMouseUpSB): remove the call to refresh when releasing the
3591         thumb.  We shouldn't need it.
3592         
3593 2006-05-12  Miguel de Icaza  <miguel@novell.com>
3594
3595         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
3596         AutoSize set to None, we do not need to relayout everything, we
3597         just need to invalidate the current region.
3598
3599         (Draw): Do not draw the entire ClientArea, just redraw the
3600         clip area being passed.
3601
3602         * MdiClient.cs: Make MdiClient constructor with the Form argument
3603         internal. 
3604
3605 2006-05-12  Jackson Harper  <jackson@ximian.com>
3606
3607         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
3608         parents background image,  but strangely not their own.
3609         - (DrawStatusBarPanel): Take into account horizontal alignment
3610         when drawing the strings and icons.
3611
3612 2006-05-12  Mike Kestner  <mkestner@novell.com>
3613
3614         * ListBox.cs: avoid invalidations for focus when the collection is
3615         empty. 
3616
3617 2006-05-12  Chris Toshok  <toshok@ximian.com>
3618
3619         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
3620         invalidate the entire thumb area.  Call InvalidateDirty which
3621         limits the redraw to the thumb itself and surrounding pixels.
3622
3623         * XplatUIX11.cs (ScrollWindow): optimize copying.
3624         
3625 2006-05-12  Chris Toshok  <toshok@ximian.com>
3626
3627         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
3628         Figure out the positioning/layout in a single pass instead of
3629         multiple recursive invocations.  Speeds up the initial display of
3630         the data grid.  Also, make many things private that were
3631         originally public but unused outside this class.
3632
3633 2006-05-11  Jackson Harper  <jackson@ximian.com>
3634
3635         * MdiClient.cs: Improved layout code.
3636
3637 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
3638
3639         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
3640           not SelectedObject.
3641
3642 2006-05-11  Chris Toshok  <toshok@ximian.com>
3643
3644         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
3645         union of that will always be {0,0,width,height}.
3646
3647 2006-05-11  Jackson Harper  <jackson@ximian.com>
3648
3649         * Form.cs: Match MS's DefaultSize for forms (they must have
3650         changed the size in sp2).
3651
3652 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
3653
3654         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
3655
3656 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
3657
3658         * TextControl.cs : Fixed bug #78109. This incorrect position
3659           comparison caused crash on automatic line split.
3660         * TextBoxBase.cs : reduce duplicate code.
3661
3662 2006-05-10  Jackson Harper  <jackson@ximian.com>
3663
3664         * MdiClient.cs: Active form is only sent to the back when using
3665         the Next form functionality, when a form is clicked the current
3666         active shouldn't be sent to the back.
3667         - Layout the mdi windows when the container is first made visible.
3668         * Form.cs: Give the MdiClient a ref to the containing form when we
3669         create it.
3670         
3671 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
3672
3673         * LinkLabel.cs : link_font could be uninitialized, so populate one
3674           before actual use. Fixed bug #78340.
3675
3676 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
3677
3678         * XplatUIX11.cs : clipboard format native value is IntPtr.
3679           Fixed bug #78283.
3680
3681 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
3682
3683         * Control.cs: 
3684           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
3685             which is passed up the parent chain by DefWndProc
3686           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
3687             to DefWndProc (#77956)
3688         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
3689
3690 2006-05-10  Jackson Harper  <jackson@ximian.com>
3691
3692         * MdiClient.cs: We need to remove the controls from the mdi
3693         collection, when we close the window.
3694         * MdiWindowManager.cs: Special handling of closing mdi windows.
3695         * InternalWindowManager.cs: Make the close method virtual so the
3696         mdi window manager can handle it specially.
3697
3698 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
3699
3700         * DataGrid.cs:
3701           - Recalculate grid when the data source has changed
3702           - Matches styles provided by user from all data sources types
3703         * DataGridTableStyle.cs: For columns that provided by the user set the
3704         with the preferred value is there was unassigned.
3705         * CurrencyManager.cs: throw OnItemChanged event
3706
3707 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
3708
3709         * PictureBox.cs: Don't animate until handle is created. Start animation
3710           when handle is created.
3711
3712 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
3713
3714         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
3715           current codebase.
3716         * XEventQueue.cs: We don't need to provide the extra info
3717
3718 2006-05-10  Jackson Harper  <jackson@ximian.com>
3719
3720         * MdiClient.cs: If the mdi clients parent form has a background
3721         image set, we draw that background image for the mdi area's
3722         background.
3723
3724 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
3725
3726         * TextBoxBase.cs: Set IBeam cursor (#78347)
3727
3728 2006-05-10  Mike Kestner  <mkestner@novell.com>
3729
3730         * ToolBar.cs: fix some text padding issues with ButtonSize
3731         calculation. Update the default size to match MS documentation.
3732         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
3733         button size. Fixes #78296.
3734
3735 2006-05-10  Mike Kestner  <mkestner@novell.com>
3736
3737         * ListBox.cs: use is_visible for scrollbar positioning in case the
3738         control isn't on screen yet.  Fix off by one with Right vs Width
3739         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
3740         
3741 2006-05-10  Jackson Harper  <jackson@ximian.com>
3742
3743         * X11Dnd.cs: Drop to a control with another control on top of it.
3744         * ToolBar.cs: Work on a copy of the buttons list, so that it can
3745         be modified in click handlers. TODO: Look for similar problems in
3746         other controls.
3747
3748 2006-05-09  Jackson Harper  <jackson@ximian.com>
3749
3750         * Form.cs: Window managers need the old window state when setting
3751         window state now.
3752         * InternalWindowManager.cs: Allow the base mdi window manager to
3753         handle more of the MDI only stuff (like maximize buttons).
3754         * MdiWindowManager.cs: Fix some snafus in changing the window
3755         state.  Add all the menu functionality, for both popup and
3756         maximized menus.
3757         * MdiClient.cs: When a new form is selected the currently
3758         activated form is sent to the back, this matches MS.
3759         - Implement a new method to activate the next mdi child window.
3760
3761 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
3762
3763         * Control.cs: 
3764           - Added new InternalCapture method to allow controls to prevent
3765             the capture behaviour on the click handlers
3766           - Switched to use InternalCapture
3767         * ComboBox.cs:
3768           - Using InternalCapture to prevent mouse captures from being released
3769             on mouse button release (Fixes #78100)
3770         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
3771           returns Form borders if a caption is present. (Fixes #78310)
3772
3773 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
3774
3775         * TreeNode.cs: Changed serialization .ctor to not require every field
3776           to be present. (#78265)
3777         * OwnerDrawPropertyBag.cs: Added serialization .ctor
3778
3779 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
3780
3781         * MimeIcon.cs: for is faster than foreach for strings.
3782
3783 2006-05-05  Mike Kestner  <mkestner@novell.com>
3784
3785         * CheckedListBox.cs: update check handling code to not use selected.
3786         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
3787         behavior for visual feedback, motion response, shift/ctrl handling,
3788         and properly deal with all 4 selection modes. Updates to bounds
3789         handling logic.  Add scroll wheel support. [Fixes #77842]
3790
3791 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
3792
3793         * ListView.cs:
3794           - Moved adding of Implicit controls into .ctor. That way, subsequent
3795             creation of the controls will not cause them to think they are 
3796             toplevel windows (fixes #78200 header problem)
3797           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
3798           - Switched visibility setting of header control to use internal field
3799             to avoid triggering handle creation
3800           - Now checking if handle is created before causing a refresh when items
3801             are added (This makes us now match handle creation time with MS)
3802         * Splitter.cs: Removed loading of private splitter cursor, switched to
3803           Cursors version now that that is loading the right ones
3804         * Cursors.cs: Load proper splitter cursors from resources
3805         * Cursor.cs: Added second method of loading resource cursors for the 
3806           VS.Net users amongst us
3807
3808 2006-05-05  Mike Kestner  <mkestner@novell.com>
3809
3810         * ListView.cs: give header_control a minimum size based on the
3811         ListView size.
3812
3813 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
3814
3815         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
3816           window seems to do that with metacity, so set that type. (#78120)
3817
3818 2006-05-05  Mike Kestner  <mkestner@novell.com>
3819
3820         * ListViewItem.cs: fix Details mode checkbox layout bug.
3821         * ThemeWin32Classic.cs: draw a ListView column header for unused space
3822         at the end of the header, if it exists. [Fixes for #78200]
3823
3824 2006-05-04  Jackson Harper  <jackson@ximian.com>
3825
3826         * MdiClient.cs: Add a helper property to get the container form.
3827         * MdiWindowManager.cs: We have to make sure to use the menu origin
3828         when drawing the icons and buttons, this fixes maximized window
3829         icons/buttons on win32.
3830         * InternalWindowManager.cs: Reset the restore captions when a
3831         window goes from Maximized to Minimized and vice versa. Move the
3832         DrawMaximizedButtons into the MdiWindowManager source, tool
3833         windows can't be maximized. NOTE: This could use a little
3834         refactoring if time ever permits.
3835         
3836 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
3837
3838         * TextBox.cs: Add MWFCategoryAttributes
3839         * TextBoxBase.cs: Add MWFCategoryAttributes
3840         * Form.cs: Add MWFCategoryAttributes
3841
3842 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
3843
3844         * Control.cs: Add MWFCategoryAttributes
3845         * ScrollableControl.cs: Add MWFCategoryAttributes
3846
3847 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
3848
3849         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
3850           Divider is true. Fix a little glitch in PropertyToolBar
3851           drawing code
3852
3853 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
3854
3855         * Control.cs:
3856           - Dispose: Call base.Dispose, this causes the disposed event
3857             to be fired (and probably other, more important stuff)
3858           - SetVisibleCore: Set is_visible to true after creating the
3859             window so that the window still gets created invisible (if
3860             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
3861             to generate a WM_ACTIVE message
3862         * Form.cs: Call Dispose when we want to destroy the window, instead of
3863           just destroying the handle (Dispose will do that for us)
3864         * XplatUIX11.cs:
3865           - RootWindow also needs a queue, so we can properly process the
3866             property change events from RootWindow (like Activate)
3867           - Generatic synthetic WM_ACTIVE message when the active window is
3868             being destroyed
3869
3870 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
3871
3872         * LinkLabel.cs: Trigger a recalc of our label dimensions when
3873           bounds are changed
3874
3875 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
3876
3877         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
3878           for determining width and height (image might not be assigned if
3879           we're drawing an imagelist)
3880
3881 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
3882
3883         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
3884         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
3885           height from system
3886         * Theme.cs: No longer returns hardcoded menu height, instead calls
3887           new driver method
3888         * Form.cs (OnLoad): Scaling happens before triggering Load events 
3889           on MS (# 78257)
3890
3891 2006-05-01  Mike Kestner  <mkestner@novell.com>
3892
3893         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
3894
3895 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
3896
3897         * TextBoxBase.cs: Removed Fixme
3898         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
3899
3900 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
3901
3902         * XplatUIX11.cs:
3903           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
3904             the rectangle relative to the parent, considering borders. We
3905             don't really want that.
3906           - ScrollWindow: Fixed warning to be more understandable
3907         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
3908           scrollbars and scroll only the visible area
3909         * RichTextBox.cs: Removed debug output
3910
3911 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
3912
3913         * NumericUpDown.cs (Text): Just use base
3914         * UpDownBase.cs: Ensure txtView is created before using it
3915
3916 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
3917
3918         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
3919           casting to IntPtr to avoid 64bit overflow errors
3920
3921 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
3922
3923         * Control.cs:
3924           - AllowDrop: Don't force handle creation.
3925           - CreateHandle: Added call to tell driver if we're allowed to drop
3926
3927 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
3928
3929         * FileDialog.cs: Remember the last directory not only for the
3930           current instance but also for new FileDialog instances.
3931
3932 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
3933         
3934         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
3935           broke sending async messages
3936
3937 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
3938
3939         * XplatUIX11.cs:
3940           - ScrollWindow: Fixed method. We finally generate expose events again
3941             for scrolled areas. This was causing 'garbage' when scrolling
3942             textbox and other controls that used ScrollWindow
3943           - Switched from using the regular queue for paint events to the MS 
3944             model of 'generating' paint events when the queue is empty.
3945             We use the new XQueueEvent.Paint subclass to store which windows
3946             need painting.
3947           - AddExpose now takes the x/y/width/height of the exposed area
3948             and inserts the window into the paint queue if not already there
3949           - InvalidateWholeWindow: Switched to use new AddExpose method
3950           - UpdateMessageQueue: Added which queue to monitor for paint events
3951           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
3952             the unlikely case nothing above handles it. We reset the expose
3953             pending states to get them off the queue.
3954           - GetMessage: Now pulls a paint event if no other events are in the
3955             queue
3956           - Invalidate: Switched to new AddExpose method
3957           - PeekMessage: Updated to understand pending paint events
3958           - UpdateWindow: Fixed logic bug. We were only updating if the window
3959             didn't need updating. Also switched to sending WM_PAINT directly,
3960             like MS does.
3961         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
3962           and random access Remove(). The random access is needed to handle
3963           UpdateWindow() where a WM_PAINT is sent directly without accessing
3964           the queue.
3965         * ScrollBar.cs: Added Update() calls to cause immediate updates to
3966           allow for better feedback when scrolling. Scrollbars are small and
3967           the immediate update should make it 'feel' more responsive without
3968           slowing things down. ScrollBar still needs it's invaliate logic
3969           updated to not always invalidate the whole bar on certain changes.
3970
3971 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3972
3973         * Control.cs:
3974         (BackColor): if the control does not support a transparent background,
3975         return the default backcolor when the parent backcolor is transparent.
3976
3977 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
3978
3979         * Application.cs: Updated to new StartLoop/GetMessage API
3980         * RichTextBox.cs: Provide some output on RTF parsing errors
3981         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
3982           new queue_id argument to GetMessage and PeekMessage to allow faster
3983           handling of per-thread queues in drivers.
3984         * Hwnd.cs: Added Queue tracking and property
3985         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
3986         * XEventQueue.cs: Added thread trackingA
3987         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
3988         * XplatUIX11.cs:
3989           - Implemented new per-thread queue
3990           - GetMessage: Fixed return/break behaviour on several cases. We were
3991             returning stale messages in some cases, instead of just processing
3992             the next message
3993
3994 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
3995
3996         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
3997
3998 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
3999
4000         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
4001           fixed off-by-one comparisons between Width/Height and Right/Bottom.
4002
4003 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
4004
4005         * PropertyGridView.cs: Fix drop down width.
4006
4007 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
4008
4009         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
4010           a mess in DrawToolBar, so I removed one of them.
4011
4012 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
4013
4014         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
4015           needed (clip). Otherwise we get artifacts.
4016
4017 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
4018
4019         * FixedSizeTextBox.cs: Added constructor to allow specifying which
4020           dimension is fixed
4021         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
4022           and switched FixedSizeTextBox to only be fixed vertical (#78116)
4023         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
4024           if it matches the scale base font (avoids unneeded scaling)
4025
4026 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
4027
4028         * X11DesktopColors.cs: One gtk_init_check should be enough
4029
4030 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
4031
4032         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
4033           match MS behaviour
4034
4035 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
4036
4037         * TextBoxBase.cs: 
4038           - Generate OnTextChanged for Backspace even if we're only deleting
4039             the current selection
4040           - When setting the Text property, only select all text if the
4041             control does not have focus when it is being set. Otherwise
4042             just place the cursor at the beginning of the control
4043
4044 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
4045
4046         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
4047           Added a little helper to draw PropertyGrid ToolBar with a different
4048           border and a different BackColor.
4049         * PropertyGrid.cs: Some background parts didn't get painted with the
4050           correct background color. Added a class that helps us to draw the
4051           correct border for PropertyGridView and a class that helps us to
4052           draw ToolBars with a different backcolor
4053         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
4054
4055 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
4056
4057         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
4058         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
4059
4060 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
4061
4062         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
4063           into the palette entries. Also, since we're working on a copy
4064           we needed to copy the palette back onto the bitmap.
4065         * Cursor.cs: Same fix as XplatUIWin32.cs.
4066
4067 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
4068
4069         * ImageListStreamer.cs: Need to read the var (or we're off)
4070
4071 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
4072
4073         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
4074           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
4075           TextBoxBase.cs: Unused var fixes
4076         * AxHost.cs: Small 2.0 fix
4077         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
4078           as it seems that is what at least Metacity expects. This will make
4079           icons show up on 64bit platforms. We still have some 64bit size
4080           issues, though, since the startup app window size still won't match.
4081
4082 2006-04-25  Mike Kestner  <mkestner@novell.com>
4083
4084         * *.cs: cleanup newly reported exception var unused warnings.
4085
4086 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
4087
4088         * ThemeWin32Classic.cs: Button image alignment now matches exactly
4089           ms
4090
4091 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
4092
4093         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
4094           image. The image position is always the same, no matter if the
4095           button is pressed or not.
4096
4097 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
4098
4099         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
4100           selection and set the correct filename for SaveFileDialog.
4101           Patch by Emery Conrad.
4102
4103 2006-04-24  Mike Kestner  <mkestner@novell.com>
4104
4105         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
4106         check for item.X outside the ClientRect instead of item.Y. Fixes
4107         #78151.
4108
4109 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4110
4111         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
4112         trust that value blindly and do some sanity check. Fixes bug #77814.
4113
4114 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4115
4116         * ImageListStreamer.cs: save the mask as a 1bpp image.
4117
4118 2006-04-21  Mike Kestner  <mkestner@novell.com>
4119
4120         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
4121         pass Checked and Indeterminate to the Theme Engine. Improve
4122         encapsulation with ListBox.
4123         * ListBox.cs: Keep a StringFormat instead of calculating it every item
4124         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
4125         nested types.  Move all CheckState functionality to CheckedListBox.
4126         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
4127         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
4128         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
4129         single base list. Fix scrollbar sizing and placement to mirror MS.
4130         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
4131         used.
4132         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
4133         for CheckedListBox by using new DrawItemState info.  Center the
4134         checkboxes on the items. Use new StringFormat property.
4135
4136 2006-04-18  Jackson Harper  <jackson@ximian.com>
4137
4138         * Form.cs: MdiChildren don't do default locations the same way as
4139         regular forms.  This prevents a crash when trying to position the
4140         mdi windows.
4141
4142 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
4143
4144         * PropertyGridTextBox.cs: Formatting, copyright
4145         * PropertiesTab.cs: Formatting
4146         * PropertyGrid.cs: Formatting
4147         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
4148           click toggling of values
4149           
4150 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
4151
4152         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
4153         * Control.cs (.ctor): verify_thread_handle is static, don't reset
4154           every time a control is created
4155         * Application.cs: Removed obsolete EnableRTLMirroring method
4156
4157 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
4158
4159         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
4160         SelectedIndex to -1. Fixes bug #78121.
4161
4162 2006-04-17  Jackson Harper  <jackson@ximian.com>
4163
4164         * Binding.cs: Handle null values for Current and BindingContext.
4165         This occurs when binding is a little delayed.
4166         * CurrencyManager.cs: return null for Current when there are no
4167         items in the list.
4168         - Hookup to the listchanged event on the DataView and update
4169         bindings when the list is changed.  This fixes late binding of
4170         controls.
4171
4172 2006-04-17  Jackson Harper  <jackson@ximian.com>
4173
4174         * X11Dnd.cs:
4175         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
4176         Ringenbach.
4177
4178 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
4179
4180         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
4181           place
4182         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
4183           with the correct ButtonState
4184
4185 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
4186
4187         * XplatUIX11.cs: Improved distinguishing between window types to
4188           tell the WM a type closer to what the app wants (Fixes #78107)
4189
4190 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
4191
4192         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
4193           GrabHandle
4194
4195 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
4196
4197         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
4198           drawing code to reflect the size grip changes
4199
4200 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4201
4202         * ImageListStreamer.cs: fix handling of the mask that follows the main
4203         bitmap when deserializing and serialize it properly. The generated mask
4204         should better be a 1bpp image, but I'll do that later.
4205
4206 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
4207
4208         * FileDialog.cs: Show something in the DirComboBox on *nix if the
4209           path doesn't fit into some of our Current.Places
4210
4211 2006-04-13  Jackson Harper  <jackson@ximian.com>
4212
4213         * ComboBox.cs: Use borders instead of drawing our own decorations,
4214         try to obey correct rules for heights.
4215         * Theme.cs:
4216         * ThemeNice.cs:
4217         * ThemeClearLooks.cs:
4218         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
4219         this is now handled by borders.
4220         - Remove unused DrawListBoxDecorationSize method.
4221         
4222 2006-04-13  Mike Kestner  <mkestner@novell.com>
4223
4224         * MenuAPI.cs: null guarding for the disbled click check fixes crash
4225         reported by Alex.
4226
4227 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
4228
4229         * ThemeWin32Classic.cs: 
4230           - Fixed CPDrawStringDisabled
4231           - Corrected drawing of disabled menu items
4232           - Fixed drawing of disabled radio buttons (bug #78095)
4233           - Draw check in a disabled CheckBox with color ControlDark 
4234
4235 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
4236
4237         * Form.cs: Use the provided width when calculating the menu size;
4238           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
4239           and ClientSize.Width won't be updated yet
4240         * Application.cs: Use Visible instead of Show() to make form visible,
4241           this way we create the handle later and menusize is considered
4242
4243 2006-04-12  Mike Kestner  <mkestner@novell.com>
4244
4245         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
4246         reporting.
4247
4248 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
4249
4250         * TextBox.cs: Implemented context menu
4251
4252 2006-04-12  Mike Kestner  <mkestner@novell.com>
4253
4254         * ListView.cs: implement box selection. fixes #77838.
4255         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
4256
4257 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
4258
4259         * XplatUIX11.cs: Added setting of window type when transient window
4260           is created (metacity would move it otherwise)
4261         * X11Structs.cs: Added WINDOW_TYPE atoms
4262         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
4263           background (the control is Opaque but still wants transparent
4264           backgrounds)
4265
4266 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
4267
4268         * Control.cs: Added OnPaintBackgroundInternal to allow controls
4269           that set Opaque but don't mean it (like all ButtonBase-derived
4270           controls) to still draw their background
4271         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
4272           the background
4273
4274 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
4275
4276         * Control.cs (PaintControlBackground): Set the graphics object
4277           on our PaintEvent to null to prevent it from being disposed
4278           when the PaintEvent gets disposed
4279
4280 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
4281
4282         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
4283         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
4284
4285 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
4286
4287         * Control.cs: 
4288           - Added transparency check to BackColor property. Transparent
4289             backgrounds are only allowed if the control styles permit it
4290           - Added recursive painting of parent control background and
4291             foreground if a control with a transparent backcolor is drawn
4292             (Thanks to Tim Ringenback for providing his 'hack' as a base
4293              for this patch) Fixes #77985 and #78026.
4294           - Added Opaque style check before calling OnPaintBackground, no
4295             need to draw the background if the control is opaque
4296           - Removed ControlAccessibleObject owner variable (inherited from
4297             base, no need to define again)
4298           - Added some documentation links explaining the drawing events
4299             and styles
4300
4301 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
4302
4303         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
4304           that the affected control is the located at the left border of our
4305           parent (Fixes #77936)
4306
4307 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
4308
4309         * TextBoxBase.cs: When rendering disabled or readonly controls,
4310           draw the background with 'Control' instead of 'Window' color as
4311           long as the user hasn't specifically set a color
4312
4313 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
4314
4315         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
4316           since that won't be updated if the user types text (only if it's
4317           programatically set)
4318
4319 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
4320
4321         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
4322           layout changes do to app-triggered resizes will have the proper
4323           display rectangle for layout
4324
4325 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
4326
4327         * ThemeWin32Classic.cs:
4328           - Make use of the SystemBrushes and SystemPens wherever possible
4329           - Corrected some highlight colors
4330           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
4331             drawing
4332         * Theme.cs: Added Empty field to CPColor struct
4333
4334 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
4335
4336         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
4337           is displayed when calculating the display rectangle. Thanks to Mike
4338           for teaching me the err of my ways.
4339
4340 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
4341
4342         * ScrollableControl.cs:
4343           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
4344             (instead of 0,0) and we now return the real width/height instead of
4345             just the clientrectangle, adjusted for padding. The rectangle is
4346             now cached and created by the new CalculateDisplayRectangle method.
4347           - Created new CalculateDisplayRectange method, which basically does
4348             what get_DisplayRectangle() did originally, but now using the 
4349             right edge instead of DisplayRectangle to determine the size of
4350             our scrollbars
4351           - get_Canvas(): Fixed it to properly calculate canvas for 
4352             right/bottom controls which seem to be placed to the right/bottom
4353             of any controls that have a fixed location
4354           - Removed TODO that's taken care of
4355           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
4356             and SetDisplayRectLocation according to new MSDN2 docs
4357           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
4358             event when that is called, this is added for compatibility
4359           - ScrollControlIntoView(): Implemented.
4360           - Switched scrollbars to be implicit, they shouldn't be selectable
4361         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
4362           call it when the active control is set/changed
4363         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
4364         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
4365           implicit_control variable (used for native Win32 message generation)
4366         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
4367           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
4368         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
4369         * XplatUIStructs.cs: Added ScrollBarCommands enum
4370
4371 2006-04-10  Jackson Harper  <jackson@ximian.com>
4372
4373         * ButtonBase.cs:
4374         * CheckedListBox.cs:
4375         * ComboBox.cs:
4376         * DataGrid.cs:
4377         * DataGridView.cs:
4378         * Form.cs:
4379         * GroupBox.cs:
4380         * ListBox.cs:
4381         * PrintPreviewControl.cs:
4382         * ProgressBar.cs:
4383         * PropertyGrid.cs:
4384         * Splitter.cs:
4385         * StatusBar.cs:
4386         * TrackBar.cs:
4387         * UpDownBase.cs: Fixup base event overrides.
4388         
4389 2006-04-06  Mike Kestner  <mkestner@novell.com>
4390
4391         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
4392         all user-initiated value changes to min <= value <= max-thumbsz+1.
4393         (set_Value): check for vert/horiz when calculating new thumb position.
4394         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
4395         like MS does.
4396         (OnMouseMoveSB): refactor the thumb dragging code and refine
4397         invalidation logic to reduce flicker.
4398         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
4399         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
4400         (UpdateThumbPosition): small code readability cleanup
4401
4402 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
4403
4404         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
4405           different
4406
4407 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
4408
4409         * ThemeNice.cs: Use a better graphics effect when a button is pressed
4410
4411 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
4412
4413         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
4414         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
4415           This dramatically reduces the number of Pen.Dispose calls. 
4416           Where possible call ResPool methods only once instead of calling it
4417           over and over again (for example for the same color).
4418
4419 2006-04-06  Mike Kestner  <mkestner@novell.com>
4420
4421         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
4422         Also remove an unused private field on the collection. Fixes #77972.
4423
4424 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
4425
4426         * ThemeNice.cs: Added ToolBar drawing code
4427
4428 2006-04-06  Mike Kestner  <mkestner@novell.com>
4429
4430         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
4431         I'm assuming that means we need to look up the toplevel for the
4432         provided control. Fixes the crash trace in #77911 but exposes another
4433         crash in some strange reflection usage in NDocGui.
4434
4435 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
4436
4437         * ThemeNice.cs: Gave it a little silver touch and added Images
4438           method
4439         * FontDialog.cs: FontDialog is not resizable
4440         * FileDialg.cs: Added SizeGripStyle.Show
4441
4442 2006-04-05  Jackson Harper  <jackson@ximian.com>
4443
4444         * KeyboardLayouts.cs: Remove warning.
4445
4446 2006-04-05  Jackson Harper  <jackson@ximian.com>
4447
4448         * Control.cs: Enable OnPaintInternal so we can use it for drawing
4449         all of our controls instead of Paint +=.
4450         * ListBox.cs:
4451         * ListView.cs:
4452         * MenuAPI.cs:
4453         * MessageBox.cs:
4454         * NotifyIcon.cs:
4455         * ProgressBar.cs:
4456         * ScrollBar.cs:
4457         * Splitter.cs:
4458         * StatusBar.cs:
4459         * TabControl.cs:
4460         * TextBoxBase.cs:
4461         * ToolBar.cs:
4462         * TrackBar.cs:
4463         * UpDownBase.cs:
4464         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
4465         use OnPaintInternal. Remove Width/Height and Visible checks in
4466         paint handler, this is done at a higher level now.
4467         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
4468         * PaintEventArgs.cs: Add a handled flag so controls that don't
4469         want anymore painting after OnPaintInternal can make sure OnPaint
4470         isn't called.
4471
4472 2006-04-05  Mike Kestner  <mkestner@novell.com>
4473
4474         * Form.cs: fix the menu WndProc hacks to respect the native enabled
4475         state of the form, so that we don't process events when Modal dialogs
4476         are up. Fixes #77922.
4477
4478 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
4479
4480         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
4481           checking is done.
4482
4483 2006-04-05  Mike Kestner  <mkestner@novell.com>
4484
4485         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
4486
4487 2006-04-05  Mike Kestner  <mkestner@novell.com>
4488
4489         * ListView.cs (HeaderMouseMove): null guarding for the over column
4490         when setting up the drag_to_index.  Fixes #78015.
4491
4492 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
4493
4494         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
4495           in the taskbar. Transient windows seem to accomplish that.
4496
4497 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
4498
4499         * Form.cs:
4500           - Re-enabled CreateParams.X/Y code for FormStartPosition
4501           - Added code for manual placement when creating the Control
4502           - Incomplete patch to treat MDI forms differently when
4503             setting the ClientSizeCore. (Still need to figure out handling
4504             x/y coords there)
4505         * XplatUIX11.cs:
4506           - When we're explicitly setting the X/Y position of a non-Child
4507             window, let the WM know. Metacity really wants this.
4508
4509 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
4510
4511         * ThemeNice.cs: Added CPDrawButton
4512
4513 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
4514
4515         * ThemeNice.cs: Changed the color for focused buttons and activated
4516           the arrows for small scroll buttons.
4517
4518 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
4519
4520         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
4521           anymore. Changed some method modifiers to protected (virtual)
4522         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
4523           changes
4524         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
4525           Updated drawing of menus, buttons and progressbars; added
4526           CPDrawBorder3D 
4527
4528 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4529
4530         * ImageListStreamer.cs: implemented serialization/deserialization
4531         of the images.
4532
4533 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
4534
4535         * ThemeWin32Classic.cs:
4536           - Removed all the DrawFrameControl stuff; CPDrawButton,
4537             CPDrawCheckBox and CPDrawRadioButton are now handled directly
4538             inside the methods
4539           - Updated and corrected the drawing code of CPDrawButton,
4540             CPDrawCheckBox and CPDrawRadioButton to better match ms
4541           - Updated theme checkbox and radiobutton code to use the CP*
4542             methods
4543
4544 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
4545
4546         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
4547           bug is fixed
4548
4549 2006-03-31  Jackson Harper  <jackson@ximian.com>
4550
4551         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
4552         sometimes.
4553         * UpDownBase.cs: Don't CreateGraphics manually, use a
4554         Refresh. Ideally we would invalidate the correct areas here.
4555
4556 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
4557
4558         * XplatUIX11.cs: 
4559           - We now track the mapping state of windows. If a window (or 
4560             one of it's parents) is not mapped we no longer permit
4561             WM_PAINT messages to be generated since we'd otherwise get 
4562             lots of BadMatch X errors. Jackson did all the work figuring
4563             out the problem.
4564           - Destroying the caret if the window it's contained in is 
4565             destroyed. Can't use regular DestroyCaret method since it
4566             might fall into a drawing function (trying to remove the
4567             caret) and with that generate new BadMatch errors. Again,
4568             Jackson tracked this down.
4569           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
4570             make sure we send the messages to all windows. (The old code
4571             would send the WM_DESTROY to the window, and then all child
4572             windows would be 'gone' because the WM_DESTROY handle lookup
4573             would no longer find the destroyed window)
4574         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
4575         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
4576
4577 2006-03-31  Jackson Harper  <jackson@ximian.com>
4578
4579         * ScrollableControl.cs: Dont recalc if we are not visible.
4580
4581 2006-03-31  Mike Kestner  <mkestner@novell.com>
4582
4583         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
4584         the visibility branch.
4585
4586 2006-03-31  Jackson Harper  <jackson@ximian.com>
4587
4588         * ScrollBar.cs: Cap values when incrementing/decrementing.
4589
4590 2006-03-31  Mike Kestner  <mkestner@novell.com>
4591
4592         * MenuAPI.cs: setup menu.tracker for popup/context menus.
4593         * ToolTip.cs: guard against timer expirations with no active control.
4594         Not sure why it happened.
4595
4596 2006-03-31  Mike Kestner  <mkestner@novell.com>
4597
4598         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
4599         text.
4600         * ToolTip.cs: Position the tooltip based on where the cursor is at
4601         popup time, not at MouseEnter time.  Add a Down state so that we don't
4602         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
4603         positioning offset. Lookup DisplaySize at positioning time, since it
4604         can theoretically change during invocation.
4605         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
4606         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
4607
4608 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
4609
4610         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
4611           Fixes behaviour when the Text property of the box is String.Empty
4612
4613 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
4614
4615         * XplatUIX11.cs: Only send mouseleave for our client windows, not
4616           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
4617           a window)
4618
4619 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
4620
4621         * FileDialog.cs: Visual enhancement for the popup buttons in 
4622           PopupButtonPanel
4623
4624 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
4625
4626         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
4627           code
4628
4629 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
4630
4631         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
4632           highlighted menu items to match ms
4633
4634 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
4635
4636         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
4637
4638 2006-03-30  Mike Kestner  <mkestner@novell.com>
4639
4640         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
4641         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
4642         go active to account for HotLight to Selected transition.
4643         * MenuItem.cs: add internal Selected prop. Fill out the Status
4644         property by calculating it from item info. Add HotLight,
4645         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
4646
4647 2006-03-30  Mike Kestner  <mkestner@novell.com>
4648
4649         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
4650
4651 2006-03-29  Jackson Harper  <jackson@ximian.com>
4652
4653         * Form.cs: Implement TODO.
4654
4655 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
4656
4657         * PrintPreviewDialog.cs: Implemented missing methods and events; still
4658           missing proper dialog setup in the constructor
4659
4660 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
4661
4662         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
4663         * Control.cs:
4664           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
4665           - Fixed ResetBindings and removed TODO
4666           - Added check for cross-thread calls to get_Handle()
4667           - Added Marshaller attribute for set_Font to satisfy class status
4668         * FontDialog.cs: Removed TODOs that seemed implemented
4669         * UpDownBase.cs: Removed unneeded TODO and Fixme
4670         * MessageBox.cs: Implemented support for Default button and removed TODO
4671         * FileDialog.cs: Removed obsolete TODO
4672         * DomainUpDown.cs: Removed obsolete TODO
4673         * ButtonBase.cs: Removed obsolete TODO
4674         * XplatUIWin32.cs: Removed obsolete TODO
4675         * Form.cs:
4676           - Removed obsolete TODO
4677           - Calling CheckAcceptButton when the acceptbutton is changed to allow
4678             internal status updates
4679           - Making sure the active control is selected when the control is created
4680         * CurrencyManager.cs: Removed obsolete TODO
4681
4682 2006-03-29  Mike Kestner  <mkestner@novell.com>
4683
4684         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
4685         of PrintPreviewDialog and RichTextBox.
4686
4687 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
4688
4689         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
4690           DarkDark, Light and LightLight colors for a specific color
4691         * ThemeWin32Classic.cs:
4692           - Use Button drawing code to draw RadioButtons and CheckBoxes with
4693             Appearance = Button 
4694           - Make use of the new ResPool helper CPColor
4695           - Draw ProgressBar and StatusBar with correct 3D borders
4696
4697 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
4698
4699         * ColorDialog.cs: Return selected color. Fixes bug #77940.
4700
4701 2006-03-28  Mike Kestner  <mkestner@novell.com>
4702
4703         * ListView.cs: fix Icon layout to plan for scrollbar widths when
4704         calculating col/row counts.
4705
4706 2006-03-28  Mike Kestner  <mkestner@novell.com>
4707
4708         * ColumnHeader.cs:
4709         * ListView.cs:
4710         * ListViewItem.cs:
4711         * Menu.cs: 
4712         switch to explicit interface method implementation for some methods
4713         corcompare identifies as inconsistent with MS.
4714
4715 2006-03-28  Mike Kestner  <mkestner@novell.com>
4716
4717         * MainMenu.cs: 
4718         * Menu.cs:
4719         add a few missing methods from the class status output.
4720
4721 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
4722
4723         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
4724           correct.
4725
4726 2006-03-28  Mike Kestner  <mkestner@novell.com>
4727
4728         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
4729
4730 2006-03-27  Mike Kestner  <mkestner@novell.com>
4731
4732         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
4733         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
4734
4735 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
4736
4737         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
4738
4739 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
4740
4741         * ThemeWin32Classic.cs:
4742           - GroupBox: Inserted a little gap between the text and the lines
4743             on the right side
4744           - Made the code in CPDrawBorder3D more readable
4745           - Corrected the drawing location of the up and down arrows in 
4746             CPDrawScrollButton
4747
4748 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
4749
4750         * ControlPaint.cs: Corrected line widths in DrawBorder for
4751           ButtonBorderStyle Inset and Outset
4752
4753 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
4754
4755         * ThemeWin32Classic.cs:
4756           - Rewrote the totally broken CPDrawBorder3D method. That was
4757             one of the main problems for the terrific ThemeWin32Classic
4758             look
4759           - Updated and corrected Button drawing
4760           - Correct the dimensions of the SizeGrip to match ms ones
4761           - Removed a small drawing glitch in DrawComboBoxEditDecorations
4762         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
4763           Border3DStyle.Sunken to match ms.
4764
4765 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
4766
4767         * ThemeWin32Classic.cs: First small part of the "de-uglify
4768           ThemeWin32Classic" effort, SizeGrip
4769
4770 2006-03-24  Jackson Harper  <jackson@ximian.com>
4771
4772         * XplatUIX11.cs: Give a max idle time of one second, this matches
4773         MS and forces an Idle event every second when there are no other
4774         events in the queue.
4775
4776 2006-03-24  Mike Kestner  <mkestner@novell.com>
4777
4778         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
4779         * ListView.Item.cs: fix layout issues with null image lists and images
4780         smaller than checkbox size.
4781         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
4782         mode like MS does.  It's weird, but consistent.  ;-)
4783         Fixes #77890.
4784
4785 2006-03-24  Mike Kestner  <mkestner@novell.com>
4786
4787         * ListView.cs: Scroll wheel support for the item control.  Fixes
4788         #77839.
4789
4790 2006-03-23  Jackson Harper  <jackson@ximian.com>
4791
4792         * ScrollableControl.cs: Special case negative sized areas, not
4793         zero.
4794         * MonthCalendar.cs: Save the rect of the clicked date so we can
4795         use it for invalidation.
4796         - Try to cut down on the number of invalidates
4797         - Invalidate the rect the mouse is over and was over when moving
4798         the mouse, so we get the focus box following the cursor.
4799
4800 2006-03-23  Mike Kestner  <mkestner@novell.com>
4801
4802         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
4803         focus rectangle drawing. Fixes #77835.
4804
4805 2006-03-23  Mike Kestner  <mkestner@novell.com>
4806
4807         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
4808         the if and else if and reverting back to the original == check on the
4809         None conditional.
4810
4811 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
4812
4813         * FontDialog.cs: Update the example panel if the selected index of
4814           the fontListBox changes.
4815
4816 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
4817
4818         * FileDialog.cs: Make FileDialog remember which directory it was in
4819           last in the same execution.
4820
4821 2006-03-22  Mike Kestner  <mkestner@novell.com>
4822
4823         * FileDialog.cs: make the DropDownMenu on the toolbar display
4824         RadioChecks since they are mutually exclusive and that's what MS does.
4825
4826 2006-03-22  Mike Kestner  <mkestner@novell.com>
4827
4828         * Theme.cs: add Color param to CPDrawMenuGlyph.
4829         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
4830         checks and radio marks and arrows are visible on highlighted items.
4831         * ControlPaint.cs: update to use new Theme signature.
4832
4833 2006-03-22  Mike Kestner  <mkestner@novell.com>
4834
4835         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
4836         is active. Fixes #77870.
4837
4838 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
4839
4840         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
4841           to be focused/selected after startup
4842
4843 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
4844
4845         * ColorDialog.cs: 
4846           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
4847             CustomColors and ShowHelp properties
4848           - Some internal rewrites to get better results when using the
4849             ColorMatrix
4850
4851 2006-03-22  Mike Kestner  <mkestner@novell.com>
4852
4853         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
4854         HoverSelection.  Fixes #77836.
4855
4856 2006-03-22  Mike Kestner  <mkestner@novell.com>
4857
4858         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
4859         ToggleButtons.  (De)Sensitize the Back button around a stack count of
4860         1, not 0.  Update ButtonSize based on a pixel count of the win32
4861         control.  Adjust the toolbar size/location for new button size.
4862
4863 2006-03-22  Jackson Harper  <jackson@ximian.com>
4864
4865         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
4866         true.
4867         * ScrollBar.cs: When doing increments and decrements we need to
4868         set the Value property so that ValueChanged gets raised. A
4869         possible optimization here would be to make an internal SetValue
4870         that doesn't invalidate immediately.
4871         * ToolTip.cs: Tooltips get added to their container (when
4872         supplied) so they get disposed when the container is disposed.
4873         - Don't create tooltips for String.Empty. This prevents all these
4874         little 2-3 pixel windows from showing up when running nunit-gui
4875         and driving me mad.
4876         * Form.cs: Don't set topmost when setting the owner if the handles
4877         haven't been created yet.  The topmost set will happen when the
4878         handles are created.
4879
4880 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
4881
4882         * XplatUIX11.cs:
4883           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
4884           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
4885             visible (to allow them to recalculate their sizes)
4886
4887 2006-03-21  Mike Kestner  <mkestner@novell.com>
4888
4889         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
4890         methods. Removed a ton of redundant code.  Still not really happy with
4891         the border rendering, but I think that's mainly because of the
4892         ControlDarkDark being black instead of a dark grey. Depending on how 
4893         close we want to be, we might want to revisit those color choices.
4894         Among the new features added during the refactor were DropDownArrow
4895         pressed rendering, Disabled image rendering.  Proper flat appearance
4896         boundary rendering.  Removed the Divider and Wrapping dividers since I
4897         can't figure out any combination of themes and conditions to make the
4898         MS control draw a horizontal line on a toolbar despite what the
4899         Divider property docs indicate.
4900         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
4901         conditions and incorrect layout.  Updated to coding standard.
4902         * ToolBarButton.cs: refactored layout and positioning code from
4903         ToolBar to here.  Invalidate wherever possible instead of forcing
4904         redraws of the whole toolbar. 
4905         (Known remaining issues: explicit ButtonSize smaller than provided
4906         images.)
4907
4908 2006-03-21  Mike Kestner  <mkestner@novell.com>
4909
4910         * ContextMenu.cs (Show): use the position parameter instead of just
4911         showing at the MousePosition.
4912
4913 2006-03-21  Jackson Harper  <jackson@ximian.com>
4914
4915         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
4916         control handle this.
4917         * TreeNodeCollection.cs: If we are clearing the root node we need
4918         to reset top_node so calcs can still happen.
4919         * ThemeWin32Classic.cs: This is a Flags so we need to check
4920         properly.
4921         
4922 2006-03-21  Jackson Harper  <jackson@ximian.com>
4923
4924         * DataGrid.cs: Create columns when the binding context has been
4925         changed.
4926         * X11Structs.cs: Keysyms are uints.
4927         - Add size to fix build.
4928
4929 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
4930
4931         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
4932           XplatUIOSX.cs: 
4933           - Added ResetMouseHover method to allow controls to retrigger
4934             hovering if they need it more than once
4935           - Implemented MouseHoverTime and MouseHoverSize properties
4936         * Timer.cs: Start() must reset the interval
4937         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
4938           properties
4939
4940 2006-03-21  Jackson Harper  <jackson@ximian.com>
4941
4942         * X11Keyboard.cs: improved layout detection. Move the nonchar
4943         tables into this file.
4944         * KeyboardLayouts.cs: Move the tables into resource files.
4945
4946 2006-03-21  Mike Kestner  <mkestner@novell.com>
4947
4948         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
4949
4950 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
4951
4952         * Mime.cs: Various speed optimizations. Looking up mime types
4953           is now 2 times faster than before
4954
4955 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
4956
4957         * CreateParams.cs: Added internal menu field
4958         * Control.cs: 
4959           - Switched call order for UpdateBounds; now we always call
4960             the one that also takes ClientSize, and we're calculating the 
4961             client size via driver method in the others. The previous
4962             method of tracking client size by difference wasn't working
4963             for forms where even the starting client size wouldn't match
4964             the overall form size (due to borders) (Part of fix for #77729)
4965           - CreateParams(): Do not use parent.Handle unless the handle is
4966             already created. Causes havoc with Nexxia and throws off our
4967             creation of controls
4968         * XplatUIX11.cs:
4969           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
4970           - Switched handling of ConfigureNotify over to new PerformNCCalc 
4971             method (consolidates code)
4972           - Changed RequestNCRecalc to use new PerformNCCalc method
4973           - Added calls to RequestNCRecalc when menus and borders are changed
4974             to allow app to set NC size. (Part of fix for #77729) This matches
4975             when MS send a WM_NCRECALC on Win32 windows.
4976           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
4977             (Part of fix for #77729). This matches what MS does, they also
4978             send that message when the form is made visible.
4979           - XException.GetMessage: Improved usability of X errors by including
4980             a translation of the window into Hwnd and Control class
4981           - Improved debug info for window creation, reparenting and destruction
4982           - Created helper method WindowIsMapped() [Currently not used]
4983         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
4984         * Form.cs:
4985           - CreateParams: Now setting our menu on the new internal menu field
4986           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
4987             avoid calculating the same property twice
4988         * Hwnd.cs:
4989           - Improved usability of ToString() for debugging purposes
4990           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
4991             determine the height of the menu, instead of just the font. This
4992             required to also create a graphics context and to keep a bmp 
4993             around (for performance reasons)
4994
4995 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
4996
4997         * MenuAPI.cs: Added OnMouseUp method
4998         * Form.cs:
4999           - Now remembering the requested client size, avoids size errors
5000           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
5001             instead of base if the menu is active. This is required due to
5002             control now capturing and releasing on down/up and it would
5003             prematurely release our menu capture
5004
5005 2006-03-17  Jackson Harper  <jackson@ximian.com>
5006
5007         * KeyboardLayouts.cs: Add the czech layouts.
5008
5009 2006-03-16  Jackson Harper  <jackson@ximian.com>
5010
5011         * Control.cs: Use the viewport space when sizing not the controls
5012         client size, so things like ScrollableControl that effect the
5013         viewport size (when scrollbars are added) are computed correctly.
5014         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
5015         of ManagerEntrys.
5016         - Handle creating BindingManagers for null data sources.
5017         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
5018         source, otherwise when rows are added they are added to the 'fake'
5019         datasource and we will crash when trying to set the position in
5020         those rows.
5021         - Use Implicit scrollbars on the datagrid so they arent
5022         selectable.
5023         
5024 2006-03-16  Jackson Harper  <jackson@ximian.com>
5025
5026         * Binding.cs:
5027         * InternalWindowManager.cs:
5028         * MdiWindowManager.cs:
5029         * X11Keyboard.cs: I really want Mike to love me again (fix
5030         compiler warnings).
5031
5032 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
5033
5034         * DataGrid.cs:
5035           - OnMouseDown: Switch to editing mode when clicking on the cell
5036                          even if we're clicking on the cell that's currently 
5037                          selected
5038           - ProcessGridKey: Left/Right now wrap like MS.Net does
5039           - ProcessGridKey: Tab now knows to add a new row when tab is
5040                             pressed in the cell of the last column of the 
5041                             last row
5042           - ProcessGridKey: Enter now adds another row  if pressed in the last
5043                             row and selectes the new row, same column cell
5044           - ProcessGridKey: Home/End navigate columns, not rows, like 
5045                             originally implemented
5046           - Broke ProcessKeyPreview code out into an extra Internal method
5047             so it can be called from the edit code
5048         * DataGridTextBox.cs (ProcessKeyMessage):
5049           - Switched to accept Tab keypresses
5050           - Added F2 handling to allow jumping to the end of the edited cell
5051           - Added logic to allow moving caret left/right inside edited cell
5052             and making the edited cell jump when the caret hits cell borders
5053           - Tab and Enter are now passed to the datagrid after being handled
5054         * TextBoxBase.cs:
5055           - Removed capture code now that Control handles it
5056           - set_SelectionStart now ensures caret is visible
5057
5058 2006-03-16  Jackson Harper  <jackson@ximian.com>
5059
5060         * TrackBar.cs: Debackwards the increment/decrement for handling
5061         mouse clicks on the bar with vertical trackbars.
5062         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
5063         bottom to match MS.
5064
5065 2006-03-16  Mike Kestner  <mkestner@novell.com>
5066
5067         * ListView.cs: make shift/ctrl keyboard and mouse selection 
5068         consistent with the MS control. Fix a bug in
5069         SelectedListViewItemCollection.Clear that was pissing me off for the
5070         better part of a day because the collection was being altered
5071         underneath us as we walked the list.
5072
5073 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
5074
5075         * Control.cs: Not sure how we could miss this so long, but it seems
5076           that MS.Net has Capture set all the way from before calling 
5077           OnMouseDown through sending the mouse events until after
5078           OnMouseUp. This will fix DataGrid's selection being set to end
5079           at the location of the MouseUp.
5080
5081 2006-03-15  Jackson Harper  <jackson@ximian.com>
5082
5083         * BindingContext.cs: Check the binding after its added so that it
5084           can initialize the binding managers and hookup to events.
5085         * Binding.cs: Data members seem to sometimes include rows/cols in
5086           the format Row.Column we now take this into account.
5087           - Hookup to the position changed event so we can update the
5088           control when the position has changed in the data set.
5089         * CurrencyManager.cs: Take into account the row/col naming
5090           convention when creating dataset tables.
5091         * BindingContext.cs: Using a newer better way of storing
5092           datasource/datamember pairs.  Hopefully this better matches MS for
5093           looking up binding managers.
5094
5095
5096 2006-03-15  Jackson Harper  <jackson@ximian.com>
5097
5098         * BindingContext.cs: The currency manager needs the data member
5099         name, if the member is a data set we use the name to find the
5100         correct table.
5101         * CurrencyManager.cs: When creating the list prefer an IList over
5102         an IListSource.
5103         - Attempt to create a DataTable from a DataSet (TODO: might need
5104         some better error checking here, although MS doesn't seem to have much)
5105         - If we have a DataTable create a view and use it as our list.
5106
5107 2006-03-15  Mike Kestner  <mkestner@novell.com>
5108
5109         * ListView.cs: keep a matrix of the icon mode layout to facilitate
5110         keyboard navigation. Support Up/Down/Left/Right selection correctly
5111         for all 4 View modes.
5112         * ListViewItem.cs: add internal row/col fields for icon layouts.
5113
5114 2006-03-15  Jackson Harper  <jackson@ximian.com>
5115
5116         * TabControl.cs: Redraw the tabs when we resize so their newly
5117         calculated sizes are drawn on screen.
5118         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
5119         composite characters.
5120         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
5121         - filter events so that composite characters can be created
5122         patches by peter
5123         * X11Structs.cs: Add XIMProperties enum.
5124
5125 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
5126
5127         * Control.cs (BringToFront, SendToBack): Don't use window or handle
5128           unless it's created
5129
5130 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
5131
5132         * Control.cs (PerformLayout): We don't need to consider visiblity
5133           for anchoring, only for docking. This fixes 'whacky' alignment
5134           in listbox and other controls that use implicit scrollbars after
5135           the previous PerformLayout patch
5136         * ListBox.cs: Switched to use implicit scrollbars
5137           
5138 2006-03-14  Mike Kestner  <mkestner@novell.com>
5139
5140         * ToolBar.cs: 
5141         * VScrollBar.cs:
5142         - chain up the "new event" overrides to base and use
5143         OnEvent to raise them.  Part of fix for bug #76509.
5144
5145 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
5146
5147         * FileDialog.cs: Do not select an item in the parent directory
5148           on backspace
5149
5150 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
5151
5152         * Control.cs (PerformLayout): It would seem that we considered
5153           invisible windows for our layout. Not quite the right thing
5154           to do. Now we don't any longer, thereby fixing bug #76889.
5155
5156 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
5157
5158         * Control.cs (CanFocus): I goofed. A control can have focus 
5159           even though it's not selectable. Made it match MS docs.
5160
5161 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
5162
5163         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
5164           center by default (fixes #76895)
5165         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
5166           all uses of Border3DSides.All with the explicit ORd together
5167           Left|Right|Top|Bottom because I assume that nobody was aware 
5168           that All also implies a center fill. Most places I checked had
5169           a fill right above.
5170         * ProgressBarStyle.cs: Added
5171
5172 2006-03-13  Mike Kestner  <mkestner@novell.com>
5173
5174         * ListView.cs: fix breakage in drag shadow header positioning 
5175         from Peter's csc compilation fix.
5176
5177 2006-03-13  Mike Kestner  <mkestner@novell.com>
5178
5179         * ListView.cs: fix NRE produced by backspacing twice in a focused
5180         FileDialog.
5181
5182 2006-03-13  Mike Kestner  <mkestner@novell.com>
5183
5184         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
5185
5186 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
5187
5188         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
5189           be changed
5190         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
5191           the allowed size before making programmatic size changes
5192
5193 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
5194
5195         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
5196           set, metacity is broken and will still use the emty sizes in 
5197           the struct. (Fix for #77089)
5198
5199 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
5200
5201         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
5202           WindowExStyles and marked both enums as Flags
5203         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
5204           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
5205           to match WindowStyles split
5206         * XplatUIX11.cs:
5207           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
5208           - Updated to match WindowStyles split
5209         * XplatUIWin32.cs:
5210           - Fixed FosterParent creation, was using ExStyle on the Style field
5211             (This should help with Popup focus issues)
5212           - Updated to match WindowStyles split
5213
5214 2006-03-13  Jackson Harper  <jackson@ximian.com>
5215
5216         * MdiWindowManager.cs: Use the system menu height. Fixes some
5217         strange sizing issues.
5218
5219 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
5220
5221         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
5222         * TextBoxBase.cs:
5223           - Scroll to caret after inserting text (#77672)
5224           - Make scroll range one pixel higher, fixes off-by-one error (and
5225             makes underlines visible on the last line)
5226
5227 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
5228
5229         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
5230           the keyboard state from being stuck with keys in 'pressed' state when
5231           focus is switched away via keyboard
5232         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
5233           reset the keyboard if no X11 KeyUp events are expected to come
5234         * X11Structs.cs: Switched type of Visible to bool to match driver
5235
5236 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
5237
5238         * TextControl.cs:
5239           - Switched caret to be just 1 pixel wide, matches MS and looks less
5240             clunky
5241           - Moved caret display 1 pixel down from the top of the control
5242             to improve view
5243           - InsertCharAtCharet: Update the selection start if moving the caret
5244             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
5245           - No longer always creating the caret when the caret methods are
5246             called. Only the actual ShowCaret/HideCaret will do that now
5247           - Only setting caret visible if the owner control has focus
5248           - UpdateView: Added invalidation-shortcut logic for center and right 
5249             aligned text. Previously we'd update all according to the left
5250             logic which caused drawing errors. Also fixed height of invalidated
5251             areas, now properly invalidating the whole area (was off-by-one)
5252           - owner_HandleCreated: Always generate the document when the
5253             handle is created; this ensures that 
5254         * TextBoxBase.cs:
5255           - Fixed situation where caret would disappear under the right
5256             window border, also improved scrolling behaviour on left-
5257             aligned textboxes
5258           - Fixed right-aligned textboxes to have a border to the
5259             right instead of the caret being under the right border
5260         * XplatUIX11.cs:
5261           - Switched from 'nested' to simple visible/not visible tracking 
5262             for caret (part of fix for #77671)
5263           - No longer passing through translated FocusIn/FocusOut messages
5264             since we were notifying too often and the wrong windows. Instead
5265             we just notify our focussed window of receiving or loosing focus
5266         * XplatUIWin32.cs: Switched from 'nested' show/hide 
5267           counting for caret to simple visible yes/no behaviour (part of 
5268           fix for #77671)
5269
5270 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
5271
5272         * Mime.cs: Remove debug code...
5273
5274 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
5275
5276         * MimeGenerated.cs: Removed
5277         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
5278           and subclasses) from /usr/(local/)share/mime and
5279           $HOME/.local/share/mime.
5280
5281 2006-03-10  Jackson Harper  <jackson@ximian.com>
5282
5283         * MdiWindowManager.cs: Recalc the NC area when a window is
5284         maximized/restored so that the menu area is drawn on forms that
5285         don't have a menu.
5286
5287 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
5288
5289         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
5290           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
5291           us to force a WM_NCCALCRESIZE message being sent. This is needed
5292           for MDI maximizing.
5293
5294 2006-03-10  Jackson Harper  <jackson@ximian.com>
5295
5296         * Form.cs: We need to use the ActiveMenu when calculating menu
5297         height.
5298         - Fix nullref when the window manager hasn't been created yet.
5299         * Control.cs: Fix nullref when we try to bring a control to the
5300         front that has no parent.
5301         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
5302         height.
5303         - Add a dummy item to the maximized menu so it always has the
5304         correct height. Otherwise when there are no menus we don't get our
5305         icon and buttons.
5306         
5307
5308 2006-03-10  Jackson Harper  <jackson@ximian.com>
5309
5310         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
5311         stuff.
5312         * Form.cs: Make the window_state internal so the window managers
5313         can track it.
5314         - When an MDI child is maximized let its window manager create the
5315         main menu (so it can add its icon).
5316         - Notify the window managers of state changes
5317         - Let the window manager paint its buttons and handle button
5318         clicks on the menu when it is maximized.
5319         * InternalWindowManager.cs: Move the prev_bounds into the mdi
5320         window manager, since tool windows don't use it, only mdi windows.
5321         - Tell the main form that we don't want it to handle NCPAINT
5322         itself to avoid extra painting.
5323         - Handle clicks on a maximized windows menu.
5324         - Handle window state changes
5325         - Handle minimize/maximize clicks correctly by setting the window state.
5326         * MdiWindowManager.cs: Add an icon menu that (the menu you get
5327         when clicking on the forms icon).
5328         - New method to create a forms maximized menu. This is its normal
5329         menu + an icon.
5330         - Handle window state changes.
5331         - Handle sizing of maximized windows.  Maximized windows are just
5332         drawn bigger then the parent visible area. All controls are still
5333         there, they are just outside the visible area (this matches windows).
5334         * MdiClient.cs: No scrollbars when a child window is maximized.
5335         - Let the children windows figure out how big they should be when
5336         sizing maximized windows.
5337         - Implement a version of ArrangeIconicWindows somewhat similar to
5338         Windows version.  There are some little differences, but I don't
5339         think any app will rely on the layout of minimized mdi windows.
5340
5341 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
5342
5343         * Padding.cs: Several fixes to allow compiling with csc 2.0
5344
5345 2006-03-09  Jackson Harper  <jackson@ximian.com>
5346
5347         * Menu.cs:
5348         * MenuItem.cs: Cheap hack so we can add items to the list without
5349         the events being raised.  This allows adding mdi items during
5350         drawing. TODO: Should probably find a better time to add the items.
5351
5352 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
5353
5354         * ThemeWin32Classic.cs:
5355           - CheckBox_DrawText: Added logic to not wrap if not enough space
5356             is available (Fix for bug #77727)
5357           - RadioButton_DrawText: Added logic not to wrap if not enough
5358             space is available (Fix for bug #77727). Also removed some
5359             duplicate code, DrawString always drawing the regular text
5360             before hitting the if statement.
5361
5362 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
5363
5364         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
5365
5366 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
5367
5368         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
5369         * ContainerControl.cs: Partial implementation of some 2.0 scaling
5370           methods. Moved the new 2.0 properties into alphabetical order with
5371           other properties and added MonoTODO tags
5372
5373 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
5374
5375         * AutoScaleMode.cs: Added. Fix build.
5376
5377 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
5378
5379         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
5380           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
5381           and was requiring premature handle creation for calls from above
5382         * Form.cs, Control.cs: Removed handle arguments from calls to
5383           CalculateClientRect()
5384
5385 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
5386
5387         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
5388           drag_column.column_rect is MarshalByRef and can't be used that way
5389
5390 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
5391
5392         * AxHost.cs: Added deserialization constructor for 
5393           AxHost+State (fixes 77743)
5394
5395 2006-03-09  Mike Kestner  <mkestner@novell.com>
5396
5397         * ListView.cs: 
5398         - Added column drag reordering for details view.
5399         - fixed behavior when mouse is dragged off column and
5400         AllowColumnReorder is false.
5401         * ColumnHeader.cs: clone the format too in Clone.
5402         * Theme.cs: add DrawListViewHeaderDragDetails method.
5403         * ThemeWin32Classic.cs:
5404         - impl new method for drawing drag column shadows and targets.
5405         - support column offset for details mode in DrawListViewItem.
5406
5407 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
5408
5409         * TextControl.cs: Reset the char_count when the document is cleared
5410           (Fixes bug reported on mono-winforms mailing list)
5411
5412 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
5413
5414         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
5415           of calling base we simply process the key ourselves, since both
5416           DefWindowProc and the handled method would set m.Result. 
5417           (Fixes #77732)
5418
5419 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
5420
5421         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
5422           method also moves the window; instead implemented a copy of
5423           Control.ScaleCore (Part of fix for #77456)
5424         * TextBoxBase.cs: 
5425           - Created new CreateGraphicsInternal method to allow providing
5426             a graphics context when no handle is created without triggering
5427             handle creation. (Part of fix for #77456)
5428           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
5429         * TextControl.cs: 
5430           - Switched Constructor to require TextBoxBase instead of Control (to
5431             allow uncast access to CreateGraphicsInternal)
5432           - Safeguarded use of owner.Handle property. No longer accessing it
5433             unless the handle is already created.
5434           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
5435           - Now triggering a recalc when owning control becomes visible
5436         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
5437           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
5438           premature handle creation (Part of fix for #77456)
5439         * Control.cs:
5440           - We now only destroy our double-buffering buffers when the
5441             control is resized or disposed, but not when visibility
5442             changes. (The code even re-created them twice every time)
5443           - Now requiring a redraw of the buffer on visibility changes
5444             (fixes bug 77654 part 2)
5445           - Not passing OnParentVisibleChanged up unless the control
5446             is visible
5447           - CanFocus: Fixed to match MS documentation
5448           - Focus: Fixed to return actual focus state and to check if
5449             setting focus is legal before setting it
5450
5451 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
5452
5453         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
5454           when to draw focus rectangle by looking at parent focus and
5455           selected state instead. This fixes TabPages on Linux sometimes
5456           having none or multiple focus rectangles.
5457         * XplatUIX11.cs (SetFocus): 
5458           - Don't set the focus if the same window already has focus
5459           - Use SendMessage instead of PostMessage (like it's Win32
5460             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
5461             to match MS behaviour
5462         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
5463           are not selectable.
5464
5465 2006-03-07  Jackson Harper  <jackson@ximian.com>
5466
5467         * PictureBox.cs: Revert line I accidently committed last week.
5468
5469 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
5470
5471         * Control.cs: 
5472           - Added new IsRecreating and ParentIsRecreating properties to
5473             allow testing if RecreateHandle has been called on ourselves
5474             or one of our parents
5475           - WndProc(WM_DESTROY): If our control handle is being recreated
5476             we immediately need to create the handle when receiving the
5477             destroy, that way our child windows find a valid parent handle
5478             when they themselves are being recreated upon WM_DESTROY receipt
5479             (fix for bug #77654 part 1)
5480         * XplatUIX11.cs:
5481           - DestroyWindow: WM_DESTROY must be sent to our own window before
5482             notifying any child windows. MS documents that child windows
5483             are still valid when WM_DESTROY is received. (Control now relies on
5484             this behaviour)
5485           - Added some fine-grain debug options
5486
5487 2006-03-06  Jackson Harper  <jackson@ximian.com>
5488
5489         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
5490         box and base calculations off this.
5491         * MdiChildContext.cs:
5492         * MdiWindowManager.cs: Don't need to ensure scrollbars here
5493         anymore.
5494         
5495 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
5496
5497         * Splitter.cs: In situations where the affected control is added
5498           to the parent's control list after the splitter, we would not
5499           populate affected. Now we try populating it on mousedown, if
5500           it's not already set, and force it to be re-set whenever our
5501           parent changes.
5502
5503 2006-03-03  Matt Hargett  <matt@use.net>
5504
5505         * Control.cs: implement Control.Padding
5506         * Padding.cs: -Padding.All returns -1 when constructing with the
5507         implicit default ctor
5508         -Padding.ToString() matches MS.NET
5509         * ContainerControl.cs: implement
5510         ContainerControl.AutoScaleDimensions
5511         * ListControl.cs: implement ListControl.FormattingEnabled
5512         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
5513         * ButtonBase.cs:
5514         * TabPage.cs: Implement UseVisualStyleBackColor.
5515         * PictureBox.cs: Implement PictureBox.InitialImage.
5516
5517 2006-03-03  Mike Kestner  <mkestner@novell.com>
5518
5519         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
5520         event declarations to proxy to base event.
5521         * ListViewItem.cs: update to use ItemControl.
5522         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
5523         * ThemeWin32Classic.cs: update to new ListView theme API and fix
5524         column header label rendering for 0 width columns.
5525
5526 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
5527
5528         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
5529           that causes the control to be created. Fixes #77476.
5530
5531 2006-03-02  Jackson Harper  <jackson@ximian.com>
5532
5533         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
5534         expose_pending.
5535
5536 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
5537
5538         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
5539           passed in for the EventArgs (fixes #77690)
5540
5541 2006-03-01  Jackson Harper  <jackson@ximian.com>
5542
5543         * ScrollBar.cs: Refresh afterbeing resized.
5544
5545 2006-02-28  Mike Kestner  <mkestner@novell.com>
5546
5547         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
5548         Clean up a tracker compile warning.
5549         * MenuItem.cs: add internal PerformPopup method.
5550         [Fixes #77457]
5551
5552 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
5553
5554         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
5555           implicit expose) when the text is set to null
5556
5557 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
5558
5559         * RichTextBox.cs (FlushText): When newline is true, we always
5560           need to split the line, even if no text is on it and we may
5561           never eat newlines. (Fixes #77669)
5562
5563 2006-02-28  Mike Kestner  <mkestner@novell.com>
5564
5565         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
5566         and set Selected instead.
5567         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
5568         collections.
5569
5570 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
5571
5572         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
5573
5574 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
5575
5576         * FontDialog.cs:
5577           - Got rid of the panel. All controls are now directly added to
5578             the dialog form
5579           - It is now possible to set a font with the Font property
5580           - MinSize and MaxSize property do now what they should
5581           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
5582           - Searching and selecting a font with the font textbox works now,
5583             the same applies to the style and size textbox
5584           - Draw the correct 3D border in the example panel
5585           - Fixed a little mem leak (unused fonts didn't get disposed)
5586           - Many other internal updates/rewrites...
5587           - Fix typo
5588
5589 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
5590
5591         * TextControl.cs: 
5592           - InsertRTFFromStream: Added 'number of characters inserted' argument
5593           - set_SelectedRTF: Now using the number of characters to calculate
5594             the new location for the selection and cursor (x/y cannot be used
5595             due to potentially already wrapped text)
5596
5597 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
5598
5599         * TextControl.cs: Added property and implemented means to allow 
5600           disabling recalculation of a document (can be used to speed up
5601           multiple inserts and is needed to make RTF inserts predictable, see
5602           bug #77659)
5603         * RichTextBox.cs: Using the new NoRecalc property of Document to
5604           keep x/y insert locations predictable. Also makes it faster inserting
5605           large chunks of RTF
5606
5607 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
5608
5609         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
5610           it's easier for a child control to handle the other messages without
5611           having to duplicate the special functionality
5612         * TextBoxBase.cs
5613           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
5614             code to handle processing the key ourselves, in order to get 
5615             access to the result of KeyEventArgs.Handled. We now only call 
5616             ProcessKey if they key hasn't been handled already. Fixes #77526.
5617           - set_Text: If null or empty string is given, just clear the 
5618             document. Fixes part of #77526
5619
5620 2006-02-27  Jackson Harper  <jackson@ximian.com>
5621
5622         * SizeGrip.cs: Paint the background color before painting the grip
5623         so things look right.
5624         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
5625
5626 2006-02-27  Mike Kestner  <mkestner@novell.com>
5627
5628         * ListView.cs:
5629           - Restructure layout and invalidation model to remove a ton of
5630           flicker from the control and speed up performance in general.
5631           - Add manual column resize, flickers like crazy, but I already have
5632           some ideas on how I'll fix that. (#76822)
5633           - Merge the three Icon-based views into a single layout method.
5634           - Move item selection interaction logic from the item since 
5635           interaction with the collections is more appropriate to the view.
5636           - Deselection on non-item clicks.
5637         * ListViewItem.cs:
5638           - Encapsulate most of the layout. Add some internal props to trigger
5639           layout.  Move to a model where Items invalidate themselves instead
5640           of just invalidating the whole control every time something changes.
5641           - Invalidate on Text/Caption changes.
5642           - switch to an offset based layout model to avoid having to absolute
5643           position every element on item moves.
5644           - correct checkbox layout to conform to MS layout.
5645         * ThemeWin32Classic.cs:
5646           - refactor some column header drawing code.
5647           - fix string justification for column headers (#76821)
5648           - make SmallIcon labels top justified for compat with MS impl.
5649         * ThemeClearlooks.cs:
5650           - adjust to new ListViewItem internal checkbox bounds api.
5651
5652 2006-02-27  Jackson Harper  <jackson@ximian.com>
5653
5654         * Control.cs:  Change where implicit controls fall in the zorder.
5655         They are now on top of all children.
5656         - Synced AddImplicit code with Add
5657         - Removed unused enumerator.
5658         * SizeGrip.cs: Remove the TODO as its been TODONE.
5659
5660 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
5661
5662         * TextControl.cs(Insert): Combine the last lines unless the insertion
5663           string ends with \n\n, otherwise we leave one line too many (Fixes
5664           something I noticed with the testapp for #77526; the bug itself was
5665           already fixed in the previous checkin)
5666
5667 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
5668
5669         * RichTextBox.cs:
5670           - SelectionColor and SelectionFont methods no longer set absolute
5671             styles. Instead, the keep font or color respectively (This 
5672             resolves a long-standing FIXME in the code)
5673           - When flushing RTF text, the insert code now considers text trailing
5674             behind the insertion point (Fixes the bug where when replacing
5675             the selected text via SelectedRTF the remainder of the line behind 
5676             the selection would stay on the first insertion line)
5677         * TextBoxBase.cs:
5678           - AppendText now updates the selection points after inserting text
5679           - AppendText now ensures that the last tag (sometimes 0-length) of
5680             the document is used for the style information (Fixes part of 
5681             bug #77220)
5682         * TextControl.cs:
5683           - Created new FontDefiniton class to allow describing partial style
5684             changes
5685           - StreamLine() now takes a lines argument, to allow it to decide
5686             whether an encountered zero-length tag is the last in the document
5687             (which must be kept to not loose the font/color contained in it,
5688             for later appends)
5689           - Created Combine() and Split() methods for Marker structs, to 
5690             support marker updates due to reformatted documents (soft line
5691             wraps)
5692           - Implemented Document.CaretTag setter
5693           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
5694             of the last line (Not the cause, but also exposed by bug #77220)
5695           - Added LineTag argument to InsertString method, to allow callers
5696             to force a certain tag to be used (required to force use of the
5697             trailing zero-length tag of a document)
5698           - Now updating markers in Combine(), to avoid stale tag markers
5699           - Added some method descriptions to aid maintenance
5700           - Implemented new FormatText concept, allowing additive/subtractive
5701             formatting by only specifying the components that are to be 
5702             changed. This was needed for resolving the RTB.SelectedColor/
5703             RTB.SelectedFont fixmes
5704           - Added Break() support method to allow breaking up linetags (used
5705             for partial formatting)
5706           - Added GenerateTextFormat() method. It is used for partial 
5707             formatting and allows to generate a full font/color from given
5708             attributes and an existing tag.
5709
5710 2006-02-26  Jackson Harper  <jackson@ximian.com>
5711
5712         * XplatUIX11.cs:  Use the correct caption height.
5713         - Translate hittest coordinates to screen coords to match MS.
5714         * XplatUIWin32.cs: When we create MDI windows we need to reset
5715         some of the style flags, so we get a nice blank window, and can
5716         draw all the decorations ourselves.
5717         - Set a clipping rectangle on the non client paint event, the
5718         window manager drawing code needs one.
5719         * Form.cs: The window manager needs to know when the window state
5720         has been updated.
5721         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
5722         don't need to factor in border and title sizes in these
5723         methods. TODO: Remove the args and fix the call points.
5724         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
5725         properly.
5726         - Let the driver set the cursors.
5727         - Improve active window handling
5728         - Correct sizes for title bars and buttons.
5729         - Match MS drawing better
5730         * MdiWindowManager.cs: We don't need to handle border style
5731         updates specially anymore.
5732         - Check for scrollbars when windows are done moving
5733         - Handle Active properly.
5734         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
5735         correctly. I am spewing the exception though, so we don't hide the
5736         bugs.
5737         
5738 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
5739
5740         * DataGridViewRowPostPaintEventArgs.cs,
5741           DataGridViewCellPaintingEventArgs.cs,
5742           DataGridViewRowCollection.cs,
5743           DataGridViewRowPrePaintEventArgs.cs,
5744           DataGridViewCell.cs: Clear a few warnings and implement a few
5745           exceptions that should be thrown.
5746
5747 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
5748
5749         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
5750           'inheriting' our parent's (non-default) cursor. (Part of
5751            the fix for #77479)
5752
5753 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
5754
5755         * XplatUIX11.cs: Fixed cast to make csc happy
5756
5757 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
5758
5759         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
5760           it's for the client area (part of fix for #77479 and needed
5761           for MDI window cursor handling)
5762         * XplatUIX11.cs
5763           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
5764             the appropriate default cursors and also passing the message
5765             up the parent chain 
5766           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
5767             for non-client areas
5768
5769 2006-02-15  Jackson Harper  <jackson@ximian.com>
5770
5771         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
5772         is a real MDI window
5773
5774 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
5775
5776         * X11DesktopColors.cs: Instead of checking the desktop session
5777           string for "KDE" check if it starts with "KDE"
5778
5779 2006-02-10  Jackson Harper  <jackson@ximian.com>
5780
5781         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
5782         systems).
5783
5784 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
5785
5786         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
5787           errors
5788         * ColorDialog.cs:
5789           - Got rid of the panel. All controls are now directly added to
5790             the dialog form
5791           - Changed to mono coding style
5792
5793 2006-02-10  Jackson Harper  <jackson@ximian.com>
5794
5795         * InternalWindowManager.cs: We don't need the set visibility to
5796         false hack anymore now that peter has written beautiful shutdown
5797         code.
5798
5799 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
5800
5801         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
5802           where already explicitly destroyed
5803
5804 2006-02-10  Jackson Harper  <jackson@ximian.com>
5805
5806         * MdiClient.cs: Handle the case where windows are too high or to
5807         the left and we need scrollbars.
5808
5809 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
5810
5811         * MimeIcon.cs: Added some icons
5812         * FileDialog.cs:
5813           - Fixed bug #77477
5814           - Got rid of the panel. All controls are now directly added to
5815             the dialog form
5816           - Changed to mono coding style
5817           - On Linux "My Computer" and "My Network" will now show some
5818             more usefull information. A new class, MasterMount, gathers
5819             this information from /proc/mount. Updated MWFFileView to make
5820             use of this information
5821           - Fixed a bug that caused FileDialog to crash when
5822             ".recently_used" file had a zero size
5823           - FilterIndex does now what it should
5824           - Some Refactoring
5825         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
5826             FileDialog changes
5827
5828 2006-02-09  Jackson Harper  <jackson@ximian.com>
5829
5830         * ComboBox.cs: Don't touch if null.
5831
5832 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
5833
5834         * Cursor.cs: 64bit safeness fix
5835         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
5836
5837 2006-02-09  Jackson Harper  <jackson@ximian.com>
5838
5839         * Form.cs: If a form is made into an MDI form update the styles so
5840         all the props can get set correctly.
5841         - Kill the mdi_container when we dont need it anymore.
5842         * InternalWindowManager.cs: Add missing NOT
5843
5844 2006-02-08  Jackson Harper  <jackson@ximian.com>
5845
5846         * InternalWindowManager.cs: Respek clipping when drawing MDi
5847         decorations.
5848
5849 2006-02-08  Jackson Harper  <jackson@ximian.com>
5850
5851         * Hwnd.cs: Add bits to track non client expose events.
5852         * XplatUIX11.cs: Track non client expose events on the hwnd. This
5853         gives us a proper invalid rect and will allow for some nice
5854         optimizations with NC client drawing
5855         - MDI windows are children windows, so move their style handling
5856         into the child window block.
5857         * InternalWindowManager.cs: Remove a state reset that was
5858         getting invoked at the wrong time. Fixes managed windows getting
5859         into a 'stuck' captured state.
5860
5861 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
5862
5863         * TextControl.cs (Document.ctor): Now initializing 
5864           selection_anchor. Fixes #77493
5865
5866 2006-02-07  Jackson Harper  <jackson@ximian.com>
5867
5868         * TrackBar.cs: The increment/decrements were backwards.
5869
5870 2006-02-07  Mike Kestner  <mkestner@novell.com>
5871
5872         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
5873         to the instance itself.
5874
5875 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
5876
5877         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
5878           on ulongs and pointers, the size differs between 32bit and 64bit
5879           systems. 
5880
5881 2006-02-07  Mike Kestner  <mkestner@novell.com>
5882
5883         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
5884         for 64 bit platforms to work around a metacity bug. 
5885
5886 2006-02-07  Jackson Harper  <jackson@ximian.com>
5887
5888         * TrackBar.cs: Process the input keys we need, and hookup to
5889         KeyDown instead of using WndProc, so we get key messages.
5890
5891 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
5892
5893         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
5894           machine we're on. 
5895         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
5896           we need to translate the XdndVersion atoms array before sending it
5897
5898 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
5899
5900         * XplatUIX11.cs: 
5901           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
5902             number of bits for the property, not the number of bytes. The
5903             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
5904             but would not crash since it specified 8 bits instead of 4 bits)
5905           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
5906             defined as XID -> long in the C headers)
5907           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
5908             references since those are now IntPtr to begin with
5909           - Switched all Atom.XXX 'int' casts to IntPtr casts
5910           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
5911           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
5912           - Added XChangeActivePointerGrab DllImport (for X11DnD)
5913         * X11Structs.cs:
5914           - Changed 'int' type for Atoms in XEvent structures to IntPtr
5915           - Changed atom in HoverStruct to be IntPtr
5916         * X11DnD.cs:
5917           - Removed local DllImports, switched code to use those from XplatUIX11
5918           - Removed/fixed casts related to the switch of Atom to be a IntPtr
5919
5920 2006-02-06  Mike Kestner  <mkestner@novell.com>
5921
5922         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
5923         method signatures in the import region.  There may still be some
5924         lingering struct marshaling issues, as I didn't drill down into those.
5925         Yet.
5926
5927 2006-02-06  Jackson Harper  <jackson@ximian.com>
5928
5929         * ComboBox.cs: Dont manually set the top_item, this is computed
5930         when the scrollbar position is set.
5931
5932 2006-02-06  Mike Kestner  <mkestner@novell.com>
5933
5934         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
5935         startup crashes on amd64.  There's other fixes needed.  All pinvoke
5936         usage of Atom needs to be mapped to IntPtr for example.  And there are
5937         likely other int/long issues to be addressed.
5938
5939 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
5940
5941         * FileDialog.cs: One more...
5942
5943 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
5944
5945         * FileDialog.cs: Next try
5946
5947 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
5948
5949         * FileDialog.cs: First part of fix for #77464
5950
5951 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
5952
5953         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
5954           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
5955           AcceptButton border drawing.
5956
5957 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
5958
5959         * Form.cs: Moved positioning of form after auto scaling is applied,
5960           otherwise it would possibly use wrong form size.
5961
5962 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
5963
5964         * Control.cs (RecreateHandle): No need to re-create any child
5965           controls, the child windows will get destroyed automatically by
5966           the windowing system or driver, and re-created when the handle
5967           is being accessed the first time. Fixes #77456
5968         * Form.cs: No longer setting the form to closing if the handle is 
5969           being recreated. This seems like the right thing to do, don't
5970           have a bug or testcase for this, though.
5971
5972 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
5973
5974         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
5975           controls to avoid unwanted side effects
5976
5977 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
5978
5979         * Control.cs: 
5980           - ScaleCore needs to scale the bounds, not the ClientSize of the 
5981             control. Fixes #77416.
5982           - DefaultSize is 0,0 for control
5983         * TextBoxBase.cs: 
5984           - DefaultSize is 100, 20
5985           - SetBoundsCore: Now enforcing the height, no matter if the provided
5986             height is more or less than the preferred one, as long as AutoSize
5987             is on
5988         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
5989
5990 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
5991
5992         * Control.cs:
5993           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
5994             call unless both performLayout is true *and* we have a pending
5995             layout change
5996           - ResumeLayout: MS does not completely nest Suspend and Resume,
5997             they bottom out at 0, fixed our code to match that.
5998           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
5999             SetBoundsCore, we were updating even when we shouldn't. This fixes
6000             swf-anchors mis-anchoring when resizing the app fast and lots.
6001           - UpdateDistances: Now only setting the left and top distance if 
6002             we have a parent and are not suspended, this is based on
6003             a suggestion by Don Edvaldson in bug #77355.
6004           - OnVisibleChanged: Fixed logic when to create the control. We may
6005             not create the control if we have no parent or if it's not visible;
6006             switched to using Visible property instead of is_visible field 
6007             since the property also considers parent states. This fixes a bug
6008             when starting Paint.Net
6009
6010 2006-02-02  Jackson Harper  <jackson@ximian.com>
6011
6012         * Form.cs: If the forms handle hasn't been created yet don't call
6013         into xplatui to make it top most, just set the topmost flag on the
6014         form in CreateParams
6015         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
6016
6017 2006-02-01  Jackson Harper  <jackson@ximian.com>
6018
6019         * ScrollableControl.cs: Refactored the Recalculate method a
6020         little, this wasn't handling all the variants of bottom and right
6021         bars needed to be added and added/removed based on their
6022         counterparts being added/removed (which changes the drawable
6023         size). Also we special case client widths and heights of 0 and
6024         don't add the scrollbar for those.
6025
6026 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
6027
6028         * XplatUIX11.cs: 
6029           - Added method to get AbsoluteGeometry(); currently unused, but might
6030             be used in the future, if we try again to figure out toplevel
6031             coordinates with some more crappy window managers
6032           - Added FrameExtents() method to retrieve the WM set decoration size
6033           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
6034             to deal with at least KDE, FVWM and metacity (Fixes #77092)
6035         * Hwnd.cs: 
6036           - Added whacky_wm tracking var for metacity
6037           - Added logic to have default menu height if the actual menu height
6038             has not yet been calculated (part of fix for #77426)
6039         * Form.cs: Keep track whether client size has been set and re-set 
6040           it if a menu is added/removed afterwards (Fixes #77426)
6041
6042 2006-01-31  Jackson Harper  <jackson@ximian.com>
6043
6044         * Control.cs: When a new Site is set on the component attempt to
6045         pull the AmbientProperties from it.
6046
6047 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
6048
6049         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
6050           in the background of the owning form. Fixes #77332
6051
6052 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
6053
6054         * MimeIcon.cs: Fix for #77409
6055
6056 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
6057
6058         * XplatUIX11GTK.cs: Initial import
6059
6060 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
6061
6062         * FixedSizeTextBox: fixes class signature
6063
6064 2006-01-30  Jackson Harper  <jackson@ximian.com>
6065
6066         * FixedSizeTextBox.cs: New internal class that represents a
6067         textBox that will not be scaled.
6068         * TreeView.cs:
6069         * ComboBox.cs:
6070         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
6071         standard TextBox.
6072                 
6073 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
6074
6075         * XplatUIX11.cs: Retrieve default screen number instead of
6076           assuming 0. Attempted fix for #77318
6077
6078 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
6079
6080         * XplatUIWin32.cs: 
6081           - GetWindowPos: When a window is parented by FosterParent, use 
6082             the desktop instead of FosterParent as the base to get coordinates
6083           - CreateWindow: Don't make FosterParent the parent window for Popups
6084             if we don't want a taskbar entry, Popups automatically don't get one
6085         * Hwnd.cs: Need to call remove to actually remove the key from the
6086           hash table
6087
6088 2006-01-30  Mike Kestner  <mkestner@novell.com>
6089
6090         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
6091
6092 2006-01-30  Jackson Harper  <jackson@ximian.com>
6093
6094         * TreeView.cs:
6095         * TreeNode.cs: Raise events no matter how the treenode is
6096         checked. Patch by Don Edvalson.
6097
6098 2006-01-30  Jackson Harper  <jackson@ximian.com>
6099
6100         * TreeNode.cs: Signature fix.
6101
6102 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
6103
6104         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
6105
6106 2006-01-20  Mike Kestner  <mkestner@novell.com>
6107
6108         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
6109         event forwarding when menus are active.
6110         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
6111         Most of the patch is pdb's with a little rework.
6112
6113 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
6114
6115         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
6116           Removed GetMenuDC and ReleaseMenuDC methods; replaced
6117           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
6118         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
6119         * InternalWindowManager.cs: Added use of PaintEventStart/End to
6120           handling of WM_NCPAINT message, now passing the PaintEventArgs to
6121           the PaintWindowDecorations method
6122         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
6123         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
6124         * MenuAPI.cs: Made tracker window invisible
6125         * XplatUIWin32.cs:
6126           - Removed GetMenuDC and ReleaseMenuDC methods
6127           - Implemented the client=false path for PaintEventStart and
6128             PaintEventEnd
6129
6130 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
6131
6132         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
6133         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
6134           styles
6135         * Form.cs: 
6136           - MaximizeBox, MinimizeBox: Recreate the handle when setting
6137             the style
6138           - CreateParams: Reworked the styles to match MS look'n'feel,
6139             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
6140             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
6141
6142 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
6143
6144         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
6145           window is not mapped, since otherwise every form that's being 
6146           created is considered minimized, which is wrong.
6147         * Form.cs: Catching the exception and returning our internal value
6148           instead
6149
6150 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
6151
6152         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
6153           SetWindowMinMax() to have means to tell the driver about the minimum,
6154           maximum and maximized state window sizes. (Part of the fix for #76485)
6155         * Form.cs:
6156           - Implemented tracking of minimum and maximum window size, now calling
6157             new SetWindowMinMax() driver method to tell the driver (Part of the
6158             fix for #76485)
6159           - Finished handling of WM_GETMINMAXINFO method, now setting all values
6160             (Completes fix for #76485)
6161           - Calling new SetWindowMinMax driver method when the handle for a 
6162             form is created, to make sure the driver knows about it even if
6163             the values have been set before the window was created
6164           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
6165             to avoid messing up our anchoring calculations (partial fix
6166             for #77355)
6167         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
6168         * XplatUIX11.cs:
6169           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
6170           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
6171             (and presumably other freedesktop.org compliant WMs). Left the
6172             assumption unmapped=minimized, needed for SetVisible to work.
6173           - Now setting the window state when creating windows
6174           - Fixed SetVisible to consider/set the window state when mapping
6175             a Form. We cannot set the state before it's mapped, and we cannot
6176             use Form.WindowState once it's mapped (since it would ask the
6177             driver and get 'normal'. Therefore, we grab the state before
6178             mapping, map, and then set state.
6179           - Implmemented SetWindowMinMax method; Metacity does not seem to
6180             honor the ZoomHints, though.
6181         * XplatUIWin32.cs:
6182           - Removed MINMAXINFO (moved to XplatUIStructs)
6183           - Added SetWindowMinMax stub (on Win32 the only way to set that
6184             information is in response to the WM_GETMINMAXINFO message, which
6185             is handled in Form.cs)
6186           - Added logic to SetVisible to set the proper window state when a 
6187             form is made visible (fixes #75720)
6188
6189 2006-01-26  Jackson Harper  <jackson@ximian.com>
6190
6191         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
6192         same way we handle them with Invoke.
6193
6194 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
6195
6196         * Form.cs:
6197           - Added tracking of window state so CreateParams can return
6198             the appropriate style
6199           - Moved setting of WS_CAPTION style in CreateParams to allow
6200             styles without caption
6201         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
6202           control if the TextBox property is accessed. Fixes #77345
6203         * Control.cs:
6204           - get_Created: now uses is_disposed and is_created to determine
6205             return value (suggested by Jackson)
6206           - CreateHandle: No longer exits if the handle is being recreated
6207           - RecreateHandle: If the handle is not yet created call the 
6208             appropriate method to create either control or handle. If the
6209             control is already created CreateHandle will simply exit instead
6210             of just creating the handle
6211         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
6212           now SendMessage WM_DESTROY directly to the control when DestroyWindow
6213           is called.
6214         * XplatUIX11.cs: 
6215           - When DestroyWindow is called, instead of waiting for the 
6216             DestroyNotification from X11, we directly post it to the WndProc
6217             and immediately dispose the hwnd object.
6218             Same applies to DestroyChildWindows, and this obsoletes the
6219             expose_pending tracking. Contrary to Win32 behaviour we destroy our
6220             child windows before our own, to avoid X11 errors.
6221           - Removed the direct sending of WM_PAINT on UpdateWindow
6222         * XplatUIWin32.cs:
6223           - Reworked DoEvents and GetMessage to allow access to internal queue
6224             even when trying non-blocking access to the queue.  Fixes #77335. 
6225             Based on a patch suggestion by Don Edvalson. The new private
6226             GetMessage can now also be used as a backend for a PeekMessage
6227             frontend version.
6228         * XplatUI.cs: Improved debug output for CreateWindow
6229
6230 2006-01-25  Jackson Harper  <jackson@ximian.com>
6231
6232         * Help.cs: Allow param to be null. Patch by Don Edvalson.
6233
6234 2006-01-24  Jackson Harper  <jackson@ximian.com>
6235
6236         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
6237         when we have a MaxDropItems lower then the selected index.
6238
6239 2006-01-24  Jackson Harper  <jackson@ximian.com>
6240
6241         * Control.cs: Don't allow selection of non visible controls, allow
6242         selection of controls without parents.
6243
6244 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
6245
6246         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
6247         * DataGridDrawingLogic.cs: Add editing row only when is necessary
6248
6249 2006-01-23  Jackson Harper  <jackson@ximian.com>
6250
6251         * UpDownBase.cs: Make the textbox handle all the selection and
6252         tabbing. This fixes tabing to updown controls.
6253
6254 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
6255
6256         * TextBoxBase.cs: fixes exception thown the object was null
6257
6258 2006-01-23  Jackson Harper  <jackson@ximian.com>
6259
6260         * ButtonBase.cs: Just use the base CreateParams. They set
6261         visibility and enabled correctly.
6262         * ComboBox.cs:
6263         * TrackBar.cs:
6264         * MonthCalendar.cs: Lets let the base set as much of the
6265         createparams as possible so we don't have duplicate code all over
6266         the place.
6267
6268 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
6269
6270         * ThemeGtk.cs: Added TrackBar and some experimental code to
6271           get double buffering back
6272
6273 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
6274
6275         * DataGrid.cs: Allows row number set internally higher than the last
6276         when creating a new row. Restores the editing functionality.
6277
6278 2006-01-20  Mike Kestner  <mkestner@novell.com>
6279
6280         * MimeIcon.cs: delay Image creation until the icons are accessed
6281         instead of creating 190 scaled images on GnomeHandler startup.
6282
6283 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
6284
6285         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
6286           first call base before processing the event. Fixes #77279
6287
6288 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
6289
6290         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
6291           that the stride for the GDI bitmap would match the stride of
6292           a DIB or a Cursor.
6293
6294 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
6295
6296         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
6297
6298 2006-01-19  Jackson Harper  <jackson@ximian.com>
6299
6300         * ComboBox.cs: Hookup the text controls keydown event so we get
6301         those when the text control has the focus.
6302
6303 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
6304
6305         * Label.cs: Now using the base events instead of defining new ones;
6306           this allows us to just call the base properties without having to
6307           duplicate all base property logic 
6308
6309 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
6310
6311         * Label.cs: A label by default is not a tabstop (Fixes one of our
6312           failing nunit tests)
6313
6314 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
6315
6316         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
6317         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
6318
6319 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
6320
6321         * Cursor.cs: Reimplemented creating cursor bitmaps without using
6322           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
6323           This fixes #77218
6324         * XplatUIWin32.cs: 
6325           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
6326             constructor creates images that can't be saved. Part of the fix
6327             for #76103
6328           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
6329           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
6330             bug fix for handling window state in forms properly)
6331
6332 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
6333
6334         * ThemeGtk.cs: Simplify ScrollBar drawing
6335
6336 2006-01-18  Jackson Harper  <jackson@ximian.com>
6337
6338         * Splitter.cs: Set the default dock style for the splitter control
6339         in the constructor.
6340
6341 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
6342
6343         * ThemeGtk.cs: Corrected StateType and ShadowType for
6344           gtk_paint_box
6345
6346 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
6347
6348         * Control.cs: Make use of Theme.DoubleBufferingSupported
6349         * ThemeGtk.cs:
6350           - Added drawing for flat style buttons
6351           - Added ScrollBar drawing
6352
6353 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
6354
6355         * ThemeClearlooks.cs: Removed some unneeded code.
6356         * ThemeGtk.cs: First part of ThemeGtk enhancements.
6357
6358 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
6359
6360         * LinkLabel.cs: We need to update the hover drawing when
6361           leaving the control as well.
6362
6363 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
6364
6365         * DataGrid.cs: Clicking on non empty areas in the columns
6366            area was giving an exception
6367
6368 2006-01-17  Jackson Harper  <jackson@ximian.com>
6369
6370         * ThemeWin32Classic.cs:
6371         * ListView.cs: Do not draw/clip the headers when the header style
6372         is None.
6373
6374 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
6375
6376         * DataGrid.cs: Fixes 77260
6377         
6378 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
6379
6380         * DataGrid.cs: Clicking on a column on a empty grid was giving
6381           an exception
6382
6383 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
6384
6385         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
6386           or any keypress will crash the grid.
6387
6388 2006-01-17  Mike Kestner  <mkestner@novell.com>
6389
6390         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
6391         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
6392         invisible/previously-visible items.
6393         [Fixes #76909]
6394
6395 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
6396
6397         * ThemeClearlooks.cs:
6398         - Added CL_Draw_Button method; now other theme controls that are 
6399           not derived from button or do not have a button can draw buttons
6400           too
6401         - Updated ComboBox drawing
6402         - Beautified RadioButton drawing
6403         - Corrected drawing of bottom and left tabs
6404         - Beautified DateTimePicker and MonthCalendar
6405         - Added CPDrawButton and CPDrawRadioButton
6406
6407 2006-01-16  Jackson Harper  <jackson@ximian.com>
6408
6409         * ComboBox.cs: Set the initial value of the scrollbar to the
6410         current index. Reduce the numbers of refreshs and IndexOfs called.
6411
6412 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
6413
6414         * FileDialog.cs: When the file listview is focused hitting the
6415           backspace key moves the fileview to the parent directory
6416
6417 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
6418
6419         * Form.cs: 
6420           - Added RecreateHandle call when changing taskbar visibility to 
6421             trigger reparenting in Win32 driver (Fixes #75719)
6422           - If a window has minimize or maximize buttons, it cannot have
6423             a help button
6424         * XplatUIWin32.cs:
6425           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
6426             the toplevel form with FosterParent (A toolwindow not on the
6427             taskbar) (Fixes #75719)
6428           - Made FosterParent a toolwindow
6429
6430 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
6431
6432         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
6433
6434 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
6435
6436         * ToolTip.cs: If SetToolTip is called from a control and the mouse
6437           is currently over that control, make sure that tooltip_window.Text
6438           gets updated
6439
6440 2006-01-13  Mike Kestner  <mkestner@novell.com>
6441
6442         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
6443
6444 2006-01-13  Jackson Harper  <jackson@ximian.com>
6445
6446         * TreeView.cs: On MS GetNodeAt never actually factors in the X
6447         value passed.  Also redraw the selected node when we recieve
6448         focus, so tabbing between trees works correctly.
6449
6450 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
6451
6452         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
6453           ~/.gconf/%gconf-tree.xml, so use
6454           .gconf/desktop/gnome/interface/%gconf.xml
6455
6456 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
6457
6458         * TextControl.cs: Draw text in gray if control is disabled
6459
6460 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
6461
6462         * TreeView.cs: Draw the focus rectangle outside the highlight, to
6463           make sure it's always visible. Fixes #76680.
6464
6465 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
6466
6467         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
6468
6469 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
6470
6471         * PageSetupDialog.cs: Added.
6472         * PrintDialog.cs: Attributes.
6473         * PrintPreviewControl.cs: Updates.
6474         * PrintPreviewDialog.cs: Updates.
6475         
6476 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
6477
6478         * Control.cs: Undid my selection check fix, since it's not needed
6479         * TextBoxBase.cs:
6480           - Now considering the presence of hscroll/vscroll when sizing
6481             vscroll/hscroll respectively. Fixed bug #77077
6482           - Added Left/Up/Down/Right to IsInputKey list to prevent
6483             ContainerControl from stealing them. This fixes what I broke
6484             with my last checkin.
6485
6486 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
6487
6488         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
6489           I finally understand how the property can be set without a setter :-)
6490
6491 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
6492
6493         * Application.cs:
6494           - Switched RunLoop to use static Message.Create to create a 
6495             Message object
6496           - Added PreProcessMessage call in runloop for keyboard events; this
6497             is part of the fix for #77219, I overlooked this originally in the
6498             MSDN doc for PreProcessMessage
6499         * Control.cs:
6500           - Removed call to PreProcessMessage from handling of keyboard 
6501             messages; it's supposed to be done in the message pump
6502           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
6503             per MSDN documentation.
6504           - IsInputChar: All chars are input chars by default; removed the 
6505             parent calling chain, MS does not document that
6506           - PreProcessMessage: If IsInputChar is true, we want to return false
6507             to allow dispatching of the message
6508           - When selecting the next control, now also check that we're not
6509             selecting ourselves again and therefore return a false positive.
6510         * TextBoxBase.cs:
6511           - Tried to match return values for IsInputKey and ProcessDialogKey
6512             to what MS returns; moved processing of our special keys outside
6513             ProcessDialogKey since MS does not seem to return true on those.
6514           - Moved code that previously was in ProcessDialogKey into new private
6515             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
6516           - Reworked handling of WM_CHAR to not have to duplicate code from
6517             Control.cs anymore, instead we simply call down to base.
6518            
6519 2006-01-12  Jackson Harper  <jackson@ximian.com>
6520
6521         * ComboBox.cs: We always need to refresh the text area when
6522         EndUpdate is called. Fixes the combobox in the file dialog.
6523         * Control.cs: Don't create the creator_thread until the controls
6524         handle is created.  Also in InvokeRequired we check if the
6525         creator_thread is null. This gives the effect of InvokeRequired
6526         returning true if the controls handle is not created yet, and
6527         matches MS.
6528
6529 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
6530
6531         * XplatUI.cs:
6532           - Added StartLoop() driver method. This is used to allow drivers to
6533             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
6534             loop for a particular thread
6535           - Added EndLoop() driver method. This is called once the message
6536             pump for the thread is shut down
6537           - Added SupportsTransparency method to allow the driver to indicate
6538             opacity support for windows
6539         * Form.cs:
6540           - Removed TODO attribute, completed AllowTransparency property
6541           - Added documented logic to Opacity
6542         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
6543           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
6544           versions of CompatibleTextRendering
6545         * X11Structs.cs: Added opacity atom to our atom enumeration
6546         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
6547           of a form might be set before it's reparented by the WM, and we need
6548           the opacity value without calling up to Form)
6549         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
6550           SupportsTransparency() driver methods
6551         * Application.cs: Now calling StartLoop and EndLoop driver methods
6552         * XplatUIX11.cs:
6553           - Added opacity atom registration
6554           - Added StartLoop()/EndLoop() methods. They're empty right now but
6555             will need to get implemented when we switch to a per-thread queue
6556           - Implemented SupportsTransparency() method
6557           - Implemented SetWindowTransparency() method
6558           - Added support for setting the opacity value when a window is
6559             reparented (since the opacity needs to be set on the WM frame)
6560         * XplatUIOSX.cs, XplatUIWin32.cs:
6561           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
6562
6563 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
6564
6565         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
6566
6567 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
6568
6569         * FileDialog.cs: Added ToolTip for MWFFileView
6570         * MimeIcon.cs: Rewrote GnomeHandler.
6571           - Get currently used gnome icon theme from
6572             ($HOME)/.gconf/%gconf-tree.xml
6573           - Make use of inherited icon themes
6574           - Support SVG icon themes like Tango via librsvg
6575
6576 2006-01-12  Miguel de Icaza  <miguel@novell.com>
6577
6578         Revert's Jackson's revert which broke 2.0 builds.   Fix both
6579         builds. 
6580         
6581         * Application.cs: Move the use_compatible_text_rendering outside
6582         the NET_2_0 define.  If we ever need to use the
6583         use_compatible_text_rendering on the individual controls they will
6584         access the variable from the common shared code paths.
6585
6586 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
6587
6588         * XplatUI.cs:
6589           - Added more granular debug options
6590           - Added method to print both window text and id
6591           - Switched debug output to use new Window() debug method
6592           - Added IsEnabled() driver method
6593           - Added EnableWindow() driver method
6594         * Form.cs:
6595           - Removed end_modal; no longer needed, new loop handles termination
6596             via 'closing' variable
6597           - If form is modal, setting DialogResult will now initiate loop
6598             termination via 'closing' variable
6599           - Added support for is_enabled/WS_DISABLED to CreateParams
6600           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
6601             does all the work
6602           - Removed code that's now in RunLoop from ShowDialog()
6603           - Added various documented sanity checks to ShowDialog()
6604           - Added handling of WM_DESTROY message; we set 'closing' on getting
6605             the message to indicate the message pump to terminate
6606           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
6607             send by the Application.ExitThread method. (We send the message
6608             to destroy the window after all other events have been
6609             processed through the queue, instead of destroying the handle 
6610             directly)
6611           - Moved code from Close() method to WM_CLOSE handler; added logic
6612             to only send close-related events if the form is not displayed
6613             modal
6614         * Splitter.cs (..ctor): Fixed typo in resource name
6615         * Control.cs:
6616           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
6617             brush now
6618           - set_Cursor: Now only setting calling into XplatUI if the handle for
6619             the control is already created; this avoids implict handle creation
6620             or crashes if it's not created
6621           - set_Enabled: Now setting the enabled state via the new driver method
6622             instead of just tracking it
6623           - CreateParams: Added logic to set WS_DISABLED based on enabled state
6624           - CreateControl: Reordered event firing and method calls to more
6625             closely fire events in the order MS does. Now setting the
6626             enabled state in the driver when creating the control.
6627           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
6628             match MS order
6629         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
6630           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
6631         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
6632         * Hwnd.cs:
6633           - Added tracking of window enabled state (get_Enabled/set_Enabled)
6634           - Added EnabledHwnd property to easily allow a driver to find the
6635             handle of the first enabled window in the parent chain (this is
6636             used by drivers to pass up input events of disabled windows)
6637         * XplatUIDriver.cs: Added IsEnabled() method
6638         * Application.cs:
6639           - Removed crude and obsolete exiting tracking variable
6640           - Removed internal ModalRun(); replaced by RunLoop()
6641           - Implemented private CloseForms() method to allow closing all 
6642             windows owned by a particular (or all) threads
6643           - Exit() now properly closes all windows without forcing the message
6644             pump to quit
6645           - Removed obsolete InternalExit() method
6646           - Changed Run() methods to use new RunLoop() message pump
6647           - Implemented new RunLoop() method for both modal and non-modal forms
6648         * CommonDialog.cs:
6649           - get_CreateParams: Added setting of WS_DISABLED
6650           - Simplified ShowDialog(); now all the work is done in RunLoop(),
6651             invoked via Form.ShowDialog()
6652         * NativeWindow.cs: We don't remove the window from the collection when
6653           the handle is destroyed; there might still be messages for it in the
6654           queue (mainly the resulting WM_DESTROY); instead it will be removed
6655           when Control calls InvalidateHandle in the WM_DESTROY handler
6656         * XplatUIX11.cs:
6657           - CreateWindow: Added logic to handle the WS_DISABLED window style
6658           - EnableWindow: Implemented based on Hwnd.Enabled
6659           - GetMessage: Reset PostQuitState so the method can be called again
6660           - Implemented support for disabled windows (passing messages to the
6661             first enabled parent) in handling all input messages
6662           - Added optimizations for handling Expose events
6663           - Implemeted new driver method IsEnabled()
6664           - Now always resetting paint pending tracking vars when we start paint
6665           - Re-implemented UpdateWindow via just sending a WM_PAINT message
6666         * XplatUIOSX.cs: Added IsEnabled method stub
6667         * XplatUIWin32.cs: Implemented new IsEnabled() method
6668
6669 2006-01-11  Jackson Harper  <jackson@ximian.com>
6670
6671         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
6672         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
6673         variables a little.
6674         * ColorDialog.cs: Clear out the old form before adding the new
6675         panel.  
6676
6677 2006-01-11  Jackson Harper  <jackson@ximian.com>
6678
6679         * X11Dnd.cs: Make sure to add all the text formats when adding
6680         strings to the data object.
6681         * TreeNodeCollection.cs: When adding to a sorted tree we need to
6682         do some redrawing too.  Also change the UpdateNode to an
6683         UpdateBelow so the newly added node gets painted.
6684         
6685 2006-01-11  Miguel de Icaza  <miguel@novell.com>
6686
6687         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
6688         LinkLabel.cs, PropertyGrid.cs: Implement the
6689         UseCompatibleTextRendering property for 2.x
6690
6691         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
6692
6693 2006-01-11  Jackson Harper  <jackson@ximian.com>
6694
6695         * TreeView.cs: Use the property for setting the selected node so
6696         the correct events get raised.
6697         * TreeNode.cs: Update the tree when the fore/back colours of a
6698         node are set.
6699
6700 2006-01-10  Jackson Harper  <jackson@ximian.com>
6701
6702         * TreeView.cs: Allow setting SelectedNode to null.
6703
6704 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
6705
6706         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
6707
6708 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
6709
6710         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
6711
6712 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
6713
6714         * PrintDialog.cs: Added attributes and set default property values.
6715
6716 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
6717
6718         * PrintControllerWithStatusDialog.cs: 
6719         Added PrintControllerWithStatusDialog.
6720
6721 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
6722
6723         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
6724         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
6725
6726 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
6727
6728         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
6729
6730 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
6731
6732         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
6733         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
6734
6735 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
6736
6737         * MimeIcon.cs: Added internal class SVGUtil.
6738
6739 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
6740
6741         * FileDialog.cs: Don't crash if there are two files with the
6742           same name but different locations.
6743
6744 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
6745
6746         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
6747         dates across multiple month grids. Used to not highlight entire 
6748         month, but does now.
6749         
6750 2006-01-06  Jackson Harper  <jackson@ximian.com>
6751
6752         * MonthCalendar.cs: Removed DoEvents call to prevent a running
6753         message loop. Change timer intervals to numbers that seem more
6754         natural.
6755
6756 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
6757
6758         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
6759           object for location info since screen object is now implemented.
6760
6761 2006-01-05  Jackson Harper  <jackson@ximian.com>
6762
6763         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
6764         * AsyncMethodResult.cs: We no longer use a WeakReference for the
6765         AsyncMethodResult, this is because we ALWAYS want the
6766         ManualResetEvent to get set.
6767         * Control.cs: When disposing use an async invoke to call shutdown
6768         code, so that thigns don't block on the finalizer thread.  Also
6769         check if we even have a message loop before trying to send
6770         messages, if we don't then don't bother sending messages.
6771         - No more weak references for async methods
6772         * XplatUIDriver.cs: No more weak references for async methods.
6773
6774 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
6775
6776         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
6777           returns two FontFamily with the same name
6778
6779 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
6780
6781         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
6782           drawing disabled text. Instead using the ColorGrayText color
6783
6784 2006-01-04  Jackson Harper  <jackson@ximian.com>
6785
6786         * TreeNode.cs: redraw the node when its image index is changed.
6787
6788 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
6789
6790         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
6791           time I checked there are no others like it.
6792
6793 2006-01-04  Jackson Harper  <jackson@ximian.com>
6794
6795         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
6796         this gives the behavoir I was looking for.
6797         * Control.cs: Special case Invoking EventHandlers, this matches MS
6798         and fixes part of bug #76326.
6799
6800 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
6801
6802         * ThemeClearlooks.cs, FileDialog.cs:
6803           - Reflect the latest Theme class changes
6804           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
6805             with DateTime
6806             
6807 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
6808
6809         * Theme.cs: Cache UI resource images and resize them if needed
6810
6811 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
6812
6813         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
6814           is called. This fixes the crash in Nexxia when setting the font
6815           attributes in the chat. [However, RTF needs a look-over to make sure
6816           that all SelectionXXX methods handle the special case that selection
6817           is empty and therefore the change must be applied to all text starting
6818           at the cursor/selection start]
6819
6820 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
6821
6822         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
6823           XplatUIOSX.cs: Added SendMessage and PostMessage methods
6824         * X11Keyboard.cs: Switched to new way of calling PostMessage
6825
6826 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
6827
6828         * Theme.cs: Added theme interface for images to allow the theme to
6829           control what images are used for things like FileDialog, MessageBox
6830           icons, etc.
6831         * MessageBox.cs: Now uses the new Theme icon/image interfaces
6832
6833 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
6834
6835         * FileDialog.cs:
6836           - Removed some dead code
6837           - Opening a recently used file does work now
6838           - Small UI enhancements
6839           - Refactoring
6840
6841 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
6842
6843         * FileDialog.cs: Forgot too add __MonoCS__
6844
6845 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
6846
6847         * FileDialog.cs: We are able to read recently used files now let's
6848           go on and write them.
6849
6850 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
6851
6852         * FileDialog.cs: Breathe some life into "last open"/"recently used"
6853           button
6854         * MimeIcon.cs: Do a check for the top level media type also
6855
6856 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
6857
6858         * ThemeClearlooks.cs:
6859           - Added CPDrawStringDisabled
6860           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
6861             some chars if the text doesn't fit into text_rect
6862           - DrawListViewItem: If View = View.LargeIcon center the image;
6863             rewrote the drawing of ListViewItem.Text if View = 
6864             View.LargeIcon
6865
6866 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
6867
6868         * MimeIcon.cs: Use default KDE icon theme if there is no
6869           "48x48" directory for the current icon theme, fixes #77114
6870         * Mime.cs: Disable not working and actually not used code. 
6871         * ThemeWin32Classic.cs:
6872           - Replace "new SolidBrush" in GetControlBackBrush and
6873             GetControlForeBrush with ResPool.GetSolidBrush
6874           - Changed DrawListViewItem from private to protected virtual
6875         * FileDialog.cs:
6876           - Added form.MaximizeBox = true
6877           - Don't throw an exception if there is a broken symbolic link
6878
6879 2005-12-23  Jackson Harper  <jackson@ximian.com>
6880
6881         * TabControl.cs: Give the panels focus, keyboard navigation is
6882         fixed so this works correctly now.
6883         - We need these key events also.
6884         * ToolBar.cs: Remove some of the poor mans double buffering.
6885         
6886 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
6887
6888         * ComboBox.cs: The internal TextBox now returns the focus.
6889
6890 2005-12-23  Jackson Harper  <jackson@ximian.com>
6891
6892         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
6893
6894 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
6895
6896         * Control.cs: Removed debug code
6897         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
6898           implicit children
6899
6900 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
6901
6902         * Control.cs: When creating the control, update the Z-order after
6903           all it's children are created, too. (Fixes nexxia not showing
6904           picturebox bug)
6905
6906 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
6907
6908         * Control.cs: Do not update the anchoring distances if layout is
6909           suspended, instead do it once layout is resumed
6910
6911 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
6912
6913         * Control.cs: 
6914           - After many hours of debugging, for both Jackson and
6915             myself, it turns out that it helps to set the parent of a control
6916             if you want to actually see it onscreen. In the spirit of that
6917             discovery, we're now setting the parent of the control and
6918             it's children when the control's handle is created. This fix
6919             will make Lutz Roeder's Reflector run happily. 
6920           - now just creating the handle instead of the whole control when
6921             getting a graphics context for the control.
6922
6923 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
6924
6925         * ScrollableControl.cs: When calculating the canvas, don't consider
6926           the scrollbar widths. Instead, predict if horizontal scrollbar
6927           will affect canvas when deciding on vertical display and vice versa.
6928
6929 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
6930
6931         * RichTextBox.cs: Set default RTF font for documents that don't
6932           have a font table (Fixes #77076)
6933
6934 2005-12-22  Jackson Harper  <jackson@ximian.com>
6935
6936         * TextBoxBase.cs: It's difficult to do, but you can have an empty
6937         clipboard. This prevents a NullRef in that case.
6938         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
6939         clipboard. PRIMARY is for the currently selected text only. (We
6940         should implement PRIMARY at some point.
6941
6942 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
6943
6944         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
6945           a Unicode function with a structure that was defined in Ansi way.
6946           This fixes #76942.
6947
6948 2005-12-21  Jackson Harper  <jackson@ximian.com>
6949
6950         * StatusBar.cs: Statusbar handles its fore/back colours on it's
6951         on. Because thats how it rolls. (and this avoids it using ambient
6952         colours).
6953         * ThemeWin32Classic.cs: Use the proper back color for filling.
6954         * Menu.cs: Use the system menu bar color for drawing menu
6955         bars. Using the window back color will bring ambient colours into
6956         the picture.
6957
6958 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
6959
6960         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
6961           Bitmaps were created and not disposed.
6962
6963 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
6964
6965         * Control.cs (CreateControl): Don't do anything if the control is
6966           already created, otherwise we'd fire the OnCreated event more than
6967           once
6968
6969 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
6970
6971         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
6972           will always match. Instead return -1. Fixes #76464.
6973
6974 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
6975
6976         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
6977           neither the beginning nor the end of the line (Fixes bug #76479)
6978
6979 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
6980
6981         * Control.cs:
6982           - ControlNativeWindow.ControlFromHandle(): Now handling situation
6983             where handle is invalid
6984           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
6985             instead of slower linear search
6986         * NativeWindow.cs: Don't remove the window from the hashtable until
6987           after the driver has destroyed it (since the driver might use
6988           Control.FromHandle to lookup the control object
6989         * Hwnd.cs: Added DestroyPending property to track if a window is 
6990           already destroyed as far as the driver is concerned and only hasn't
6991           yet notified the control
6992         * XplatUIX11.cs:
6993           - Activate(): Check if the window is still valid before using the 
6994             handle
6995           - Implemented DestroyChildWindow() method to mark child windows as
6996             destroyed when a window is destroyed. This prevents situations 
6997             where we might call an X method based on queued events for a
6998             window that already has been destroyed but we haven't yet pulled
6999             the destroy method from the queue.
7000           - Added a call to the new DestroyChildWindow() method to the drivers
7001             DestroyWindow code. Also now marking the destroyed window itself
7002             as pending
7003
7004 2005-12-20  Jackson Harper  <jackson@ximian.com>
7005
7006         * StatusBar.cs:
7007         * StatusBarPanel.cs: Don't calculate panel sizes on draw
7008         anymore. Just do them when needed, also track the rects of panels
7009         so that we can optimize refreshing more in the future.
7010
7011 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
7012
7013         * ColorDialog.cs: Fixed focus drawing in small color controls
7014
7015 2005-12-19  Jackson Harper  <jackson@ximian.com>
7016
7017         * InternalWindowManager.cs:
7018         * MdiWindowManager.cs: Cleanup some coordinate system changes so
7019         moving windows works properly.
7020
7021 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
7022
7023         * Control.cs: 
7024           - Removed call to InitLayout() from SetBoundsCore(); doc says
7025             it's only called when a control is added to a container
7026           - Split InitLayout logic, moved to separate UpdateDistances() method
7027             since we need to perform those calculations more often than just
7028             when adding the control to a container. (Needed to fix #77022)
7029           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
7030           - Reduced the OnBindingContextChanged events count, don't send them
7031             unless the control is created, we still aren't totally matching
7032             MS, but I can't quite figure out some of their rules
7033
7034 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
7035
7036         * ThemeClearlooks.cs: Corrected distance between ProgressBar
7037           stripes
7038
7039 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
7040
7041         * ThemeClearlooks.cs:
7042           - Updated ProgressBar drawing
7043           - Corrected drawing of ScrollBars and scroll buttons
7044           - Some temporary fixes for minor pixel artefacts
7045
7046 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
7047
7048         * Control.cs:
7049           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
7050             cause events to be sent in the same order as MS does.
7051           - Added ChangeParent() method to trigger various OnXXXChanged events
7052             that need to be fired when a parent changes (This is a reworking
7053             of the patch from r54254, with the X11 errors fixed)
7054           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
7055             since on MS we get OnLayoutChanged events when calling Clear()
7056           - Changed Enabled property to consider parent state as well, if a
7057             parent is not enabled, the control will not be either
7058           - Changed Parent property to simply call Controls.Add() since that
7059             now does all the work required, this way we avoid code duplication
7060           - Threw in a few OnBindingsContextChanged calls to try and match
7061             when MS sends them. We seem to send a few too many, though.
7062           - Added call to CreateControl when adding the control to a parent.
7063             We were never calling CreateControl. Still needs some work, in
7064             some places we treat HandleCreated and ControlCreated as equal, 
7065             which is wrong
7066           - Removed obsolete commented out code from UpdateZOrder()
7067
7068 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
7069
7070         * ThemeClearlooks.cs: Updated TrackBar drawing.
7071
7072 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
7073
7074         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
7075
7076 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
7077
7078         * FileDialog.cs: Add the Help button and the open readonly
7079           checkbox only if needed
7080
7081 2005-12-16  Jackson Harper  <jackson@ximian.com>
7082
7083         * Control.cs: Make sure we have an active menu before trying to
7084         process commands on it. Prevents menu-less forms from crashing
7085         when Alt is pressed.
7086         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
7087         Dieter Bremes.
7088         * RichTextBox.cs: Expand statement to help out gmcs and fix the
7089         2.0 build.
7090
7091 2005-12-16  Jackson Harper  <jackson@ximian.com>
7092
7093         * InternalWindowManager.cs: Don't translate tool windows screen
7094         coordinates. This fixes windows 'bouncing' around when being moved.
7095
7096 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
7097
7098         * TextBoxBase.cs:
7099           - MaxLength now treats 2^31-1 equal to unlimited length (this is
7100             not quite MS compatible, MS uses that number only for single line
7101             and 2^32-1 for multi-line, but I figure it won't hurt keeping
7102             the limit at 2GB)
7103           - Now enforcing the MaxLength limit when entering characters
7104           - Added argument to internal Paste() method to track if it's called
7105             from programatically or via keyboard, since keyboard driven pastes
7106             need to enforce max-length
7107           - Added logic to Paste to only paste as many chars as MaxLength 
7108             allows
7109         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
7110         * TextControl.cs:
7111           - Added Length property to return number of characters in document
7112           - Added private CharCount property which only tracks actual chars
7113             in the document (no linefeeds) and fires event when CharCount
7114             changes
7115           - Added tracking of character count to all methods that alter it
7116           - Added LengthChanged event to allow applications to subscribe
7117             to any changes to the document
7118
7119 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
7120
7121         * TextBox.cs: 
7122           - Removed local password_char field (moved to TextBoxBase)
7123           - Now setting the document's password var when password is
7124             set
7125         * TextBoxBase.cs:
7126           - Added password_char field (needed here so MultiLine can
7127             access it)
7128           - Added logic to MultiLine property setter to set the document's
7129             variable when password display is allowed
7130           - Removed debug code and made some debug code conditional
7131         * TextControl.cs:
7132           - Added RecalculatePasswordLine() method to handle special password
7133             char only lines
7134           - Added PasswordChar property, also added related tracking vars
7135           - Draw() method now uses local text var for grabbing text to draw,
7136             this var is set to line.text unless we're doing password display,
7137             then it is set to the pre-generated all-password-chars line
7138           - Added calling RecalculatePasswordLine() method for password lines
7139
7140 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
7141
7142         * Hwnd.cs: 
7143           - Added Reparented property to allow tracking of Window Manager
7144             reparenting actions (which affect X/Y calculations of toplevel 
7145             windows)
7146           - Made ToString() print window handles in hex
7147         * XplatUIX11.cs:
7148           - AddConfigureNotify(): Now uses reparented state off Hwnd to
7149             determine if X/Y needs offsetting
7150           - AddConfigureNotify(): Fixed offset calculations
7151           - Now adds ReparentNotify messages into the queue
7152           - Now processes ReparentNotify messages and causes a 
7153             WM_WINDOWPOSCHANGED message to be sent upstream if a window
7154             is reparented (as most likely it's X/Y coordinates are changed
7155             due to that)
7156
7157 2005-12-14  Jackson Harper  <jackson@ximian.com>
7158
7159         * XplatUIX11.cs: Tool windows still need to respek focus.
7160
7161 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
7162
7163         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
7164           have a working release
7165
7166 2005-12-13  Jackson Harper  <jackson@ximian.com>
7167
7168         * Form.cs: Update styles after setting the border style regardless
7169         of whether or not the window is using a window manager.
7170
7171 2005-12-13  Jackson Harper  <jackson@ximian.com>
7172
7173         * Form.cs: We now hook into an internal window manager instead of just an
7174         MDI subsystem, this is so we can have properly behaving tool windows.
7175         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
7176         * InternalWindowManager.cs: New internal class that acts as a
7177         window manager for tool windows and as a base for mdi windows.
7178         * MdiWindowManager.cs: New class that acts as a window manager for
7179         mdi windows.
7180
7181 2005-12-12  Jackson Harper  <jackson@ximian.com>
7182
7183         * Control.cs: Updates so we match behavoir for for implicit
7184         controls. Fixes explosions in MDI.
7185
7186 2005-12-12  Jackson Harper  <jackson@ximian.com>
7187
7188         * Control.cs: Implement Invalidate (Region).
7189
7190 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
7191
7192         * Control.cs: 
7193           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
7194             the same events as MS does. MS fires events for each property 
7195             except, for unknown reasons, Cursor, when the control is reparented. 
7196             I can't seem to totally match add/remove since MS also fires some 
7197             VisibleChanged events, which makes no sense. Consolidated the
7198             parenting code into a separate method so it can be called from
7199             both Add and Remove. set_Parent no longer needs any special logic
7200             as it calls the parent's add method which implicitly fires
7201             all events
7202           - Removed some obsolete code and debug output
7203           - Enabled state is inherited from parents, if this is enabled
7204
7205 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
7206
7207         * Form.cs: Removed commented out code
7208
7209 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
7210
7211         * Control.cs:
7212           - Added internal version of Invoke, with additional argument 
7213             indicating if we're calling it from a Dispose() handler. That
7214             way we can avoid BeginInvoke throwing an exception if we're
7215             calling for an already destroyed window.
7216           - Added a dispose argument to BeginInvokeInternal, and made the
7217             check if a valid window handle chain exists conditional on
7218             it not being a dispose call
7219           - Removed code in DestroyHandle to destroy our children. Since we
7220             now handle the WM_DESTROY message we will catch all our children
7221             being destroyed.
7222           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
7223         * Form.cs:
7224           - Added a field to track the application context of the form.
7225           - No need to set closing variable as response to WM_CLOSE, instead
7226             we destroy the window. We also call PostQuitMessage if the form
7227             has an application context (which makes it the main app form,
7228             which, when closed terminates the app)
7229         * XplatUI.cs:
7230           - Dropped Exit() method, it's naming was confusing
7231           - Added PostQuitMessage() which causes GetMessage to return false
7232             once the message queue is empty
7233         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
7234           PostQuitMessage()
7235         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
7236           no longer a valid XplatUI method, but left it in since it's used
7237           internally. Added empty PostQuitMessage() method.
7238         * MenuAPI.cs: Replaced call to Exit() with call to
7239           PostQuitMessage, even though this is probably no longer needed.
7240         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
7241         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
7242         * Application.cs:
7243           - Replaced call to XplatUI.Exit() with PostQuitMessage()
7244           - Removed old debug code that would call XplatUI for exception
7245             display, enabled standard exception handling (Still not enabled
7246             though, until NativeWindow's ExternalExceptionHandler define
7247             is removed
7248         * NativeWindow.cs:
7249           - Added internal method to allow control to update NativeWindow
7250             after a window has been destroyed
7251           - Added handling of already destroyed windows when calling i
7252             DestroyWindow
7253           - Added removal of handle from list on ReleaseHandle
7254         * XplatUIX11.cs:
7255           - Dropped GetMessageResult var and related code
7256           - Added PostQuitState to field to track if PostQuitMessage has been
7257             called
7258           - Dropped Exit() method
7259           - Added PostQuitMessage() method
7260           - GetMessage now will return false if PostQuitState is set and no
7261             more messages are in the queue.
7262           - Expose handler will no longer generate WM_PAINT messages if we are
7263             in PostQuitState since it's very likely any windows have already
7264             been destroyed, and since Hwnd won't get updated until we have
7265             processed the DestroyNotify we'd be causing X errors.
7266         
7267 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
7268
7269         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
7270           Thanks to Mike for pointing out the err of my ways.
7271
7272 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
7273
7274         * Control.cs(PreProcessMessage): Moved menu handling back, but
7275           after all other key handling, to match MS (who handles Menu in
7276           DefWndProc)
7277         * Menu.cs (WndProc): Removed my brainfart
7278
7279 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
7280
7281         * Control.cs(PreProcessMessage): Removed special menu handling 
7282         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
7283
7284 2005-12-07  Mike Kestner  <mkestner@novell.com>
7285
7286         * Control.cs : special case SYSKEYUP so that we can adjust keynav
7287         state according in tracker.
7288         * Menu.cs : promote tracker field to base class and provide a tracker
7289         lookup capability.  Add/Remove shortcuts dynamically if the top menu
7290         has a tracker. Unparent items that are removed from the collection.
7291         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
7292         * Theme*.cs: add always_show_hotkeys field to support configurability
7293         of mnemonic display.  win32 doesn't show mnemonics until Alt is
7294         pressed.
7295
7296 2005-12-07  Jackson Harper  <jackson@ximian.com>
7297
7298         * MdiChildContext.cs: Use Control.ResetCursor.
7299         * Control.cs: ResetCursor needs to set the property so that the
7300         correct XplatUI call gets made.
7301
7302 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
7303
7304         * Control.cs: More fixes to make our key events match MS. We
7305           were not setting the modifier state on KeyData, and we were
7306           not generating any events when Alt was pressed with a key
7307           since handling of WM_SYSxxx was missing for the OnKey methods.
7308
7309 2005-12-07  Jackson Harper  <jackson@ximian.com>
7310
7311         * MdiChildContext.cs: reenable the sizing code.
7312         - When the mouse leaves a window reset its cursor.
7313
7314 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
7315
7316         * ThemeClearlooks.cs: Reflect latest Hwnd changes
7317
7318 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
7319
7320         * Hwnd.cs: Now using the theme 3d bordersize to calculate
7321           widths of Fixed3D borders
7322
7323 2005-12-07  Jackson Harper  <jackson@ximian.com>
7324
7325         * MdiClient.cs: Fix warnings. Earn Mike's love.
7326
7327 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
7328
7329         * ThemeClearlooks.cs:
7330           - Adjusted mouse over button color
7331           - Added first parts of CheckBox drawing
7332           - Added correct color for selected text background
7333           - Fixed ComboBox drawing
7334           - Added CPDrawBorder3D and CPDrawBorder
7335
7336 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
7337
7338         * XplatUIX11.cs: Added call to XBell for AudibleAlert
7339
7340 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
7341
7342         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
7343           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
7344           alert users via sound. We could add an enum arg with different
7345           types of alerts in the future
7346
7347 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
7348
7349         * Control.cs: Fix behaviour problems pointed out by Mike
7350
7351 2005-12-05  Mike Kestner  <mkestner@novell.com>
7352
7353         * StatusBarPanel.cs: add Invalidate method and hook it into all the
7354         prop setters.  Calls parent.Refresh for now, but could be maybe be
7355         optimized with an internal method on StatusBar at some point.
7356         [Fixes #76513]
7357
7358 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
7359
7360         * RichTextBox.cs: Implemented get_SelectionColor
7361
7362 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
7363
7364         * ThemeClearlooks.cs:
7365           - Removed dead code
7366           - Draw black button border only if button is Form.AcceptButton
7367           - Draw correct button color for pressed RadioButton if the mouse 
7368             has entered the button
7369           - Updated ProgressBar drawing!
7370           - Updated CPDrawSizeGrip drawing
7371           - Updated StatusBarPanel drawing
7372
7373 2005-12-05  Mike Kestner  <mkestner@novell.com>
7374
7375         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
7376         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
7377
7378 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
7379
7380         * ThemeClearlooks.cs: Initial check-in, activate with
7381           export MONO_THEME=clearlooks
7382         * ThemeEngine.cs: Added ThemeClearlooks
7383
7384 2005-12-03  Mike Kestner  <mkestner@novell.com>
7385
7386         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
7387         [Fixes #76897]
7388
7389 2005-12-02  Jackson Harper  <jackson@ximian.com>
7390
7391         * Form.cs: If the child form has no menu the default main menu is
7392         used as the active menu.
7393
7394 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
7395
7396         * ListBox.cs: Check if any items exist before trying to resolve 
7397           coordinates into items
7398
7399 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
7400
7401         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
7402           as the second color for the background hatch
7403
7404 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
7405
7406         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
7407         * RichTextBox.cs: FormatText position arguments are 1-based, now making
7408           sure that what we pass to FormatText is always 1-based. Fixes #76885
7409
7410 2005-11-29  Miguel de Icaza  <miguel@novell.com>
7411
7412         * NumericUpDown.cs (EndInit): When we are done initializing,
7413         reflect any updates on the UI.
7414
7415 2005-12-02  Jackson Harper  <jackson@ximian.com>
7416
7417         * ImplicitHScrollBar.cs:
7418         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
7419         their container controls.
7420         * TreeView.cs: Use the new implicit scrollbars.
7421
7422 2005-12-02  Jackson Harper  <jackson@ximian.com>
7423
7424         * TreeView.cs: Make top_node internal so the TreeNodeCollections
7425         can play with it.
7426         * TreeNodeCollection.cs: If we remove the topnode we need to
7427         update topnode to the next node in line.
7428         - When clearing nodes go through the same process as removing
7429         them, so they get depareneted and checked if they are top node.
7430
7431 2005-12-01  Jackson Harper  <jackson@ximian.com>
7432
7433         * TreeView.cs: When imagelists are used the image area is
7434         selectable as well as the text.
7435         - If there are no selected nodes select the first one.
7436         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
7437         so don't do it more then we need to.
7438
7439 2005-12-01  Jackson Harper  <jackson@ximian.com>
7440
7441         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
7442         that arrows can be scaled.
7443
7444 2005-12-01  Jackson Harper  <jackson@ximian.com>
7445
7446         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
7447         fail. Patch by Dieter Bremes
7448
7449 2005-11-30  Jackson Harper  <jackson@ximian.com>
7450
7451         * Form.cs: Property is 2.0 only
7452         * PrintDialog.cs: Signature fix.
7453
7454 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
7455
7456         * TextControl.cs: 
7457           - No longer artificially moves text 2 pixels down (now that we have
7458             borders this is no longer needed)
7459           - Added calcs for left, hanging and right indent
7460
7461 2005-11-23  Mike Kestner  <mkestner@novell.com>
7462
7463         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
7464
7465 2005-11-30  Jackson Harper  <jackson@ximian.com>
7466
7467         * MdiChildContext.cs: Set the cloned menus forms, as these don't
7468         get cloned as part of CloneMenu ().
7469         * Menu.cs: Make sure the parent of the items get set correctly
7470         when they are added.  And the owners are notified of the changes.
7471         * Form.cs: Create an ActiveMenu property, so that when MDI is used
7472         we can change the menu being displayed/handled by the form without
7473         changing the menu assosciated with the form.
7474         - Don't let Mdi children draw/handle menus.
7475         
7476 2005-11-30  Jackson Harper  <jackson@ximian.com>
7477
7478         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
7479         a MenuChanged event. Just to make the API a little more
7480         consistent.
7481         * MainMenu.cs:
7482         * MenuItem.cs: Use the new OnMenuChanged
7483         * MdiChildContext.cs: Handle menu merging.
7484         * Form.cs: Implement MergedMenu.
7485         
7486 2005-11-30  Jackson Harper  <jackson@ximian.com>
7487
7488         * Menu.cs: We were misusing Add. Add goes behind the specified
7489         index according to the docs, and does not replace the specified
7490         index. So I added an Insert method.
7491
7492 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
7493
7494         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
7495           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
7496           is for Jackson
7497         * RichTextBox.cs: Added calls to base for DnD events
7498
7499 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
7500
7501         * TextControl.cs:
7502           - Fixed drag-selection related crash; style fixes
7503           - Implemented undo class
7504             o Implemented method to capture document state for specified
7505               range in document tree
7506             o Implemented method to restore captured document state
7507             o Implemented cursor tracking
7508             o Implemented basic undo stack
7509           - Added undo cursor tracking to methods altering cursor location
7510           - Added undo tracking to selection deletion (still missing
7511             other text-altering hookups)
7512         * RichTextBox.cs:
7513           - Added SelectionLength property
7514           - Implemented CanPaste()
7515           - Implemented Paste()
7516           - Added missing protected methods
7517           - Fixed RTF->Document conversion; now uses font index 0 and color 
7518             index 0 as the default font for the parsed text
7519           - Fixed RTF<->Document font size translation
7520           - Fixed RTF generation, now properly handles cross-tag boundaries
7521             for single line selection
7522           - No longer always appends blank line to generated RTF
7523           - Removed TODOs
7524           - Added missing attributes
7525           - Hooked up undo-related methods
7526         * TextBoxBase.cs:
7527           - Implemented Copy()
7528           - Implemented Paste()
7529           - Implemented Cut()
7530           - Fixed caret mis-behaviour on backspace across line-boundaries
7531
7532 2005-11-29  Jackson Harper  <jackson@ximian.com>
7533
7534         * MdiClient.cs: Add a method for activating mdi children. Very
7535         basic right now. I imagine someday it might need more girth.
7536         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
7537         children windows names are added to the menu item.
7538         * ThemeWin32Classic.cs: Draw the arrow if the item is an
7539         mdilist. This happens regardless of whether or not there are any
7540         mdi windows to see in the list, and according to my tests happens
7541         before the items are even added. Also happens if there isn't even
7542         an mdi client to get windows from.
7543
7544 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
7545
7546         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
7547         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
7548
7549 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
7550
7551         * DataGridTableStyle.cs:
7552           - Create always the styles for the missing columns even if they are
7553             provided by the user (not default table style)
7554         * DataGrid.cs:
7555           - Fixes bug 76770
7556           - Fixes SetDataBinding (always re-attach source)
7557           - Fixes SetNewDataSource (only clear styles if they are not for 
7558             this source)
7559          -  Expands OnTableStylesCollectionChanged to handle style refresh 
7560             and remove properly
7561
7562 2005-11-29  Jackson Harper  <jackson@ximian.com>
7563
7564         * FileDialog.cs: Implement missing bits, remove some dead
7565         code.
7566         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
7567         creation of the panel so that the options set on the dialog are
7568         seen when the panel is created.
7569         * TreeView.cs: raise a click when items are clicked.
7570         
7571 2005-11-29  Jackson Harper  <jackson@ximian.com>
7572
7573         * MdiClient.cs: Pass some signature methods through to base.
7574
7575 2005-11-28  Jackson Harper  <jackson@ximian.com>
7576
7577         * ListView.cs: Raise the click event when items are clicked.
7578
7579 2005-11-28  Jackson Harper  <jackson@ximian.com>
7580
7581         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
7582         a nullref.
7583
7584 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
7585
7586         * ThemeNice.cs: - Removed 1 pixel bitmaps
7587           - Use SmoothingMode.AntiAlias where it makes sense
7588             (ScrollButton arrow for example)
7589           - Enhanced Button focus drawing
7590           - Fixed ComboBox drawing (no artefacts anymore, focus
7591             rectangle is back again, reduced size of ComboButton, etc.)
7592           - Fixed RadioButton focus drawing for Appearence.Button
7593           - Slight ScrollButton redesign
7594           - Some LinearGradientBrush size fixes
7595           - GroupBoxes have now rounded edges
7596           - Fixed StatusBar drawing
7597
7598 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
7599
7600         * ThemeNice.cs: - Remove dead code
7601           - use correct background colors for menus, etc.
7602           - Fake pixel drawing with 1 pixel bitmaps
7603
7604 2005-11-24  Jackson Harper  <jackson@ximian.com>
7605
7606         * MdiClient.cs: Size the scrollbars when resizing the window.
7607         - Resize the maximized windows when the client is resized
7608         * Form.cs: Make the child context available
7609         
7610 2005-11-23  Jackson Harper  <jackson@ximian.com>
7611
7612         * MdiChildContext.cs: Don't size windows if they are maximized.
7613
7614 2005-11-23  Mike Kestner  <mkestner@novell.com>
7615
7616         * ContextMenu.cs: use MenuTracker.
7617         * Control.cs: remove menu handle usage.
7618         * Form.cs: remove menu handle usage.
7619         * Hwnd.cs: remove menu handle usage.
7620         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
7621         motion and clicks to the new Tracker handlers.
7622         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
7623         and handle usage.
7624         * MenuAPI.cs: refactored to combine popup and menubar event handling.
7625         Killed the MENU and MENUITEM data types and associated collections
7626         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
7627         MenuTracker class that exposes the leftovers from the old MenuAPI
7628         static methods. Restructured Capture handling so that only one grab is
7629         done for the entire menu hierarchy instead of handing off grabs to
7630         submenus. Tracker now has an invisible control to Capture when active.
7631         * MenuItem.cs: add sizing accessors, kill Create
7632         and handle usage.
7633         * Theme.cs: remove menu handle and MENU(ITEM) usage.
7634         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
7635         MENU(ITEM). remove menu handle usage, use Menu directly.
7636         * XplatUIDriver.cs: remove menu handle usage.
7637         * XplatUIOSX.cs: remove menu handle usage.
7638         * XplatUIWin32.cs: remove menu handle usage.
7639         * XplatUIX11.cs: remove menu handle usage.
7640
7641 2005-11-22  Jackson Harper  <jackson@ximian.com>
7642
7643         * Hwnd.cs: Don't compute the menu size for
7644         DefaultClientRectangle.
7645         - Reenable menu sizes being computed for GetClienRectangle.
7646         * Form.cs: Remove comment of trechery
7647         
7648 2005-11-22  Jackson Harper  <jackson@ximian.com>
7649
7650         * Hwnd.cs: The adjustments for the menu bar are made when it is
7651         attached to the form.
7652
7653 2005-11-19  Jackson Harper  <jackson@ximian.com>
7654
7655         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
7656         (just like on windows).
7657
7658 2005-11-19  Jackson Harper  <jackson@ximian.com>
7659
7660         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
7661         use real buttons anymore because they are in non client area. The
7662         one TODO here is that I need to somehow invalidate a section of
7663         the non client area.
7664
7665 2005-11-18  Jackson Harper  <jackson@ximian.com>
7666
7667         * Control.cs: Put the enum check back in now that MDI doesnt have
7668         to use this to set border styles.
7669         * Form.cs: Only set mdi child windows borders if the handle has
7670         been created.
7671         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
7672         this directly on to the driver.
7673         - Get the move start position before adjusting for the titlebar
7674         height, this fixes the windows "skipping" when they are first
7675         moved.
7676
7677 2005-11-18  Jackson Harper  <jackson@ximian.com>
7678
7679         * XplatUIX11.cs: Just compute the mdi borders separately as they
7680         don't totally match up with normal form borders.
7681
7682 2005-11-18  Jackson Harper  <jackson@ximian.com>
7683
7684         * Control.cs: Set WS_ styles for borders, so that the driver does
7685         not have to retrieve the control instance to figure out what kind
7686         of borders it should have.
7687         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
7688         driver can know its an mdi child easily.
7689         * XplatUIX11.cs: Get the border styles and whether the window is
7690         MDI from the Styles and ExStyles params instead of having to get a
7691         control. This prevents a chicken and egg problem.       
7692
7693 2005-11-18  Jackson Harper  <jackson@ximian.com>
7694
7695         * MdiClient.cs: Fix typo so scrollbars show up correctly.
7696
7697 2005-11-18  Jackson Harper  <jackson@ximian.com>
7698
7699         * MdiClient.cs: Calculate when to add and remove scrollbars
7700         correctly.
7701         * MdiChildContext.cs: Adjust the y position to take the titlebar
7702         into account.
7703         - No height for FormBorderStyle.None
7704
7705 2005-11-18  Jackson Harper  <jackson@ximian.com>
7706
7707         * Control.cs: Allow non enum values to be used for
7708         InternalBorderStyle.  MDI does this to set a special border style.
7709         - New utility methods for converting points to/from client coords
7710         - Add the newly created control to the Controls collection before
7711         updating its style. This way UpdateStyle can walk the control
7712         heirarchy to find the control if needed.
7713         so I don't need to create a new Point object all the time.
7714         * Form.cs: Let MDI windows handle their border styles.
7715         - Set styles on MDI windows so the correct title style is derived.
7716         * MdiChildContext.cs: Move all the painting and window handling
7717         into the non client area.
7718         - Use correct sizing and put correct buttons on frames based on
7719         the FormBorderStyle.
7720         - Notify the mdi client about scrolling
7721         - Need to handle the buttons ourselves now, because they are all
7722         in non client areas and we can't add controls there.
7723         * MdiClient.cs: Halfway to scrolling, this implementation is
7724         somewhat broken though, we need to check to make sure other
7725         windows aren't causing scrolling before removing the bars. Also
7726         the bars need to be drawn on top, maybe I can switch implicit
7727         controls to be on top.
7728         * Hwnd.cs: caption_height and tool_caption_height are now
7729         properties of an hwnd, this way they can be set by the driver
7730         based on the type of window they are.  In X11 the window manager
7731         handles the decorations so caption_height is zero unless its an
7732         MDI window.
7733         - Add 3 pixel borders for MDI windows (0xFFFF).
7734         - Get rid of some code duplication, have DefaultClientRectanle
7735         just call GetClientRectangle.
7736         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
7737         Hwnd now.
7738         - Set border styles differently for mdi windows.
7739         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
7740         Hwnd now.
7741         
7742 2005-11-15  Mike Kestner  <mkestner@novell.com>
7743
7744         * Menu.cs: when adding an item to the collection, if item is already 
7745         parented, remove it from the parent.
7746
7747 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
7748
7749         * X11DesktopColors.cs: Added KDE support
7750
7751 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
7752
7753         * XplatUIWin32.cs: 
7754           - Clipboard methods now can translate Rtf format
7755           - No longer removes clipboard contents whenever a new format is added
7756             to allow placing multiple formats on the clipboard
7757         * Clipboard.cs: Clipboard now supports getting a IDataObject and
7758           will place all formats contained in it onto the clipboard. Also
7759           now cleans the clipboard before placing a new object onto it
7760         * RichTextBox.cs:
7761           - Implemented set_Rtf
7762           - Implemented set_SelectedRtf
7763           - Created InsertRTFFromStream() method to allow single code base
7764             for all properties and methods that insert RTF into document
7765           - Removed debug output
7766         * TextControl.cs:
7767           - Fixed Delete(int) to fix up line numbers
7768           - Fixed ReplaceSelection to combine start and end line
7769           - Fixed serious DeleteChars bug that would leave the document tree
7770             broken
7771           - Improved DumpTree with several logic checks to detect broken
7772             document trees
7773           - Removed debug lines
7774           - Fixed Caret.WordForward/WordBack moving code, now always also 
7775             updates caret.tag (fixes crash when word-selecting across tag
7776             boundaries via keyboard)
7777           - Added Insert() method for inserting multiline text into documents
7778           - Fixed DeleteChars() calculation errors that would cause a broken
7779             tag chain with multiple tag lines
7780           - DeleteChars() no longer crashes on multi-tag lines if not all tags
7781           - Split() no longer moves caret if split is at caret location
7782           - ReplaceSelection() now updates the cursor and re-displays it
7783           - ReplaceSelection() now uses new Insert() method to avoid code
7784             duplication
7785           - FormatText() can now handle formatting partial lines
7786         * TextBoxBase.cs:
7787           - Append now uses new TextControl.Insert() method (this avoids 
7788             duplicate code)
7789           - Implemented Ctrl-X (Cut) (
7790           - Implemented Ctrl-C (Copy)
7791           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
7792             regeneration when pasting text; roundtripping Copy&Paste within
7793             edit control still fails due to some calculation bugs in GenerateRTF)
7794           - The Delete key will now remove the current selection if it is visible
7795         * TextBox.cs: Removed debug lines
7796         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
7797           driver to be initialized and can't therefore be done via a static ctor)
7798
7799 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
7800
7801         * TextControl.cs: Added backend code for finding char arrays and strings
7802         * TextBoxBase.cs:
7803           - Added mouse wheel scroll support
7804           - Added support for VScroll and HScroll events
7805         * RichTextBox.cs:
7806           - Implemented all seven Find() variants
7807           - Implemented GetCharFromPosition()
7808           - Implemented GetCharIndexFromPosition()
7809           - Implemented GetLineFromIndex()
7810           - Implemented GetPositionFromCharIndex();
7811           - Implemented SaveFile for PlainText and UnicodeText
7812           - Fixed set_Font, now setting a new font applies that font to
7813             the whole document
7814           - Implemented generic Document to RTF converter
7815           - Implemented SaveFile for RichText format (still missing unicode
7816             conversion for non-ansi chars)
7817           - Implemented get_Rtf
7818           - Implemented get_SelectedRtf
7819
7820 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
7821
7822         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
7823           to allow any captures to be released before triggering OnClick. This
7824           way a click handler may capture the mouse without interference.
7825         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
7826           This way we send them even though X may not allow a grab (if the window
7827           isn't visible, for example)
7828
7829 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
7830
7831         * DataGridViewRowEventArgs.cs: DataGridView implementation
7832         * DataGridViewElement.cs: DataGridView implementation
7833         * DataGridViewComboBoxCell.cs: DataGridView implementation
7834         * DataGridViewDataErrorContexts.cs: DataGridView implementation
7835         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
7836         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
7837         * ImageLayout.cs: DataGridView implementation
7838         * DataGridViewComboBoxColumn.cs: DataGridView implementation
7839         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
7840         * DataGridViewSelectionMode.cs: DataGridView implementation
7841         * IDataGridViewEditingControl.cs: DataGridView implementation
7842         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
7843         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
7844         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
7845         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
7846         * DataGridViewColumnSortMode.cs: DataGridView implementation
7847         * DataGridView.cs: DataGridView implementation
7848         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
7849         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
7850         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
7851         * Padding.cs: DataGridView implementation
7852         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
7853         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
7854         * DataGridViewRowEventHandler.cs: DataGridView implementation
7855         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
7856         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
7857         * DataGridViewButtonCell.cs: DataGridView implementation
7858         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
7859         * DataGridViewEditMode.cs: DataGridView implementation
7860         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
7861         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
7862         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
7863         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
7864         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
7865         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
7866         * DataGridViewCellEventHandler.cs: DataGridView implementation
7867         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
7868         * DataGridViewCellStyleConverter.cs: DataGridView implementation
7869         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
7870         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
7871         * DataGridViewColumnEventArgs.cs: DataGridView implementation
7872         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
7873         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
7874         * QuestionEventArgs.cs: DataGridView implementation
7875         * IDataGridViewEditingCell.cs: DataGridView implementation
7876         * DataGridViewTriState.cs: DataGridView implementation
7877         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
7878         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
7879         * DataGridViewColumnCollection.cs: DataGridView implementation
7880         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
7881         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
7882         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
7883         * DataGridViewColumn.cs: DataGridView implementation
7884         * DataGridViewCellBorderStyle.cs: DataGridView implementation
7885         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
7886         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
7887         * DataGridViewRow.cs: DataGridView implementation
7888         * DataGridViewImageCellLayout.cs: DataGridView implementation
7889         * DataGridViewImageCell.cs: DataGridView implementation
7890         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
7891         * DataGridViewCheckBoxCell.cs: DataGridView implementation
7892         * DataGridViewHeaderCell.cs: DataGridView implementation
7893         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
7894         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
7895         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
7896         * DataGridViewTextBoxColumn.cs: DataGridView implementation
7897         * QuestionEventHandler.cs: DataGridView implementation
7898         * DataGridViewCellStyleScopes.cs: DataGridView implementation
7899         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
7900         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
7901         * DataGridViewCell.cs: DataGridView implementation
7902         * DataGridViewCellEventArgs.cs: DataGridView implementation
7903         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
7904         * DataGridViewCellStyle.cs: DataGridView implementation
7905         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
7906         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
7907         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
7908         * TextFormatFlags.cs: DataGridView implementation
7909         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
7910         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
7911         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
7912         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
7913         * DataGridViewButtonColumn.cs: DataGridView implementation
7914         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
7915         * HandledMouseEventArgs.cs: DataGridView implementation
7916         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
7917         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
7918         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
7919         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
7920         * DataGridViewRowCollection.cs: DataGridView implementation
7921         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
7922         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
7923         * DataGridViewHitTestType.cs: DataGridView implementation
7924         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
7925         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
7926         * DataGridViewColumnEventHandler.cs: DataGridView implementation
7927         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
7928         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
7929         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
7930         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
7931         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
7932         * DataGridViewContentAlignment.cs: DataGridView implementation
7933         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
7934         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
7935         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
7936         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
7937         * DataGridViewPaintParts.cs: DataGridView implementation
7938         * DataGridViewCellCollection.cs: DataGridView implementation
7939         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
7940         * DataGridViewImageColumn.cs: DataGridView implementation
7941         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
7942         * DataGridViewElementStates.cs: DataGridView implementation
7943         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
7944         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
7945         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
7946         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
7947         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
7948         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
7949         * DataGridViewRowHeaderCell.cs: DataGridView implementation
7950         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
7951         * DataGridViewTextBoxCell.cs: DataGridView implementation
7952         * DataGridViewBand.cs: DataGridView implementation
7953         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
7954         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
7955         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
7956         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
7957         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
7958         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
7959         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
7960         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
7961         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
7962         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
7963         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
7964
7965 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
7966
7967         * ThemeWin32Classic.cs: 
7968           - Draw the outside focus rectangle around buttons
7969           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
7970             doesn't use end caps for every dash of a line anymore. This
7971             workaround ignores the forecolor.
7972
7973 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
7974
7975         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
7976           endian safe.
7977
7978 2005-11-07  Jackson Harper  <jackson@ximian.com>
7979
7980         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
7981
7982 2005-11-07  Jackson Harper  <jackson@ximian.com>
7983
7984         * ScrollableControl.cs: Calculate the maximum and change vars
7985         (more) correctly so that scrollbars appear as a sensible size.
7986
7987 2005-11-04  Jackson Harper  <jackson@ximian.com>
7988
7989         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
7990         collection.
7991         * TreeView.cs: When the tree is sorted null out the top_node so
7992         that it is recalculated.
7993         - Use dotted lines instead of dashed lines to match MS better.
7994
7995 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
7996
7997         * ListView.cs: 
7998           - Implements key search for items. Useful when browsing files with FileDialog
7999           - When changing view mode or when clear the items reset scrollbar positions
8000
8001 2005-11-04  Jackson Harper  <jackson@ximian.com>
8002
8003         * CurrencyManager.cs: Implement the MetaDataChanged event, the
8004         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
8005         as to what the method may do as there is no real way of creating a
8006         derived CurrencyManager and calling the method. 
8007
8008 2005-11-03  Jackson Harper  <jackson@ximian.com>
8009
8010         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
8011         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
8012         method which seems to just be used internally to refresh the tabs.
8013
8014 2005-11-03  Jackson Harper  <jackson@ximian.com>
8015
8016         * TabControl.cs: Implement the remove method. Fix some broken
8017         comments.
8018
8019 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
8020
8021         * DateTimePicker.cs:
8022           - Added missing DateTimePickerAccessibleObject class
8023           - Added missing events
8024           - Added OnFontChanged method
8025         * Form.cs: Added missing attributes
8026         * TreeView.cs: Added missing attributes
8027
8028 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
8029
8030         * GridItemCollection.cs: Fix signatures
8031
8032 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
8033
8034         * XplatUI.cs: Updated build rev/date
8035         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
8036           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
8037         * Application.cs: Trigger context-specific ExitThread events
8038
8039 2005-11-03  Jackson Harper  <jackson@ximian.com>
8040
8041         * Menu.cs:
8042         * MainMenu.cs:
8043         * GridTableStylesCollection.cs:
8044         * Timer.cs:
8045         * TabPage.cs:
8046         * HelpProvider.cs:
8047         * StatusBar.cs:
8048         * MonthCalendar.cs: Signature fixes
8049
8050 2005-11-03  Jackson Harper  <jackson@ximian.com>
8051
8052         * TreeNodeCollection.cs: Remove should not be virtual.
8053         * TreeView.cs: Implement the last of the missing methods.
8054
8055 2005-11-03  Jackson Harper  <jackson@ximian.com>
8056
8057         * TreeNodeConverter.cs: Implement to get off my class-status back.
8058
8059 2005-11-03  Jackson Harper  <jackson@ximian.com>
8060
8061         * TreeView.cs: Hookup the bits for drag and drop.
8062         * TreeNode.cs: Don't cache the tree_view or index anymore, now
8063         that nodes can be moved from tree to tree easily this just causes
8064         all sorts of problems.
8065         * TreeNodeCollection: Don't need to give treenodes an index and
8066         treeview anymore when they are added, these are computed on the
8067         fly. Also make sure to remove a node before its added.
8068
8069 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
8070
8071         * TextControl.cs:
8072           - Added CaretSelection enum
8073           - Added comparison methods to Marker struct, makes selection code
8074             more readable
8075           - Added SelectionStart and SelectionEnd as 'moveable' location for
8076             the CaretDirection enum and handler
8077           - Added selection_prev variable to track optimized invalidation for
8078             word and line selection
8079           - Added SelectionVisible property (returns true if there is a valid 
8080             selection)
8081           - Switched CaretHasFocus to only display the caret if there is no
8082             visible selection
8083           - Avoiding StringBuilder.ToString to retrieve a single char, instead
8084             using the direct character index; should be much faster
8085           - Added various conditional debug statements
8086           - Fixed invalidation calculation for selection ranges
8087           - Added ExpandSelection() method to support word and line selection
8088           - Switched SetSelectionToCaret to use new Marker compare overloads
8089           - Added central IsWordSeparator() method to determine word 
8090             separators/whitespace and FindWordSeparator() to streamline common
8091             usage of IsWordSeparator()
8092         * TextBoxBase.cs:
8093           - Removed unneeded grabbed variable, it was just mirroring
8094             Control.Capture
8095           - No longer firing OnTextChanged event when Text setter is called,
8096             since the base will fire the event for us
8097           - Added handling of Ctrl-Up/Down selection
8098           - Added handling of Shift-Cursorkey selection
8099           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
8100             words
8101           - Added handling of Shift and Ctrl-Shift-Home/End selection
8102           - Removed some debug output
8103           - Added handling for single/double/tripple-click to place caret/
8104             select word/select line respectively (Fixes bug #76031)
8105           - Added support for drag expansion of word/line selection
8106         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
8107           current selection
8108
8109 2005-11-02  Jackson Harper  <jackson@ximian.com>
8110
8111         * X11Dnd.cs: If the drag is going to and from a MWF window just
8112         copy the data instead of sending it out through the X Selection
8113         mechanism.
8114
8115 2005-11-02  Jackson Harper  <jackson@ximian.com>
8116
8117         * X11Dnd.cs:
8118         * XplatUIX11.cs: When in a drag we don't want motion notify
8119         messages to get passed on to the other controls. This prevents
8120         mouse move messages from showing up in the drag source.
8121
8122 2005-11-02  Jackson Harper  <jackson@ximian.com>
8123
8124         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
8125         the correct button is release to end a drag.
8126         * XplatUIX11.cs: Make the button state internal so the drag system
8127         can access it.  Dragging needs to know about all button releases,
8128         not just left button.
8129
8130 2005-11-02  Miguel de Icaza  <miguel@novell.com>
8131
8132         * Form.cs (Icon): If the icon is null, reset the icon to the
8133         default value. 
8134
8135         * Cursor.cs: When writing the AND-mask bitmap do not include the
8136         number of colors, but hardcode those to two (black and white),
8137         fixes the loading of color cursors (Paint Dot Net).
8138
8139         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
8140         turn off autoscaling.
8141
8142         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
8143
8144 2005-11-02  Jackson Harper  <jackson@ximian.com>
8145
8146         * X11Dnd.cs: Make sure to send a status message if the pointer
8147         enters a control that can not accept a drop, otherwise the cursor
8148         isn't updated correctly. Also tried to compress the lines of code
8149         a bit.
8150
8151 2005-11-02  Jackson Harper  <jackson@ximian.com>
8152
8153         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
8154         set actions correctly.  This isn't perfect as XDND and win32 have
8155         some differences on how you allow actions. I'll clear this up by
8156         adding a path for drag from MWF to MWF windows.
8157         * XplatUIX11.cs: Hook into the dnd system.
8158
8159 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
8160
8161         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
8162         previously shown but they are no longer need it. Very obvious when 
8163         browsing files with FileDialog.
8164
8165 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
8166
8167         * Control.cs: We always need to call OnPaintBackground. We pretty much
8168           ignore AllPaintingInWmPaint and always do the painting there, whether 
8169           it's set or not, since we always ignore the WM_ERASEBKGND message 
8170           (which we don't generate on X11). This fixes #76616.
8171         * Panel.cs: Removed unneeded background painting. This happens properly
8172           in Control.cs already
8173
8174 2005-10-31  Mike Kestner  <mkestner@novell.com>
8175
8176         * Menu.cs: Add items to collection before setting their index.
8177         * MenuItem.cs : add range checking with ArgumentException like MS.
8178         [Fixes #76510]
8179
8180 2005-10-31  Jackson Harper  <jackson@ximian.com>
8181
8182         * ListBox.cs: Invalidate if the area is visible at all not just
8183         contained in the visible rect. Fixes unselection of semi visible
8184         items.
8185
8186 2005-10-31  Jackson Harper  <jackson@ximian.com>
8187
8188         * Control.cs: Consistently name the dnd methods. Make them
8189         internal so we can override them to match some MS behavoir
8190         internally.
8191         * Win32DnD.cs: Use the new consistent names.
8192
8193 2005-10-31  Jackson Harper  <jackson@ximian.com>
8194
8195         * TreeView.cs: Don't draw the selected node when we lose focus.
8196
8197 2005-10-31  Jackson Harper  <jackson@ximian.com>
8198
8199         * X11Dnd.cs: We still need to reset the state even though a full
8200         reset isn't being done, otherwise status's still get sent all over
8201         the place.
8202
8203 2005-10-31  Jackson Harper  <jackson@ximian.com>
8204
8205         * Control.cs: Make the dnd_aware flag internal so the dnd
8206         subsystem can check it. Catch exceptions thrown in dnd handlers to
8207         match MS behavoir.
8208         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
8209         * X11Dnd.cs: Handle null data in the converters. Set the XDND
8210         version when sending a XdndEnter. Use the control/hwnd dnd_aware
8211         flags to reduce the number of dnd enters/status's sent.
8212
8213 2005-10-31  Jackson Harper  <jackson@ximian.com>
8214
8215         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
8216
8217 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
8218
8219         * PictureBox.cs: Fixes 76512
8220
8221 2005-10-28  Jackson Harper  <jackson@ximian.com>
8222
8223         * X11Dnd.cs: Early implementation to support winforms being a drag
8224         source for data on X11. Also restructured the converters so they
8225         can go both ways now.
8226         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
8227         
8228 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
8229
8230         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
8231           clipboard requests
8232
8233 2005-10-27  Jackson Harper  <jackson@ximian.com>
8234
8235         * TreeNode.cs: Implement serialization so my DnD examples will work.
8236
8237 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
8238
8239         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
8240           TreeView.cs: Don't dispose objects that are not owned.
8241           
8242 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
8243
8244         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
8245           should retrieve the current cursor and report that, but XplatUI
8246           doesn't (yet) have an interface for that (and I'm not sure I even
8247           can, on X11)
8248         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
8249           until any message loop processing is done (and the WM_SETCURSOR
8250           replaces the cursor to the proper one)
8251         * XplatUIX11.cs: 
8252           - Fixed override behaviour, we can't set the cursor globally on X11, 
8253             just for our windows.
8254           - Invalidating the System.Drawing X11 display handle when we are
8255             shutting down
8256         * Control.cs: Fix to make csc happy
8257
8258 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
8259
8260         * TextBoxBase.cs: 
8261           - get_Text: Add last line (without trailing newline) to returned
8262             value (Fixes 76212)
8263           - get_TextLength: Count last line in returned length
8264           - ToString: Call Text property instead of duplicating code
8265
8266 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
8267
8268         * ImageList.cs: Dispose ImageAttributes objects.
8269
8270 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
8271
8272         * ImageList.cs: Use attribute constructors with less arguments where
8273           possible.
8274
8275 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
8276
8277         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
8278           Use typeof instead of strings when assembly is referenced. Added
8279           some more comments.
8280
8281 2005-10-21  Jackson Harper  <jackson@ximian.com>
8282
8283         * ListView.cs: Raise a double click event. Also tried to somewhat
8284         fix when the selectedindexchanged event is raised. Its still
8285         broken though.
8286
8287 2005-10-21  Jackson Harper  <jackson@ximian.com>
8288
8289         * TreeView.cs: New method to invalidate the plus minus area of a
8290         node without invalidating the whole node (maybe this can be used
8291         in some more places).
8292         * TreeNodeCollection.cs: When adding to an empty node we need to
8293         invalidate its plus minus area so the little block shows up.
8294         
8295 2005-10-21  Jackson Harper  <jackson@ximian.com>
8296
8297         * TreeView.cs: Make sure that when we invalidate a node the bounds
8298         are big enough to cover the selected box and the focus
8299         rectangle. Use a different colour for the lines connecting nodes
8300         so they show up with all themes.
8301
8302 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
8303
8304         * NativeWindow.cs: Don't call anything that could call into the driver,
8305           we might be on a different thread.
8306
8307 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
8308
8309         * Control.cs(Dispose): Since Dispose might run on a different thread,
8310           make sure that we call methods that could call into the driver via
8311           invoke, to avoid thread issues
8312
8313 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
8314
8315         * XplatUI.cs: Removed finalizer
8316         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
8317           not allowing to be called on the finalizer thread.
8318
8319 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
8320
8321         * ImageList.cs:
8322           - Reverted r51889 and r51891.
8323           - Added ImageListItem class that stores unmodified image items and image
8324             properties required to create list images until handle is created.
8325           - Added AddItem and moved image creation logic to AddItemInternal.
8326           - Added CreateHandle method that creates images based on unmodified items.
8327           - Added DestroyHandle that changes state to store unmodified items.
8328           - Add and AddStrip methods no more create handle.
8329           - ReduceColorDepth has no return value.
8330           - Dispose destroys handle.
8331           - Modified other methods to reflect the above changes.
8332           - Implemented key support.
8333           - Added profile 2.0 members and attributes.
8334           - Added private Reset and ShouldSerialize methods that provide the same
8335             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
8336             them as they are private.
8337           - Added some more comments about implementation details.
8338
8339 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
8340
8341         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
8342
8343 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
8344
8345         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
8346
8347 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
8348
8349         * DataGridDrawingLogic.cs: Fixes column hit calcultation
8350         * DataGridColumnStyle.cs: Remove debug message
8351
8352 2005-10-20  Jackson Harper  <jackson@ximian.com>
8353
8354         * TreeView.cs: We can always get input keys regardless of whether
8355         or not editing is enabled. They are used for navigation.
8356
8357 2005-10-20  Jackson Harper  <jackson@ximian.com>
8358
8359         * TreeNode.cs: Use the viewport rect for determining if a node
8360         needs to be moved for visibility. Don't use Begin/End edit. This
8361         calls a full refresh when its done.
8362         * TreeView.cs: New SetBottom works correctly.  Make the viewport
8363         rect property internal so the treenodes can see it. When clicking
8364         on a node we need to ensure that its visible because it might just
8365         be partly visible when clicked.
8366
8367 2005-10-20  Jackson Harper  <jackson@ximian.com>
8368
8369         * TreeNodeCollection.cs: Remove debug code.
8370
8371 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
8372
8373         * Datagrid.cs: Implements column sorting in Datagrid
8374         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
8375
8376 2005-10-20  Jackson Harper  <jackson@ximian.com>
8377
8378         * TreeNodeCollection.cs: Remove items properly. Update the correct
8379         area after removing them.
8380
8381 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
8382
8383         * Datagrid.cs: Should not call base.OnPaintBackground
8384
8385 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
8386
8387         * XplatUIX11.cs (GetMessage):
8388           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
8389             window instead of client window
8390           - Now properly calculates NC_xBUTTONUP message coordinates
8391           - ScreenToMenu now properly calculates it's coordinates of whole 
8392             window, since menus are in the whole window, not in the client
8393             window
8394           - Added WholeToScreen coordinate translation method
8395
8396 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
8397
8398         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
8399           want to return a message, loop back to the beginning of the function
8400           and grab the next real message to process instead.
8401
8402 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
8403
8404         * Splitter.cs: Properly set limits if no filler control is used
8405
8406 2005-10-19  Jackson Harper  <jackson@ximian.com>
8407
8408         * ColorDialog.cs: Don't show the help button if it is not enabled
8409         instead of disabling it (this is what MS does). Don't create the
8410         panel until the dialog is run, otherwise the vars (such as
8411         ShowHelp) are not set yet.
8412
8413 2005-10-19  Jackson Harper  <jackson@ximian.com>
8414
8415         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
8416         are reduced when adding nodes.
8417         * TreeNode.cs:
8418         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
8419         tree.
8420         
8421 2005-10-19  Jackson Harper  <jackson@ximian.com>
8422
8423         * FolderBrowserDialog.cs: End editing our treeview so the window
8424         actually gets refreshed.
8425
8426 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
8427
8428         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
8429           Obsoleted handling of WM_ERASEBKGND, now always draws our background
8430           inside of WM_PAINT
8431
8432 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
8433
8434         * MenuAPI.cs: Returns after Hidding window
8435         * XplatUIX11.cs: Added TODO found while debugging menu issues
8436
8437 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
8438
8439         * XplatUIX11.cs: Do not re-map the whole window when it's size
8440           becomes non-zero unless it's supposed to be actually visible
8441
8442 2005-10-18  Jackson Harper  <jackson@ximian.com>
8443
8444         * TreeView.cs: We don't need to keep a count anymore.
8445         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
8446         use the Grow method.
8447
8448 2005-10-18  Jackson Harper  <jackson@ximian.com>
8449
8450         * TreeNodeCollection.cs: Insert is not supported on arrays, so
8451         implement it manually here.
8452
8453 2005-10-18  Jackson Harper  <jackson@ximian.com>
8454
8455         * ImageList.cs: Dont kill the list when the colour depth is
8456         changed, just change the colour depth of all the images.
8457         - Same goes for setting the image size. Just resize them all
8458         instead of killing the list softly.
8459
8460 2005-10-18  Jackson Harper  <jackson@ximian.com>
8461
8462         * Control.cs: Don't invalidate empty rectangles.
8463
8464 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
8465
8466         * ListViewItem.cs:
8467           - Adds checked item to the Checked/Item lists (where empty before)
8468           - Do not add items to the Selected lists if they are already present
8469         * ListView.cs:
8470           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
8471           - When deleting items make sure that we delete them for the Selected
8472           and Checked list also.
8473
8474 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
8475
8476         * Label.cs: Dispose objects no longer used
8477         * ThemeWin32Classic.cs: Dispose objects no longer used
8478
8479 2005-10-18  Jackson Harper  <jackson@ximian.com>
8480
8481         * TabControl.cs: Don't refresh the whole control when the tabs are
8482         scrolled, we just need to refresh the tab area.
8483
8484 2005-10-17  Jackson Harper  <jackson@ximian.com>
8485
8486         * XplatUIX11.cs: Compress code a little bit. Only calculate the
8487         after handle when we need it.
8488
8489 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
8490
8491         * Control.cs: When the parent size changes, recalculate anchor 
8492           positions. Partial fix for #76462
8493
8494 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
8495
8496         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
8497           drawn. Fixes #76462
8498
8499 2005-10-17  Jackson Harper  <jackson@ximian.com>
8500
8501         * MonthCalendar.cs: Don't create the numeric up down until our
8502         handle is created. Otherwise our handle is created in the
8503         constructor and we don't know if we are a WS_CHILD or WS_POPUP
8504         yet.
8505
8506 2005-10-17  Jackson Harper  <jackson@ximian.com>
8507
8508         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
8509         correctly.
8510
8511 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
8512         * TreeNode.cs : small logical fix (was using local var instead of field)
8513         
8514 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
8515
8516         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
8517
8518 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
8519
8520         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
8521
8522 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
8523
8524         * Control.cs: 
8525           - Re-implemented anchoring code. My first version was really broken.
8526             This fixes bug #76033. Unlike the previous implementation we will
8527             no longer have round errors since all numbers are calculated from
8528             scratch every time. Removed various anchor-related obsolete vars.
8529           - InitLayout no longer causes layout event firing and layout to be 
8530             performed
8531
8532 2005-10-16  Jackson Harper  <jackson@ximian.com>
8533
8534         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
8535         which was broken).
8536
8537 2005-10-16  Jackson Harper  <jackson@ximian.com>
8538
8539         * TabControl.cs: Remove debug code.
8540
8541 2005-10-16  Jackson Harper  <jackson@ximian.com>
8542
8543         * XEventQueue.cs: Increase the default queue size (very simple
8544         apps needed to grow the queue).
8545         * Hwnd.cs: No finalizer so we don't need to suppress
8546         finalization. Compute the invalid area manually so a new rectangle
8547         does not newto be created.
8548         * ScrollableControl.cs: Don't set any params (otherwise visibility
8549         isn't set correctly).
8550         * MdiChildContext.cs: New constructor takes the mdi parent so it
8551         doesn't have to be computed and avoids a crash on windows. Draw
8552         the window icon properly, and allow the text to be seen.
8553         * Form.cs: Use new MdiChildContext constructor. Make sure the
8554         child context isn't null in wndproc.
8555         * TabControl.cs: Don't set focus, this is muddling keyboard
8556         behavoir. Expand the tab rows when a window size increase will
8557         allow extra tabs to be seen. Don't allow tabs smaller than the
8558         width of a window to be scrolled out of view.
8559         * TreeNode.cs:
8560         * TreeView.cs: Use measure string to calculate a nodes width, the
8561         width is cached and only updated when the text or the font is
8562         changed. Don't check for expand/collapse clicks on the first level
8563         nodes if root lines are disabled.
8564         
8565 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
8566
8567         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
8568
8569 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
8570
8571         * DataGridBoolColumn.cs: fixes warning
8572
8573 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
8574
8575         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
8576         to match more to match more precisely the MS Net behavior
8577
8578 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
8579
8580         * Hwnd.cs: Added field to track if window is mapped
8581         * XplatUIX11.cs: 
8582           - Unmap windows if they become 0-size, re-map when 
8583             they are >0 again; fixes #76035
8584           - Re-set our error handler after initializing X11Desktop
8585             to override any error handlers Gtk or whatever was called
8586             may have set.
8587
8588 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
8589
8590         * CheckedListBox.cs: Removed unused vars
8591         * ListView.cs: Fixed signatures
8592         * RichTextBox.cs: Removed unused vars
8593         * TextBoxBase.cs: Removed unused vars
8594         * XplatUIWin32.cs: Removed unused vars
8595         * XplatUIX11.cs: Removed unused vars
8596         * XplatUI.cs: Updated version and date to latest published
8597
8598 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
8599
8600         * Cursor.cs: Added private .ctor to work around a bug in
8601           resourceset (Thanks to Geoff Norton for the help on this)
8602         * SplitterEventArgs.cs: Made fields accessible so we don't
8603           waste boatloads of objects and can reuse the same one
8604           in Splitter
8605         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
8606           any captions and borders when generating screen coordinates
8607         * Splitter.cs: Reimplemented control, now fully complete, uses
8608           rubberband drawing, supports and obeys all properties, has
8609           proper cursors
8610
8611 2005-10-13  Miguel de Icaza  <miguel@novell.com>
8612
8613         * Form.cs (Form): Setup default values for autoscale and
8614         autoscale_base_size;  Make these instance variables, not static
8615         variables. 
8616
8617         (OnLoad): on the first load, adjust the size of the form.
8618
8619 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
8620
8621         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
8622           width argument to DrawReversibleRectangle()
8623         * XplatUIWin32.cs, XplatUIX11.cs: 
8624           - Implemented width for DrawReversibleRectangle()
8625           - Added logic to DrawReversibleRectangle that recognizes a zero
8626             width or height and only draws a line in that situation
8627         
8628 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
8629
8630         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
8631         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
8632         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
8633           method (it uses our FosterParent window to get a graphics context)
8634
8635 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
8636
8637         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
8638           and SetWindowBackground methods
8639         * Control.cs:
8640           - Setting proper ControlStyles
8641           - We no longer call XplatUI.SetWindowBackground and XplatUI.
8642             EraseWindowBackground, instead we draw the window background
8643             ourselves in PaintControlBackground. This behaviour is
8644             required to match MS, where, when OnPaintBackground is not
8645             called, the background is not drawn.
8646           - Removed unneeded Refresh() in set_Text
8647         * Hwnd.cs: Dropped the ErasePending support. No longer needed
8648         * XplatUIX11.cs:
8649           - Created DeriveStyles method to translate from CreateParams to
8650             FormBorderStyle and TitleStyle, also handles BorderStyle (which
8651             matches FormBorderStyle enum values)
8652           - Consolidated SetHwndStyles and CalculateWindowRect border/title
8653             style calculations into single DeriveStyles method
8654           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
8655             from redrawing the whole window on any resize or expose.
8656           - Fixed CreateWindow usage of SetWindowValuemask. Before not
8657             all styles were applied to our whole/client window appropriately
8658           - Removed EraseWindowBackground() and SetWindowBackground() methods
8659           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
8660             no longer clear/redraw the background through X
8661           - Removed handling of erase_pending bit, we have no use for it (or
8662             so it seems)
8663         * XplatUIOSX.cs:
8664           - Removed generation and handling of WM_ERASEBKGND message
8665           - Removed EraseWindowBackground() and SetWindowBackground() methods
8666           - Removed handling of hwnd.ErasePending flag
8667         * XplatUIWin32.cs:
8668           - Removed EraseWindowBackground() and SetWindowBackground() methods
8669           - We no longer call EraseWindowBackground on PaintEventStart, we 
8670             ignore the fErase flag, erasing is handled in Control in the
8671             background handler
8672         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
8673           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
8674           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
8675           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
8676           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
8677           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
8678           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
8679
8680 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
8681
8682         * PropertyGrids.cs: Get sub properties
8683         * PropertyGridView.cs: Fix drawing code
8684
8685 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
8686
8687         * ListBox.cs: Fixes 76383
8688
8689 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
8690
8691         * DataGridTextBoxColumn.cs: Sets location and size before attachment
8692         * ThemeWin32Classic.cs: Fixes border drawing and calculations
8693         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
8694
8695
8696 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
8697
8698         * ComboBox.cs: Fixes border drawing
8699
8700 2005-10-10  Miguel de Icaza  <miguel@novell.com>
8701
8702         * MimeIcon.cs: Ignore errors if the file can not be read.
8703
8704 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
8705
8706         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
8707          - Fixed border calculations
8708          - Fixed horizontal scrolling in single column listboxes
8709          - Fixed drawing issues
8710
8711 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
8712
8713         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
8714           FormBorderStyle enum
8715         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
8716           code to determine FormBorderStyles from CreateParams
8717         * Form.cs:
8718           - Fixed bug where we'd set the wrong window styles if we were
8719             not creating an MDI window
8720           - Added call to XplatUI.SetBorderStyle when form borders are set
8721         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
8722         * Hwnd.cs:
8723           - Removed obsolete edge style
8724           - Switched from BorderStyle to FormBorderStyle
8725         
8726 2005-10-10  Jackson Harper  <jackson@ximian.com>
8727
8728         * Form.cs: Use the property to get the window handle instead of
8729         accessing it directly. Prevents a null reference exception.
8730
8731 2005-10-10  Jackson Harper  <jackson@ximian.com>
8732
8733         * TreeView.cs: Don't adjust the rect given to DrawString now that
8734         our libgdiplus draws correctly.
8735
8736 2005-10-08  Jackson Harper  <jackson@ximian.com>
8737
8738         * TreeView.cs: Don't try to find the clicked on node if there are
8739         no nodes in the tree.
8740
8741 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
8742
8743         * RichTextBox.cs:
8744
8745           restore
8746
8747 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
8748
8749         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
8750           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
8751           ErrorProvider.cs:
8752           Use ResPool for brushes and dispose System.Drawing objects that
8753           are not used anymore.
8754
8755 2005-10-07  Jackson Harper  <jackson@ximian.com>
8756
8757         * MdiChildContext.cs: Use the new borders instead of drawing them
8758         ourselves.
8759
8760 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
8761
8762         * Calling UpdateBounds after changing the window's BorderStyle 
8763         since the style can change the ClientSize
8764
8765 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
8766
8767         * Control.cs: Made PaintControlBackground virtual
8768         * Panel.cs: Overriding PaintControlBackground instead of using paint
8769           event; paint event method was interfering with 'real' users of the
8770           event.
8771
8772 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
8773
8774         * ThemeWin32Classic.cs: remove border drawing since it is handled
8775         by the base control class now and was causing double border drawing.
8776
8777 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
8778
8779         * Panel.cs: Redraw our background on paint. Not a pretty solution,
8780           but it does seem to match MS behaviour. This fixes bug #75324
8781
8782 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
8783
8784         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
8785           somewhat hackish looking
8786
8787 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
8788
8789         * TextBoxBase.cs:
8790           - We now accept Enter even if AcceptEnter is false, if the containing
8791             form does not have an AcceptButton configured (fixes bug #76355)
8792           - Calculations are now fixed to no longer use Width/Height, but
8793             ClientSize.Width/Height, since we now support borders (this was
8794             a result of fixing borders and therefore bug #76166)
8795           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
8796             true (fixes bug #76354)
8797         
8798 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
8799
8800         * Control.cs: 
8801           - Defaulting BorderStyle and setting it in XplatUI when our window 
8802             is created
8803           - Added enum check to InternalBorderStyle setter
8804         * XplatUIX11.cs: 
8805           - Added drawing of window borders
8806           - Now properly calculates WM decorations offset for toplevel 
8807             windows (fixes bug #74763)
8808         * XplatUIWin32.cs: 
8809           - Implemented BorderStyles for windows (we're letting win32 draw 
8810             the border for us)
8811           - Fixed the signature for SetWindowLong
8812         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
8813           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
8814           setting borders
8815         * UpDownBase.cs: Remove drawing of borders, this is handled by
8816           the driver, outside the client area
8817         * ListView.cs: Removed bogus border calculations. The control should
8818           be oblivious to borders, since those are not part of the client
8819           area. 
8820         * X11DesktopColors.cs: Commented out (currently) unneeded variables
8821         * ThemeWin32Classic.cs: Removed border calculations from ListView 
8822           drawing code
8823
8824 2005-10-06  Jackson Harper  <jackson@ximian.com>
8825
8826         * MdiChildContext.cs: Clear out the old virtual position remove
8827         all the unneeded calls to CreateGraphics.
8828
8829 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
8830
8831         * TextControl.cs: Use proper color for highlighted text; fixes #76350
8832
8833 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
8834
8835         * Form.cs: 
8836           - Added loading and setting of our new default icon
8837           - Only set icon if window is already created
8838
8839 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
8840
8841         * Label.cs:
8842           - Do not explicitly set the foreground and background colors, to
8843             allow inheriting from parents (fixes #76302)
8844           - Use Control's InternalBorderStyle property to deal with borders
8845
8846 2005-10-06  Jackson Harper  <jackson@ximian.com>
8847
8848         * MdiChildContext.cs: Use the new xplatui function to draw a
8849         reversible rect.
8850
8851 2005-10-06  Jackson Harper  <jackson@ximian.com>
8852
8853         * Form.cs: Add the parent before creating the child context cause
8854         we need the parent when setting up the child.
8855
8856 2005-10-06  Jackson Harper  <jackson@ximian.com>
8857
8858         * FolderBrowserDialog.cs: redo the tree population code so a
8859         second thread isn't used. Should be a lot faster and more stable
8860         now.
8861
8862 2005-10-05  Jackson Harper  <jackson@ximian.com>
8863
8864         * TreeView.cs: There are no expand/collapse boxes if the node has
8865         no children.
8866
8867 2005-10-05  Jackson Harper  <jackson@ximian.com>
8868
8869         * X11DesktopColors.cs: Get menu colours for the gtk theme.
8870
8871 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
8872
8873         * FileDialog.cs: Fix InitialDirectory
8874
8875 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
8876
8877         * ComboBox.cs:
8878                 - Fixes changing between styles
8879                 - Fixes simple mode
8880                 - Fixes last item crashing when navigating with keyboard
8881
8882 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
8883
8884         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
8885
8886 2005-10-05  Jackson Harper  <jackson@ximian.com>
8887
8888         * TreeView.cs: If updating the root node do a full refresh.
8889         * TreeNode.cs: The root node should be expanded by default. Also
8890         added a utility prop to tell if we are the root node.
8891         * TreeNodeCollection.cs: Only refresh if the node we are being
8892         added to is expanded. Also added a comment on a potential
8893         optimization.
8894         
8895 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
8896
8897         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
8898           in dispose method. Fixes #76330
8899
8900 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
8901
8902         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
8903
8904                 - Implements vertical and horizontal scrolling using XplatUI
8905                 - Fixes keyboard navagation
8906                 - Fixes EnsureVisible
8907                 - Drawing fixes
8908                 - Handles and draws focus properly
8909
8910
8911 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
8912
8913         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
8914           Create handle. NET_2_0: Destroy handle when value is null.
8915
8916 2005-10-03  Jackson Harper  <jackson@ximian.com>
8917
8918         * ScrollBar.cs: My last scrollbar patch was broken. This is a
8919         revert and a new patch to prevent the thumb from refreshing so
8920         much.
8921
8922 2005-10-02  Jackson Harper  <jackson@ximian.com>
8923
8924         * ScrollBar.cs: Don't update position if it hasn't actually
8925         changed. This occurs when you hold down the increment/decrement
8926         buttons and the thumb gets to the max/min.
8927
8928 2005-10-01  Jackson Harper  <jackson@ximian.com>
8929
8930         * Form.cs:
8931         * MdiChildContext.cs:
8932         * MdiClient.cs: Implement ActiveMdiChild in Form.
8933
8934 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
8935
8936         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
8937
8938 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
8939
8940         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
8941           be found
8942
8943 2005-09-30  Jackson Harper  <jackson@ximian.com>
8944
8945         * ListBox.cs: Don't do a full refresh unless some data has
8946         actually changed.
8947
8948 2005-09-30  Jackson Harper  <jackson@ximian.com>
8949
8950         * TreeView.cs: Make sure that the checkboxes size is factored in
8951         even when not visible.
8952
8953 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
8954
8955         * FileDialog.cs: Fix Jordi's build break
8956
8957 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
8958
8959         * FileDialog.cs: 
8960                 - Use standard the Windows colours for the combobox as espected
8961                 - Dispose objects that use resouces when no longer need them
8962
8963 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
8964
8965         * X11DesktopColors.cs: Initial incomplete implementation
8966         * XplatUIX11.cs: Added call to initialize X11DesktopColors
8967
8968 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
8969
8970         * Theme.cs: 
8971           - Switched Theme color names to match the names defined in 
8972             System.Drawing.KnownColors. Life's hard enough, no need to make 
8973             it harder.
8974           - Added setters to all theme color properties so themes can set
8975             their color schemes. The setters also propagate the color changes
8976             to System.Drawing.KnownColors via reflection
8977         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
8978           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
8979           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
8980           use the new, more logical theme color names
8981         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
8982           post-NT colors
8983         * ThemeWin32Classic.cs:
8984           - Removed code to set the old classic Windows colors. Instead it
8985             now relies on the colors returned by System.Drawing.KnownColors
8986             which will be either modern static colors (Unix) or colors
8987             read from the user's configuration (Win32)
8988           - Updated to use the new, more logical theme color names
8989           - Switched DataGrid drawing code to use only Theme colors instead of
8990             a mix of System.Drawing.KnownColors and Theme colors
8991           - DrawFrameControl(): Removed code that fills the button area, the
8992             fill would overwrite any previous fill done by a control. This
8993             fixes bug #75338 
8994           - Added DrawReversibleRectangle() stub
8995         * ScrollableControl.cs: Set visible state to false when scrollbars
8996           are removed (pdn fix)
8997         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
8998           DrawReversibleRectangle() method to allow drawing primitive 
8999           'rubber bands'
9000         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
9001
9002 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
9003
9004         * ImageList.cs: Add(Icon): Create handle.
9005
9006 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
9007
9008         * ListView.cs:
9009         * ThemeWin32Classic.cs:
9010                 - Fixes detail mode
9011                 - Sets clippings
9012                 - Issues with drawing
9013
9014 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
9015
9016         * ImageList.cs: Moved RecreateHandle back to ImageList as event
9017           source has to be the ImageList.
9018
9019 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
9020
9021         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
9022
9023 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
9024
9025         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
9026
9027 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
9028
9029         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
9030
9031 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
9032         * GridItem.cs: Fixed TODOs
9033         * GridItemCollection.cs: Added ICollection interface
9034
9035 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
9036
9037         * ImageList.cs: Resize icons when needed.
9038
9039 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
9040
9041         * ListViewItem.cs
9042                 - Fixes GetBounds and returns on screen rects
9043         * ListView.cs:
9044                 - Fixes vertical and horzintal scrolling of items
9045         * ThemeWin32Classic.cs:
9046                 - Fixes drawing
9047                 
9048 2005-09-29  Raja R Harinath  <harinath@gmail.com>
9049
9050         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
9051
9052 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
9053
9054         * ImageList.cs: Added comments about handle creation. Moved Handle,
9055           HandleCreated and OnRecreateHandle implementations to ImageCollection.
9056           Handle is created in Add methods.
9057
9058 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
9059          
9060         * DataGridDrawingLogic.cs: 
9061                 - Takes rows into account on Colum calculations
9062                 - Returns the column when clickig
9063         * DataGrid.cs:
9064                 - Fixes default HitTestInfo values
9065                 - Fixes HitTestInfo.ToString
9066                 - Fixes ResetBackColor          
9067         
9068 2005-09-28  Jackson Harper  <jackson@ximian.com>
9069
9070         * MdiChildContext.cs: Obey rules for fixed sized windows (no
9071         sizing or cursor changes). Also added some temp code to draw the
9072         titlebars text (Makes dev a little easier).
9073
9074 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
9075
9076         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
9077
9078 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
9079          
9080         * ListBox.cs: Fixes bug 76253
9081
9082 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
9083
9084         * ImageList.cs: Added comments about the current implementation. Added
9085           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
9086           Format32bppArgb to preserve transparency and can use Graphics.FromImage
9087           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
9088           with Bitmap.LockBits for better performance. Revised the whole file to
9089           match MS.NET behaviour and provide better performance. Non-public
9090           interface members are calling public members even when they throw
9091           NotSupportedException for better maintainability. Moved ColorDepth,
9092           ImageSize, ImageStream and TransparentColor implementations to
9093           ImageCollection for better performance as these properties are not used
9094           by ImageList.
9095         * ImageListStreamer.cs: Added a new internal constructor that takes an
9096           ImageList.ImageCollection and serializes Images based on
9097           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
9098           match ImageList property name.
9099
9100 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
9101
9102         * ListBox.cs: Fixes IndexFromPoint for last item
9103
9104 2005-09-27  Jackson Harper  <jackson@ximian.com>
9105
9106         * Form.cs: Set the position of new mdi children correctly.
9107
9108 2005-09-27  Jackson Harper  <jackson@ximian.com>
9109
9110         * MdiClient.cs: New mdi children need to be added to the back of
9111         the controls collection so the zorder is set correctly. Also add a
9112         count of all the child windows that have been created.
9113
9114 2005-09-27  Jackson Harper  <jackson@ximian.com>
9115
9116         * Form.cs (CreateParams): Setup MDI forms correctly.
9117
9118 2005-09-27  Jackson Harper  <jackson@ximian.com>
9119
9120         * MdiChildContext.cs:
9121         * MonthCalendar.cs:
9122         * UpDownBase.cs:
9123         * ListBox.cs:
9124         * ListView.cs:
9125         * TextBoxBase.cs:
9126         * TreeView.cs:
9127         * ScrollableControl.cs:
9128         * ComboBox.cs: Add implicit controls using the new implict control
9129         functionality in ControlCollection. Also try to block multiple
9130         control add in a suspend/resume layout to save some cycles.
9131         
9132 2005-09-27  Jackson Harper  <jackson@ximian.com>
9133
9134         * Control.cs: Add functionality to the controls collection to add
9135         'implicit controls' these are controls that are created by the
9136         containing control but should not be exposed to the user. Such as
9137         scrollbars in the treeview.
9138         * Form.cs: The list var of the ControlsCollection is no longer
9139         available because of the potential of implicit controls getting
9140         ignored by someone accessing the list directly.
9141
9142 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
9143
9144         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
9145           loose it's parent. (Fixed bug introduced in r49103 when we added
9146           setting the child parent to null on Remove)
9147
9148 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
9149
9150         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
9151         * Splitter.cs: Added missing attributes for BorderStyle property.
9152         * TextBoxBase.cs: Marked Calculate* methods internal.
9153         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
9154         MS.NET.
9155
9156 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
9157          
9158         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
9159
9160 2005-09-25  Jackson Harper  <jackson@ximian.com>
9161
9162         * TreeView.cs: Update the node bounds correctly regardless of
9163         whether the node is visible.
9164
9165 2005-09-25  Jackson Harper  <jackson@ximian.com>
9166
9167         * ImageList.cs: Don't dispose the image after it is added to the
9168         image list. Only reformat images that need to be resized.
9169
9170 2005-09-25  Jackson Harper  <jackson@ximian.com>
9171
9172         * ImageList.cs: Don't set the format when changing the image.
9173
9174 2005-09-25  Jackson Harper  <jackson@ximian.com>
9175
9176         * TreeView.cs: We can't just assume the node has a font. Use the
9177         treeviews font if no node font is available.
9178
9179 2005-09-25  Jackson Harper  <jackson@ximian.com>
9180
9181         * TreeView.cs: Allow the scrollbars to be reset with negative
9182         values.
9183         - Don't add scrollbars to negative sized windows.
9184
9185 2005-09-23  Jackson Harper  <jackson@ximian.com>
9186
9187         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
9188         old Mono.Posix. Also remove some stray code that shouldn't have
9189         been committed.
9190
9191 2005-09-23  Jackson Harper  <jackson@ximian.com>
9192
9193         * TreeView.cs: Attempt at proper sizing of the horizontal
9194         scrollbar. Also don't resize the scrollbars unless they are
9195         visible.
9196
9197 2005-09-23  Jackson Harper  <jackson@ximian.com>
9198
9199         * TreeView.cs: We don't need to expand the invalid area when the
9200         selection changes, as this is all drawn in the node's bounding
9201         box. The area needs to be expanded (previous typo was contracting
9202         it) when the focus rect moves.
9203
9204 2005-09-23  Jackson Harper  <jackson@ximian.com>
9205
9206         * TreeView.cs: Display the selection box under the correct
9207         circumstances. We were rendering white text with no selection box
9208         before.
9209
9210 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
9211
9212         * TextControl.cs(Split): Now updates selection start/end if it points 
9213           into a line that's being split. Fixes a FIXME and bug #75258
9214
9215 2005-09-23  Jackson Harper  <jackson@ximian.com>
9216
9217         * Binding.cs:
9218         * ListControl.cs: Don't use the path when retrieving binding
9219         managers from the binding context. My bat sense tells me that the
9220         path is only used on insertion.
9221
9222 2005-09-22  Jackson Harper  <jackson@ximian.com>
9223
9224         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
9225
9226 2005-09-22  Jackson Harper  <jackson@ximian.com>
9227
9228         * Splitter.cs: There are special cursors used for splitting.
9229         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
9230
9231 2005-09-22  Jackson Harper  <jackson@ximian.com>
9232
9233         * Splitter.cs: Change the cursor appropriately when the splitter
9234         is moused over, so the user actually knows there is a splitter
9235         there.
9236
9237 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
9238
9239        * Label.cs : Fix ToString method to give same output as MS.NET
9240
9241 2005-09-22  Jackson Harper  <jackson@ximian.com>
9242
9243         * TreeView.cs: Create the scrollbars when the handle is created
9244         and add them right away, just make them invisble. Also account for
9245         the window being shrunk vertically to the point that the vert
9246         scrollbar needs to be added.
9247         - Remove some 0.5 adjustments to get around anti aliasing issues.
9248         
9249 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
9250          
9251         * MainMenu.cs: Fixes default value
9252         * MenuItem.cs: Fixes default value
9253
9254 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
9255
9256         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
9257
9258 2005-09-21  Jackson Harper  <jackson@ximian.com>
9259
9260         * Control.cs: Don't try to set the border style on the window if
9261         it hasn't been created. When the window is created the border
9262         style will be used.
9263
9264 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
9265
9266         * Control.cs (Update): Don't call XplatUI if we don't have a
9267           window handle yet
9268
9269 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
9270
9271         * ContainerControl.cs: Instead of throwing an exception, print
9272           a one-time warning about Validate not being implemented
9273         * XplatUIWin32.cs: Removed debug output
9274
9275 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
9276
9277         * Control.cs: Only set XplatUI background if we expect the windowing
9278           system to handle the background. This stops controls that draw their
9279           own background from flickering
9280
9281         * XplatUIX11.cs: Support custom visuals and colormaps for window 
9282           creation. This allows, amongst other things, using MWF X11 windows 
9283           with OpenGL.
9284
9285 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
9286
9287         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
9288           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
9289           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
9290           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
9291           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
9292           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
9293           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
9294           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
9295           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
9296           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
9297           GridColumnStylesCollection.cs, 
9298           IDataGridColumnStyleEditingNotificationService.cs,
9299           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
9300           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
9301           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
9302           TreeNodeCollection.cs, AmbientProperties.cs, 
9303           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
9304           DataObject.cs, ErrorProvider.cs, Splitter.cs,
9305           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
9306           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
9307           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
9308           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
9309           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
9310           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
9311           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
9312           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
9313           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
9314           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
9315           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
9316           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
9317           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
9318           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
9319           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
9320           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
9321           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
9322           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
9323           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
9324           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
9325           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
9326           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
9327           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
9328           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
9329           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
9330           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
9331           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
9332           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
9333           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
9334           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
9335           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
9336           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
9337           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
9338           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
9339           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
9340
9341 2005-09-21  Jackson Harper  <jackson@ximian.com>
9342
9343         * TreeNode.cs: Call Before/After Expand not Collapse when
9344         expanding.
9345
9346 2005-09-20  Jackson Harper  <jackson@ximian.com>
9347         
9348         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
9349
9350 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
9351          
9352         * ListViewItem.cs:
9353                 - Fixes bug 76120
9354                 - Fixes proper storing of subitems
9355                 - Fixes not updated items
9356
9357 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
9358
9359         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
9360           things if our window handle isn't created yet. Also disabled 
9361           debug for TextBoxBase
9362
9363 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
9364
9365         * MenuAPI.cs: Remove filtering of events to allow menu usage
9366
9367 2005-09-20  Miguel de Icaza  <miguel@novell.com>
9368
9369         * Cursor.cs: Allow null to be passed to Cursor.Current.
9370
9371 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
9372
9373         * ThemeWin32Classic.cs:
9374           - Change some private methods/fields to protected virtual so that 
9375             they can be accessed and overriden in derived classes
9376           - First refactoring of some methods. Derived themes now don't 
9377             need to duplicate the complete code from ThemeWin32Classic
9378         * ThemeNice.cs:
9379           - Added nice StatusBar
9380           - Derive from ThemeWin32Classic and not Theme
9381           - Removed duplicate ThemeWin32Classic code
9382
9383 2005-09-20  Miguel de Icaza  <miguel@novell.com>
9384
9385         * Control.cs (ControlCollection.Add): If the value null is passed
9386         the control is ignored. 
9387
9388         Optimize this loop.
9389
9390 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
9391
9392         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
9393           PostQuitMessage state.
9394         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
9395
9396 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
9397
9398         * Application.cs: Our constructor will never get called, move 
9399           initialization to fields; fixes bug #75933
9400
9401 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
9402
9403         * FileDialog.cs :
9404                 - Allow files to be selected properly using file name
9405                 combo box.
9406                 - Add ability to change diretory (absolute / relative)
9407                 using file name combo box.
9408
9409 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
9410          
9411         * ListBox.cs: 
9412                 - Fixes Multicolumn listboxes item wrong calculations
9413                 - Allows to click when only one item is in the listbox
9414                 - Fixes crash when no items using keyboard navigation
9415
9416 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
9417
9418         * ComboBox.cs: Reverted almost everything from the latest patch which
9419           broke ComboBox
9420
9421 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
9422         
9423         * ToolTip.cs:
9424                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
9425         * ComboBox.cs:
9426                 - When DropDownStyle is Simple, it does not show scrollbar 
9427                 to the last item of the list.
9428                 - When DropDownStyle is Simple, it crashed when the list was 
9429                 scrolled down with the down cursor key.
9430                 - Fixed a bug that when DropDownStyle is DropDownList, the 
9431                 selected item was not shown.
9432                 - The position of the selected item was not preserved when 
9433                 the next dropdown happened.
9434         * ThemeWin32Classic.cs:
9435                 - Items were wrapped at the right end.
9436         * CheckedListBox.cs:
9437                 - Fixed Add method
9438         * ListBox.cs:
9439                 - Items should be fully shown.
9440                 - When resizing and vertical scrollbar disappeared, the item 
9441                 of index 0 should be on the top of the list.
9442                 - GetItemRectangle should consider the size of ver. scrollbar
9443         * StatusBar.cs:
9444                 - SizingGrip area should not be allocated when it is not 
9445                 displayed.
9446                 - Now it reflects MinWidth of the containing panel and 
9447                 fixed a crash that happens when its width becomes so small.
9448
9449 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
9450
9451         * CheckedListBox.cs: Fixes bug 76028
9452         * ListBox.cs: Fixes bug 76028
9453
9454 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
9455
9456         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
9457         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
9458
9459 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
9460
9461         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
9462
9463 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
9464
9465         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
9466
9467 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
9468
9469         * IRootGridEntry.cs: Added
9470         * PropertyGridCommands.cs: Added
9471         * PropertiesTab.cs: Added missing methods and property
9472         * PropertyGridView.cs: Made class internal
9473         * PropertyGridTextBox.cs: Made class internal
9474
9475 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
9476
9477         * MimeIcon.cs: Try to check some other environment variables
9478           if "DESKTOP_SESSION" returns "default"
9479
9480 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
9481
9482         * ThemeNice.cs: Corrected background colors (e.g. menus)
9483         * ColorDialog.cs: Use correct background colors for controls
9484
9485 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
9486
9487         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
9488
9489 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
9490
9491         * RichTextBox.cs: Added initial implementation
9492         * lang.cs: Removed. Was accidentally checked in long time ago
9493         * TODO: Removed. Contents were obsolete
9494
9495 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
9496                                                                                 
9497         * PropertiesTab.cs : Added
9498
9499 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
9500                                                                                 
9501         * PropertyGrid.cs : Update
9502         * PropertyGridView.cs : Update
9503         * System.Windows.Forms.resx : Added images and strings
9504
9505 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
9506
9507         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
9508  
9509 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
9510
9511         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
9512           a busy loop right after the Ungrab the X11 display is otherwise 
9513           blocked
9514
9515 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
9516
9517         * ThemeWin32Classic.cs: Optimise the use of clipping
9518
9519 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
9520
9521         * DataGrid.cs: fixes recursion bug
9522
9523 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
9524
9525         * ThemeNice.cs: 
9526           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
9527           - Cleanup
9528
9529 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
9530
9531         * ThemeNice.cs: Draw nice ProgressBars
9532
9533 2005-09-01  Miguel de Icaza  <miguel@novell.com>
9534
9535         * VScrollBar.cs: Another buglet found by Aaron's tool. 
9536
9537         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
9538         bug finder.
9539
9540 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
9541
9542         * ThemeNice.cs:
9543           - Added nicer menu drawing
9544           - Updated DrawTab
9545           - some refactoring
9546
9547 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
9548
9549         * CreateParams.cs (ToString): Made output match MS
9550         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
9551             handle is already created (to avoid forcing window creation)
9552         * XplatUIX11.cs: Set window text to caption after creating window,
9553           in case Text was set before window was created
9554         * Form.cs: Use this.Text instead of a static string as caption
9555
9556 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
9557
9558         * NotifyIcon.cs: Don't set the window to visible; this screws
9559           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
9560           OnPaint without a bitmap)
9561         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
9562           happen very often anyway; we could add the check to the WM_PAINT 
9563           event generation code
9564
9565 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
9566
9567         * NotifyIcon.cs: Fill the icon area with a background color, to 
9568           avoid 'residue' when transparent icons are drawn
9569         * XplatUIX11.cs:
9570           - Handle whole_window == client_window when destroying windows
9571           - SystrayAdd(): Set client_window to whole_window value to
9572             get mouse and other events passed to NotifyIcon
9573
9574 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
9575
9576         * Form.cs: Set proper default for Opacity property
9577         * NotifyIcon.cs:
9578           - ShowSystray(): Don't bother creating telling the OS
9579             about the systray item if no icon is provided
9580           - Now handles WM_NCPAINT message to deal with whole/client window
9581             split
9582           - Create window as visible to not get caught by Expose optimization
9583         * Hwnd.cs: Removed debug message
9584         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
9585           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
9586             PaintEventStart/End to use new client argument
9587         * TextBoxBase.cs:
9588           - Commented out debug messages
9589           - Switched PaintEventStart/End to use new client argument
9590         * XplatUI.cs: Added client window bool to PaintEventStart()/
9591           PaintEventEnd() calls, to support drawing in non-client areas
9592         * XplatUIDriver.cs: 
9593           - Added client window bool to PaintEventStart()/PaintEventEnd() 
9594             calls, to support drawing in non-client areas
9595           - Added conditional compile to allow using MWF BeginInvoke 
9596             on MS runtime
9597         * XplatUIX11.cs:
9598           - Added some conditional debug output
9599           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
9600             whole/client window split
9601           - Implemented handling of client argument to PaintEventStart()/End()
9602         * Control.cs:
9603           - Throw exception if BeginInvoke() is called and the window handle
9604             or one of the window's parent handles is not created
9605           - Added conditional compile to allow using MWF BeginInvoke on
9606             MS runtime
9607           - get_Parent(): Only sets parent if handle is created. This avoids
9608             forcing window handle creation when parent is set.
9609           - Now fires Layout and Parent changed events in proper order
9610           - Switched to use Handle instead of window.Handle for Z-Order setting,
9611             the get_Parent() patch above causes us to possibly get null for 'window'
9612           - Implemented handling of client argument to PaintEventStart()/End()
9613           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
9614             default handling)
9615           - Now sends a Refresh() to all child windows when Refresh() is called
9616
9617 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
9618
9619         * Form.cs: Added (non-functional) Opacity property
9620         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
9621
9622 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
9623         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
9624           use export MONO_THEME=nice to activate it.
9625           Currently supported controls:
9626           - Button
9627           - ComboBox
9628           - ScrollBar
9629           - TabControl (TabAlignment.Top only, other will follow)
9630         * ThemeEngine.cs: Add theme nice
9631         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
9632           if enabled
9633
9634 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
9635
9636         * Splitter.cs: Resize docked control and its neighbor.
9637
9638 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
9639         -- Making Windows with Menus layout correctly --
9640         * Form.cs : The first leg of the fix
9641                 Menu setter - adjust Client Size as needed to make space for the menu
9642                 SetClientSizeCore - doesn't call base version to be able to pass the 
9643                         menu handle to XplatUI.CalculateWindowRect
9644         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
9645         * XplatUIX11.cs: The critical second leg of the fix
9646                 GetWindowPos needs to use a recalculated client_rect
9647                 so that resizing the window doesn't break layout of child controls. 
9648                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
9649                 Lots of \t\n killed
9650
9651 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
9652
9653         * Label.cs: Now properly recalculates width and height on Font and Text
9654           changes if AutoSize is set
9655
9656 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
9657         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
9658
9659 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
9660
9661         * ImageList.cs: Makes ToString method compatible with MS
9662
9663 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
9664
9665         * MenuAPI.cs: fixes bug 75716
9666
9667 2005-08-11 Umadevi S <sumadevi@novell.com>
9668         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
9669
9670 2005-08-11 Umadevi S <sumadevi@novell.com>
9671         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
9672
9673 2005-08-10  Umadevi S <sumadevi@novell.com>
9674         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
9675
9676 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
9677
9678         * Menu.cs: fixes bug 75700
9679         * MenuAPI.cs: fixes navigation issues
9680
9681 2005-08-09  Umadevi S <sumadevi@novell.com>
9682         * CheckedListBox.cs - simple fix for GetItemChecked.
9683
9684 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
9685
9686         * ComboBox.cs: Serveral fixes
9687         * ListBox.cs: Serveral fixes
9688
9689 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
9690
9691         * ComboBox.cs: Fixes FindString methods and GetItemHeight
9692         * ListBox.cs: Fixes FindString methods
9693
9694 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
9695
9696         * DataGrid.cs: fixes bugs exposed by new tests
9697
9698 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
9699
9700         * Mime.cs: Compile Mono assembly references only if compiling
9701           with Mono (Allows to build with VS.Net again)
9702
9703 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
9704
9705         * Control.cs (PaintControlBackground): Draw background image
9706         corrrectly.
9707         (CheckForIllegalCrossThreadCalls): Stubbed.
9708         
9709         * Form.cs (OnCreateControl): Center when should be centered.
9710         
9711         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
9712
9713 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
9714
9715         * Binding.cs: Binding to properties should be case unsensitive
9716
9717 2005-07-18 vlindos@nucleusys.com
9718
9719         * DataGrid.cs: fixes setmember order
9720
9721 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
9722
9723         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
9724         * FileDialog.cs: FileDialog is now resizable and uses the new
9725           MimeIconEngine
9726
9727 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
9728
9729         * DataGridTextBoxColumn.cs: default value
9730         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
9731         * GridTableStylesCollection.cs: fixes checking MappingName
9732         * DataGridDrawingLogic.cs: fixes drawing logic issues
9733         * DataSourceHelper.cs: rewritten to make compatible with more data sources
9734         * DataGrid.cs: fixes    
9735
9736 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
9737
9738         * MimeGenerated.cs: Use case sensitive comparer for
9739           NameValueCollections
9740
9741 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
9742
9743         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
9744         * ThemeWin32Classic.cs: bug fixes, code refactoring
9745         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
9746         * DataGrid.cs: bug fixes, code refactoring
9747         * DataGridTextBox.cs: bug fixes, code refactoring
9748         * DataGridColumnStyle.cs:  bug fixes, code refactoring
9749         * Theme.cs:  bug fixes, code refactoring
9750
9751 2005-07-01  Peter Bartok  <pbartok@novell.com> 
9752
9753         * TextControl.cs: Quick fix for the reported crash on ColorDialog
9754           and other text box usage
9755
9756 2005-07-01  Jackson Harper  <jackson@ximian.com>
9757
9758         * TabControl.cs: Make sure the bottom of the tab covers the pages
9759         border.
9760
9761 2005-06-30  Peter Bartok  <pbartok@novell.com> 
9762
9763         * Form.cs (ShowDialog): Assign owner of the dialog
9764         * TextBoxBase.cs: Always refresh caret size when deleting, caret
9765           might have been moved to a tag with different height
9766
9767 2005-06-30  Jackson Harper  <jackson@ximian.com>
9768
9769         * Form.cs: Don't create an infinite loop when setting focus
9770         * MenuItem.cs: Don't dirty the parents if we don't have any
9771
9772 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
9773
9774         * LibSupport.cs: Rename
9775
9776 2005-06-29  Peter Bartok  <pbartok@novell.com>
9777
9778         * TextBoxBase.cs: Re-align caret after deleting a character
9779         * TextControl.cs:
9780           - DeleteChars(): Ensure that tag covers the provided position
9781           - StreamLine(): Drop reference for dropped tag
9782
9783 2005-06-29  Peter Bartok  <pbartok@novell.com> 
9784
9785         * TextControl.cs: 
9786           - Selections now work properly, anchoring at the initial location
9787             and properly extending in either direction (SetSelectionToCaret(),
9788             SetSelectionStart() and SetSelectionEnd())
9789           - No longer redraws the whole control on selection change, now
9790             calculates delta between previous and new selection and only
9791             invalidates/redraws that area
9792           - Fixed FindPos() math off-by-one errors
9793           - Changed DeleteChars() to verify the provided tag covers the
9794             provided position, selections may have a tag that doesn't cover
9795             the position if the selection is at a tag border
9796           - Fixed off-by-one errors in DeleteChars()
9797           - Added missing streamlining check in DeleteChars() to remove
9798             zero-length tags
9799           - Implemented Invalidate() method, now properly calculates exposures
9800             between two given lines/positions
9801           - Implemented SetSelection()
9802           - Obsoleted and removed FixupSelection()
9803           - Improved RecalculateDocument() logic, removing code duplication
9804
9805 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9806
9807         * LibSupport.cs: changes to match different input/output arguments.
9808
9809 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9810
9811         * LibSupport.cs: added libsupport.so init routine.
9812
9813 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
9814         
9815         * ControlBindingsCollection.cs
9816                 - Throws an exception on null datasource when adding
9817                 - Checks for duplicated bindings when adding
9818
9819 2005-06-28  Jackson Harper  <jackson@ximian.com>
9820
9821         * TreeView.cs (OnKeyDown): Support left and right properly
9822         (navigates as well as expanding and collapsing.
9823         - Add support for Multiply, this expands all the selected nodes
9824         children.
9825         - Fix some tabbing.
9826
9827 2005-06-28  Jackson Harper  <jackson@ximian.com>
9828
9829         * TreeView.cs: Implement keyboard navigation, currently supports,
9830         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
9831         support for toggling checkboxes with the space bar.
9832
9833 2005-06-28  Jackson Harper  <jackson@ximian.com>
9834
9835         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
9836         tree.
9837
9838 2005-06-28  Jackson Harper  <jackson@ximian.com>
9839
9840         * TreeView.cs: Add missing event.
9841
9842 2005-06-27  Peter Bartok  <pbartok@novell.com> 
9843
9844         * TextControl.cs:
9845           - Made line ending size configurable (now allows for counting 
9846             lineendings as \n or \r\n)
9847           - Added margin to viewport to keep caret visible on right side
9848           - Fixed translation routines for line/pos to documentpos to consider
9849             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
9850           - Fixed some line-endings to be unix style
9851           - Fixed Document.FormatText to perform it's calculations 1-based
9852           - Added descriptions for a few methods that might otherwise get 
9853             used wrong
9854           - Added NOTE section with some basic conventions to remember at 
9855             the top of the file
9856           - Major fixup for RichTextBox selection drawing:
9857             * Fixed crashes when multiple tags on a single line were selected
9858             * fixed selection box drawing not overlaying text
9859             * fixed bogus offset calculation for tags not starting at index 1
9860             * Switched behaviour from using multiple Substrings of a 
9861               StringBuilder.ToString() to using multiple 
9862               StringBuilder.ToString(start, length) statements, hoping this is
9863               faster (kept original version commented out in the code, in case
9864               original version was faster)
9865         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
9866           alignment != Left
9867         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
9868           call it as well
9869
9870 2005-06-27  Jackson Harper  <jackson@ximian.com>
9871
9872         * TabControl.cs: Move to the left and right with the arrow
9873         keys. These keys don't cycle beyond first and last like
9874         tab. Refresh all the tabs when scrolling them to the left or
9875         right.
9876
9877 2005-06-27  Jackson Harper  <jackson@ximian.com>
9878
9879         * TabControl.cs:
9880           - ToString: Added method
9881           - CreateParams: Remove TODO and comment
9882           - OnKeyDown: Cycle through bounds properly.
9883           - SelectedIndex: Scroll to the right or left if we need to
9884           display the newly selected tab.
9885
9886 2005-06-23  Jackson Harper  <jackson@ximian.com>
9887
9888         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
9889         set.
9890
9891 2005-06-23  Jackson Harper  <jackson@ximian.com>
9892
9893         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
9894         CTRL-SHIFT-TAB, and HOME, END are there any others?
9895
9896 2005-06-23  Jackson Harper  <jackson@ximian.com>
9897
9898         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
9899
9900 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
9901         
9902         * DataGridTextBoxColumn.cs: fixes and enhancements
9903         * ThemeWin32Classic.cs: fixes and enhancements
9904         * DataGridBoolColumn.cs:  fixes and enhancements
9905         * DataGridDrawingLogic.cs:  fixes and enhancements
9906         * CurrencyManager.cs: fixes and enhancements
9907         * DataGrid.cs: fixes and enhancements
9908         * DataGridColumnStyle.cs:  fixes and enhancements
9909
9910 2005-06-22  Jackson Harper  <jackson@ximian.com>
9911
9912         * TabControl.cs: Add some missing methods that just call into the
9913         base. Make the TabPageCollection's IList interface behave in the
9914         same manner as the MS implementation.
9915
9916 2005-06-22  Peter Bartok  <pbartok@novell.com> 
9917
9918         * TextControl.cs: Added sanity check
9919         * TextBoxBase.cs: 
9920           - Fixed wrapping behaviour, don't set wrap on single line controls
9921             (this fixes the breakage of colordialog introduced in an earlier
9922              checkin)
9923           - Added rudimentary support for autoscrolling right-aligned controls
9924             (still needs fixing, also, center alignment scroll is missing)
9925
9926 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
9927         
9928         * ScrollBar.cs: Fixes thumbpos on Maximum values
9929
9930 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
9931         
9932         * PropertyGridView.cs: Pass context information to UITypeEditors 
9933
9934 2005-06-21  Peter Bartok  <pbartok@novell.com> 
9935
9936         * TextBoxBase.cs:
9937           - Now calling PositionCaret with absolute space coordinates
9938           - Enabled vertical scrolling
9939           - Better tracking of scrollbar changes, tied into WidthChange
9940             event
9941           - Improved cursor tracking
9942           - Removed debug output
9943         * TextControl.cs:
9944           - PositionCaret coordinates are now works in absolute space, not 
9945             the canvas
9946           - Improved tracking of document size
9947           - Added events for width and height changes
9948
9949 2005-06-21  Peter Bartok  <pbartok@novell.com>
9950
9951         * Form.cs: Set focus to active control when form is activated
9952         * TextControl.cs: 
9953           - Added word-wrap functionality to RecalculateLine() 
9954           - Added some short function descriptions for VS.Net to aid in
9955             writing dependent controls
9956           - Added Caret property, returning the current coords of the caret
9957           - Added ViewPortWidth and ViewPortHeight properties
9958           - Added Wrap property
9959           - Added CaretMoved event
9960           - Removed some old debug code
9961           - Split() can now create soft splits
9962           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
9963           - Added method to format existing text
9964           - Fixed size/alignment calculations to use viewport
9965           - RecalculateDocument now can handle changing line-numbers while
9966             calculating lines
9967
9968         * TextBox.cs:
9969           - Added some wrap logic, we don't wrap if alignment is not left
9970           - Added casts for scrollbar var, base class switched types to
9971             also support RichTextBoxA
9972           - Implemented handling of scrollbar visibility flags
9973
9974         * TextBoxBase.cs:
9975           - Switched scrollbars type to RichTextBoxScrollBars to support
9976             RichTextBox
9977           - Added tracking of canvas width/height
9978           - Switched scrollbars to be not selectable (to keep focus on text)
9979           - Added central CalculateDocument() method to handle all redraw
9980             requirements
9981           - Added ReadOnly support
9982           - Added WordWrap support
9983           - Fixed handling of Enter key (we now treat it as a DialogKey)
9984           - Fixed caret positioning when h or v scroll is not zero
9985           - Fixed placing/generation of vertical scrollbar
9986           - Added CalculateScrollBars() method to allow updating scrollbar
9987             limits and visibility
9988           - Fixed handling of horizontal scroll
9989           - Added handling of vertical scroll
9990           - Implemented auto-'jump' when caret moves to close to a left or
9991             right border and there is text to be scrolled into view (currently
9992             there's the potential for a stack overflow, until a bug in
9993             scrollbar is fixed)
9994
9995 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
9996         
9997         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
9998
9999 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
10000
10001         * Mime.cs:
10002         - added inodes.
10003         - return application/x-zerosize for files with size zero
10004           (if no extension pattern matches).
10005         - check matches collection for strings too.
10006         - return only the first mime type if the name value
10007           collection has more than one mime type.
10008
10009 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
10010         
10011         * PropertyGrid.cs: Cleaned up some TODOs
10012         * PropertyGridView.cs: Added support for UITypeEditors
10013
10014 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
10015         
10016         * DataGrid.cs: clears cached value
10017
10018 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
10019
10020         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
10021         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
10022         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
10023         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
10024         
10025 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
10026
10027         * ThemeWin32Classic.cs: fixes colour
10028
10029 2005-06-15  Peter Bartok  <pbartok@novell.com>
10030
10031         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
10032         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
10033         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
10034         * Control.cs: Added some MWFCategory and MWFDescription attributes
10035         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
10036
10037 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
10038
10039         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
10040         usage
10041
10042 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
10043
10044         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
10045         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
10046         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
10047         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
10048         * DataGrid.cs: default datagrid settings for Default Styles, fixes
10049         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
10050
10051 2005-06-13  Jackson Harper  <jackson@ximian.com>
10052
10053         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
10054         isn't printed when the user enables dropping. (X11 does accept
10055         drops).
10056         
10057 2005-06-13  Jackson Harper  <jackson@ximian.com>
10058
10059         * TreeView.cs: Remove some TODOS.
10060
10061 2005-06-13  Jackson Harper  <jackson@ximian.com>
10062
10063         * Form.cs: Hook into the mdi framework.
10064         * MdiClient.cs: Use the base control collections add method so
10065         parents get setup correctly. Set the default back colour and dock
10066         style.
10067         * MdiChildContext.cs: New class, this bad actor handles an
10068         instance of an MDI window. Right now there is only basic
10069         support. You can drag, close, and resize windows. Minimize and
10070         Maximize are partially implemented.
10071
10072 2005-06-13  Jackson Harper  <jackson@ximian.com>
10073
10074         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
10075         freaky when both vals are negative. NOTE: There are probably other
10076         places in XplatUIX11 that this needs to be done.
10077
10078 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
10079
10080         * DataGrid.cs: implement missing methods, move KeyboardNavigation
10081         * DataGridColumnStyle.cs: fixes signature
10082
10083 2005-06-12  Jackson Harper  <jackson@ximian.com>
10084
10085         * XplatUIX11.cs: Use sizing cursors similar to the ones on
10086         windows.
10087
10088 2005-06-11  Jackson Harper  <jackson@ximian.com>
10089
10090         * StatusBarPanel.cs: Signature cleanups. Implement
10091         BeginInit/EndInit.
10092
10093 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
10094
10095         * DataGridTextBoxColumn.cs: Honors aligment
10096         * GridColumnStylesCollection.cs: Contains is case unsensitive
10097         * GridTableStylesCollection.cs: several fixes
10098         * DataGridTableStyle.cs: default column creation
10099         * DataGridDrawingLogic.cs: fixes
10100         * CurrencyManager.cs: ListName property
10101         * DataGrid.cs: multiple styles support
10102         * DataGridColumnStyle.cs: fixes
10103         
10104
10105 2005-06-10  Peter Bartok  <pbartok@novell.com>
10106
10107         * Control.cs(Select): Moved SetFocus call to avoid potential
10108           loops if controls change the active control when getting focus
10109         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
10110           the up/down buttons
10111
10112 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
10113
10114         * ImageListConverter.cs: Implemented
10115
10116 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
10117
10118         * MonthCalendar.cs: Wired in NumericUpDown control for year
10119
10120 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
10121
10122         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
10123           DoubleClick events, since they are not meant to be fired.
10124
10125 2005-06-09  Peter Bartok  <pbartok@novell.com>
10126
10127         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
10128           Jonathan's standalone controls into MWF, implemented missing
10129           events, attributes and methods; added xxxAccessible classes
10130         * AccessibleObject.cs: Made fields internal so other classes
10131           can change them if needed
10132
10133 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
10134
10135         * UpDownBase.cs: Complete implementation
10136         * NumericUpDown.cs: Complete implementation
10137         * DomainUpDown.cs: Complete implementation
10138
10139 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
10140
10141         * DataGridTextBoxColumn.cs: drawing fixes
10142         * DataGridCell.cs: fixes ToString method to match MSNet
10143         * DataGridTableStyle.cs: fixes
10144         * DataGridBoolColumn.cs: fixes, drawing
10145         * DataGridDrawingLogic.cs: fixes, new methods
10146         * DataGridTextBox.cs: Keyboard and fixes
10147         * DataGrid.cs:
10148                 - Keyboard navigation
10149                 - Scrolling fixes
10150                 - Row selection (single, multiple, deletion, etc)
10151                 - Lots of fixes
10152         
10153 2005-06-07  Jackson Harper  <jackson@ximian.com>
10154
10155         * ThemeWin32Classic.cs: Clear the background area when drawing
10156         buttons.
10157
10158 2005-06-06  Peter Bartok  <pbartok@novell.com>
10159
10160         * ImageListStreamer.cs: Fixed signature for GetData
10161         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
10162         * ComboBox.cs:
10163           - Added missing ChildAccessibleObject class
10164           - Added missing OnXXXFocus overrides, switched to using those
10165             instead of the event handler
10166         * Control.cs:
10167           - Added Parent property for ControlAccessibleObject
10168           - Fixed signatures
10169           - Fixed attributes
10170           - Added ResetBindings()
10171         * ListBindingConverter.cs: Implemented some methods
10172         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
10173         * ImageList.cs: Implemented basic handle scheme, removed TODOs
10174         * ContainerControl.cs: Fixed signature, now subscribing to the
10175           ControlRemoved event instead of overriding the handler, LAMESPEC
10176         * CurrencyManager.cs: Added missing attribute
10177         * MonthCalendar.cs: Added missing properties
10178
10179 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
10180
10181         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
10182         
10183 2005-06-06  Gaurav Vaish and Ankit Jain
10184
10185         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
10186         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
10187         
10188 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
10189
10190         * Control.cs: fixes CreateParams Width / Height.
10191
10192 2005-06-05  Peter Bartok  <pbartok@novell.com>
10193
10194         * Win32DnD.cs: Removed compilation warnings
10195
10196 2005-06-05  Peter Bartok  <pbartok@novell.com>
10197
10198         * Control.cs (CreateParams): Since we don't know if one of the
10199           properties we use is overridden, lets make sure if we fail accessing
10200           we continue with a backup plan
10201
10202 2005-06-05  Peter Bartok  <pbartok@novell.com>
10203
10204         * Win32DnD.cs:
10205           - Removed debug output
10206           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
10207             struct
10208           - Plugged resource leak
10209         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
10210           MS size
10211
10212 2005-06-05  Peter Bartok  <pbartok@novell.com>
10213
10214         * XplatUIWin32.cs: Removed DnD code
10215         * Win32DnD.cs: Implemented drop source and drop target functionality
10216
10217 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10218
10219         * UpDownBase.cs: remove duplicate addition of event, enable some code
10220         that was commented out.
10221         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
10222         Validate input when a key is pressed. It works fine now for every
10223         combination of Hexadecimal. Only missing some drawing love when sharing
10224         space with other controls.
10225
10226 2005-06-04  Peter Bartok  <pbartok@novell.com>
10227
10228         * Control.cs:
10229           - We need to pass a window for DragDrop, so enable callback events
10230           - Added DnD callback events when being a DragSource
10231         * XplatUI.cs (StartDrag): Added window handle argument
10232         * XplatUIDriver.cs (StartDrag): Added window handle argument
10233         * QueryContinueDragEventArgs: Made fields internally accessible so
10234           drivers can set them
10235         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
10236           can set them
10237
10238 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
10239
10240         * DataGridTextBoxColumn.cs: column text editing
10241         * DataGridTableStyle.cs: Respect columns styles created by the user
10242         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
10243         * DataGridBoolColumn.cs: bool column editing
10244         * DataGrid.cs: fixes to scrolling, properties, etc
10245         * DataGridTextBox.cs: handle keyboard
10246         * DataGridColumnStyle.cs: fixes
10247
10248 2005-06-02  Jackson Harper  <jackson@ximian.com>
10249
10250         * ImageListStreamer.cs: Somewhat broken implementation of
10251         GetObjectData. The RLE needs some work to match MS properly.
10252
10253 2005-06-02  Jackson Harper  <jackson@ximian.com>
10254
10255         * X11Dnd.cs: Attempting to keep at least one file in MWF
10256         monostyled.
10257
10258 2005-06-02  Peter Bartok  <pbartok@novell.com>
10259
10260         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
10261           that way
10262
10263 2005-06-02  Peter Bartok  <pbartok@novell.com>
10264
10265         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
10266         * XplatUI.cs: Added DoDragDrop() method
10267         * XplatUIDriver.cs: Added DoDragDrop() method
10268
10269 2005-06-02  Jackson Harper  <jackson@ximian.com>
10270
10271         * Splitter.cs: Implement BorderStyle.
10272
10273 2005-06-02  Jackson Harper  <jackson@ximian.com>
10274
10275         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
10276         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
10277         X11 using XDND.
10278
10279 2005-06-02  Peter Bartok  <pbartok@novell.com>
10280
10281         * DataObject.cs:
10282           - Added Data setter
10283           - Fixed broken insertion code for SetData, now also
10284             overwrites any existing entry of the same format name
10285         * Hwnd.cs: Added list of pointers that automatically gets
10286           freed when the window is disposed
10287         * XplatUI.cs: Call driver initialization method when loading
10288           a driver
10289         * Control.cs:
10290           - OnDragLeave takes EventArgs, not DragEventArgs
10291           - Added setting of WS_EX_ACCEPTFILES style when dropping is
10292             supported
10293           - Forces style update when drop state changes
10294         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
10295           not perfect since we cannot (yet) call the IDataObject.GetData()
10296           method, we keep getting 0x80004005 error, dunno why)
10297
10298 2005-06-02  Peter Bartok  <pbartok@novell.com>
10299
10300         * DragEventArgs.cs: Make fields internal so we can cache the
10301           object and re-set the fields from XplatUI
10302
10303 2005-06-02  Jackson Harper  <jackson@ximian.com>
10304
10305         * Control.cs: Add some internal methods so the DnD subsystem can
10306         raise DnD events. Also call into the driver when AllowDrop is set.
10307         * XplatUI.cs:
10308         * XplatUIDriver.cs: New method for setting whether or not a window
10309         is allowed to accept drag and drop messages.
10310                 
10311 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
10312         
10313         * ScrollBar.cs: Make sure that values sent in Scroll events
10314         are always between Maximum and Minimum.
10315
10316 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
10317
10318         * Menu.cs: Call MenuChanged when menuitem visibility has been
10319         changed.
10320         * MenuItem.cs: Rebuild menu when item is (not) visible.
10321         * MainMenu.cs: MainMenu has special MenuChanged.
10322         * Theme.cs: Caption and FrameBorderSize are not fixed.
10323         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
10324         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
10325         * XplatUIX11.cs,
10326         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
10327         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
10328
10329 2005-05-30  Jackson Harper  <jackson@ximian.com>
10330
10331         * DataFormat.cs: We can't statically initialize this stuff because
10332         it calls into the xplatui and could create a loop. So we lazy init
10333         it.
10334
10335 2005-05-28  Jackson Harper  <jackson@ximian.com>
10336
10337         * Control.cs: Proper implementation of Product(Name/Version).
10338
10339 2005-05-27  Jackson Harper  <jackson@ximian.com>
10340
10341         * DataObject.cs: Dont crash if no data is found.
10342
10343 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
10344         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
10345                 as per status page, guessing it should be set to true
10346
10347 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
10348
10349         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
10350         * DataGridTableStyle.cs: set proper formatting text, def header text
10351         * ThemeWin32Classic.cs: new themable paramaters
10352         * DataGridBoolColumn.cs: paint check box, get data, fixes
10353         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
10354         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
10355         * DataGridColumnStyle.cs: fixes
10356         * Theme.cs: new themable paramaters
10357                 
10358 2005-05-26  Peter Bartok  <pbartok@novell.com>
10359
10360         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
10361
10362 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
10363         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
10364
10365 2005-05-24  Peter Bartok  <pbartok@novell.com>
10366
10367         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
10368           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
10369           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
10370           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
10371           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
10372           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
10373           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
10374           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
10375           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
10376           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
10377           missing attributes, etc
10378         * DataGridPreferredColumnWidthTypeConverter.cs: Added
10379
10380 2005-05-24  Peter Bartok  <pbartok@novell.com>
10381
10382         * Help.cs: Added, implemented trivial functions, throws up MessageBox
10383           when user tries to get help
10384         * DataObject.cs, DataFormats.cs, LinkArea.cs,
10385           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
10386           to suppress warnings
10387         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
10388           avoid unreachable code warning
10389
10390 2005-05-20  Peter Bartok  <pbartok@novell.com>
10391
10392         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
10393
10394 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
10395
10396         * DataGridTextBoxColumn.cs: Basic painting methods
10397         * DataGridTableStyle.cs: Set table style in the column
10398         * ThemeWin32Classic.cs: Use Theme for colors
10399         * DataGridDrawingLogic.cs: Implement more drawing
10400         * DataGrid.cs: drawing, theming, enhacements, fixes
10401         * DataGridColumnStyle.cs: fixes, drawing
10402         * Theme.cs: theming for Datagrid
10403
10404 2005-05-20  Peter Bartok  <pbartok@novell.com>
10405
10406         * Cursor.cs: Implemented GetObjectData() method
10407
10408 2005-05-20  Peter Bartok  <pbartok@novell.com>
10409
10410         * Cursors.cs: Added setting of cursor name
10411         * Cursor.cs:
10412           - Implemented constructors
10413           - Implemented Draw and DrawStretched
10414           - Implemented Current property
10415           - Implemented == and != operators
10416           - Implemented Dispose()
10417           - Implemented ToString
10418           - Added missing attributes
10419         * XplatUIX11.cs:
10420           - Added missing reset for OverrideCursor when DoEvents is called
10421           - Fixed creation of cursor, logic was wrong
10422         * XplatUIWin32.cs:
10423           - Added missing reset for OverrideCursor when DoEvents is called
10424           - Fixed creation of cursor, bit arrays were swapped
10425         * Clipboard.cs: Removed obsolete MonoTODO attribute
10426
10427 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
10428
10429         * ComboBox.cs: fixes OnSelectedItemChanged
10430         * ControlBindingsCollection.cs: fixes item range check
10431
10432 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
10433
10434         * UpDownBase.cs:
10435                 - Calc preferred height properly
10436                 - Implement missing properties
10437                 
10438         * NumericUpDown.cs: Implement missing events
10439
10440 2005-05-19  Jackson Harper  <jackson@ximian.com>
10441
10442         * TabControl.cs: New method that resizes the tab pages before
10443         redrawing them. This as needed as the control is double buffered
10444         and sizing will not be recalculated unless ResizeTabPages is
10445         called.
10446         * TabPage.cs: Set base.Text instead of Text in the constructor so
10447         that UpdateOwner does not get called. Use the new Redraw method of
10448         TabControl instead of Refresh so the sizing is recalculated.
10449         * ThemeWin32Classic.cs: Draw the text for button tabs.
10450
10451 2005-05-19  Jackson Harper  <jackson@ximian.com>
10452
10453         * Control.cs: Paint control background images. Fix typo where
10454         PaintControlBackground was not getting called correctly.
10455
10456 2005-05-19  Peter Bartok  <pbartok@novell.com>
10457
10458         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
10459           I can investigate, apparently I broke FileDialog
10460
10461 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
10462
10463         * AxHost.cs: Some simple properties.
10464         * Control.cs: window must be accessible after ctor.
10465         * Form.cs: Added TransparencyKey property.
10466         * TextBoxBase.cs: Implemented Clear. Text property can be null.
10467         * XplatUIWin32.cs: SetBorderStyle implemented.
10468
10469 2005-05-18  Peter Bartok  <pbartok@novell.com>
10470
10471         * DataObject.cs: Entries are not global but particular to the
10472           DataObject, now it behaves that way
10473         * XplatUIWin32.cs: Implemented Clipboard methods
10474         * Clipboard.cs: Implemented
10475         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
10476         * XplatUIOSX.cs: Updated to final clipboard prototypes
10477         * XplatUIX11.cs: Implemented Clipboard methods
10478         * XplatUIDriver.cs: Updated to final clipboard prototypes
10479         * XplatUIStructs.cs:
10480           - Added BITMAPINFOHEADER struct
10481           - Added ClipboardFormats enum
10482         * X11Structs.cs:
10483           - Added ClipboardStruct
10484           - Added Atom enum items for clipboard types
10485           - Fixed atom types for Selection event structures
10486         * DataFormats.cs:
10487           - Added internal properties and methods for drivers to enumerate
10488             all known formats
10489           - Switched initialization method to allow drivers to assign their
10490             own IDs even for the MS predefined clipboard IDs
10491         * XplatUI.cs: Updated to final clipboard interface
10492
10493 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
10494         * PropertyGridView.cs: Fixed compiler warnings.
10495
10496 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
10497         * PropertyGrid.cs: Added some event calls
10498         * PropertyGridView.cs: Change drawing code to use double buffering
10499         * PropertyGridTextBox.cs: Changed Text property name
10500         * GridItem.cs: Added Bounds property.
10501         * GridEntry.cs: Added Bounds property.
10502
10503 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
10504
10505         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
10506         since GetType() may not return the correct type if the object is
10507         a remoting proxy.
10508
10509 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
10510
10511         * TreeNodeCollection.cs: fixes get/set item ranges
10512         
10513 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
10514
10515         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
10516                 
10517 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
10518
10519         * ComboBox.cs: Fix item range comparation
10520         * ListView.cs: Fix item range comparation
10521
10522 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
10523
10524         * FontDialog.cs:
10525           - Clear example panel when OnPaint is called
10526           - Better solution for displaying the example panel text
10527           - Select default indexes in the ListBoxes
10528
10529 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
10530
10531         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
10532
10533 2005-05-11  Peter Bartok  <pbartok@novell.com>
10534
10535         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
10536         * SelectionRangeConverter.cs: Implemented
10537         * PropertyGrid.cs: Fixed attribute value
10538         * Control.cs:
10539           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
10540           - Added Sebastien Pouliot's CAS Stack Propagation fixes
10541         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
10542           that's common to all drivers. First methods to go there are
10543           Sebastien Pouliot's CAS Stack Propagation helper methods
10544         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
10545           Sebastien Pouliot for CAS Stack Propagation
10546
10547 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
10548
10549         * OSXStructs.cs:
10550           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
10551
10552 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
10553
10554         * DataGridTextBoxColumn.cs: fixed some members
10555         * GridColumnStylesCollection.cs: indexed column is case insensitive
10556         * DataGridTableStyle.cs: fixes
10557         * ThemeWin32Classic.cs: add new theme parameter
10558         * Theme.cs: add new theme parameter
10559         * DataGridDrawingLogic.cs: Datagrid's drawing logic
10560         * DataGrid.cs: fixes, new internal properties, etc.
10561         * DataGridColumnStyle.cs: allows to set grid value
10562         *
10563
10564 2005-05-10  Peter Bartok  <pbartok@novell.com>
10565
10566         * AccessibleObject.cs:
10567           - Removed MonoTODO attribute on help, method is correct
10568           - Fixed Bounds property
10569         * AxHost.cs: Moved MonoTODO
10570         * ButtonBase.cs: Now setting AccessibleObject properties
10571         * RadioButton.cs: Setting proper AccessibleObject role
10572         * CheckBox.cs: Setting proper AccessibleObject role
10573         * ControlBindingsCollection.cs: Added properties, methods and attributes
10574         * DataFormats.cs: Fixed awkward internal API, and changed to enable
10575           userdefined DataFormats.Format items as well
10576         * ListControl.cs: Removed data_member from the public eye
10577         * OpenFileDialog.cs:
10578           - Made class sealed
10579           - Added missing attributes
10580         * SaveFileDialog.cs: Added missing attributes
10581         * ImageListStreamer.cs: Fixed code that caused warnings
10582         * LinkLabel.cs: Removed unreachable code
10583         * TreeView.cs: Fixed code that caused warnings
10584         * PropertyGridView.cs: Fixed code that caused warnings
10585         * GridColumnStylesCollection.cs: Added missing attributes
10586         * GridTableStylesCollection: Added missing attribute
10587         * PropertyManager: Added .ctor
10588         * SecurityIDType: Added
10589         * DataObject.cs: Implemented class
10590         * LinkArea.cs: Added missing attribute
10591
10592 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
10593
10594         * RadioButton.cs: call base method to allow to fire OnClick event
10595         * UpDownBase.cs: OnMouseUp call base method
10596         * CheckedListBox.cs: call base method before returning
10597         * TrackBar.cs: call base method before returning
10598         
10599
10600 2005-05-10  Peter Bartok  <pbartok@novell.com>
10601
10602         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
10603           for messages
10604
10605 2005-05-10  Peter Bartok  <pbartok@novell.com>
10606
10607         * DataFormats.cs: Implemented
10608         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
10609           XplatUIX11.cs: Added Clipboard APIs
10610         * XplatUIWin32.cs: Implemented Clipboard APIs
10611         * FolderBrowserDialog.cs: Added missing event, attributes
10612
10613 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
10614
10615         * CheckBox.cs: call base method to allow to fire OnClick event
10616
10617 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
10618
10619         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
10620
10621 2005-05-06  Peter Bartok  <pbartok@novell.com>
10622
10623         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
10624         * Screen.cs: Implemented
10625         * HelpNavigator.cs: Added
10626         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
10627           property
10628         * HelpProvider.cs: Implemented all we can do until we have a CHM
10629           help library (which means that "What's This" does work now)
10630
10631 2005-05-06  Jackson Harper  <jackson@ximian.com>
10632
10633         * XplatUIX11.cs: Fix waking up the main loop.
10634                 
10635 2005-05-05  Peter Bartok  <pbartok@novell.com>
10636
10637         * XplatUI.cs: Updated revision
10638         * Form.cs: Removed enless loop
10639         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
10640         * Label.cs (OnPaint): Added call to base.OnPaint()
10641         * ToolTip.cs: Made ToolTipWindow reusable for other controls
10642         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
10643         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
10644         * AxHost.cs: Added
10645         * ButtonBase.cs: Moved base.OnPaint() call to end of method
10646         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
10647           to ToolTip.ToolTipWindow for drawing and size methods; this allows
10648           reuse of ToolTipWindow by other controls
10649         * SizeGrip.cs: Moved base.OnPaint() call to end of method
10650         * XplatUIX11.cs: Now clipping drawing area (experimental)
10651         * PictureBox.cs: Moved base.OnPaint() call to end of method
10652         * Theme.cs: Fixed ToolTip abstracts to match new format
10653         * ErrorProvider.cs: Implemented
10654
10655 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
10656
10657         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
10658         * LinkLabel.cs:
10659                 - Adds cursors
10660                 - Handles focus
10661                 - Implements LinkBehavior
10662                 - Fixes many issues
10663
10664 2005-05-03  Jackson Harper  <jackson@ximian.com>
10665
10666         * ListView.cs: Calculate the scrollbar positioning on resize and
10667         paint, so they get put in the correct place.
10668
10669 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
10670
10671         * ColorDialogs.cs: The small color panels are now handled by
10672           SmallColorControl. This fixes drawing of the focus rectangle
10673           and adds a 3D border.
10674
10675 2005-05-03  Peter Bartok  <pbartok@novell.com>
10676
10677         * Control.cs: Modified version of Jonathan Chamber's fix for
10678           double-buffering
10679
10680 2005-05-03  Jackson Harper  <jackson@ximian.com>
10681
10682         * ListView.cs: Remove redraw variable. Control now handles whether
10683         or not a redraw needs to be done, and will only raise the paint
10684         event if redrawing is needed.
10685
10686 2005-05-03  Jackson Harper  <jackson@ximian.com>
10687
10688         * Splitter.cs: No decorations for the splitter form. Cache the
10689         hatch brush.
10690
10691 2005-05-03  Jackson Harper  <jackson@ximian.com>
10692
10693         * TreeView.cs: Use dashed lines to connect nodes. Use the
10694         ControlPaint method for drawing the focus rect instead of doing
10695         that in treeview.
10696
10697 2005-05-02  Peter Bartok  <pbartok@novell.com>
10698
10699         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
10700
10701 2005-04-29  Jackson Harper  <jackson@ximian.com>
10702
10703         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
10704         entire image buffer. Just clear the clipping rectangle.
10705
10706 2005-04-29  Jackson Harper  <jackson@ximian.com>
10707
10708         * ThemeWin32Classic.cs: Don't draw list view items that are
10709         outside the clipping rectangle.
10710
10711 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
10712
10713         * ListBox.cs: added horizontal item scroll
10714
10715 2005-04-29  Jackson Harper  <jackson@ximian.com>
10716
10717         * ThemeWin32Classic.cs: Remove some old debug code that was
10718         causing flicker with the new double buffering code.
10719
10720 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
10721
10722         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
10723         behave like combobox and comboboxlist (still not sure if this is
10724         correct though).
10725
10726 2005-04-28  Jackson Harper  <jackson@ximian.com>
10727
10728         * ThemeWin32Classic.cs: Don't fill the middle of progress
10729         bars. This fills areas outside of the clip bounds that don't need
10730         to be filled.
10731
10732 2005-04-28  Jackson Harper  <jackson@ximian.com>
10733
10734         * Control.cs: Don't expose functionality to touch the image buffers.
10735         * ProgressBar.cs:
10736         * ListView.cs: We do not need to (and no longer can) manipulate
10737         the image buffers directly. All of this is handled by Control.
10738
10739 2005-04-28  Peter Bartok  <pbartok@novell.com>
10740
10741         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
10742           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
10743           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
10744
10745 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
10746
10747         * Combobox:
10748                 - Adjust control's height for non-simple comboboxes (bug fix)
10749                 - Remove dead code
10750         * MenuAPI.cs: remove unused var
10751         * ScrollBar.cs: remove unsed var
10752                  
10753         * ListBox.cs: unselect items when clearing
10754
10755 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
10756
10757         * ListControl.cs: honors OnPositionChanged and default Selected Item
10758         * ListBox.cs: unselect items when clearing
10759
10760 2005-04-27  Jackson Harper  <jackson@ximian.com>
10761
10762         * X11Keyboard.cs: Initialize a default keyboard and give a warning
10763         if a "correct" keyboard is not found. This will make us not crash,
10764         but might give some users bad keyboard layouts...seems to be the
10765         same thing rewind does.
10766
10767 2005-04-27  Jackson Harper  <jackson@ximian.com>
10768
10769         * BindingManagerBase.cs: Attach the current/position changed
10770         handlers to their respective events.
10771
10772 2005-04-27  Jackson Harper  <jackson@ximian.com>
10773
10774         * Control.cs: Make sure that the first WM_PAINT does a full draw,
10775         not just a blit.
10776         * ThemeWin32Classic.cs: Don't fill the background for picture
10777         boxes. This could overright user drawing.
10778         * ComboBox.cs: Just fill the clipping rect not the entire client
10779         rect when drawing the background. This prevents pieces of the
10780         image buffer from getting overwritten and is theoretically faster.
10781
10782 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
10783
10784         * ComboBox.cs: Databinding support fixes, fire missing events
10785         * ListControl.cs: implement missing methods and properties, fixes
10786         * ThemeWin32Classic.cs: Databiding support on Drawing
10787         * CheckedListBox.cs: Databinding support fixes, fire missing events
10788         * ListBox.cs: Databinding support fixes, fire missing events
10789         
10790 2005-04-25  Peter Bartok  <pbartok@novell.com>
10791
10792         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
10793
10794 2005-04-25  Jackson Harper  <jackson@ximian.com>
10795
10796         * TreeView.cs: Use the horizontal scrollbars height not width when
10797         determining how much of the client area is available.
10798
10799 2005-04-25  Jackson Harper  <jackson@ximian.com>
10800
10801         * Control.cs: Double buffering is handled differently now. As per
10802         the spec, the extra buffer is created in the WM_PAINT message and
10803         passed down to the control's drawing code.
10804         * GroupBox.cs:
10805         * Label.cs:
10806         * CheckBox.cs:
10807         * ProgressBar.cs:
10808         * RadioButton.cs:
10809         * ColorDialog.cs:
10810         * ComboBox.cs:
10811         * PropertyGridView.cs:
10812         * UpDownBase.cs:
10813         * MessageBox.cs:
10814         * MenuAPI.cs:
10815         * ListView.cs:
10816         * ButtonBase.cs:
10817         * SizeGrip.cs:
10818         * ScrollBar.cs:
10819         * ListBox.cs:
10820         * TrackBar.cs:
10821         * ToolBar.cs:
10822         * PictureBox.cs:
10823         * DateTimePicker.cs:
10824         * StatusBar.cs:
10825         * TreeView.cs: Update to new double buffering system.
10826         * MonthCalendar.cs: Uncomment block, as Capture is now
10827         working. Update to new double buffering
10828         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
10829         * PaintEventArgs.cs: New internal method allows us to set the
10830         graphics object. This is used for double buffering.
10831         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
10832         rectangle. The internal paint_area var has been removed from
10833         StatusBar. The clipping rect should be used instead.
10834         * Theme.cs: Give the PictureBox drawing method a clipping rect.
10835         * TabPage.cs: The RefreshTabs method was removed, so just call the
10836         tab controls Refresh method now.
10837         * TabControl.cs: Update to new double buffering. Make sure the
10838         handle is created before sizing the tab pages, otherwise we will
10839         get stuck in a loop.
10840
10841 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
10842
10843         * LinkLabel.cs: Fix typo, bug #74719; patch
10844           from Borja Sanchez Zamorano
10845
10846 2005-04-22  Jackson Harper  <jackson@ximian.com>
10847
10848         * TreeNode.cs: Implement Handle stuff.
10849         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
10850
10851 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
10852
10853         * DataGridTextBoxColumn.cs: call base constructors, fixes
10854         * GridColumnStylesCollection.cs: missing events, methods, and functionality
10855         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
10856         * DataGridTableStyle.cs: implements create default column styles
10857         * DataGridBoolColumn.cs: which types can handle
10858         * DataGrid.cs: missing methods, fixes, new functionality
10859         * DataGridColumnStyle.cs: fixes
10860
10861 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
10862         * FolderBrowserDialog.cs:
10863         - Use a thread to fill the TreeView
10864         - Adjusted some sizes
10865
10866 2005-04-19  Peter Bartok  <pbartok@novell.com>
10867
10868         * LinkLabel.cs: (Re-)create the pieces when setting the Text
10869           property. Fixes #74360.
10870
10871 2005-04-19  Jackson Harper  <jackson@ximian.com>
10872
10873         * XEventQueue.cs: Lock when getting the lockqueue size.
10874         * PictureBox.cs: Call base OnPaint
10875         
10876 2005-04-19  Peter Bartok  <pbartok@novell.com>
10877
10878         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
10879           messages were no longer being processed (this broke BeginInvoke)
10880
10881           
10882 2005-04-18  Jackson Harper  <jackson@ximian.com>
10883
10884         * TreeView.cs: buglet that caused node images to get drawn
10885         regardless of whether or not they were in the clipping rectangle.
10886
10887 2005-04-18  Jackson Harper  <jackson@ximian.com>
10888
10889         * CurrencyManager.cs: There are four rules for GetItemProperties:
10890         - If the type is an array use the element type of the array
10891         - If the type is a typed list, use the type
10892         - If the list contains an Item property that is not an object, use
10893         that property
10894         - use the first element of the list if there are any elements in
10895         the list.
10896         
10897 2005-04-17  Jackson Harper  <jackson@ximian.oom>
10898
10899         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
10900         click. This handles offsets for scrolling properly and reduces
10901         memory. Also fixed GetNode to not offset now that TopNode works
10902         properly.
10903         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
10904         
10905 2005-04-17  Jackson Harper  <jackson@ximian.com>
10906
10907         * CursorConverter.cs: Initial implementation.
10908
10909 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
10910
10911         * ListControl.cs: work towards complex data binding support on ListControl
10912         * CurrencyManager.cs: work towards complex data binding support on ListControl
10913         * ListBox.cs: work towards complex data binding support on ListControl
10914
10915
10916 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
10917
10918         * GridTableStylesCollection.cs: fixes name and constructor
10919         * DataGridTableStyle.cs: fixes
10920         * DataGridBoolColumn.cs: fixes names and constructors
10921         * DataGrid.cs: define methods and properties. Some init implementations
10922         * DataGridCell.cs: define methods and properties. Some init implementations
10923         * GridTablesFactory.cs: Define methods and properties
10924
10925 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
10926
10927         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
10928         graphics port changes.  We still want the coordinates in global screen
10929         coordinates.
10930
10931 2005-04-14  Jackson Harper  <jackson@ximian.com>
10932
10933         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
10934         check plus minus or checkbox clicks unless those features are enabled.
10935
10936 2005-04-14  Jackson Harper  <jackson@ximian.com>
10937
10938         * TreeView.cs: Add methods for setting the top and bottom visible
10939         nodes. TreeNode::EnsureVisible uses these methods.
10940         * TreeNode.cs: Implement EnsureVisible
10941
10942 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
10943
10944         * Form.cs: Pospone menu assignation if the window has not been created yet
10945         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
10946         size and position
10947
10948 2005-04-12  Jackson Harper  <jackson@ximian.com>
10949
10950         * TreeView.cs: Set the TopNode properly when scrolling
10951         occurs. This has the added benifit of reducing the amount of
10952         walking that needs to be done when drawing. Also removed an old
10953         misleading TODO.
10954         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
10955         
10956 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
10957
10958         * Timer.cs: fixes interval setting when the timer is already enabled
10959         
10960 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
10961
10962         * FolderBrowserDialog.cs: First approach
10963
10964 2005-04-09  Peter Bartok  <pbartok@novell.com>
10965
10966         * FolderBrowserDialog: Added
10967
10968 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
10969
10970         * LinkLabel.cs: move drawing code into the theme
10971         * ThemeWin32Classic.cs: drawing code and painting background bugfix
10972         * Theme.cs: define DrawLinkLabel method
10973
10974 2005-04-05  Jackson Harper  <jackson@ximian.com>
10975
10976         * BindingContext.cs: Use weak references so these bad actors don't
10977         stay alive longer then they need to.
10978
10979 2005-04-05  Jackson Harper  <jackson@ximian.com>
10980
10981         * ListControl.cs: Basic implementation of complex databinding.
10982         * ComboBox.cs:
10983         * ListBox.cs: Add calls to ListControl databinding methods.
10984
10985 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
10986
10987         * FileDialog.cs:
10988           - Don't change PopupButtonState to Normal when the
10989             PopupButton gets pressed several times.
10990           - Renamed ButtonPanel to PopupButtonPanel
10991
10992 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
10993
10994         * ColorDialog.cs: Use cached objects instead of creating them
10995         * LinkLabel.cs: Use cached objects instead of creating them
10996         * Splitter.cs: Use cached objects instead of creating them
10997         * FontDialog.cs: Use cached objects instead of creating them
10998         * PropertyGridView.cs: Use cached objects instead of creating them
10999         * MessageBox.cs: Use cached objects instead of creating them
11000         * FileDialog.cs: Use cached objects instead of creating them
11001         * ThemeWin32Classic.cs: Use cached objects instead of creating them
11002         * TreeView.cs: Use cached objects instead of creating them
11003         
11004 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
11005
11006         * Control.cs: use Equals to compare the font since no == op
11007         * ScrollBar.cs: use Equals to compare the font since no == op
11008
11009 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
11010
11011         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
11012
11013 2005-04-01  Jackson Harper  <jackson@ximian.com>
11014
11015         * Binding.cs: Implement IsBinding.
11016         * BindingManagerBase.cs:
11017         * PropertyManager.cs:
11018         * CurrencyManager.cs: Add IsSuspended property.
11019
11020 2005-04-01  Jackson Harper  <jackson@ximian.com>
11021
11022         * Binding.cs: Had some IsAssignableFrom calls backwards.
11023
11024 2005-04-01  Jackson Harper  <jackson@ximian.com>
11025
11026         * Binding.cs: Handle null data members when pulling data.
11027         * PropertyManager.cs: Handle the data member being a property that
11028         does not exist.
11029
11030 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
11031
11032         * DataGridTextBoxColumn.cs: fixes signature
11033         * DataGrid.cs: calls right constructor
11034
11035 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
11036
11037         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
11038         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
11039         * GridTableStylesCollection.cs: implements GridTableStylesCollection
11040         * DataGridTableStyle.cs: implements DataGridTableStyle
11041         * DataGridBoolColumn.cs: implements DataGridBoolColumn
11042         * DataGridTextBox.cs: implements DataGridTextBox
11043         * DataGridColumnStyle.cs: implements DataGridColumnStyle
11044
11045 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
11046
11047         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
11048
11049 2005-03-29  Peter Bartok  <pbartok@novell.com>
11050
11051         * Application.cs:
11052           - Properly implemented CompanyName property
11053           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
11054             returns a path that includes CompanyName, ProductName and
11055             Version (fixes bug #70330)
11056
11057 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
11058
11059         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
11060           fixes bug #72588.
11061
11062 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
11063
11064         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
11065         
11066           - Added ReadOnly CheckBox
11067           - Further refactoring: moved some code from Open-/SaveFileDialog
11068             to FileDialog
11069
11070 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
11071
11072         * OpenFileDialog.cs: Fixed CheckFileExists
11073         * FileDialog.cs:
11074           Moved FileView and DirComboBox outside FileDialog class.
11075           They can now be used outside FileDialog
11076
11077 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
11078
11079         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
11080         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
11081
11082 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
11083
11084         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
11085           - Added missing CreatePrompt property in SaveDialog
11086           - Overall SaveDialog handling should be better now
11087           - Added non standard ShowHiddenFiles property
11088           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
11089           - Added InitialDirectory and RestoreDirectory support
11090
11091 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
11092
11093         * FileDialog.cs: Made dirComboBox usable
11094
11095 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
11096
11097         * FileDialog.cs: Added Filter support (case sensitiv)
11098
11099 2005-03-24  Jackson Harper  <jackson@ximian.com>
11100
11101         * TabControl.cs: Need a couple more pixels for the lines.
11102
11103 2005-03-23  Jackson Harper  <jackson@ximian.com>
11104
11105         * TabControl.cs: Give the tab page focus when it is selected.
11106
11107 2005-03-23  Jackson Harper  <jackson@ximian.com>
11108
11109         * TabControl.cs: Account for the drawing of tabs borders when
11110         invalidating. If the slider was clicked dont do click detection on
11111         the tabs.
11112
11113 2005-03-23  Jackson Harper  <jackson@ximian.com>
11114
11115         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
11116
11117 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
11118
11119         * CategoryGridEntry.cs: Added
11120         * GridItem.cs: Added helper properties
11121         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
11122         * GridEntry.cs: Updated code for collection
11123         * PropertyGrid.cs: Cleaned up some formatting
11124         * PropertyGridView.cs: Added drop down functionality for enums.
11125         * GridItemCollection.cs: Added enumerator logic
11126         * PropertyGridEntry.cs: Added
11127
11128 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
11129
11130         * FileDialog.cs:
11131           - Removed unnecessary commented code
11132           - Fixed handling for entering the filename manually in the combobox
11133
11134 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
11135
11136         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
11137
11138 2005-03-18  Peter Bartok  <pbartok@novell.com>
11139
11140         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
11141           them being touching the border
11142
11143 2005-03-18  Peter Bartok  <pbartok@novell.com>
11144
11145         * TextControl.cs: Quick hack to center text better
11146
11147 2005-03-18  Peter Bartok  <pbartok@novell.com>
11148
11149         * ControlPaint.cs:
11150           - Don't throw NotImplemented exceptions, just print a notice once
11151             instead (requested by Miguel). This makes running existing SWF
11152             apps a bit easier
11153         * Control.cs:
11154           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
11155           - Added context menu trigger on right click
11156         * Panel.cs: Trigger invalidate on resize
11157         * StatusBar.cs:
11158           - Removed old double-buffer drawing
11159           - Added ResizeRedraw style to force proper update of statusbar
11160         * ListView.cs:
11161           - Removed debug output
11162         * ThemeWin32Classic.cs:
11163           - Fixed drawing of status bar, now draws Text property if there
11164             are no defined panels
11165
11166 2005-03-18  Jackson Harper  <jackson@ximian.com>
11167
11168         * ImageList.cs: When the image stream is set pull all the images
11169         from it.
11170         * ImageListStreamer.cs: Implement reading image list streams.
11171
11172 2005-03-18  Peter Bartok  <pbartok@novell.com>
11173
11174         * ThemeWin32Classic.cs (DrawPictureBox):
11175           - Fixed calculations for centered drawing
11176           - Fixed drawing for normal mode, not scaling the image on normal
11177
11178 2005-03-18  Peter Bartok  <pbartok@novell.com>
11179
11180         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
11181           textbox
11182         * FileDialog.cs:
11183           - Made Open/Save button the accept button for FileDialog
11184           - Tied the cancel button to the IButtonControl cancel button
11185           - Save/Open now properly builds the pathname
11186           - Now handles user-entered text
11187           - Preventing crash on right-click if no item is selected
11188           - Fixed Text property, now uses contents of textbox
11189           - Fixed SelectedText property, now just returns the text part that
11190             is selected in the text box
11191
11192 2005-03-18  Jackson Harper  <jackson@ximian.com>
11193
11194         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
11195         rect, make sure to de-adjust the interior rect after drawing the
11196         tab text.
11197
11198 2005-03-18  Peter Bartok  <pbartok@novell.com>
11199
11200         * MenuAPI.cs: Remove menu *before* executing selected action to
11201           prevent the menu from 'hanging around'
11202           
11203 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
11204
11205         * XplatUIOSX.cs: Implemented WorkingArea property
11206
11207 2005-03-17  Peter Bartok  <pbartok@novell.com>
11208
11209         * XplatUIX11.cs: Fixed menu coord calculations
11210         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
11211           for calculating offsets
11212
11213 2005-03-17  Peter Bartok  <pbartok@novell.com>
11214
11215         * Hwnd.cs: Do not consider menu presence for default client
11216           rectangle location/size
11217         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
11218           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
11219           translation functions
11220         * FileDialog.cs: Fixed (what I presume is a) typo
11221
11222 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
11223
11224         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
11225           X access (avoids X-Async errors)
11226
11227 2005-03-16  Jackson Harper  <jackson@ximian.com>
11228
11229         * TabControl.cs: Raise the SelectedIndexChanged event.
11230
11231 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
11232
11233         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
11234           - Removed vertical ToolBar and replaced it with a custom panel
11235             (desktop and home button already work)
11236           - Added Help button (some controls get resized or relocated then)
11237           - Draw correct text depending on Open or Save.
11238           - Fixed some typos...
11239
11240 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
11241
11242         * ScrollBar.cs:
11243           - Only change Maximum and Minimum when need it (bug fix)
11244
11245 2005-03-15  Peter Bartok  <pbartok@novell.com>
11246
11247         * Form.cs: Use Handle for icon, to trigger creation if
11248           the window does not yet exist
11249         * Control.cs:
11250           - CanSelect: Slight performance improvement
11251           - Focus(): Preventing possible recursion
11252           - Invalidate(): Removed ControlStyle based clear flag setting
11253           - WM_PAINT: fixed logic for calling OnPaintBackground
11254           - WM_ERASEBKGND: Fixed logic, added call to new driver method
11255             EraseWindowBackground if the control doesn't paint background
11256         * XplatUIWin32.cs:
11257           - Moved EraseWindowBackground() method to internal methods
11258           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
11259             is sent via SendMessage on BeginPaint call on Win32
11260         * XplatUIX11.cs:
11261           - Added EraseWindowBackground() method
11262           - No longer sends WM_ERASEBKGND on .Expose, but on call to
11263             PaintEventStart, which more closely matches Win32 behaviour
11264           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
11265           - Fixed SetFocus() to properly deal with client and whole windows
11266         * Hwnd.cs: Added ErasePending property
11267         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
11268         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
11269
11270 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
11271
11272         * XplatUIOSX.cs:
11273           - Fix hard loop when timers exist.
11274           - Fix bugs with middle and right click for 3 button mice.
11275
11276 2005-03-11  Peter Bartok  <pbartok@novell.com>
11277
11278         * XplatUIX11.cs:
11279           - get_WorkingArea: Need to call X directly, GetWindowPos only
11280             returns cached data now
11281           - Added sanity check to GetWindowPos hwnd usage
11282
11283 2005-03-11  Jackson Harper  <jackson@ximian.com>
11284
11285         * BindingManagerBase.cs: This method isn't used anymore as
11286         PullData now updates the data in the control.
11287
11288 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
11289
11290         * Form.cs: fixes menu drawing on X11
11291         * MenuAPI.cs:  fixes menu drawing on X11
11292
11293 2005-03-11  Peter Bartok  <pbartok@novell.com>
11294
11295         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
11296           from Jonathan Gilbert; should fix bug #73606
11297         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
11298           in Screen coordinates. Thanks, Jordi.
11299         * Form.cs: Added missing attribute
11300
11301 2005-03-11  Peter Bartok  <pbartok@novell.com>
11302
11303         * Form.cs:
11304           - Rudimentary Mdi support
11305           - Removed outdated FormParent code
11306           - Implemented lots of missing properties and methods, still missing
11307             transparency support
11308           - Added missing attributes
11309           - Implemented support for MaximumBounds
11310           - Added firing of various events
11311         * XplatUI.cs: Added SetIcon() method
11312         * XplatUIDriver.cs: Added SetIcon() abstract
11313         * XplatUIOSX.cs: Stubbed out SetIcon() method
11314         * XplatUIX11.cs:
11315           - Implemented SetIcon() support
11316           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
11317           - Switched to unix line endings
11318         * XplatUIWin32.cs:
11319           - Made POINT internal so for can access it as part of MINMAX
11320           - Implemented SetIcon() support
11321           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
11322             native Mdi support again, might have to go managed)
11323         * Control.cs: Now fires the StyleChanged event
11324         * MdiClient.cs: Added; still mostly empty
11325
11326 2005-03-10  Peter Bartok  <pbartok@novell.com>
11327
11328         * SaveFileDialog.cs: Added emtpy file
11329
11330 2005-03-08  Peter Bartok  <pbartok@novell.com>
11331
11332         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
11333           in turn triggers OnCreateContro) when creating a handle for the
11334           first time.
11335         * TextControl.cs: Fixed endless loop in certain cases when
11336           replacing the current selection
11337
11338 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
11339
11340         * ScrollBar.cs:
11341           - Honors NewValue changes in Scroll events allowing apps to change it
11342           - Adds First and Last Scroll events
11343           - Fixes Thumb events
11344
11345 2005-03-07  Peter Bartok  <pbartok@novell.com>
11346
11347         * Hwnd.cs: Added DefaultClientRectangle property
11348         * XplatUI.cs: Now using the X11 driver Where() method, which provides
11349           more detailed debug information
11350         * XplatUIX11.cs:
11351           - Fixed size-change feedback loop, where we would pull an old size
11352             off the queue and mistakenly change our window's size to an
11353             earlier value
11354           - Now compressing ConfigureNotify events, to reduce looping and
11355             redraw issues
11356         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
11357           is called
11358
11359 2005-03-07  Jackson Harper  <jackson@ximian.com>
11360
11361         * Binding.cs: Push data pushes from data -> property. Check if the
11362         property is readonly when attempting to set it.
11363
11364 2005-03-07  Jackson Harper  <jackson@ximian.com>
11365
11366         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
11367         instead of IsSubclassOf. Pulling data now sets the value on the
11368         control.
11369         * PropertyManager.cs:
11370         * CurrencyManager.cs: Just need to pull data when updating now,
11371         because PullData will set the value on the control.
11372
11373 2005-03-04  Jackson Harper  <jackson@ximian.com>
11374
11375         * Binding.cs: Implement data type parsing and converting on pulled
11376         data. TODO: Are there more ways the data can be converted?
11377
11378 2005-03-04  Jackson Harper  <jackson@ximian.com>
11379
11380         * Binding.cs: Support <Property>IsNull checks. Also bind to the
11381         controls Validating method so we can repull the data when the
11382         control loses focus.
11383
11384 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
11385
11386         * ColumnHeader.cs:
11387           - Fixes null string format
11388           
11389         * ListView.cs:
11390           - Adds enum type checks
11391           - Fixes redrawing and recalc need after changing some properties
11392           - Fixes on focus_item set after the event
11393           - Fixes adding columns after the control has been created
11394           
11395         * ThemeWin32Classic.cs:
11396           - Fixes CheckBox focus rectangle
11397           - Fixes ColumnHeader drawing
11398
11399
11400 2005-03-03  Jackson Harper  <jackson@ximian.com>
11401
11402         * Binding.cs: Bind to <Property>Changed events so we can detect
11403         when properties are changed and update the data.
11404
11405 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
11406
11407         * ImageList.cs:
11408           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
11409           - Fixes ImageList constructor with ImageList container
11410           - Fixes image scaling (wrong parameters at DrawImage)
11411
11412 2005-02-02  Jackson Harper  <jackson@ximian.com>
11413
11414         * Binding.cs: Make property searches case-insensitive. Eliminate
11415         some duplicated code.
11416
11417 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
11418
11419         * ComboBox.cs:
11420                 - Handle focus event
11421                 - Fix scrollbar events
11422                 - Discard highlighted item if remove it
11423                 - Fixes SelectedItem with strings
11424
11425 2005-03-01  Peter Bartok  <pbartok@novell.com>
11426
11427         * Control.cs:
11428           - Fixed Visible property, now follows (once again) parent chain
11429             to return false if any control in the chain is visible=false
11430           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
11431           - Fixed several places where is_visible instead of Visible was used
11432           - Implemented FIXME related to focus selection when setting focused
11433             control to be invisible
11434
11435         * XplatUIWin32.cs: Now using proper method to find out if window is
11436           visible. Thanks to Jordi for pointing it out
11437
11438 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
11439
11440         * ComboBox.cs: show/hide scrollbar instead of creating it
11441
11442 2005-02-27  Jackson Harper  <jackson@ximian.com>
11443
11444         * CurrencyManager.cs: Add PositionChanged stuff.
11445
11446 2005-02-27  Peter Bartok  <pbartok@novell.com>
11447
11448         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
11449         * XplatUIOSX.cs: Added GetMenuOrigin() stub
11450         * XplatUIWin32.cs: Implemented GetMenuOrigin()
11451         * XplatUIX11.cs:
11452           - Implemented GetMenuDC()
11453           - Implemented GetMenuOrigin()
11454           - Implemented ReleaseMenuDC()
11455           - Implemented generation of WM_NCPAINT message
11456           - Implemented generation and handling of WM_NCCALCSIZE message
11457         * Form.cs: Added debug helper message for Jordi's menu work
11458         * Hwnd.cs:
11459           - Modified ClientRect property; added setter, fixed getter to handle
11460             setting of ClientRect
11461           - Added MenuOrigin property
11462
11463 2005-02-26  Peter Bartok  <pbartok@novell.com>
11464
11465         * XplatUIX11.cs:
11466           - Destroys the caret if a window that's being destroyed contains it
11467           - Ignores expose events coming from the X11 queue for windows that
11468             already are destroyed
11469           - Now uses the proper variable for handling DestroyNotify, before we
11470             marked the wrong window as destroyed
11471           - Improved/added some debug output
11472
11473 2005-02-26  Peter Bartok  <pbartok@novell.com>
11474
11475         * X11Keyboard.cs: Fixes to work on 64bit systems
11476
11477 2005-02-26  Peter Bartok  <pbartok@novell.com>
11478
11479         * Control.cs:
11480           - Now calling OnHandleDestroyed from DestroyHandle()
11481             instead of Dispose()
11482           - Removed bogus call to controls.Remove() from DestroyHandle()
11483
11484 2005-02-26  Peter Bartok  <pbartok@novell.com>
11485
11486         * Control.cs: Properly destroy child windows when our handle is
11487           destroyed
11488
11489 2005-02-25  Peter Bartok  <pbartok@novell.com>
11490
11491         * XplatUI.cs:
11492           - Added 'DriverDebug' define to allow tracing XplatUI API calls
11493           - Alphabetized Static Methods and Subclasses
11494
11495         * XplatUIX11.cs:
11496           - Added XException class to allow custom handling of X11 exceptions
11497           - Created custom X11 error handler, tied into XException class
11498           - Added support for MONO_XEXCEPTIONS env var to allow the user
11499             to either throw an exception on X errors or continue running
11500             after displaying the error
11501           - Added handling of DestroyNotify message
11502           - Added handler for CreateNotify message (still disabled)
11503           - Improved (tried to at least) Where method to provide file and lineno
11504         * X11Structs.cs:
11505           - Added XErrorHandler delegate
11506           - Added XRequest enumeration (to suppor translation of errors)
11507
11508 2005-02-25  Jackson Harper  <jackson@ximian.com>
11509
11510         * PropertyManager.cs: Implement editing features
11511         * CurrencyManager.cs:
11512         * Binding.cs: First attempt at UpdateIsBinding
11513         * BindingManagerBase.cs: Call UpdateIsBinding before
11514         pushing/pulling data.
11515
11516 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
11517
11518         * MenuAPI.cs: Respect disabled items
11519         * ThemeWin32Classic.cs
11520                 - Caches ImageAttributes creation for DrawImageDisabled
11521                 - Fixes vertical menu line drawing
11522                 - Draws disabled arrows in disable menu items
11523
11524 2005-02-24  Peter Bartok  <pbartok@novell.com>
11525
11526         * Hwnd.cs:
11527           - Added UserData property to allow associating arbitrary objects
11528             with the handle
11529           - Fixed leak; now removing Hwnd references from static windows array
11530         * XplatUIWin32.cs:
11531           - Fixed Graphics leak in PaintEventEnd
11532           - Removed usage of HandleData, switched over to Hwnd class
11533         * HandleData.cs: Removed, obsoleted by Hwnd.cs
11534
11535 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
11536
11537         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
11538         * ScrollBar.cs: Fixes bug
11539         * TrackBar.cs: removes death code, clipping, mimize refreshes,
11540          keyboard navigation enhancements
11541
11542 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
11543
11544         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
11545         * GroupBox.cs: Add control styles
11546         * Label.cs: Add control styles
11547         * UpDownBase.cs: Add control styles
11548         * ListBox.cs: Add control styles
11549         * XplatUIWin32.cs: Fixes wrong parameter order
11550
11551
11552 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
11553
11554         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
11555
11556 2005-02-23  Jackson Harper  <jackson@ximian.com>
11557
11558         * PropertyManager.cs: Implement property binding. This doesn't
11559         seem to work yet though as (I think) there are some bugs in
11560         System.ComponentModel.PropertyDescriptor.
11561         * BindingContext.cs: Use new PropertyManager constructor.
11562
11563 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
11564
11565         * ProgressBar.cs: use clip region in ProgressBar
11566         * ThemeWin32Classic.cs: use clip region in ProgressBar
11567
11568 2004-02-22  Jackson Harper  <jackson@ximian.com>
11569
11570         * BindingsCollection.cs: Remove some debug code.
11571
11572 2005-02-22  Jackson Harper  <jackson@ximian.com>
11573
11574         * BindingContext.cs:
11575         * ControlBindingsCollection.cs:
11576         * CurrencyManager.cs:
11577         * Binding.cs:
11578         * BindingManagerBase.cs: Initial implementation
11579         * BindingsCollection.cs: Add an internal contains method that the
11580         BindingManagerBase uses to ensure bindings aren't added twice to
11581         the collection.
11582         * PropertyManager.cs: Stubbed out.
11583         * Control.cs:
11584         * ContainerControl.cs: Hook up databinding
11585         
11586 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
11587
11588         * XplatUIOSX.cs:
11589           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
11590           Fixed Invalidate/Update chain.
11591           Fixed tons of other minor bugs (this is almost a complete rewrite).
11592
11593 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
11594
11595         * ComboBox.cs: do subcontrol creation when the control is created
11596
11597 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
11598
11599         * Label.cs: fixes image drawing (image and imagelist)
11600         * ThemeWin32Classic.cs: cache brushes
11601         
11602 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
11603
11604         * Form.cs: Move menu drawing code to Theme class
11605         * ComboBox.cs: Move ComboBox drawing code to Theme class
11606         * MenuItem.cs: Move menu drawing code to Theme class
11607         * MenuAPI.cs: Move menu drawing code to Theme class
11608         * ThemeWin32Classic.cs: New methods
11609         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
11610         * ListBox.cs: Move Listbox drawing code to Theme class
11611         * Theme.cs: New methods
11612
11613 2005-02-20  Peter Bartok  <pbartok@novell.com>
11614
11615         * Control.cs:
11616           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
11617             only process mnemonics on those)
11618           - Fixed event sequence for key handling; first calling
11619             ProcessKeyEventArgs now
11620         * TextBoxBase.cs:
11621           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
11622             for processing non-character keys
11623           - Fixed WM_CHAR to generate proper event sequence before processing
11624         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
11625           generation
11626
11627 2005-02-19  Peter Bartok  <pbartok@novell.com>
11628
11629         * UserControl.cs: Added TextChanged event; added attributes
11630         * SizeGrip.cs: Implemented resizing and optional display of grip
11631         * Form.cs: Fixed attribute
11632         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
11633           Changed meaning of ScrollWindow bool argument; instead of the
11634           clear attribute (which will be true usually anyway), it gives the
11635           option of moving child controls as well.
11636         * XplatUIX11.cs:
11637           - Changed to match new ScrollWindow argument
11638           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
11639             now handles the implicit parent window a WM puts around us
11640         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
11641           to work)
11642         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
11643         * TreeView.cs: Adjusted to new ScrollWindow arguments
11644
11645 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
11646
11647         * Form.cs: Menu integration with non-client area
11648         * MenuItem.cs: Menu integration with non-client area
11649         * MenuAPI.cs: Menu integration with non-client area
11650
11651 2005-02-18  Peter Bartok  <pbartok@novell.com>
11652
11653         * MethodInvoker.cs: Added
11654         * MdiLayout.cs: Added
11655         * SendKeys.cs: Started implementation
11656         * ErrorIconAlignment.cs: Added
11657
11658 2005-02-18  Peter Bartok  <pbartok@novell.com>
11659
11660         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
11661         * Form.cs: Added handling for Menu-related Non-client messages
11662
11663 2005-02-17  Peter Bartok  <pbartok@novell.com>
11664
11665         * UpDownBase.cs: Fixed typo, compilation errors
11666         * DomainUpDown.cs: Fixed attribute value
11667
11668 2005-02-16  Miguel de Icaza  <miguel@novell.com>
11669
11670         * UpDownBase.cs: Attach entry events.
11671         Propagate events.
11672         Add ForeColor property, Focused, InterceptArrowKeys (interception
11673         does not work yet).
11674
11675 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
11676
11677         * Form.cs:
11678                 - Redraw non client are on Setmenu
11679                 - Calc proper menu starting point
11680
11681 2005-02-17  Peter Bartok  <pbartok@novell.com>
11682
11683         * Application.cs: Fixed message_filter check
11684
11685 2005-02-17  Peter Bartok  <pbartok@novell.com>
11686
11687         * Application.cs: Now calls registered message filters
11688         * DockStyle.cs: Fixed attribute
11689         * Form.cs: Fixed attribute
11690         * Menu.cs: Fixed attribute
11691         * ToolTip.cs: Fixed attribute
11692         * TreeNode.cs: Added missing attributes and arranged in regions
11693         * PropertyGrid.cs: Fixed signatures
11694         * TreeNodeCollection.cs: Added attributes
11695         * Splitter.cs: Added missing attributes; arranged into regions
11696         * TabPage.cs: Added missing attributes; arranged into regions
11697         * TextBoxBase.cs: Added missing attributes
11698         * TextBox.cs: Added missing attributes
11699         * ArrangeDirection.cs: Added missing attributes
11700         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
11701         * ToolBarButton.cs: Fixed attributes
11702         * AnchorStyles.cs: Fixed attribute
11703         * TrackBar.cs: Fixed attributes
11704         * TabControl.cs: Added missing attributes and arranged into regions
11705         * ToolBar.cs: Fixed attribute
11706         * StatusBar.cs: Fixed signature, organized into regions and added
11707           attributes
11708         * StatusBarPanel.cs: Fixed attributes
11709         * ContentsResizedEventArgs.cs: Implemented
11710         * ContentsResizedEventHandler.cs: Implemented
11711         * DateBoldEventArgs.cs: Implemented
11712         * DateBoldEventHandler.cs: Implemented
11713         * UpDownEventArgs.cs: Implemented
11714         * UpDownEventHandler.cs: Implemented
11715         
11716 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
11717
11718         * Form.cs: first Menu NC refactoring
11719         * MenuAPI.cs: first Menu NC refactoring
11720         
11721 2005-02-16  Peter Bartok  <pbartok@novell.com>
11722
11723         * ImeMode.cs: Added missing attributes
11724         * Menu.cs: Fixed attribute
11725         * GroupBox.cs: Fixed attribute
11726         * Label.cs: Fixed attribute
11727         * ColorDialog.cs (RunDialog): Removed TODO attribute
11728         * ComboBox.cs: Fixed attributes
11729         * ListControl.cs: Added missing attributes
11730         * PropertyGrid.cs: Fixed attributes
11731         * Control.cs: Fixed attributes
11732         * ListViewItem.cs: Added TypeConverter attribute
11733         * NotifyIcon.cs: Fixed attributes
11734         * ListView.cs: Fixed attributes
11735         * ButtonBase.cs: Fixed attribute
11736         * ImageList.cs: Added missing attributes
11737         * ContainerControl.cs: Fixed signature
11738         * CheckedListBox.cs: Fixed attribute; added missing attributes
11739         * Panel.cs: Fixed attributes
11740         * PropertyTabChangedEventArgs.cs: Added missing attribute
11741         * PropertyValueChangedEventArgs.cs: Added missing attribute
11742         * Binding.cs: Fixed attribute
11743         * ListViewItemConverter: Implemented ListViewSubItemConverter class
11744         * ListBox.cs: Fixed attribute; added missing attributes;
11745         * ScrollableControl.cs: Added missing attributes
11746         * PictureBox.cs: Added missing attributes; implemented missing property
11747         * DateTimePicker.cs: Added missing attributes
11748         * Theme.cs (ToolWindowCaptionHeight): Fixed type
11749         * MonthCalendar.cs: Fixed attributes
11750         * StatusBarPanel.cs: Added missing attributes
11751         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
11752
11753 2005-02-16  Peter Bartok  <pbartok@novell.com>
11754
11755         * TextBoxBase.cs: The previous method to enforce height yet remember
11756           the requested high was less than ideal, this is an attempt to do
11757           it better.
11758         * Control.cs: Added comment about possible problem
11759         * Copyright: Updated format
11760         * GridItemType.cs: Fixed swapped values
11761
11762 2005-02-15  Jackson Harper  <jackson@ximian.com>
11763
11764         * BaseCollection.cs: Use property so we never access an
11765         uninitialized list. Also initialize the list in the property.
11766
11767 2005-02-15  Peter Bartok  <pbartok@novell.com>
11768
11769         * GroupBox.cs (ProcessMnemonic): Implemented
11770         * Label.cs (ProcessMnemonic): Implemented
11771         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
11772           hotkeys
11773
11774 2005-02-15  Peter Bartok  <pbartok@novell.com>
11775
11776         * RadioButton.cs (ProcessMnemonic): Implemented
11777         * CheckBox.cs (ProcessMnemonic): Implemented
11778         * Control.cs:
11779           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
11780             handling
11781           - Added internal method to allow calling ProcessMnemonic from other
11782             controls
11783         * ContainerControl.cs:
11784           - Started support for handling validation chain handling
11785           - Implemented ProcessMnemonic support
11786           - Added Select() call to Active, to make sure the active control
11787             receives focus
11788         * Form.cs: Setting toplevel flag for Forms (this was lost in the
11789           FormParent rewrite)
11790         * ThemeWin32Classic.cs:
11791           - DrawCheckBox(): Fixed stringformat to show hotkeys
11792           - DrawRadioButton(): Fixed stringformat to show hotkeys
11793         * CommonDialog.cs: Removed WndProc override, not needed
11794
11795 2005-02-14  Peter Bartok  <pbartok@novell.com>
11796
11797         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
11798           missed those in the rewrite
11799
11800 2005-02-14  Miguel de Icaza  <miguel@novell.com>
11801
11802         * NumericUpDown.cs (Increment, ToString): Add.
11803         (DecimalPlaces): implement.
11804         
11805         Add attributes.
11806         
11807         * UpDownBase.cs: Add the designer attributes.
11808
11809 2005-02-13  Peter Bartok  <pbartok@novell.com>
11810
11811         * Panel.cs: Removed border_style, now in Control
11812         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
11813           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
11814
11815 2005-02-13  Peter Bartok  <pbartok@novell.com>
11816
11817         * MouseButtons.cs: Added missing attributes
11818         * XplatUIStructs.cs: Added enumeration for title styles
11819         * LeftRightAlignment.cs: Added missing attributes
11820         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
11821           it compatible with Graphics.FromHwnd()
11822         * SelectedGridItemChangedEventArgs.cs: Fixed property type
11823         * Keys.cs: Added missing attributes
11824         * SelectionRange.cs: Added missing attributes
11825         * SelectionRangeConverter.cs: Added
11826         * XplatUI.cs:
11827           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
11828             ReleaseMenuDC methods
11829           - Renamed ReleaseWindow to UngrabWindow
11830           - Added proper startup notice to allow version identification
11831         * Form.cs:
11832           - Added missing attributes
11833           - Removed FormParent concept
11834         * Label.cs: Removed border_style field, now in Control
11835         * RadioButton.cs: Now properly selects RadioButton when focus is
11836           received
11837         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
11838         * Control.cs:
11839           - Added missing attributes
11840           - Added borderstyle handling
11841           - Removed FormParent concept support
11842           - Fixed calls to XplatUI to match changed APIs
11843           - Fixed bug that would case us to use disposed Graphics objects
11844           - Removed unneeded internal methods
11845           - PerformLayout(): Fixed to handle DockStyle.Fill properly
11846           - SelectNextControl(): Fixed to properly check common parents
11847         * TextBoxBase.cs: Removed border_style field (now in Control)
11848         * MessageBox.cs:
11849           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
11850             fixed calculations for form size
11851           - Added support for localized strings and icons
11852           - Improved form size calculations, added border
11853         * ListView.cs: Removed border_style field (now in Control)
11854         * X11Structs.cs: Moved several structs from X11 driver here
11855         * X11Keyboard.cs: Changed debug message
11856         * Application.cs: Removed FormParent concept support
11857         * CommonDialog.cs:
11858           - Resetting end_modal flag
11859           - Removed FormParent concept support
11860         * NativeWindow.cs: Removed FormParent concept support
11861         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
11862           Client area and Non-Client whole window to allow support for WM_NC
11863           messages
11864         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
11865           prevent using it until it supports Hwnd as per Geoff Norton's request
11866         * ToolBar.cs: Fixed drawing, was not doing proper drawing
11867         * PictureBox.cs: Removed border_style field, now in Control
11868         * XplatUIWin32.cs: Added new driver methods
11869
11870 2005-02-12  Peter Bartok  <pbartok@novell.com>
11871
11872         * OpacityConverter.cs: Implemented
11873         * Hwnd.cs: Internal class to support drivers that need to emulate
11874           client area/non-client area window behaviour
11875
11876 2005-02-11  Peter Bartok  <pbartok@novell.com>
11877
11878         * KeysConverter.cs: Implemented
11879
11880 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
11881
11882         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
11883         * LinkLabel: Added missing attributes
11884         * MainMenu.cs: fixes ToString
11885         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
11886         * ListBox.cs: fixes event position
11887         * TrackBar.cs: adds missing attributes and events
11888         
11889 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
11890
11891         * MenuItem.cs: Use SystemInformation and bug fixes
11892         * MenuAPI.cs: Use SystemInformation and bug fixes
11893
11894 2005-02-09  Jackson Harper  <jackson@ximian.com>
11895
11896         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
11897         their keystate otherwise things like VK_MENU get stuck "on".
11898
11899 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
11900
11901         * ListBox.cs: Fixes AddRange bug
11902         
11903 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
11904
11905         * ProgressBar.cs
11906                 - Add missing attributes
11907                 - Add missing method
11908                 
11909         * CheckedListBox.cs: Added missing attributes
11910                 - Add missing attributes
11911                 - Remove extra method
11912         
11913         * ComboBox.cs: Added missing attributes
11914         * VScrollBar.cs: Added missing attributes
11915         * ScrollBar.cs:  Added missing attributes
11916         * ListBox.cs: Fixes signature, add missing consts
11917         * LinkArea.cs:   Added missing attributes
11918         
11919
11920 2005-02-08  Peter Bartok  <pbartok@novell.com>
11921
11922         * Menu.cs: Added missing attributes
11923         * MainMenu.cs: Added missing attributes
11924         * GroupBox.cs: Added missing attributes
11925         * Label.cs: Added missing attributes
11926         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
11927         * ColorDialog.cs:
11928           - Added Instance and Options properties
11929           - Added missing attributes
11930         * Cursor.cs: Made Serializable
11931         * NotifyIcon: Added missing attributes
11932         * MenuItem.cs: Added missing attributes
11933         * TextBoxBase.cs: Implemented AppendText() and Select() methods
11934         * Panel.cs: Added Missing attributes
11935         * MonthCalendar.cs: Fixed CreateParams
11936
11937 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
11938         
11939         * LinkLabel.cs:
11940                 - Fixes signature
11941                 - Fixes issues with links
11942                 - Adds the class attributes
11943
11944 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
11945         
11946         * ComboBox.cs:
11947                 - Fixes button when no items available in dropdown
11948                 - Fixes repainting problems
11949                 - Adds the class attributes
11950                 
11951 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
11952
11953         * XplatUIOSX.cs: Detect the menu bar and title bar height from
11954         the current theme.  Cache these on startup.
11955
11956 2005-02-07  Jackson Harper  <jackson@ximian.com>
11957
11958         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
11959         the scrollbar buttons when they are depressed.
11960
11961 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
11962
11963         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
11964         Get the display size from the main displayid.  We currently dont
11965         support multiple display configurations.
11966
11967 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
11968
11969         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
11970
11971 2005-02-07  Miguel de Icaza  <miguel@novell.com>
11972
11973         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
11974
11975 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
11976
11977         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
11978
11979 2005-02-04  Jackson Harper  <jackson@ximian.com>
11980
11981         * ThemeWin32Classic.cs: Respect the clipping rect when
11982         drawing. Only fill the intersection of clips and rects so there
11983         isn't a lot of large fills.
11984         * ScrollBar.cs: Pass the correct clipping rect to the theme
11985         engine. Remove some debug code.
11986
11987 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
11988         
11989         * DateTimePicker.cs:
11990                 - Fixed crash on DateTime.Parse, use Constructor instead
11991
11992 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
11993         
11994         * MenuItem.cs:
11995         * MenuAPI.cs:
11996                 - Owner draw support (MeasureItem and DrawItem)
11997
11998 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
11999         
12000         *  Menu.cs:
12001                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
12002                 - Fixes MenuItems.Add range
12003         * MenuItem.cs:
12004                 - MergeMenu and Clone and CloneMenu functions
12005
12006 2005-02-03  Jackson Harper  <jackson@ximian.com>
12007
12008         * ScrollBar.cs: Make abstract
12009         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
12010         is abstract.
12011
12012 2005-02-03  Jackson Harper  <jackson@ximian.com>
12013
12014         * ScrollBar.cs: First part of my scrollbar fixups. This removes
12015         all the unneeded refreshes and uses invalidates with properly
12016         computed rects.
12017
12018 2005-02-03  Peter Bartok  <pbartok@novell.com>
12019
12020         * ComponentModel.cs: Added
12021         * IDataGridEditingService.cs: Added
12022         * Timer.cs: Added missing attributes
12023         * ToolTip.cs: Added missing attributes
12024
12025 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
12026
12027         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
12028
12029 2005-02-03  Peter Bartok  <pbartok@novell.com>
12030
12031         * ListBox.cs: Added missing attributes
12032
12033 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
12034         
12035         * ListBox.cs:
12036                 - Fixes font height after font change
12037                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
12038                 
12039 2005-02-02  Peter Bartok  <pbartok@novell.com>
12040
12041         * HandleData.cs: Introduced static methods to allow class
12042           to be more self-contained and track it's own HandleData objects
12043         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
12044           HandleData to use new static methods
12045
12046 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
12047
12048         * Combobox.cs:
12049                 - Fixes default size and PreferredHeight
12050                 - Missing events
12051                 - ObjectCollection.Insert implementation
12052                 
12053         * ListControl.cs
12054                 - Fixes signature
12055         * ListBox.cs:
12056                 - Several fixes
12057                 - ObjectCollection.Insert implementation
12058                 - No selection after clean
12059                 - Small fixes
12060
12061 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
12062
12063         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
12064
12065 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
12066
12067         * Combobox.cs:
12068                 - Caches ItemHeight calculation for OwnerDrawVariable
12069                 - Handles dropdown properly
12070                 - Fixes several minor bugs
12071
12072 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
12073
12074         * ListBox.cs:
12075                 - Fixes 71946 and 71950
12076                 - Fixes changing Multicolumn on the fly
12077                 - Fixes keyboard navigation on Multicolumn listboxes
12078
12079 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
12080         
12081         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
12082         crash reporter log.
12083
12084 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
12085
12086         * XplatUIOSX.cs: Allow applications to actually exit.
12087
12088 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
12089
12090         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
12091         their parent at creation time rather than lazily later.  Fixes a major
12092         regression we were experiencing.
12093
12094 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
12095
12096         * ThemeWin32Classic.cs: more date time picker painting fixes
12097         * DateTimePicker.cs: more monthcalendar drop down fixes
12098         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
12099
12100 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
12101
12102         * ScrollBar.cs:
12103                 - When moving the thumb going outside the control should stop the moving
12104                 - Adds the firing of missing events
12105                 - Fixes no button show if Size is not specified
12106                 - End / Home keys for keyboard navigation
12107
12108 2005-01-30  Peter Bartok  <pbartok@novell.com>
12109
12110         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
12111           sanity check to prevent theoretical loop
12112         * XplatUIWin32.cs (SetVisible): Removed debug output
12113         * XplatUIX11.cs (SystrayChange): Added sanity check
12114         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
12115         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
12116           behaviour, valid until the X11 client window rewrite is done
12117         * TextBox.cs (ctor): Setting proper default foreground and background
12118           colors
12119
12120 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
12121
12122         * Theme: Added DrawDateTimePicker to interface
12123         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
12124         * DateTimePicker.cs: Created (still needs keys and painting code)
12125         * DateTimePickerFormat.cs: added
12126         * MonthCalendar.cs: fixed CreateParams for popup window mode
12127           
12128 2005-01-29  Peter Bartok  <pbartok@novell.com>
12129
12130         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
12131           this should also the calculations for ligher/darker
12132         * Theme.cs: Fixed defaults for ScrollBar widths/heights
12133
12134 2005-01-29  Peter Bartok  <pbartok@novell.com>
12135
12136         * ArrangeDirection.cs: Added
12137         * ArrangeStartingPositon.cs: Added
12138         * SystemInformation.cs: Implemented
12139         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12140           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
12141           used by SystemInformation class
12142         * X11Strucs.cs: Added XSizeHints structure
12143         * MenuAPI.cs:
12144           - Fixed CreateParams to make sure the menu window is always visible
12145           - TrackPopupMenu: Added check to make sure we don't draw the
12146             menu offscreen
12147
12148 2005-01-29  Peter Bartok  <pbartok@novell.com>
12149
12150         * HandleData.cs: Added method for altering invalid area
12151         * TextBoxBase.cs: Implemented TextLength
12152
12153 2005-01-28  Peter Bartok  <pbartok@novell.com>
12154
12155         * XplatUIX11.cs: Improvement over last patch, not sending
12156           the WM_PAINT directly anymore, instead we scroll any pending
12157           exposed areas and let the system pick out the WM_PAINT later
12158
12159 2005-01-28  Peter Bartok  <pbartok@novell.com>
12160
12161         * SWF.csproj: Deleted, no longer used. Instead,
12162           Managed.Windows.Forms/SWF.csproj should be used
12163         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
12164           directly, to avoid a potential race condition with the next
12165           scroll
12166
12167 2005-01-28  Peter Bartok  <pbartok@novell.com>
12168
12169         * XplatUI.cs: Made class internal
12170
12171 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
12172
12173         * CheckedListBox.cs:
12174                 - Draw focus
12175                 - Fixed Drawing
12176                 - Missing methods and events
12177
12178 2005-01-27  Peter Bartok  <pbartok@novell.com>
12179
12180         * Application.cs (Run): Don't use form if we don't have one
12181
12182 2005-01-27  Peter Bartok  <pbartok@novell.com>
12183
12184         * TextBoxBase.cs (get_Lines): Fixed index off by one error
12185
12186 2005-01-27  Peter Bartok  <pbartok@novell.com>
12187
12188         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
12189         * GridItem.cs: Added; Patch by Jonathan S. Chambers
12190         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
12191         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
12192         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
12193         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
12194         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12195         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
12196         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12197         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12198         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12199         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
12200
12201 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
12202
12203         * Combobox.cs:
12204                 - Draw focus on Simple Combobox
12205                 - Fixes drawing issues
12206                 - fixes 71834
12207
12208 2005-01-27  Peter Bartok  <pbartok@novell.com>
12209
12210         * Form.cs:
12211           - Place window in default location, instead of hardcoded 0/0
12212           - Send initial LocationChanged event
12213         * Control.cs:
12214           - UpdateBounds after creation to find out where the WM placed us
12215           - Make sure that if the ParentForm changes location the Form
12216             is notified
12217         * XplatUIX11.cs: XGetGeometry will not return the coords relative
12218             to the root, but to whatever the WM placed around us.
12219             Translate to root coordinates before returning toplevel
12220             coordinates
12221         * XplatUIWin32.cs: Removed debug output
12222         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
12223           flag to GetWindowPos, to allow translation of coordinates on X11
12224
12225 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
12226
12227         * ListBox.cs: connect LostFocus Event
12228
12229 2005-01-27  Peter Bartok  <pbartok@novell.com>
12230
12231         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
12232           XplatUIX11.cs: Extended the Systray API
12233         * Form.cs: Removed debug output
12234         * Application.cs: Fixed focus assignment, always need to call
12235           XplatUI.Activate() since Form.Activate() has rules that may
12236           prevent activation
12237         * NotifyIcon.cs: Should be complete now
12238         * ToolTip.cs: Worked around possible timer bug
12239
12240 2005-01-27  Jackson Harper  <jackson@ximian.com>
12241
12242         * TabControl.cs:
12243         - Only invalidate the effected tabs when the
12244         selected index changes. This reduces drawing and gets rid of some
12245         flicker.
12246         - Only refresh if the tabs need to be shifted, otherwise only
12247         invalidate the slider button.
12248         - On windows the tabs are not filled to right if the slider is
12249         visible.
12250         
12251 2005-01-27  Jackson Harper  <jackson@ximian.com>
12252
12253         * TabControl.cs: Only refresh on mouseup if we are showing the
12254         slider. Also only invalidate the button whose state has changed.
12255
12256 2005-01-26  Peter Bartok  <pbartok@novell.com>
12257
12258         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
12259         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
12260           and SystrayRemove() methods
12261         * XplatUIOSX.cs: Stubbed Systray methods
12262         * XplatUIX11.cs:
12263           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
12264             methods
12265           - Fixed broken XChangeProperty calls (marshalling messed up things)
12266         * X11Structs.cs: Added enums and structs required for Size hinting
12267         * NotifyIcon.cs: Added & implemented
12268
12269 2005-01-26  Jackson Harper  <jackson@ximian.com>
12270
12271         * TabControl.cs: Space vertically layed out tabs properly.
12272
12273 2005-01-26  Peter Bartok  <pbartok@novell.com>
12274
12275         * Form.cs (CreateClientParams): Always set the location to 0,0
12276           since we're a child window.
12277
12278         * Control.cs (SetVisibleCore): Always explicitly setting the location
12279           of a toplevel window, apparently X11 doesn't like to move windows
12280           while they're not mapped.
12281
12282 2005-01-26  Jackson Harper  <jackson@ximian.com>
12283
12284         * TabControl.cs: Implement FillToRight size mode with vertically
12285         rendered tabs.
12286
12287 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
12288
12289         * ControlPaint.cs, ThemeWin32Classic.cs
12290                 - Fixes DrawFocusRectangle
12291
12292 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
12293
12294         * MenuAPI.cs:
12295                 - MenuBar tracking only starts when item is first clicked
12296                 - Fixes menu hidding for multiple subitems
12297                 - Unselect item in MenuBar when item Executed
12298                 - Fixes bug 71495
12299
12300 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
12301
12302         * ListControl.cs:
12303                 - IsInputKey for ListBox
12304         * ListBox.cs:
12305                 - Focus item
12306                 - Shift and Control item selection
12307                 - Implement SelectionMode.MultiExtended
12308                 - Fixes RightToLeft
12309         * ComboBox.cs:
12310                 - IsInputKey implemented
12311                 - Do not generate OnTextChangedEdit on internal txt changes
12312                 
12313 2005-01-23  Peter Bartok  <pbartok@novell.com>
12314
12315         * AccessibleObject.cs: Partially implemented Select()
12316         * MonthCalendar.cs: Added missing attributes and events
12317         * Form.cs: Fixed CreateParams behaviour, now controls derived from
12318           form can properly override CreateParams.
12319         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12320           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
12321           Control performs Invalidate & Update
12322         * NativeWindow (CreateHandle): Added special handling for Form
12323           and Form.FormParent classes to allow overriding of From.CreateParams
12324         * Control.cs:
12325           - ControlNativeWindow: Renamed 'control' variable to more intuitive
12326             name 'owner'
12327           - ControlNativeWindow: Added Owner property
12328           - Removed usage of Refresh() on property changes, changed into
12329             Invalidate(), we need to wait until the queue is processed for
12330             updates, direct calls might cause problems if not all vars for
12331             Paint are initialized
12332           - Added call to UpdateStyles() when creating the window, to set any
12333             styles that CreateWindow might have ignored.
12334           - Added support for Form CreateParent overrides to UpdateStyles()
12335         * MessageBox.cs: Removed no longer needed FormParent override stuff,
12336           CreateParams are now properly overridable
12337         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
12338           CreateParams are now properly overridable
12339
12340 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
12341
12342         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
12343         OnTextBoxChanged.
12344
12345         Capture LostFocus and OnTextBoxChanged.  The later introduces a
12346         recursive invocation that I have not figured out yet.
12347
12348         Reset the timer when not using (it was accumulating).
12349
12350
12351         (OnTextBoxChanged): Set UserEdit to true here to track whether the
12352         user has made changes that require validation.
12353
12354         Reset changing to avoid loops.
12355
12356 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
12357
12358         * NumericUpDown.cs: Display value at startup.
12359
12360         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
12361         ValidateEditText.
12362
12363         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
12364         filled in.  Added some basic parsing of text.
12365
12366         Still missing the OnXXX method overrides, and figuring out the
12367         events that must be emitted.
12368
12369         * UpDownBase.cs: Handle UserEdit on the Text property.
12370         
12371 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
12372
12373         * ComboBox.cs:
12374           - Fixes IntegralHeight
12375           - ToString method
12376
12377 2005-01-21  Jackson Harper  <jackson@ximian.com>
12378
12379         * TabControl.cs: Set the SelectedIndex property when SelectedTab
12380         is set so that the page visibility is updated and the tabs are
12381         sized correctly.
12382
12383 2005-01-21  Jackson Harper  <jackson@ximian.com>
12384
12385         * TabControl.cs: Use cliping rectangle for blitting. Give the
12386         theme the clipping rect so we can do clipping while
12387         drawing. Remove some debug code.
12388
12389 2005-01-21  Jackson Harper  <jackson@ximian.com>
12390
12391         * TabPage.cs: Add a new method so tab pages can force the tab
12392         control to recalculate the tab page sizes.
12393         * TabControl.cs: UpdateOwner needs to make the tab control recalc
12394         sizes.
12395
12396 2005-01-20  Jackson Harper  <jackson@ximian.com>
12397
12398         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
12399
12400 2005-01-20  Jackson Harper  <jackson@ximian.com>
12401
12402         * TreeView.cs: Set the bounds for nodes properly. They were
12403         getting screwed up when checkboxes were not enabled, but images
12404         were.
12405
12406 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
12407
12408         * ListBox.cs:
12409                 - Owner draw support
12410                 - Fixes
12411                 
12412 2005-01-20  Jackson Harper  <jackson@ximian.com>
12413
12414         * XplatUIStructs.cs: More misc keys
12415         * X11Keyboard.cs: Ignore some control keys.
12416
12417 2005-01-20  Jackson Harper  <jackson@ximian.com>
12418
12419         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
12420         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
12421
12422 2005-01-19  Peter Bartok  <pbartok@novell.com>
12423
12424         * Control.cs: Un-selecting the control when it is loosing focus
12425
12426 2005-01-19  Jackson Harper  <jackson@ximian.com>
12427
12428         * TreeView.cs: Hook up to the text controls leave event so we can
12429         end editing when the users clicks outside the text box.
12430         
12431 2005-01-19  Jackson Harper  <jackson@ximian.com>
12432
12433         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
12434         get set in the conversion array.
12435
12436 2005-01-19  Peter Bartok  <pbartok@novell.com>
12437
12438         * Application.cs (ModalRun): Added a call to CreateControl to ensure
12439           focus is properly set
12440         * Button.cs:
12441           - Added missing attributes
12442           - removed styles, those are already set in the base class
12443         * ButtonBase.cs:
12444           - Added missing attributes
12445           - Added clip window styles
12446         * CheckBox.cs: Added missing attributes
12447         * CommonDialog.cs:
12448           - FormParentWindow.CreateParams: Added required clip styles
12449         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
12450           also filters modifier keys
12451         * MessageBox.cs:
12452           - Added assignment of Accept and Cancel button to enable Enter
12453             and Esc keys in MessageBox dialogs
12454           - FormParentWindow.CreateParams: Added required clip styles
12455         * RadioButton.cs: Added missing attributes
12456         * TextControl.cs: No longer draws selection if control does not
12457           have focus
12458         * TextBoxBase.cs:
12459           - Now draws simple rectangle around test area to make it obvious
12460             there's a control. This is a hack until we properly support borders
12461           - A few simple fixes to support selections better, now erases selected
12462             text when typing, and resets selection when using movement keys
12463
12464 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
12465
12466         * UpDownBase.cs: Added some new properties.
12467
12468         * DomainUpDown.cs: Implement a lot to get my test working.
12469
12470 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
12471
12472         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
12473
12474 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
12475
12476         * OSXStructs (WindowAttributes): Fixed csc complaints
12477
12478 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
12479
12480         * XplayUIOSX.cs:
12481           OSXStructs.cs: Initial refactor to move enums and consts into
12482           OSXStructs and use them in the driver for greater readability.
12483
12484 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
12485
12486         * XplatUIOSX.cs: Initial support for Standard Cursors.
12487         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
12488
12489 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
12490
12491         * ComboBox.cs: ability to change style when the ctrl is already
12492         created, missing methods and events, bug fixes, signature fixes
12493
12494 2005-01-19  Peter Bartok  <pbartok@novell.com>
12495
12496         * Cursors.cs (ctor): Added ctor to fix signature
12497
12498 2005-01-18  Peter Bartok  <pbartok@novell.com>
12499
12500         * Button.cs: Implemented DoubleClick event
12501         * ButtonBase.cs:
12502           - Fixed keyboard handling to behave like MS, where the press of
12503             Spacebar is equivalent to a mousedown, and the key release is
12504             equivalent to mouseup. Now a spacebar push will give the same
12505             visual feedback like a mouse click.
12506           - Added missing attributes
12507           - Added ImeModeChanged event
12508           - Added support for generating DoubleClick event for derived classes
12509         * CheckBox.cs:
12510           - Implemented DoubleClick event
12511           - Added missing attributes
12512         * CommonDialog.cs: Added missing attribute
12513         * ContextMenu.cs: Added missing attributes
12514         * RadioButton.cs:
12515           - AutoChecked buttons do not allow to be unselected when clicked
12516             (otherwise we might end up with no selected buttons in a group)
12517           - Added missing attributes
12518           - Implemented DoubleClickEvent
12519         * ThreadExceptionDialog.cs: Enabled TextBox code
12520
12521 2005-01-18  Peter Bartok  <pbartok@novell.com>
12522
12523         * Form.cs: Removed debug output
12524         * Button.cs: Added support for DoubleClick method
12525
12526 2005-01-18  Peter Bartok  <pbartok@novell.com>
12527
12528         * Form.cs:
12529           - Added method to parent window that allows triggering size
12530             calculations when a menu is added/removed
12531           - set_Menu: Cleaned up mess from early days of Form and Control,
12532             now properly triggers a recalc when a menu is added/removed
12533           - Added case to select form itself as focused form if no child
12534             controls exist
12535           - Added PerformLayout call when showing dialog, to ensure properly
12536             placed controls
12537         * Control.cs:
12538           - Select(): Made internal so Form can access it
12539           - Focus(): Only call Xplat layer if required (avoids loop), and sets
12540             status
12541         * Application.cs (Run): Removed hack and calls PerformLayout instead
12542           to trigger calculation when Form becomes visible
12543
12544 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
12545
12546         * ComboBox.cs: fixes for ownerdraw
12547
12548 2005-01-18  Peter Bartok  <pbartok@novell.com>
12549
12550         * TextControl.cs:
12551           - Sentinel is no longer static, each Document gets it's own, this
12552             avoids locking or alternatively overwrite problems when more
12553             than one text control is used simultaneously.
12554           - Switched to use Hilight and HilightText brushes for text selection
12555
12556         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
12557
12558 2005-01-18  Peter Bartok  <pbartok@novell.com>
12559
12560         * Control.cs:
12561           - Hooked up the following events:
12562                 o ControlAdded
12563                 o ControlRemoved
12564                 o HandleDestroyed
12565                 o ImeModeChanged
12566                 o ParentChanged
12567                 o TabStopChanged
12568                 o Invalidated
12569                 o SystemColorsChanged
12570                 o ParentFontChanged
12571                 o Move
12572           - Removed debug output
12573           - Added a call to the current theme's ResetDefaults when a color change
12574             is detected
12575         * Form.cs: Now setting the proper ImeMode
12576         * Theme.cs: Defined a method to force recreation of cached resources
12577           and rereading of system defaults (ResetDefaults())
12578         * ThemeWin32Classic.cs: Added ResetDefaults() stub
12579
12580 2005-01-17  Peter Bartok  <pbartok@novell.com>
12581
12582         * Control.cs: Added missing attributes
12583
12584 2005-01-17  Jackson Harper  <jackson@ximian.com>
12585
12586         * TreeNode.cs: Implement editing. Add missing properties selected
12587         and visible.
12588         * TreeView.cs: Implement node editing. Also some fixes to use
12589         Invalidate (invalid area) instead of Refresh when selecting.
12590
12591 2005-01-17  Peter Bartok  <pbartok@novell.com>
12592
12593         * Control.cs:
12594           - Implemented InvokeGotFocus() method
12595           - Implemented InvokeLostFocus() method
12596           - Implemented InvokePaint() method
12597           - Implemented InvokePaintBackground() method
12598           - Implemented InvokeClick() method
12599           - Implemented FindForm() method
12600           - Implemented RectangleToClient() method
12601           - Implemented ClientToRectangle() method
12602           - Implemented ResetBackColor() method
12603           - Implemented ResetCursor() method
12604           - Implemented ResetFont() method
12605           - Implemented ResteForeColor() method
12606           - Implemented ResetImeMode() method
12607           - Implemented ResetLeftToRight() method
12608           - Implemented ResetText() method
12609           - Implemented Scale() methods
12610           - Implemented ScaleCore() method
12611           - Implemented Update() method
12612           - Removed unused variables
12613           - Stubbed AccessibilityNotifyClients and
12614             ControlAccessibleObject.NotifyClients() methods (dunno what to do
12615             with those yet)
12616           - Now setting proper default for RightToLeft property
12617           - Fixed bug in SetClientSizeCore that would cause windows to get
12618             really big
12619           - Now sending Click/DoubleClick events
12620           - Now selecting controls when left mouse button is clicked on
12621             selectable control
12622         * AccessibleEvents.cs: Added
12623         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
12624         * XplatUIOSX.cs: Stubbed UpdateWindow() method
12625         * XplatUIWin32.cs: Implemented UpdateWindow() method
12626         * XplatUIX11.cs: Implemented UpdateWindow() method
12627         * Form.cs: Removed stray semicolon causing CS0162 warning
12628         * ThemeWin32Classic.cs: Fixed unused variable warnings
12629         * ScrollableControl.cs: Now calls base method for ScaleCore
12630         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
12631           style to avoid interference with internal click handler (which is
12632           different than standard Control click handling)
12633         * RadioButton.cs:
12634           - Now unchecks all sibling radio buttons when control is
12635             selected (Fixes #68756)
12636           - Removed internal tabstop variable, using the one inherited from
12637             Control
12638
12639 2005-01-17  Jackson Harper  <jackson@ximian.com>
12640
12641         * NavigateEventArgs.cs: Fix base type.
12642         * LinkLabel.cs: Sig fix
12643         
12644 2005-01-17  Jackson Harper  <jackson@ximian.com>
12645
12646         * TreeView.cs: Only invalidate the effected nodes bounds when
12647         selecting nodes.
12648
12649 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
12650
12651         * XplatUIWin32.cs: fixes Win32 marshaling
12652         * XplatUIX11.cs: fixes method signature
12653
12654 2005-01-17  Peter Bartok  <pbartok@novell.com>
12655
12656         * XplatUIX11.cs: Clean up resources when we no longer need them
12657
12658 2005-01-17  Peter Bartok  <pbartok@novell.com>
12659
12660         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
12661           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
12662           and DestroyCursor() methods.
12663         * Cursor.cs: Partially implemented, now supports standard cursors;
12664           still contains some debug code
12665         * Cursors.cs: Implemented class
12666         * Control.cs:
12667           - WndProc(): Added handling of WM_SETCURSOR message, setting the
12668             appropriate cursor
12669           - Implemented Cursor property
12670           - Replaced break; with return; more straightforwar and possibly
12671             faster
12672           - Now properly setting the result for WM_HELP
12673         * X11Structs.cs: Added CursorFontShape enum
12674         * XplatUIStructs.cs:
12675           - Added StdCursor enum (to support DefineStdCursor() method)
12676           - Added HitTest enum (to support sending WM_SETCURSOR message)
12677         * XplatUIX11.cs:
12678           - Now sends the WM_SETCURSOR message
12679           - Implemented new cursor methods
12680         * XplatUIOSX.cs: Stubbed new cursor methods
12681         * XplatUIWin32.cs:
12682           - Implemented new cursor methods
12683           - Added GetSystemMetrics function and associated enumeration
12684
12685 2005-01-15  Peter Bartok  <pbartok@novell.com>
12686
12687         * Control.cs:
12688           - WndProc(): Now handles EnableNotifyMessage
12689           - SelectNextControl(): Fixed bug where if no child or sibling
12690             controls exist we looped endlessly
12691
12692 2005-01-14  Jackson Harper  <jackson@ximian.com>
12693
12694         * TreeView.cs: Recalculate the tab pages when a new one is added
12695         so that the proper bounding rects are created.
12696
12697 2005-01-14  Jackson Harper  <jackson@ximian.com>
12698
12699         * TreeView.cs: Draw a gray box instead of a grip in the lower
12700         right hand corner when there are both horizontal and vertical
12701         scroll bars.
12702
12703 2005-01-14  Jackson Harper  <jackson@ximian.com>
12704
12705         * Control.cs: When erasing backgrounds use FromHwnd instead of
12706         FromHdc when there is a NULL wparam. This occurs on the X driver.
12707         * XplatUIX11.cs: Set the wparam to NULL.
12708
12709 2005-01-13  Jackson Harper  <jackson@ximian.com>
12710
12711         * PictureBox.cs: Implement missing methods (except ToString, need
12712         to test that on windows) and events. When visibility is changed we
12713         need to redraw the image because the buffers are killed. When size
12714         is changed refresh if the sizemode needs it.
12715
12716 2005-01-13  Peter Bartok  <pbartok@novell.com>
12717
12718         * Control.cs (SelectNextControl): Was using wrong method to select
12719           a control
12720
12721 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
12722
12723         * ComboBox.cs: fixes dropstyle
12724
12725 2005-01-13  Peter Bartok  <pbartok@novell.com>
12726
12727         * Form.cs:
12728           - Implemented Select() override
12729           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
12730           - Now sets keyboard focus on startup
12731         * Control.cs (SelectNextControl): Now properly handles directed=true
12732         * TextBoxBase.cs:
12733           - WndProc: Now passes tab key on to base if AcceptTabChar=false
12734           - Added (really bad) focus rectangle (mostly for testing)
12735         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
12736           to enforce redraw on focus changes
12737         * ContainerControl.cs:
12738           - Fixed detection of Shift-Tab key presses
12739           - Fixed traversal with arrow keys
12740         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
12741           gonna keep this or if it's complete yet
12742         
12743 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
12744
12745         * ComboBox.cs: missing properties, fixes
12746
12747 2005-01-13  Peter Bartok  <pbartok@novell.com>
12748
12749         * Panel.cs (ctor): Setting Selectable window style to off
12750         * Splitter.cs (ctor): Setting Selectable window style to off
12751         * GroupBox.cs (ctor): Setting Selectable window style to off
12752         * Label.cs (ctor): Setting Selectable window style to off
12753
12754 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
12755
12756         * UpDownBase.cs (InitTimer): If the timer has been already
12757         created, enable it.
12758
12759         Use a TextBox instead of a Label.
12760
12761 2005-01-12  Jackson Harper  <jackson@ximian.com>
12762
12763         * TreeView.cs: Refresh the tree after sorting the nodes. Always
12764         draw the connecting node lines (when ShowLines is true).
12765         * TreeNode.cs: The nodes index can now be updated. This is used
12766         when a node collection is sorted.
12767         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
12768         insert or an existing unsorted node collection can be sorted.
12769         
12770 2005-01-12  Peter Bartok  <pbartok@novell.com>
12771
12772         * ContainerControl.cs: Implemented ProcessDialogKeys()
12773
12774 2005-01-12  Peter Bartok  <pbartok@novell.com>
12775
12776         * Control.cs:
12777           - Implemented SelectNextControl() method
12778           - Several focus related bug fixes
12779           - Fixed Docking calculations to match MS documentation and
12780             behaviour
12781
12782 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
12783
12784         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
12785         bug fixes
12786
12787 2005-01-12  Peter Bartok  <pbartok@novell.com>
12788
12789         * Control.cs:
12790           - Fixed broken Contains() method
12791           - Implemented GetNextControl() method. Finally. This is the pre-
12792             requisite for focus handling.
12793
12794 2005-01-12  Peter Bartok  <pbartok@novell.com>
12795
12796         * OSXStrucs.cs: Added
12797
12798 2005-01-12  Peter Bartok  <pbartok@novell.com>
12799
12800         * XplatUIWin32.cs:
12801           - Removed PeekMessageFlags
12802           - Implemented SetWindowStyle() method
12803         * XplatUIStructs.cs: Added PeekMessageFlags
12804         * X11Structs: Added missing border_width field to XWindowChanges struct
12805         * XplatUIX11.cs:
12806           - PeekMessage: Now throws exception if flags which are not yet
12807             supported are passed
12808           - Implemented SetWindowStyle() method
12809           - Fixed SetZOrder to handle AfterHwnd properly
12810         * XplatUI.cs: Added SetWindowStyle() method
12811         * XplatUIDriver.cs: Added SetWindowStyle() abstract
12812         * Control.cs:
12813           - Implemented UpdateStyles() method
12814           - Implemented UpdateZOrder() method
12815         * XplatUIOSX.cs: Added SetWindowStyle() stub
12816
12817 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
12818
12819         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
12820         button mouse).
12821
12822
12823 2005-01-11  Jackson Harper  <jackson@ximian.com>
12824
12825         * TreeView.cs: Still need to draw lines to siblings even if out of
12826         the current node is out of the clip.
12827
12828 2005-01-11  Jackson Harper  <jackson@ximian.com>
12829
12830         * TreeView.cs: When setting the hbar/vbar/grip position use
12831         SetBounds so that perform layout is only called once. Also suspend
12832         and resume layout so layout is only done once for all controls.
12833         - Removed some debug fluff
12834         * SizeGrip.cs: Call base implmentation in overriding methods.
12835         - When visibility is changed the drawing buffers are killed so we
12836         need to redraw.
12837
12838 2005-01-11  Jackson Harper  <jackson@ximian.com>
12839
12840         * TreeView.cs: Calculate the open node count while drawing. This
12841         saves us an entire tree traversal for every paint operation. Use
12842         a member var for the open node count so less vars are passed around.
12843
12844 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
12845
12846         * MonthCalendar.cs:
12847         - fixed selection to use mousemove, not mouse polling on timer
12848         * ThemeWin32Classic.cs
12849         - removed redundant unused variable "no_more_content"
12850         
12851 2005-01-11  Peter Bartok  <pbartok@novell.com>
12852
12853         * XplatUIX11.cs (DoEvents): Needs to return when no more events
12854           are pending, so it now calls PeekMessage instead of GetMessage;
12855           implemented a incomplete version of PeekMessage
12856         
12857 2005-01-11  Peter Bartok  <pbartok@novell.com>
12858
12859         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
12860           I18n issues
12861         * TextBoxBase.cs: Added sending of TextChanged event
12862
12863 2005-01-10  Jackson Harper  <jackson@ximian.com>
12864
12865         * TreeView.cs: Try not to draw outside the clipping rectangle on
12866         each node element.
12867
12868 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
12869
12870         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
12871
12872 2005-01-10  Jackson Harper  <jackson@ximian.com>
12873
12874         * TreeView.cs:
12875         - Implement fast scrolling. Now only the newly
12876         exposed nodes are drawn and the old image is moved using the
12877         XplatUI::ScrollWindow method.
12878         - Factor in height of nodes when calculating whether or not the
12879         node is in the clipping rect.
12880
12881 2005-01-10  Jackson Harper  <jackson@ximian.com>
12882
12883         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
12884
12885 2005-01-10  Peter Bartok  <pbartok@novell.com>
12886
12887         * Application.cs: Added temporary hack to resolve all our resize
12888           required issues on startup. This will get fixed properly at
12889           some point in the future
12890
12891 2005-01-10  Jackson Harper  <jackson@ximian.com>
12892
12893         * SizeGrip.cs: New internal class that is used as a sizing
12894         grip control...hence the name.
12895
12896 2005-01-10  Peter Bartok  <pbartok@novell.com>
12897
12898         * Control.cs: Implemented proper TabIndex handling, now assigning
12899           a tabindex when a control is added to a container
12900         * GroupBox.cs (ctor): Now sets the Container style bit, required
12901           for Control.GetNextControl()
12902
12903 2005-01-09  Jackson Harper  <jackson@ximian.com>
12904
12905         * TextBoxBase.cs: Clear window when scrolling (fixes build).
12906
12907 2005-01-09  Peter Bartok <pbartok@novell.com>
12908
12909         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
12910           XplatUIX11.cs: Added ability to control ScrollWindow expose and
12911           an overload for ScrollWindow to allow only scrolling a rectangle
12912
12913 2005-01-09  Peter Bartok <pbartok@novell.com>
12914
12915         * Form.cs:
12916           - Implemented SetDesktopBounds method
12917           - Implemented SetDesktopLocation method
12918
12919 2005-01-08  Jackson Harper  <jackson@ximian.com>
12920
12921         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
12922         the node count has changed, this removes to VScroll::Refresh calls
12923         when drawing.
12924
12925 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
12926
12927         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
12928
12929 2005-01-07  Jackson Harper  <jackson@ximian.com>
12930
12931         * TreeNode.cs: Just update the single node when it is
12932         checked. Don't refresh after toggling, the Expand/Collapse already
12933         handles this.
12934         * TreeView.cs: Respect clipping a little more when drawing. Try
12935         not to redraw things that don't need to be redrawn. Just hide the
12936         scrollbars when they are no longer needed instead of removing
12937         them, so they don't have to be created again and again.
12938         
12939 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
12940
12941         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
12942         coordinates to window space to place the caret properly, FIXED.
12943         Implement GetWindowState & SetWindowState
12944
12945 2005-01-06  Peter Bartok <pbartok@novell.com>
12946
12947         * Form.cs:
12948           - Implemented ClientSize property
12949           - Implemented DesktopBounds property
12950           - Implemented DesktopLocation property
12951           - Implemented IsRestrictedWindow property
12952           - Implemented Size property
12953           - Implemented TopLevel property
12954           - Implemented FormWindowState property
12955         * Control.cs:
12956           - Implemented GetTopLevel() method
12957           - Implemented SetTopLevel() method
12958         * X11Structs.cs (Atom):
12959           - Added AnyPropertyType definition
12960           - Added MapState definiton and updated XWindowAttribute struct
12961         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
12962         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
12963         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
12964         * XplatUIWin32.cs:
12965           - Implemented GetWindowState() and SetWindowState() methods
12966           - Fixed Win32GetWindowLong return type
12967         * XplatUIX11.cs:
12968           - Introduced central function for sending NET_WM messages
12969           - Implemented GetWindowState() and SetWindowState() methods
12970         * TextBoxBase.cs (set_Lines):
12971           - Now uses Foreground color for text added via Text property (Duh!)
12972           - Added code to remember programmatically requested size (fixes
12973             behaviour when Multiline is set after Size)
12974           - Added AutoSize logic
12975
12976 2005-01-06  Jackson Harper  <jackson@ximian.com>
12977
12978         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
12979
12980 2005-01-06  Jackson Harper  <jackson@ximian.com>
12981
12982         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
12983         set to less then 0.
12984
12985 2005-01-06  Jackson Harper  <jackson@ximian.com>
12986
12987         * ScrollableControl.cs: Lazy init the scrollbars.
12988         
12989 2005-01-06  Jackson Harper  <jackson@ximian.com>
12990
12991         * Theme.cs: Speed up getting pens and solid brushes, by using
12992         their ARGB as a hash instead of tostring and not calling Contains.
12993
12994 2005-01-06  Peter Bartok <pbartok@novell.com>
12995
12996         * Form.cs:
12997           - Implemented OnActivated and OnDeactivate event trigger
12998           - Implemented Activate() method
12999           - Fixed ShowDialog() to activate the form that was active before
13000             the dialog was shown
13001         * XplatUIX11.cs:
13002           - Added global active_window var that tracks the currently active
13003             X11 window
13004           - Now always grabs Property changes from the root window to always
13005             catch changes on the active window property
13006           - Added code to PropertyNotify handler to send Active/Inactive
13007             messages when state changes. This puts X11 and Win32 en par on
13008             WM_ACTIVATE notifications (except for double notifications when
13009             the user clicks away from our modal window to another one of our
13010             windows)
13011
13012 2005-01-05  Jackson Harper  <jackson@ximian.com>
13013
13014         * ImageList.cs: Implment ctor
13015
13016 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
13017
13018         * XplatUIOSX.cs: Implement Activate/SetTopmost
13019
13020 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
13021
13022         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
13023
13024 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
13025
13026         * XplatUIOSX.cs: Implement GetActive/SetFocus.
13027
13028 2005-01-05  Peter Bartok <pbartok@novell.com>
13029
13030         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
13031           XplatUIOSX.cs: Added GetActive method to return the currently
13032           active window for the application (or null, if none is active)
13033         * Form.cs:
13034           - Implemented ActiveForm
13035           - Commented out owner assignment for modal dialogs (causes problems
13036             on Win32, since the owner will be disabled)
13037           - Reworked some Active/Focus handling (still incomplete)
13038         * CommonDialog.cs: Commented out owner assignment for modal dialogs
13039           (causes problems on Win32, since the owner will be disabled)
13040         * IWin32Window: Added ComVisible attribute
13041
13042 2005-01-05  Peter Bartok <pbartok@novell.com>
13043
13044         * ToolTip.cs (WndProc): Enable setting focus now that we have the
13045           required XplatUI functions.
13046
13047 2005-01-05  Peter Bartok <pbartok@novell.com>
13048
13049         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
13050           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
13051           to implement focus and activation handling; still incomplete and
13052           with debug output
13053
13054 2005-01-04  Peter Bartok <pbartok@novell.com>
13055
13056         * TextBoxBase.cs: Changed access level for Document property to
13057           match switch to internal for TextControl
13058
13059 2005-01-04  Peter Bartok <pbartok@novell.com>
13060
13061         * AccessibleObject: Added ComVisible attribute
13062
13063 2005-01-04  Jackson Harper  <jackson@ximian.com>
13064
13065         * X11Keyboard.cs: Remove unneeded var.
13066
13067 2005-01-04  Jackson Harper  <jackson@ximian.com>
13068
13069         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
13070         but PAINT.
13071         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
13072         ClientMessage. This makes apps exit cleanly (more often).
13073         
13074 2005-01-04  Jackson Harper  <jackson@ximian.com>
13075
13076         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
13077         handling focus, return correct colors and fonts,
13078         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
13079         handle selection, horizontal scrolling, and mouse interaction.
13080
13081 2005-01-04  Peter Bartok <pbartok@novell.com>
13082
13083         * ICommandExecutor.cs: Added
13084         * IDataGridColumnStyleEditingNotificationService.cs: Added
13085         * IFeatureSupport.cs: Added
13086         * IFileReaderService.cs: Added
13087         * IDataObject.cs: Added ComVisible attribute
13088         * AmbientProperties.cs: Added
13089         * BaseCollection.cs: Added missing attributes
13090         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
13091         * BaseCollection.cs: Added missing attributes
13092         * Binding.cs: Added TypeConverter attribute
13093         * BindingContext.cs: Added DefaultEvent attribute
13094         * BindingsCollection.cs: Added DefaultEvent attribute
13095         * Button.cs: Added DefaultValue attribute
13096         * DragEventArgs.cs: Added ComVisible attribute
13097         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
13098         * KeyEventArgs.cs: Added ComVisible attribute
13099         * KeyPressEventArgs.cs: Added ComVisible attribute
13100         * MouseEventArgs.cs: Added ComVisible attribute
13101         * NavigateEventArgs.cs: Added
13102         * NavigateEventHandler.cs: Added
13103         * FeatureSupport.cs: Added
13104         * OSFeature.cs: Added
13105         * Theme.cs: Added abstract Version property to support OSFeature
13106         * ThemeWin32Classic.cs: Added Version property to
13107           support OSFeature.Themes
13108         * ProgressBar.cs: Removed OnPaintBackground override, not required since
13109           the proper styles to avoid background drawing are set, also doesn't
13110           match MS signature
13111         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
13112         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
13113         * ScrollEventArgs.cs: Added ComVisible attribute
13114         * SplitterEventArgs.cs: Added ComVisible attribute
13115         * AccessibleSelection.cs: Added Flags attribute
13116         * Appearance.cs: Added ComVisible attribute
13117         * Border3DSide.cs: Added ComVisible attribute
13118         * Border3DStyle.cs: Added ComVisible attribute
13119         * BorderStyle.cs: Added ComVisible attribute
13120         * DragAction.cs: Added ComVisible attribute
13121         * ErrorBlinkStyle.cs: Added
13122         * ScrollEventType.cs: Added ComVisible attribute
13123         * AnchorStyles.cs: Added Editor attribute
13124         * DockStyle.cs: Added Editor attribute
13125         * HorizontalAlignment.cs: Added ComVisible attribute
13126         * HelpEventArgs.cs: Added ComVisible attribute
13127         * PaintEventArgs.cs: Added IDisposable
13128
13129 2005-01-04  Peter Bartok <pbartok@novell.com>
13130
13131         * TextControl.cs: Switched Line, LineTag and Document classes to
13132           internal
13133
13134 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
13135
13136         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
13137         Simple mode, fixes, IntegralHeight, etc.
13138
13139 2005-01-04  Peter Bartok <pbartok@novell.com>
13140
13141         * TextBoxBase.cs: Using proper font variable now
13142
13143 2005-01-04  Peter Bartok <pbartok@novell.com>
13144
13145         * Form.cs (ShowDialog): Set parent to owner, if provided
13146         * GroupBox.cs: Removed unused vars
13147         * TextControl.cs:
13148           - Added GetHashCode() for Document and LineTag classes
13149           - Removed unused variables
13150           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
13151             to allow translation between continuous char position and line/pos
13152         * CheckBox.cs: Removed vars that are provided by base class
13153         * RadioButton.cs: Removed vars that are provided by base class, added
13154           new keyword where required
13155         * LinkLabel.cs: Added new keyword where required
13156         * Control.cs (WndProc): Removed unused variable
13157         * TextBoxBase.cs:
13158           - Finished SelectionLength property
13159           - Implemented SelectionStart property
13160           - Implemented Text property
13161           - Removed unused vars
13162         * MessageBox.cs: Added new keyword where required
13163         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
13164           WndProc signature
13165         * MenuAPI.cs: Added new keyword where required
13166         * ButtonBase.cs: Removed vars that are provided by base class, added
13167           new keyword where required
13168         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
13169           argument to double, to allow compiling with csc 2.0 (Atsushi ran
13170           into this)
13171         * Application.cs (Run): Now triggers the ThreadExit event
13172         * CommonDialog.cs: Added new keyword where required; now properly sets
13173           parent (owner) for dialog
13174         * XplatUIX11.cs: Commented out unused vars
13175         * StatusBar.cs: Fixed signature for Text property
13176         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
13177
13178 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
13179
13180         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
13181         TrackBar.cs, MonthCalendar.cs: remove unused vars
13182
13183 2005-01-03  Jackson Harper  <jackson@ximian.com>
13184
13185         * ThemeWin32Classic.cs:
13186         * X11Keyboard.cs: Remove unused vars.
13187
13188 2005-01-03  Peter Bartok  <pbartok@novell.com>
13189
13190         * TextBox.cs:
13191           - set_Text: Tied into TextControl
13192           - set_TextAlignment: Tied into TextControl
13193         * TextControl.cs:
13194           - Added alignment properties and implemented alignment handling
13195             and drawing (still has a bug, not generating proper expose events)
13196           - Added new Line() constructor to allow passing the line alignment
13197           - Fixed selection setting, properly handling end<start now
13198           - Added aligment considerations to RecalculateDocument()
13199         * TextBoxBase.cs:
13200           - Now properly enforces control height for single line controls
13201           - Added support for CharacterCasing
13202           - Added IsInputKey override
13203           - Fixed Keys.Enter logic
13204           - Added SetBoundsCore override
13205           - Fixed mouse selection handling
13206
13207 2005-01-03  Jackson Harper  <jackson@ximian.com>
13208
13209         * TreeView.cs:
13210           - Collapse and uncheck all nodes when CheckBoxes is disabled.
13211           - Checkboxes are always aligned to the bottom of the node,
13212           regardless of item height.
13213           - Use the node bounds to draw the text so we can center it when
13214           the item height is greater then the font height.
13215           - Node::Bounds are only the text part of the node.
13216         * TreeNode.cs: New method to combine collapsing and unchecking all
13217           nodes recursively.
13218
13219 2005-01-02  Jackson Harper  <jackson@ximian.com>
13220
13221         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
13222         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
13223         tree when a check is changed. TODO: Only refresh the checked node.
13224
13225 2004-12-30  Jackson Harper  <jackson@ximian.com>
13226
13227         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
13228         * TreeNode.cs: When collapsing make sure to never collapse the
13229         root node.
13230
13231 2004-12-29  Jackson Harper  <jackson@ximian.com>
13232
13233         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
13234         
13235 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
13236
13237         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
13238
13239 2004-12-28  Peter Bartok  <pbartok@novell.com>
13240
13241         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
13242           not yet assigned
13243
13244 2004-12-28  Peter Bartok  <pbartok@novell.com>
13245
13246         * Control.cs (WndProc): Added WM_HELP handler, now generates
13247           HelpRequested event
13248         * Form.cs: Added HelpButton property and required support code
13249         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
13250
13251 2004-12-28  Peter Bartok  <pbartok@novell.com>
13252
13253         * CommonDialog.cs:
13254           - Made DialogForm.owner variable internal
13255           - Added check to ensure owner form is set before setting
13256             owner properties in CreateParams
13257
13258 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
13259
13260         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
13261           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
13262           GetCursorPos.  Fix major visibility issues.  Rework the windowing
13263           system to support borderless/titleless windows (implements menus).
13264           Fix GetWindowPos.  Implement initial background color support for
13265           views.
13266
13267 2004-12-28  Peter Bartok  <pbartok@novell.com>
13268
13269         * Form.cs (get_CreateParams): Make sure we have an owner before using
13270           the owner variable. Implement proper default if no owner exists
13271
13272 2004-12-28  Peter Bartok  <pbartok@novell.com>
13273
13274         * In preparation for making Managed.Windows.Forms the default build target
13275           for System.Windows.Forms, the following stubbed files were added.
13276           Dialogs are currently being implemented by contributors and are only
13277           short-term place holders.
13278         * ColorDialog.cs: Initial check-in (minmal stub)
13279         * DataGrid.cs: Initial check-in (minimal stub)
13280         * DataGridLineStyle.cs: Initial check-in (minimal stub)
13281         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
13282         * DataGridTableStyle.cs: Initial check-in (minimal stub)
13283         * FontDialog.cs: Initial check-in (minimal stub)
13284         * FileDialog.cs: Initial check-in (minimal stub)
13285         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
13286         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
13287         * OpenFileDialog: Initial check-in (minimal stub)
13288         * IComponentEditorPageSite.cs: Initial check-in
13289         * Splitter.cs: Initial check-in (for Jackson)
13290         * SplitterEventArgs.cs: Initial check-in (for Jackson)
13291         * SplitterEventHandler.cs: Initial check-in (for Jackson)
13292         * TextBox.cs: Initial check-in; still needs some wiring to
13293           TextControl backend
13294         * Form.cs: Implemented ControlBox property
13295         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
13296         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
13297         * TextControl.cs: Added selection functionality; added todo header
13298         * TextBoxBase.cs:
13299           - Implemented Lines property
13300           - Implemented TextHeight property
13301           - Implemented SelectedText property
13302           - Implemented SelectionLength property
13303           - Implemented SelectAll method
13304           - Implemented ToString method
13305           - Removed and cleaned up some debug code
13306           - Implemented (still buggy) mouse text selection
13307
13308 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
13309
13310         * ComboBox.cs: Complete DropDownList implementation, fixes.
13311
13312 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
13313
13314         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
13315         * ComboBoxStyle.cs: ComboBoxStyle enum
13316         * ComboBox.cs: Initial work on ComboBox control
13317
13318 2004-12-21  Peter Bartok  <pbartok@novell.com>
13319
13320         * Control.cs (ctor, CreateParams): Moved setting of is_visible
13321           forward so that anything that creates a window gets the default,
13322           also no longer uses Visible property in CreateParams to avoid
13323           walking up the parent chain and possibly get the wrong visible
13324           status. Fixed IsVisible to no longer walk up to the parent.
13325
13326 2004-12-21  Peter Bartok  <pbartok@novell.com>
13327
13328         * Form.cs (ShowDialog): Unset modality for the proper window
13329  
13330 2004-12-20  Peter Bartok  <pbartok@novell.com>
13331
13332         * CommonDialog.cs: Initial check-in
13333
13334 2004-12-20  Peter Bartok  <pbartok@novell.com>
13335
13336         * Control.cs (Visible): Now uses the parent window instead of the
13337           client area window for the property
13338
13339         * Form.cs
13340           - ShowDialog(): Now uses the proper window for modality
13341           - The default visibility state for the form parent is now false. This
13342             will prevent the user from seeing all the changes to the form and
13343             its controls before the application hits Application.Run()
13344           - Removed some stale commented out code
13345
13346         * NativeWindow.cs:
13347           - Added FindWindow() method to have a method to check for existence
13348             of a window handle
13349           - Added ability to override default exception handling (for example
13350             when debugging with VS.Net; to do this the ExternalExceptionHandler
13351             define must be set
13352           - Removed some useless debug output
13353
13354         * XplatUIX11.cs:
13355           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
13356             not working as expected
13357           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
13358             property to allow switching back to the modal window if focus is
13359             given to another one of our windows (Application Modal)
13360           - Now only sets override_redirect if we create a window
13361             without WS_CAPTION
13362           - Moved EventMask selection before mapping of newly created window
13363             so we can catch the map event as well
13364           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
13365           - Added various Atom related DllImports
13366           - Implemented Exit() method
13367           - .ctor() : No longer shows window if WS_VISIBLE is not defined
13368             in the CreateParams
13369
13370         * MessageBox.cs: Now properly deals with the FormParent window by
13371           providing an override the FormParent CreateParams property to
13372           set as POPUP instead of OVERLAPPED window.
13373
13374 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
13375
13376         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
13377         Minor code cleanup.
13378
13379 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
13380         
13381         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
13382
13383 2004-12-18  Peter Bartok  <pbartok@novell.com>
13384
13385         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
13386           implementing SetModal() method
13387
13388 2004-12-18  Peter Bartok  <pbartok@novell.com>
13389
13390         * X11Structs.cs (XGCValues): Fixed type of function element
13391         * XplatUI.cs: Added ScrollWindow() method
13392         * XplatUIDriver.cs: Added ScrollWindow() abstract
13393         * XplatUIWin32.cs: Implemented ScrollWindow() method
13394         * XplatUIX11.cs: Implemented ScrollWindow() method
13395         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
13396
13397 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
13398
13399         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
13400         Some more keyboard support (INCOMPLETE)
13401
13402 2004-12-17  Peter Bartok  <pbartok@novell.com>
13403
13404         * TextControl.cs:
13405         - Added color attribute to line tags.
13406         - Added color argument to all functions dealing with tags
13407         - Added color argument support to various functions
13408         - Fixed miss-calculation of baseline/shift in certain circumstances
13409
13410         * TextBoxBase.cs: Added new color option to test code
13411
13412 2004-12-17  Jackson Harper  <jackson@ximian.com>
13413
13414         * TreeNode.cs:
13415         * MonthCalendar.cs: Signature fixes
13416
13417 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
13418
13419         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
13420         keyboard event moved it.  Create a new graphics context for each paint resolves this
13421
13422 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
13423
13424         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
13425         Make caret exist and go blink blink.  Initial keyboard support.
13426         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
13427         works.
13428
13429 2004-12-17  Jackson Harper  <jackson@ximian.com>
13430
13431         * XplatUIStructs.cs: Updated set of virtual keycodes.
13432         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
13433
13434 2004-12-17  Jackson Harper  <jackson@ximian.com>
13435
13436         * XplatUIX11.cs: Prune old keyboard code.
13437
13438 2004-12-17  Jackson Harper  <jackson@ximian.com>
13439
13440         * XplatUIX11.cs: When generating mouse wparams get the modifier
13441         keys from the ModifierKeys property.
13442
13443 2004-12-17  Jackson Harper  <jackson@ximian.com>
13444
13445         * X11Keyboard.cs: Send up/down input when generating
13446         messages. Remove some unused vars.
13447
13448 2004-12-17  Jackson Harper  <jackson@ximian.com>
13449
13450         * TabControl.cs:
13451         * TreeView.cs: get rid of warnings.
13452
13453 2004-12-17  Jackson Harper  <jackson@ximian.com>
13454
13455         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
13456
13457 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
13458
13459         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
13460           CheckedListBox.cs: Implementation
13461
13462 2004-12-17  Peter Bartok  <pbartok@novell.com>
13463
13464         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
13465
13466 2004-12-16  Peter Bartok  <pbartok@novell.com>
13467
13468         * TextControl.cs:
13469           - InsertCharAtCaret(): Fixed start pos fixup
13470           - CaretLine_get: No longer derives the line from the tag, the tag
13471             could be stale if lines in the document have been added or deleted
13472           - RebalanceAfterDelete(): Fixed bug in balancing code
13473           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
13474           - Line.Streamline(): Now can also elminate leading empty tags
13475           - DumpTree(): Added a few more tests and prevented exception on
13476             uninitialized data
13477           - Added Debug section for Combining lines
13478           - Delete(): Now copies all remaining properties of a line
13479           
13480         * TextBoxBase.cs:
13481           - Left mousebutton now sets the caret (and middle button still acts
13482             as formatting tester, which must go away soon)
13483           - Added Debug section for Deleting/Combining lines
13484           - Fixed calculations for UpdateView after Combining lines
13485
13486 2004-12-16  Peter Bartok  <pbartok@novell.com>
13487
13488         * TextControl.cs: Now properly aligns text on a baseline, using the
13489           new XplatUI.GetFontMetrics() method. Simplified several calculations
13490         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
13491           defined
13492
13493 2004-12-16  Peter Bartok  <pbartok@novell.com>
13494
13495         * XplatUI.cs: Added GetFontMetrics() method
13496         * XplatUIDriver.cs: Added GetFontMetrics() abstract
13497         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
13498           into libgdiplus, our private GetFontMetrics function
13499         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
13500         * XplatUIWin32.cs: Implemented GetFontMetrics() method
13501
13502 2004-12-16  Jackson Harper  <jackson@ximain.com>
13503
13504         * XplatUIStruct.cs: Add enum for dead keys
13505         * X11Keyboard.cs: Map and unmap dead keys.
13506
13507 2004-12-16  Jackson Harper  <jackson@ximian.com>
13508
13509         * X11Keyboard.cs: Detect and use the num lock mask.
13510
13511 2004-12-16  Peter Bartok  <pbartok@novell.com>
13512
13513         * Control.cs (CreateGraphics): Added check to make sure the
13514           handle of the window exists before calling Graphics.FromHwnd()
13515
13516 2004-12-16  Peter Bartok  <pbartok@novell.com>
13517
13518         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
13519           contains a lot of code that's not supposed to be there for the
13520           real thing, but required for developing/testing the textbox
13521           backend.
13522
13523 2004-12-16  Peter Bartok  <pbartok@novell.com>
13524
13525         * TextControl.cs:
13526         - Fixed Streamline method
13527         - Added FindTag method to Line
13528         - Added DumpTree method for debugging
13529         - Added DecrementLines() method for deleting lines
13530         - Fixed UpdateView to update the cursor to end-of-line on single-line
13531           updates
13532         - Added PositionCaret() method
13533         - Fixed MoveCaret(LineDown) to move into the last line, too
13534         - Added InsertChar overload
13535         - Fixed InsertChar tag offset calculations
13536         - Added DeleteChar() method
13537         - Added Combine() method for folding lines
13538         - Fixed Delete() method, no longer allocates wasted Line object and
13539           now copies all properties when swapping nodes
13540         - Delete() method now updates document line counter
13541
13542 2004-12-15  Jackson Harper  <jackson@ximian.com>
13543
13544         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
13545         * X11Keyboard.cs: Expose the currently selected modifier keys
13546         through a property.
13547
13548 2004-12-15  Peter Bartok  <pbartok@novell.com>
13549
13550         * TextControl.cs: Initial check-in. Still incomplete
13551
13552 2004-12-15  Jackson Harper  <jackson@ximian.com>
13553
13554         * TreeNode.cs:
13555         * TreeView.cs: Fix build on csc (second time today ;-))
13556
13557 2004-12-15  Jackson Harper  <jackson@ximian.com>
13558
13559         * TreeView.cs: Store the treenodes plus/minus box bounds when it
13560         is calculated and use this for click testing.
13561         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
13562
13563 2004-12-15  Jackson Harper  <jackson@ximian.com>
13564
13565         * TreeView.cs: Pass the nodes image index to the image list when
13566         drawing that image.
13567
13568 2004-12-15  Jackson Harper  <jackson@ximian.com>
13569
13570         * X11Keyboard.cs: Set messages hwnd.
13571         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
13572         post_message calls.
13573
13574 2004-12-15  Jackson Harper  <jackson@ximian.com>
13575
13576         * X11Keyboard.cs: Fix to compile with csc.
13577         
13578 2004-12-15  Jackson Harper  <jackson@ximian.com>
13579
13580         * X11Structs.cs: Add key mask values
13581         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
13582         * X11Keyboard.cs: New file - Extrapolates and interpolates key
13583         down/up foo into WM_CHAR foo
13584         * KeyboardLayouts.cs: Common keyboard layouts
13585         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
13586         post messages into the main queue.
13587
13588 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
13589
13590         * Button.cs: implement ProcessMnemonic
13591         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
13592           brushes everytime
13593         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
13594         * ButtonBase.cs: Show HotkeyPrefix (not the &)
13595
13596 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
13597         
13598         * MonthCalendar.cs: Implemented click-hold for next/previous month
13599           and date selection
13600           
13601 2004-12-11  Peter Bartok  <pbartok@novell.com>
13602
13603         * X11Structs.cs:
13604           - Added XKeyboardState (moved from XplatUIX11.cs)
13605           - Added XCreateGC related enums and structures
13606           - Added GXFunction for XSetFunction
13607
13608         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
13609
13610         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
13611           CaretVisible() calls
13612
13613         * ToolTip.cs: Added code to prevent stealing focus from app windows
13614
13615         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
13616           DestroyCaret, SetCaretPos and CaretVisible)
13617
13618         * XplatUIX11.cs:
13619           - Added implementation for caret functions
13620           - Moved hover variables into a struct, to make it a bit easier
13621             on the eyes and to debug
13622           - Removed XKeyboardState (moved to XplatUIX11.cs)
13623           - Moved Keyboard properties into the properties region
13624
13625         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
13626           call to get a graphics context for our control
13627
13628         * XplatUIOSX.cs: Added empty overrides for the new caret functions
13629
13630         * TreeView.cs: Fixed bug. No matter what color was set it would always
13631           return SystemColors.Window
13632
13633         * XplatUIWin32.cs: Implemented caret overrides
13634
13635 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
13636
13637         * ListBox.cs: fire events, implement missing methods and properties,
13638         sorting.
13639
13640 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
13641
13642         * MonthCalendar.cs: invalidation bug fixing
13643         * ThemeWin32Classic.cs: paint fixing
13644
13645 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
13646
13647         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
13648         prepare the CGContextRef there now.
13649
13650 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
13651
13652         * MonthCalendar.cs:
13653           - optimisationL only invalidate areas that have changed
13654         * ThemeWin32Classic.cs:
13655           - only paint parts that intersect with clip_area
13656
13657 2004-12-09  Peter Bartok  <pbartok@novell.com>
13658
13659         * Application.cs: Undid changes from r37004 which cause problems
13660         on X11
13661
13662 2004-12-09  Ravindra  <rkumar@novell.com>
13663
13664         * ToolBar.cs: Added support for displaying ContextMenu
13665         attached to a button on ToolBar.
13666         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
13667         property.
13668
13669 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
13670
13671         * Label.cs: autosize works in text change and removes unnecessary
13672         invalidate
13673
13674 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
13675
13676         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
13677         remove warnings
13678
13679 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
13680
13681         * XplatUIOSX.cs: Added mouse move/click/grab support
13682         Remove some debugging WriteLines not needed anymore.
13683         Add window resizing/positioning.
13684         Fix visibility on reparenting.
13685
13686 2004-12-08  Peter Bartok  <pbartok@novell.com>
13687
13688         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
13689
13690 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
13691
13692         * XplatUIOSX.cs: Initial checkin
13693         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
13694
13695 2004-12-03  Ravindra <rkumar@novell.com>
13696
13697         * ListView.cs: Added some keybindings and fixed scrolling.
13698         ScrollBars listen to ValueChanged event instead of Scroll
13699         Event. This would let us take care of all changes being
13700         done in the scrollbars' values programmatically or manually.
13701         * ListView.cs (CanMultiselect): Added a check for shift key.
13702         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
13703         * ListViewItem.cs (Clone): Fixed. We need to make a copy
13704         of ListViewSubItemCollection as well.
13705
13706 2004-12-06  Peter Bartok <pbartok@novell.com>
13707
13708         * Control.cs (Parent): Added check and exception to prevent
13709         circular parenting
13710
13711 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
13712
13713         * ListBox.cs: implemented clipping, selection single and multiple,
13714         bug fixing
13715
13716 2004-12-03  Ravindra <rkumar@novell.com>
13717
13718         * ListView.cs (ListView_KeyDown):
13719         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
13720         when CTRL key is pressed.
13721         * ListViewItem.cs (Selected): Fixed setting the property.
13722
13723 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
13724
13725         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
13726
13727         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
13728         MinimizeBox, ShowInTaskbar, TopMost properties.
13729
13730         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
13731         will be implemented).
13732
13733 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
13734
13735         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
13736
13737         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
13738         tests.
13739         
13740         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
13741         
13742         * TreeView.cs: BackColor is Colors.Window.
13743
13744 2004-12-01  Jackson Harper  <jackson@ximian.com>
13745
13746         * TreeView.cs: When resizing the tree if the user is making it
13747         smaller we don't get expose events, so we need to handle adding
13748         the horizontal scrollbar in the size changed handler as well as
13749         the expose handler.
13750
13751 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
13752
13753         * DrawItemState.cs: fixes wrong enum values
13754
13755 2004-12-01  Jackson Harper  <jackson@ximian.com>
13756
13757         * TreeView.cs: Resize the hbar as well as the vbar on resize.
13758
13759 2004-12-01  Jackson Harper  <jackson@ximian.com>
13760
13761         * NodeLabelEditEventArgs.cs:
13762         * NodeLabelEditEventHandler.cs:
13763         * OpenTreeNodeEnumerator.cs:
13764         * TreeNode.cs:
13765         * TreeNodeCollection.cs:
13766         * TreeView.cs:
13767         * TreeViewAction.cs:
13768         * TreeViewCancelEventArgs.cs:
13769         * TreeViewCancelEventHandler.cs:
13770         * TreeViewEventArgs.cs:
13771         * TreeViewEventHandler.cs: Initial implementation.
13772
13773 2004-12-01  Ravindra <rkumar@novell.com>
13774
13775         * ListView.cs (CalculateListView): Fixed scrolling related
13776         calculations. Also, removed some debug statements from other
13777         places.
13778         * ListViewItem.cs: Changed access to 'selected' instance variable
13779         from private to internal.
13780         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
13781
13782 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
13783
13784         * ThemeWin32Classic.cs: remove cache of brush and pens for
13785         specific controls and use the global system, fixes scrollbutton
13786         bugs (for small sizes, disabled, etc)
13787         
13788         * ScrollBar.cs: does not show the thumb for very small controls
13789         (as MS) and allow smaller buttons that the regular size
13790
13791 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
13792
13793         * UpDownBase.cs: Add abstract methods for the interface.
13794         Add new virtual methods (need to be hooked up to TextEntry when it
13795         exists).
13796         Add override methods for most features.
13797         Computes the size, forces the height of the text entry.
13798
13799         * NumericUpDown.cs: Put here the current testing code.
13800
13801         * Set eol-style property on all files that do not have mixed line
13802         endings, to minimize the future problems.  There are still a few
13803         files with mixed endings, and someone should choose whether they
13804         want to move it or not.
13805
13806 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
13807
13808         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
13809         System.Colors
13810         
13811 2004-11-30  Ravindra <rkumar@novell.com>
13812
13813         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
13814         drawing and replaced use of SystemColors by theme colors.
13815         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
13816         * ListView.cs (ListViewItemCollection.Add): Throw exception when
13817         same ListViewItem is being added more than once.
13818
13819 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
13820
13821         * MonthCalendar.cs:
13822           - ControlStyles love to make the control not flicker
13823           
13824 2004-11-30  Peter Bartok  <pbartok@novell.com>
13825
13826         * CharacterCasing.cs: Added
13827
13828 2004-11-29  Peter Bartok  <pbartok@novell.com>
13829
13830         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
13831           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
13832           I am removing these files as they conflict with already completed
13833           work. While it is fantastic to get contributions to MWF, I
13834           respectfully ask that everyone please coordinate their contributions
13835           through mono-winforms-list or #mono-winforms at this time. We're
13836           explicitly avoiding stubbing and don't want controls that don't have
13837           their basic functionality implemented in svn. Please also see
13838           http://www.mono-project.com/contributing/winforms.html
13839
13840
13841 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
13842
13843         * Application.cs (ModalRun): Don't hang after exit.
13844
13845         * Theme.cs: New TreeViewDefaultSize property.
13846
13847         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
13848         with less hardcoded SystemColors constant.
13849         Implemented TreeViewDefaultSize.
13850
13851         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
13852         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
13853
13854
13855 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
13856
13857         * MonthCalendar.cs:
13858           - Fix NextMonthDate and PrevMonthDate click moving calendar
13859
13860 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
13861
13862         * MonthCalendar.cs:
13863           - Fix usage of ScrollChange Property when scrolling months
13864
13865 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
13866
13867         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
13868          - Fixes menu destroying
13869          - Support adding and removing items on already created menus
13870
13871 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
13872
13873         * MonthCalendar.cs:
13874           - Re-worked all bolded dates handling to match win32
13875         * ThemeWin32Classic.cs:
13876           - Fixed rendering with bolded dates
13877
13878 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
13879
13880         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
13881         - Horizontal scroolbar
13882         - Multicolumn
13883         - Fixes
13884
13885
13886 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
13887
13888         * MonthCalendar.cs:
13889           - Fix Usage of MaxSelectionCount from SelectionRange
13890           - Fixed Shift + Cursor Selection
13891           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
13892           - Fixed normal cursor selection to be compat with win32
13893           - Fixed Shift + Mouse Click selection
13894
13895 2004-11-24  Peter Bartok <pbartok@novell.com>
13896
13897         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
13898         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
13899         * XplatUIX11.cs:
13900           - CreatedKeyBoardMsg now updates keystate with Alt key
13901           - Added workaround for timer crash to CheckTimers, Jackson will
13902             develop a proper fix and check in later
13903           - Implemented DispatchMessage
13904           - Removed calling the native window proc from GetMessage (call
13905             now moved to DispatchMessage)
13906
13907         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
13908           the keydata (Fixes bug #69831)
13909
13910         * XplatUIWin32.cs:
13911           - (DispatchMessage): Switched to return IntPtr
13912           - Added DllImport for SetFocus
13913
13914 2004-11-24  Ravindra <rkumar@novell.com>
13915
13916         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
13917         background drawing.
13918         * ListViewItem.cs: Fixed various properties, calculations
13919         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
13920         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
13921         and some internal properties. Fixed MouseDown handler and Paint
13922         method.
13923
13924 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
13925
13926         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
13927
13928 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
13929
13930         * ContainerControl.cs: correct accidental check in of local changes
13931
13932 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
13933
13934         * ThemeWin32Classic.cs:
13935                 - Fixed Drawing Last month in grid (sometimes not showing)
13936         * MonthCalendar.cs:
13937                 - Fixed title width calculation bug (makeing title small)
13938
13939 2004-11-23  Peter Bartok <pbartok@novell.com>
13940
13941         * XplatUIX11.cs:
13942           - Added generation of WM_MOUSEHOVER event
13943           - Added missing assignment of async_method atom
13944           - Fixed WM_ERASEBKGND; now only redraws the exposed area
13945
13946 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
13947
13948         * ThemeWin32Classic.cs:
13949                 - Fixed Drawing of today circle when showtodaycircle not set
13950                 - fixed drawing of first and last month in the grid (gay dates)
13951         * MonthCalendar.cs:
13952                 - Fixed Drawing of today circle
13953                 - Fixed drawing of grady dates
13954                 - Fixed HitTest for today link when ShowToday set to false
13955                 - Fixed DefaultSize to obey ShowToday
13956
13957 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
13958
13959         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
13960         * System.Windows.Forms/Theme.cs
13961         * MonthCalendar.cs: added for MonthCalendar
13962         * SelectionRange.cs: added for MonthCalendar
13963         * Day.cs: added for MonthCalendar: added for MonthCalendar
13964         * DateRangeEventArgs.cs: added for MonthCalendar
13965         * DateRangeEventHandler.cs: added for MonthCalendar
13966
13967 2004-11-22  Ravindra <rkumar@novell.com>
13968
13969         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
13970         property.
13971
13972 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
13973
13974         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
13975         event handler.
13976         
13977         * NumericUpDown.cs: Added new implementation.
13978         * UpDownBase.cs: Added new implementation.
13979
13980         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
13981         implementations.
13982         
13983         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
13984         implementations.
13985
13986         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
13987         methods.
13988
13989 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
13990
13991         * Timer.cs  (Dispose): Should call the base dispose when
13992         overriding.
13993
13994 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
13995
13996         * ScrollBar.cs: updates thumb position when max, min or increment
13997         is changed
13998
13999 2004-11-21  Ravindra <rkumar@novell.com>
14000
14001         * ListView.cs: Implemented item selection, activation and
14002         column header style. Fixed properties to do a redraw, if
14003         required. Added support for MouseHover, DoubleClick, KeyDown
14004         and KeyUp event handling and some minor fixes.
14005         * ListViewItem.cs: Fixed constructor.
14006         * ThemeWin32Classic.cs: Improved drawing for ListView.
14007
14008 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
14009
14010         * ThemeWin32Classic.cs: initial listbox drawing code
14011         * DrawMode.cs: new enumerator
14012         * ListControl.cs: stubbed class
14013         * ListBox.cs: initial implementation
14014         * Theme.cs: new methods definitions
14015         * SelectionMode.cs: new enumerator
14016
14017 2004-11-17  Peter Bartok  <pbartok@novell.com>
14018
14019         * XplatUIWin32.cs: Added double-click events to the class style
14020         * Control.cs (WndProc):
14021           - Added handling of click-count to MouseDown/ MouseUp events.
14022           - Added handling of middle and right mouse buttons
14023           - Removed old debug code
14024
14025 2004-11-17  Jackson Harper  <jackson@ximian.com>
14026
14027         * XplatUIX11.cs: Use the new Mono.Unix namespace.
14028
14029 2004-11-17  Ravindra <rkumar@novell.com>
14030
14031         * ListView.cs: Added event handling for MouseMove/Up/Down.
14032         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
14033         * ThemeWin32Classic.cs: We need to clear the graphics context and
14034         draw column header in a proper state.
14035
14036
14037 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
14038
14039         *  Menu.cs: fixes signature
14040
14041 2004-11-16  Peter Bartok  <pbartok@novell.com>
14042
14043         * XplatUIX11.cs (GetMessage): Implemented generation of
14044           double click mouse messages
14045
14046 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
14047
14048         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
14049         not by menu
14050
14051 2004-11-11  Peter Bartok  <pbartok@novell.com>
14052
14053         * HandleData.cs: Added Visible property
14054         * XplatUIX11.cs (IsVisible): Now uses Visible property from
14055           HandleData
14056         * XplatUIX11.cs: Removed old debug leftovers
14057         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
14058         * Control.cs (WndProc): Removed old debug leftovers,
14059           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
14060           needed WM_SIZE handling
14061
14062 2004-11-11  Jackson Harper  <jackson@ximian.com>
14063
14064         * OwnerDrawPropertyBag.cs:
14065         * TreeViewImageIndexConverter.cs: Initial implementation
14066
14067 2004-11-10  Jackson Harper  <jackson@ximian.com>
14068
14069         * ThemeWin32Classic.cs:
14070         * TabControl.cs: instead of moving tabs by the slider pos just
14071         start drawing at the tab that is offset by the slider. This way
14072         scrolling always moves by exactly one tab.
14073
14074 2004-11-10  Jackson Harper  <jackson@ximian.com>
14075
14076         * TabControl.cs: You can only scroll left when the slider has
14077         already ben moved right.
14078         
14079 2004-11-10  Jackson Harper  <jackson@ximian.com>
14080
14081         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
14082         the clip area.
14083         
14084 2004-11-10  Jackson Harper  <jackson@ximian.com>
14085
14086         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
14087         clip area.
14088         
14089 2004-11-09  Jackson Harper  <jackson@ximian.com>
14090
14091         * TabControl.cs (CalcXPos): New helper method so we can determine
14092         the proper place to start drawing vertical tabs.
14093         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
14094         
14095 2004-11-09  Jackson Harper  <jackson@ximian.com>
14096
14097         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
14098         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
14099         and Bottom, left and right are illegal values for this and
14100         multiline is enabled when the alignment is set to left or right.
14101         (DrawTab): Each alignment block should draw the text itself now
14102         because Left requires special love. Also add rendering for Left
14103         aligned tabs.
14104         
14105 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
14106
14107         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
14108         does not destroy the windows, removes debugging messages
14109
14110 2004-11-09  jba  <jba-mono@optusnet.com.au>
14111
14112         * ThemeWin32Classic.cs
14113         (DrawButtonBase): Fix verticle text rect clipping in windows
14114         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
14115         rendering and incorrect text rect clipping
14116         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
14117         rendering and incorrect text rect clipping
14118         
14119 2004-11-08  Jackson Harper  <jackson@ximian.com>
14120
14121         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
14122         bottom when they are bottom aligned so the bottoms of the tabs get
14123         displayed.
14124         * TabControl.cs (DropRow): Move rows up instead of down when the
14125         tab control is bottom aligned.
14126
14127 2004-11-08 13:59  pbartok
14128
14129         * XplatUIX11.cs:
14130           - Added handling for various window styles
14131           - Added handling for popup windows
14132           - Added SetTopmost handling
14133
14134 2004-11-08 13:55  pbartok
14135
14136         * XplatUIWin32.cs:
14137           - Added argument to SetTopmost method
14138           - Fixed broken ClientToScreen function
14139
14140 2004-11-08 13:53  pbartok
14141
14142         * XplatUIStructs.cs:
14143           - Added missing WS_EX styles
14144
14145 2004-11-08 13:53  pbartok
14146
14147         * XplatUI.cs, XplatUIDriver.cs:
14148           - Added argument to SetTopmost
14149
14150 2004-11-08 13:52  pbartok
14151
14152         * X11Structs.cs:
14153           - Added XSetWindowAttributes structure
14154           - Improved XWindowAttributes structure
14155           - Added SetWindowValuemask enum
14156           - Added window creation arguments enum
14157           - Added gravity enum
14158           - Added Motif hints structure
14159           - Added various Motif flags and enums
14160           - Added PropertyMode enum for property functions
14161
14162 2004-11-08 13:50  pbartok
14163
14164         * Form.cs:
14165           - Fixed arguments for updated SetTopmost method
14166
14167 2004-11-08 13:49  pbartok
14168
14169         * ToolTip.cs:
14170           - Fixed arguments for updated SetTopmost function
14171           - Fixed usage of PointToClient
14172
14173 2004-11-08 13:44  pbartok
14174
14175         * MenuAPI.cs:
14176           - Added Clipping of children and siblings
14177
14178 2004-11-08 13:41  pbartok
14179
14180         * MainMenu.cs:
14181           - Removed SetMenuBarWindow call. We do this in Form.cs
14182
14183 2004-11-08 13:40  jackson
14184
14185         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
14186           scrolling jimmi in the correct location with bottom aligned tabs
14187
14188 2004-11-08 13:36  pbartok
14189
14190         * ContainerControl.cs:
14191           - Implemented BindingContext
14192           - Implemented ParentForm
14193
14194 2004-11-08 12:46  jackson
14195
14196         * TabControl.cs: Put bottom rendered tabs in the right location
14197
14198 2004-11-08 07:15  jordi
14199
14200         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
14201           removes dead code
14202
14203 2004-11-05 17:30  jackson
14204
14205         * TabControl.cs: When selected tabs are expanded make sure they
14206           don't go beyond the edges of the tab control
14207
14208 2004-11-05 14:57  jackson
14209
14210         * TabControl.cs: Reset show_slider so if the control is resized to
14211           a size where it is no longer needed it's not displayed anymore
14212
14213 2004-11-05 13:16  jackson
14214
14215         * TabControl.cs: Make tab pages non visible when added to the
14216           control
14217
14218 2004-11-05 12:42  jackson
14219
14220         * TabControl.cs: Implement SizeMode.FillToRight
14221
14222 2004-11-05 12:16  jackson
14223
14224         * Control.cs: Do not call CreateHandle if the handle is already
14225           created
14226
14227 2004-11-05 11:46  jackson
14228
14229         * TabControl.cs: Remove superflous call to CalcTabRows
14230
14231 2004-11-05 09:07  jackson
14232
14233         * XplatUIX11.cs: Update for Mono.Posix changes
14234
14235 2004-11-05 07:00  ravindra
14236
14237         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
14238           scrolling.
14239
14240 2004-11-04 22:47  jba
14241
14242         * ThemeWin32Classic.cs:
14243           - Fix Button rendering for FlatStyle = Flat or Popup
14244           - Fix RadioButton and CheckBox rendering when Appearance = Button
14245             (normal and flatstyle).
14246           - Correct outer rectangle color when drawing focus rectangle
14247           - Adjust button bounds to be 1 px smaller when focused
14248           - Make button not draw sunken 3d border when pushed (windows compat)
14249           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
14250           - Offset the text in RadioButton and Checkbox when being rendered as
14251           a button.
14252           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
14253           radiobuttons
14254           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
14255           - Fixed disabled text rendering for normally rendered radiobuttons
14256
14257 2004-11-04 10:26  jackson
14258
14259         * TabControl.cs: Recalculate tab rows when resizing
14260
14261 2004-11-04 07:47  jordi
14262
14263         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
14264           collection completion, drawing issues, missing features
14265
14266 2004-11-04 05:03  ravindra
14267
14268         * ScrollBar.cs:
14269                 - We need to recalculate the Thumb area when
14270                 LargeChange/maximum/minimum values are changed.
14271           - We set the 'pos' in UpdatePos() method to minimum, if it's less
14272                 than minimum. This is required to handle the case if large_change is
14273                 more than max, and use LargeChange property instead of large_change
14274                 variable.
14275           - We return max+1 when large_change is more than max, like MS does.
14276
14277 2004-11-04 04:29  ravindra
14278
14279         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
14280                 - Changed default value signatures (prefixed all with ListView).
14281                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
14282                 ListView.
14283           - Fixed calculations for ListViewItem and implemented Clone()
14284           method.
14285
14286 2004-11-04 04:26  ravindra
14287
14288         * Theme.cs, ThemeWin32Classic.cs:
14289                 - Changed default ListView values signatures (prefixed all with
14290                 ListView).
14291           - Fixed default size values for VScrollBar and HScrollBar.
14292                 - Fixed DrawListViewItem method.
14293
14294 2004-11-04 04:05  ravindra
14295
14296         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
14297
14298 2004-11-04 04:04  ravindra
14299
14300         * ImageList.cs: Implemented the missing overload for Draw method.
14301
14302 2004-11-03 19:29  jackson
14303
14304         * TabControl.cs: Handle dropping rows on selection properly
14305
14306 2004-11-03 11:59  jackson
14307
14308         * TabControl.cs: remove debug code
14309
14310 2004-11-03 11:52  jackson
14311
14312         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
14313           the scrolly widgerywoo
14314
14315 2004-11-02 13:52  jackson
14316
14317         * TabControl.cs: Resize the tab pages and tabs when the tab control
14318           is resized
14319
14320 2004-11-02 13:40  jackson
14321
14322         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
14323           selected tab to the bottom
14324
14325 2004-11-02 13:39  jackson
14326
14327         * TabPage.cs: Store the tab pages row
14328
14329 2004-11-02 12:33  jordi
14330
14331         * MenuItem.cs: fixes handle creation
14332
14333 2004-11-02 11:42  jackson
14334
14335         * TabControl.cs: signature fix
14336
14337 2004-11-02 08:56  jackson
14338
14339         * TabControl.cs: Calculate whether the tab is on an edge properly.
14340           Remove top secret debugging code
14341
14342 2004-11-01 19:57  jackson
14343
14344         * TabControl.cs: Add click handling, and proper sizing
14345
14346 2004-11-01 19:47  jackson
14347
14348         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
14349           tab controls
14350
14351 2004-11-01 19:39  jackson
14352
14353         * TabPage.cs: add internal property to store the bounds of a tab
14354           page
14355
14356 2004-10-30 04:23  ravindra
14357
14358         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
14359           values.
14360
14361 2004-10-30 04:21  ravindra
14362
14363         * ListView.cs, ListViewItem.cs: Added support for scrolling and
14364           fixed calculations.
14365
14366 2004-10-30 03:06  pbartok
14367
14368         * XplatUIX11.cs:
14369           - Removed extension of DllImported libs
14370
14371 2004-10-29 09:55  jordi
14372
14373         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
14374           navigation, itemcollection completion, menu fixes
14375
14376 2004-10-27 22:58  pbartok
14377
14378         * XplatUIX11.cs:
14379           - Now throws a nice error message when no X display could be opened
14380
14381 2004-10-26 13:51  jordi
14382
14383         * ListView.cs: removes warning
14384
14385 2004-10-26 03:55  ravindra
14386
14387         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
14388           ThemeWin32Classic.cs: Some formatting for my last checkins.
14389
14390 2004-10-26 03:36  ravindra
14391
14392         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
14393           control and default values.
14394
14395 2004-10-26 03:35  ravindra
14396
14397         * Theme.cs: Added some default values for ListView control.
14398
14399 2004-10-26 03:33  ravindra
14400
14401         * ToolBar.cs: ToolBar should use the user specified button size, if
14402           there is any. Added a size_specified flag for the same.
14403
14404 2004-10-26 03:33  ravindra
14405
14406         * ColumnHeader.cs: Added some internal members and calculations for
14407           ColumnHeader.
14408
14409 2004-10-26 03:32  ravindra
14410
14411         * ListViewItem.cs: Calculations for ListViewItem.
14412
14413 2004-10-26 03:31  ravindra
14414
14415         * ListView.cs: Added some internal members and calculations for
14416           ListView.
14417
14418 2004-10-22 13:31  jordi
14419
14420         * MenuAPI.cs: speedup menus drawing
14421
14422 2004-10-22 13:16  jackson
14423
14424         * XplatUIX11.cs: Make sure to update exposed regions when adding an
14425           expose event
14426
14427 2004-10-22 11:49  jackson
14428
14429         * Control.cs: oops
14430
14431 2004-10-22 11:41  jackson
14432
14433         * Control.cs: Check to see if the window should have its background
14434           repainted by X when drawing.
14435
14436 2004-10-22 11:31  jackson
14437
14438         * XplatUIX11.cs: When invalidating areas only use XClearArea if
14439           clear is true, this way we do not get flicker from X repainting the
14440           background
14441
14442 2004-10-22 11:28  jackson
14443
14444         * XEventQueue.cs: Queue properly
14445
14446 2004-10-21 09:38  jackson
14447
14448         * XEventQueue.cs: Fix access modifier
14449
14450 2004-10-21 09:36  jackson
14451
14452         * XEventQueue.cs: Don't loose messages
14453
14454 2004-10-21 09:22  jackson
14455
14456         * XEventQueue.cs: Don't loose messages
14457
14458 2004-10-20 04:15  jordi
14459
14460         * BootMode.cs: enum need it by SystemInfo
14461
14462 2004-10-19 21:58  pbartok
14463
14464         * XplatUIWin32.cs:
14465           - Small sanity check
14466
14467 2004-10-19 21:56  pbartok
14468
14469         * Form.cs:
14470           - Added private FormParentWindow class which acts as the container
14471             for our form and as the non-client area where menus are drawn
14472           - Added/Moved required tie-ins to Jordi's menus
14473           - Fixed/Implemented the FormStartPosition functionality
14474
14475 2004-10-19 21:52  pbartok
14476
14477         * Control.cs:
14478           - Removed unneeded locals
14479           - Added code to all size and location properties to understand and
14480             deal with the parent container of Form
14481
14482 2004-10-19 21:33  pbartok
14483
14484         * Application.cs:
14485           - Fixed to deal with new Form subclasses for menus
14486
14487 2004-10-19 17:48  jackson
14488
14489         * XEventQueue.cs: commit correct version of file
14490
14491 2004-10-19 16:50  jackson
14492
14493         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
14494
14495 2004-10-19 16:15  jordi
14496
14497         * MenuAPI.cs: MenuBarCalcSize returns the height
14498
14499 2004-10-19 08:31  pbartok
14500
14501         * Control.cs:
14502           - Added missing call to PreProcessMessage before calling OnXXXKey
14503           methods
14504
14505 2004-10-19 00:04  ravindra
14506
14507         * ToolTip.cs: Fixed constructor.
14508
14509 2004-10-18 09:31  jordi
14510
14511         * MenuAPI.cs: menuitems in menubars do not have shortcuts
14512
14513 2004-10-18 09:26  jordi
14514
14515         * MenuItem.cs: fixes MenuItem class signature
14516
14517 2004-10-18 08:56  jordi
14518
14519         * MenuAPI.cs: prevents windows from showing in the taskbar
14520
14521 2004-10-18 00:28  ravindra
14522
14523         * ToolTip.cs: Suppressed a warning message.
14524
14525 2004-10-18 00:27  ravindra
14526
14527         * Control.cs: Default value of visible property must be true.
14528
14529 2004-10-17 23:19  pbartok
14530
14531         * ToolTip.cs:
14532           - Complete implementation
14533
14534 2004-10-17 23:19  pbartok
14535
14536         * XplatUIX11.cs:
14537           - Added EnableWindow method
14538           - Added SetModal stub
14539           - Added generation of WM_ACTIVATE message (still needs testing)
14540           - Added SetTopMost stub
14541           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
14542
14543 2004-10-17 23:17  pbartok
14544
14545         * XplatUIWin32.cs:
14546           - Removed VirtualKeys to XplatUIStructs
14547           - Implemented SetTopMost method
14548           - Implemented EnableWindow method
14549           - Bugfix in ScreenToClient()
14550           - Bugfixes in ClientToScreen()
14551
14552 2004-10-17 22:51  pbartok
14553
14554         * XplatUIStructs.cs:
14555           - Added WS_EX styles to WindowStyles enumeration
14556
14557 2004-10-17 22:50  pbartok
14558
14559         * XplatUI.cs, XplatUIDriver.cs:
14560           - Added method for enabling/disabling windows
14561           - Added method for setting window modality
14562           - Added method for setting topmost window
14563
14564 2004-10-17 22:49  pbartok
14565
14566         * ThemeWin32Classic.cs:
14567           - Added ToolTip drawing code
14568
14569 2004-10-17 22:49  pbartok
14570
14571         * Theme.cs:
14572           - Added ToolTip abstracts
14573
14574 2004-10-17 22:47  pbartok
14575
14576         * Form.cs:
14577           - Fixed Form.ControlCollection to handle owner relations
14578           - Added Owner/OwnedForms handling
14579           - Implemented Z-Ordering for owned forms
14580           - Removed unneeded private overload of ShowDialog
14581           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
14582             so I hope)
14583           - Fixed Close(), had wrong default
14584           - Added firing of OnLoad event
14585           - Added some commented out debug code for Ownership handling
14586
14587 2004-10-17 22:16  pbartok
14588
14589         * Control.cs:
14590           - Fixed/implemented flat list of controls
14591
14592 2004-10-17 22:14  pbartok
14593
14594         * Application.cs:
14595           - Added code to simulate modal dialogs on Win32
14596
14597 2004-10-17 16:11  jordi
14598
14599         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
14600           mouse event
14601
14602 2004-10-17 13:39  jordi
14603
14604         * MenuAPI.cs: menu drawing fixes
14605
14606 2004-10-15 09:10  ravindra
14607
14608         * StructFormat.cs: General Enum.
14609
14610 2004-10-15 09:09  ravindra
14611
14612         * SizeGripStyle.cs: Enum for Form.
14613
14614 2004-10-15 09:08  ravindra
14615
14616         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
14617           in Theme for ListView.
14618
14619 2004-10-15 09:06  ravindra
14620
14621         * ColumnHeader.cs: Flushing some formatting changes.
14622
14623 2004-10-15 09:05  ravindra
14624
14625         * ListViewItem.cs: Implemented GetBounds method and fixed coding
14626           style.
14627
14628 2004-10-15 09:03  ravindra
14629
14630         * ListView.cs: Implemented Paint method and fixed coding style.
14631
14632 2004-10-15 07:34  jordi
14633
14634         * MenuAPI.cs: fix for X11
14635
14636 2004-10-15 07:32  ravindra
14637
14638         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
14639                 - Renamed Paint() method to Draw() for clarity. Also, moved
14640                 DrawImage() to OnPaint().
14641
14642 2004-10-15 07:25  ravindra
14643
14644         * CheckBox.cs, RadioButton.cs:
14645                 - Removed Redraw (), we get it from ButtonBase.
14646                 - Implemented Paint (), to do class specific painting.
14647
14648 2004-10-15 07:16  ravindra
14649
14650         * ButtonBase.cs:
14651                 - Redraw () is not virtual now.
14652                 - Added an internal virtual method Paint (), so that
14653                 derived classes can do their painting on their own.
14654                 - Modified OnPaint () to call Paint ().
14655
14656 2004-10-15 06:43  jordi
14657
14658         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
14659           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
14660
14661 2004-10-15 00:30  ravindra
14662
14663         * MessageBox.cs:
14664                 - MessageBox on windows does not have min/max buttons.
14665                 This change in CreateParams fixes this on Windows. We
14666                 still need to implement this windowstyle behavior in
14667                 our X11 driver.
14668
14669 2004-10-14 05:14  ravindra
14670
14671         * ToolBar.cs:
14672                 - Changed Redraw () to do a Refresh () always.
14673                 - Fixed the MouseMove event handling when mouse is pressed,
14674                 ie drag event handling.
14675                 - Replaced the usage of ToolBarButton.Pressed property to
14676                 ToolBarButton.pressed internal variable.
14677
14678 2004-10-14 05:10  ravindra
14679
14680         * ToolBarButton.cs:
14681                 - Added an internal member 'inside' to handle mouse move
14682                 with mouse pressed ie mouse drag event.
14683                 - Changed 'Pressed' property to return true only when
14684                 'inside' and 'pressed' are both true.
14685                 - Some coding style love.
14686
14687 2004-10-14 00:17  ravindra
14688
14689         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
14690           public method.
14691
14692 2004-10-14 00:15  ravindra
14693
14694         * ButtonBase.cs: Redraw () related improvements.
14695
14696 2004-10-14 00:14  ravindra
14697
14698         * MessageBox.cs: Moved InitFormSize () out of Paint method and
14699           removed unnecessary calls to Button.Show () method.
14700
14701 2004-10-13 17:50  pbartok
14702
14703         * XplatUIX11.cs:
14704           - Formatting fix
14705           - Removed destroying of window until we solve the problem of X
14706             destroying the window before us on shutdown
14707
14708 2004-10-13 16:32  pbartok
14709
14710         * ButtonBase.cs:
14711           - Now Redraws on MouseUp for FlatStyle Flat and Popup
14712
14713 2004-10-13 14:18  pbartok
14714
14715         * XplatUIX11.cs:
14716           - Added code to destroy the X window
14717
14718 2004-10-13 14:18  pbartok
14719
14720         * XplatUIWin32.cs:
14721           - Added code to destroy a window
14722
14723 2004-10-13 14:12  pbartok
14724
14725         * ButtonBase.cs:
14726           - Added the Redraw on Resize that got dropped in the last rev
14727
14728 2004-10-13 09:06  pbartok
14729
14730         * ThemeWin32Classic.cs:
14731           - Path from John BouAntoun:
14732             * Fix check rendering (centre correctly for normal style, offset
14733               correctly for FlatStyle).
14734             * Fix border color usage (use backcolor) for FlatStyle.Popup
14735             * Use checkbox.Capture instead of checkbox.is_pressed when
14736               rendering flatstyle states.
14737
14738 2004-10-12 21:48  pbartok
14739
14740         * ThemeWin32Classic.cs:
14741           - Removed all occurences of SystemColors and replaced them with the
14742             matching theme color
14743
14744 2004-10-12 21:41  pbartok
14745
14746         * ThemeWin32Classic.cs:
14747           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
14748             him using the function for flatstyle drawing
14749           - Changed functions to use the new version of CPDrawBorder3D
14750
14751 2004-10-12 21:15  pbartok
14752
14753         * ControlPaint.cs:
14754           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
14755             match MS documentation. They need to return defined colors if the
14756             passed color matches the configured control color. Thanks to John
14757             BouAntoun for pointing this out.
14758
14759 2004-10-12 20:57  pbartok
14760
14761         * Control.cs:
14762           - Fix from John BouAntoun: Raise ForeColorChanged event when text
14763             color is changed
14764
14765 2004-10-12 20:46  pbartok
14766
14767         * CheckBox.cs:
14768           - Fix from John BouAntoun: Now properly sets the Appearance property
14769
14770 2004-10-12 20:45  pbartok
14771
14772         * ThemeWin32Classic.cs:
14773           - Fixes from John BouAntoun: now handles forecolors and backcolors
14774             for flatstyle rendered controls much better; It also fixes normal
14775             checkbox rendering when pushed or disabled.
14776
14777 2004-10-08 02:50  jordi
14778
14779         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
14780           work
14781
14782 2004-10-07 08:56  jordi
14783
14784         * ThemeWin32Classic.cs: Removes deletion of cached brushes
14785
14786 2004-10-06 03:59  jordi
14787
14788         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
14789           XplatUIWin32.cs: removes warnings from compilation
14790
14791 2004-10-05 12:23  jackson
14792
14793         * RadioButton.cs: Fix ctor
14794
14795 2004-10-05 11:10  pbartok
14796
14797         * MessageBox.cs:
14798           - Partial implementation by Benjamin Dasnois
14799
14800 2004-10-05 10:15  jackson
14801
14802         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
14803           by John BouAntoun
14804
14805 2004-10-05 03:07  ravindra
14806
14807         * ToolBar.cs:
14808                 - Removed a private method, Draw ().
14809                 - Fixed the ButtonDropDown event handling.
14810                 - Fixed MouseMove event handling.
14811
14812 2004-10-05 03:04  ravindra
14813
14814         * ThemeWin32Classic.cs:
14815                 - Added DrawListView method and ListViewDefaultSize property.
14816                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
14817                 - Changed DOS style CRLF to Unix format (dos2unix).
14818
14819 2004-10-05 03:03  ravindra
14820
14821         * Theme.cs:
14822                 - Added DrawListView method and ListViewDefaultSize property.
14823
14824 2004-10-05 02:42  ravindra
14825
14826         * ToolBarButton.cs: Added an internal member dd_pressed to handle
14827           clicks on DropDown arrow.
14828
14829 2004-10-04 22:56  jackson
14830
14831         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
14832           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
14833           Control handle the buffers, derived classes should not have to
14834           CreateBuffers themselves.
14835
14836 2004-10-04 21:20  jackson
14837
14838         * StatusBar.cs: The control handles resizing the buffers now.
14839
14840 2004-10-04 21:18  jackson
14841
14842         * Control.cs: When resizing the buffers should be invalidated. This
14843           should be handled in Control not in derived classes.
14844
14845 2004-10-04 14:45  jackson
14846
14847         * TabPage.cs: oops
14848
14849 2004-10-04 02:14  pbartok
14850
14851         * LeftRightAlignment.cs:
14852           - Initial check-in
14853
14854 2004-10-04 01:09  jordi
14855
14856         * ThemeWin32Classic.cs: fixes right button position causing right
14857           button not showing on horizontal scrollbars
14858
14859 2004-10-02 13:12  pbartok
14860
14861         * XplatUIX11.cs:
14862           - Simplified the Invalidate method by using an X call instead of
14863             generating the expose ourselves
14864           - Added an expose when the window background is changed
14865           - Implemented ClientToScreen method
14866
14867 2004-10-02 13:08  pbartok
14868
14869         * XplatUIWin32.cs:
14870           - Added Win32EnableWindow method (test for implementing modal
14871           dialogs)
14872           - Added ClientToScreen method and imports
14873
14874 2004-10-02 13:07  pbartok
14875
14876         * XplatUI.cs, XplatUIDriver.cs:
14877           - Added ClientToScreen coordinate translation method
14878
14879 2004-10-02 13:06  pbartok
14880
14881         * KeyPressEventArgs.cs:
14882           - Fixed access level for constructor
14883
14884 2004-10-02 13:06  pbartok
14885
14886         * NativeWindow.cs:
14887           - Changed access level for the window_collection hash table
14888
14889 2004-10-02 13:05  pbartok
14890
14891         * Form.cs:
14892           - Added KeyPreview property
14893           - Added Menu property (still incomplete, pending Jordi's menu work)
14894           - Implemented ProcessCmdKey
14895           - Implemented ProcessDialogKey
14896           - Implemented ProcessKeyPreview
14897
14898 2004-10-02 13:02  pbartok
14899
14900         * Control.cs:
14901           - Added private method to get the Control object from the window
14902           handle
14903           - Implemented ContextMenu property
14904           - Implemented PointToScreen
14905           - Implemented PreProcessMessage
14906           - Implemented IsInputChar
14907           - Implemented IsInputKey
14908           - Implemented ProcessCmdKey
14909           - Completed ProcessKeyEventArgs
14910           - Fixed message loop to call the proper chain of functions on key
14911           events
14912           - Implemented ProcessDialogChar
14913           - Implemented ProcessDialogKey
14914           - Implemented ProcessKeyMessage
14915           - Implemented ProcessKeyPreview
14916           - Added RaiseDragEvent stub (MS internal method)
14917           - Added RaiseKeyEvent stub (MS internal method)
14918           - Added RaiseMouseEvent stub (MS Internal method)
14919           - Added RaisePaintEvent stub (MS Internal method)
14920           - Added ResetMouseEventArgs stub (MS Internal method)
14921           - Implemented RtlTranslateAlignment
14922           - Implemented RtlTranslateContent
14923           - Implemented RtlTranslateHorizontal
14924           - Implemented RtlTranslateLeftRight
14925           - Added generation of KeyPress event
14926
14927 2004-10-02 05:57  ravindra
14928
14929         * ListViewItem.cs: Added attributes.
14930
14931 2004-10-02 05:32  ravindra
14932
14933         * ListView.cs: Added attributes.
14934
14935 2004-10-01 11:53  jackson
14936
14937         * Form.cs: Implement the Close method so work on MessageBox can
14938           continue.
14939
14940 2004-09-30 14:06  pbartok
14941
14942         * XplatUIX11.cs:
14943           - Bug fixes
14944
14945 2004-09-30 11:34  jackson
14946
14947         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
14948
14949 2004-09-30 07:26  ravindra
14950
14951         * ListViewItemConverter.cs: Converter for ListViewItem.
14952
14953 2004-09-30 07:26  ravindra
14954
14955         * SortOrder.cs: Enum for ListView control.
14956
14957 2004-09-30 07:25  ravindra
14958
14959         * ColumnHeader.cs: Supporting class for ListView control.
14960
14961 2004-09-30 07:24  ravindra
14962
14963         * ListView.cs, ListViewItem.cs: Initial implementation.
14964
14965 2004-09-30 07:20  ravindra
14966
14967         * ItemActivation.cs: Enum for ListView Control.
14968
14969 2004-09-29 20:29  pbartok
14970
14971         * XplatUIX11.cs:
14972           - Added lookup of pixel value for background color; tries to get a
14973             color 'close' to the requested color, it avoids having to create a
14974             colormap.  Depending on the display this could mean the used color
14975             is slightly off the desired color. Might have to change it to a more
14976             resource intensive colormap approach, but it will work as a
14977           workaround to avoid red screens.
14978
14979 2004-09-29 14:27  jackson
14980
14981         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
14982
14983 2004-09-28 12:44  pbartok
14984
14985         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
14986           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
14987           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
14988           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
14989           TrackBar.cs, VScrollBar.cs:
14990           - Streamlined Theme interfaces:
14991             * Each DrawXXX method for a control now is passed the object for
14992               the control to be drawn in order to allow accessing any state the
14993               theme might require
14994
14995             * ControlPaint methods for the theme now have a CP prefix to avoid
14996               name clashes with the Draw methods for controls
14997
14998             * Every control now retrieves it's DefaultSize from the current
14999             theme
15000
15001 2004-09-28 12:17  jackson
15002
15003         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
15004           drawing
15005
15006 2004-09-24 14:57  jackson
15007
15008         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
15009           Gives us a nice little performance boost.
15010
15011 2004-09-24 12:02  jackson
15012
15013         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
15014           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
15015           Control and supporting classes. Initial checkin
15016
15017 2004-09-23 13:08  jackson
15018
15019         * Form.cs: Temp build fixage
15020
15021 2004-09-23 01:39  ravindra
15022
15023         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
15024           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
15025           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
15026           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
15027           EventHandlers needed by ListView Control.
15028
15029 2004-09-22 14:12  pbartok
15030
15031         * ScrollableControl.cs:
15032           - Implemented DockPadding property
15033           - Implemented AutoScroll property
15034           - Implemented AutoScrollMargin property
15035           - Implemented AutoScrollMinSize property
15036           - Implemented AutoScrollPosition property
15037           - Implemented DisplayRectangle property (still incomplete)
15038           - Implemented CreateParams property
15039           - Implemented HScroll property
15040           - Implemented VScroll property
15041           - Implemented OnVisibleChanged property
15042
15043 2004-09-22 14:09  pbartok
15044
15045         * Form.cs:
15046           - Added Form.ControllCollection class
15047           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
15048             RemoveOwnedForm (still incomplete, missing on-top and common
15049             minimize/maximize behaviour)
15050           - Added StartPosition property (still incomplete, does not use when
15051             creating the form)
15052           - Added ShowDialog() methods (still incomplete, missing forcing the
15053             dialog modal)
15054
15055 2004-09-22 14:05  pbartok
15056
15057         * Application.cs:
15058           - Added message loop for modal dialogs
15059
15060 2004-09-22 14:02  pbartok
15061
15062         * GroupBox.cs:
15063           - Fixed wrong types for events
15064
15065 2004-09-22 14:00  pbartok
15066
15067         * Shortcut.cs, FormWindowState.cs:
15068           - Fixed wrong values
15069
15070 2004-09-22 12:01  jackson
15071
15072         * Control.cs: Text is never null
15073
15074 2004-09-20 22:14  pbartok
15075
15076         * XplatUIWin32.cs:
15077           - Fixed accessibility level for Idle handler
15078
15079 2004-09-20 18:54  jackson
15080
15081         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
15082           XplatUIX11.cs: New message loop that uses poll so we don't get a
15083           busy loop
15084
15085 2004-09-17 10:43  pbartok
15086
15087         * ScrollBar.cs:
15088           - Fixed behaviour of arrow buttons. Now properly behaves like
15089             Buttons (and like Microsoft's scrollbar arrow buttons)
15090
15091 2004-09-17 10:14  pbartok
15092
15093         * ScrollBar.cs:
15094           - Added missing release of keyboard/mouse capture
15095
15096 2004-09-17 06:18  jordi
15097
15098         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
15099           Theme.cs: Very early menu support
15100
15101 2004-09-16 17:45  pbartok
15102
15103         * XplatUIWin32.cs:
15104           - Fixed sending a window to the front
15105           - Added overload for SetWindowPos to avoid casting
15106
15107 2004-09-16 17:44  pbartok
15108
15109         * Control.cs:
15110           - Added SendToBack and BringToFront methods
15111
15112 2004-09-16 07:00  ravindra
15113
15114         * Copyright: Added Novell URL.
15115
15116 2004-09-16 07:00  ravindra
15117
15118         * ToolBar.cs: Invalidate should be done before redrawing.
15119
15120 2004-09-15 21:19  ravindra
15121
15122         * ColumnHeaderStyle.cs: Enum for ListView Control.
15123
15124 2004-09-15 21:18  ravindra
15125
15126         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
15127           ListView Control.
15128
15129 2004-09-13 18:26  jackson
15130
15131         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
15132           properly
15133
15134 2004-09-13 18:13  jackson
15135
15136         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
15137           a second thread and post messages into the main threads message
15138           queue. This makes timing much more consistent. Both win2K and XP
15139           have a minimum timer value of 15 milliseconds, so we now do this
15140           too.
15141
15142 2004-09-13 15:18  pbartok
15143
15144         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
15145           XplatUIX11.cs:
15146           - Added Z-Ordering methods
15147
15148 2004-09-13 10:56  pbartok
15149
15150         * Form.cs:
15151           - Fixed #region names
15152           - Moved properties and methods into their proper #regions
15153
15154 2004-09-13 10:51  pbartok
15155
15156         * Form.cs:
15157           - Added Accept and CancelButton properties
15158           - Added ProcessDialogKey() method
15159
15160 2004-09-13 08:18  pbartok
15161
15162         * IWindowTarget.cs:
15163           - Initial check-in
15164
15165 2004-09-10 21:50  pbartok
15166
15167         * Control.cs:
15168           - Added DoDragDrop() [incomplete]
15169           - Properly implemented 'Visible' handling
15170           - Added SetVisibleCore()
15171           - Implemented FindChildAtPoint()
15172           - Implemented GetContainerControl()
15173           - Implemented Hide()
15174
15175 2004-09-10 19:28  pbartok
15176
15177         * Control.cs:
15178           - Moved methods into their appropriate #regions
15179           - Reordered methods within regions alphabetically
15180
15181 2004-09-10 18:57  pbartok
15182
15183         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
15184           - Added method to retrieve text from window
15185
15186 2004-09-10 18:56  pbartok
15187
15188         * Control.cs:
15189           - Moved some internal functions into the internal region
15190           - Implemented FontHeight
15191           - Implemented RenderRightToLeft
15192           - Implemented ResizeRedraw
15193           - Implemented ShowFocusCues
15194           - Implemented ShowKeyboardCues
15195           - Implemented FromChildHandle
15196           - Implemented FromHandle
15197           - Implemented IsMnemonic
15198           - Implemented ReflectMessage
15199           - All public and protected Static Methods are now complete
15200
15201 2004-09-10 16:54  pbartok
15202
15203         * Control.cs:
15204           - Implemented remaining missing public instance properties
15205           - Alphabetized some out of order properties
15206
15207 2004-09-10 05:51  ravindra
15208
15209         * PictureBox.cs: Added a check for null image.
15210
15211 2004-09-10 00:59  jordi
15212
15213         * GroupBox.cs: remove cvs tag
15214
15215 2004-09-09 05:25  ravindra
15216
15217         * ToolBar.cs: Make redraw accessible from ToolBarButton.
15218
15219 2004-09-09 05:23  ravindra
15220
15221         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
15222           parent redraw.
15223
15224 2004-09-09 02:28  pbartok
15225
15226         * ThemeWin32Classic.cs:
15227           - Improve disabled string look
15228
15229 2004-09-09 01:15  jordi
15230
15231         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
15232           args and handler
15233
15234 2004-09-08 23:56  ravindra
15235
15236         * ItemBoundsPortion.cs: It's enum, not a class!
15237
15238 2004-09-08 23:47  ravindra
15239
15240         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
15241           Enums for Form.
15242
15243 2004-09-08 21:13  ravindra
15244
15245         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
15246           ListView control.
15247
15248 2004-09-08 21:03  ravindra
15249
15250         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
15251           avoid crash.
15252
15253 2004-09-08 21:01  ravindra
15254
15255         * ScrollableControl.cs: Removed unreachable code.
15256
15257 2004-09-08 06:45  jordi
15258
15259         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
15260
15261 2004-09-08 01:00  jackson
15262
15263         * XplatUIX11.cs: Only run the timers when updating the message
15264           queue. This effectively gives X messages a higher priority then
15265           timer messages. Timers still need love though
15266
15267 2004-09-07 14:01  jackson
15268
15269         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
15270           this for us and the handle is no longer valid.
15271
15272 2004-09-07 13:59  jackson
15273
15274         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
15275           loop that manages to not crash. TODO: Add poll and cleanup timers
15276
15277 2004-09-07 11:12  jordi
15278
15279         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
15280
15281 2004-09-07 03:40  jordi
15282
15283         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
15284           fixes, methods, multiple links
15285
15286 2004-09-06 06:55  jordi
15287
15288         * Control.cs: Caches ClientRectangle rectangle value
15289
15290 2004-09-05 02:03  jordi
15291
15292         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
15293           certain situations
15294
15295 2004-09-04 11:10  jordi
15296
15297         * Label.cs: Refresh when font changed
15298
15299 2004-09-02 16:24  pbartok
15300
15301         * Control.cs:
15302           - Added sanity check to creation of double buffer bitmap
15303
15304 2004-09-02 16:24  pbartok
15305
15306         * ButtonBase.cs:
15307           - Fixed selection of text color
15308           - Fixed handling of resize event; now properly recreates double
15309             buffering bitmap
15310           - Added missing assignment of TextAlignment
15311           - Added proper default for TextAlignment
15312
15313 2004-09-02 14:26  pbartok
15314
15315         * RadioButton.cs:
15316           - Added missing RadioButton.RadioButtonAccessibleObject class
15317
15318 2004-09-02 14:26  pbartok
15319
15320         * Control.cs:
15321           - Added missing Control.ControlAccessibleObject class
15322           - Started to implement Select()ion mechanisms, still very incomplete
15323
15324 2004-09-02 14:25  pbartok
15325
15326         * AccessibleObject.cs:
15327           - Added missing methods
15328
15329 2004-09-02 14:23  pbartok
15330
15331         * AccessibleNavigation.cs, AccessibleSelection.cs:
15332           - Initial check-in
15333
15334 2004-09-02 10:32  jordi
15335
15336         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
15337           pool for pens, brushes, and hatchbruses
15338
15339 2004-09-01 15:30  jackson
15340
15341         * StatusBar.cs: Fix typo
15342
15343 2004-09-01 14:44  pbartok
15344
15345         * RadioButton.cs:
15346           - Fixed state
15347
15348 2004-09-01 14:39  pbartok
15349
15350         * Button.cs, RadioButton.cs:
15351           - Functional initial check-in
15352
15353 2004-09-01 14:01  pbartok
15354
15355         * CheckBox.cs:
15356           - Added missing default
15357           - Added missing region mark
15358
15359 2004-09-01 09:10  jordi
15360
15361         * Label.cs: fixes method signatures, new methods, events, fixes
15362           autosize
15363
15364 2004-09-01 07:19  jordi
15365
15366         * Control.cs: Init string variables with an empty object
15367
15368 2004-09-01 04:20  jordi
15369
15370         * Control.cs: fires OnFontChanged event
15371
15372 2004-08-31 20:07  pbartok
15373
15374         * ButtonBase.cs:
15375           - Enabled display of strings
15376
15377 2004-08-31 20:05  pbartok
15378
15379         * Form.cs:
15380           - Added (partial) implementation of DialogResult; rest needs to be
15381             implemented when the modal loop code is done
15382
15383 2004-08-31 19:55  pbartok
15384
15385         * CheckBox.cs:
15386           - Fixed to match the removal of the needs_redraw concept
15387
15388 2004-08-31 19:55  pbartok
15389
15390         * ButtonBase.cs:
15391           - Removed the rather odd split between 'needs redraw' and redrawing
15392           - Now handles the events that require regeneration (ambient
15393             properties and size)
15394
15395 2004-08-31 19:41  pbartok
15396
15397         * Control.cs:
15398           - Added firing of BackColorChanged event
15399           - Added TopLevelControl property
15400           - Fixed handling of WM_ERASEBKGRND message
15401
15402 2004-08-31 12:49  pbartok
15403
15404         * ButtonBase.cs:
15405           - Removed debug
15406           - Minor fixes
15407
15408 2004-08-31 12:48  pbartok
15409
15410         * CheckBox.cs:
15411           - Finished (famous last words)
15412
15413 2004-08-31 04:35  jordi
15414
15415         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
15416           scrolling bugs, adds new methods
15417
15418 2004-08-30 14:42  pbartok
15419
15420         * CheckBox.cs:
15421           - Implemented CheckBox drawing code
15422
15423 2004-08-30 14:42  pbartok
15424
15425         * ButtonBase.cs:
15426           - Made Redraw() and CheckRedraw() virtual
15427           - Improved mouse up/down/move logic to properly track buttons
15428
15429 2004-08-30 09:44  pbartok
15430
15431         * CheckBox.cs:
15432           - Updated to fix broken build. Not complete yet.
15433
15434 2004-08-30 09:28  pbartok
15435
15436         * CheckState.cs:
15437           - Initial checkin
15438
15439 2004-08-30 09:17  pbartok
15440
15441         * Appearance.cs:
15442           - Initial check-in
15443
15444 2004-08-27 16:12  ravindra
15445
15446         * ToolBarButton.cs: Added TypeConverter attribute.
15447
15448 2004-08-27 16:07  ravindra
15449
15450         * ImageIndexConverter.cs: Implemented.
15451
15452 2004-08-27 14:17  pbartok
15453
15454         * Control.cs:
15455           - Removed unneeded stack vars
15456           - First attempt to fix sizing issues when layout is suspended
15457
15458 2004-08-25 15:35  jordi
15459
15460         * ScrollBar.cs: more fixes to scrollbar
15461
15462 2004-08-25 14:04  ravindra
15463
15464         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
15465           Added the missing divider code and grip for ToolBar Control.
15466
15467 2004-08-25 13:20  pbartok
15468
15469         * Control.cs:
15470           - Control now properly passes the ambient background color to child
15471             controls
15472
15473 2004-08-25 13:20  jordi
15474
15475         * ScrollBar.cs: small bug fix regarding bar position
15476
15477 2004-08-25 12:33  pbartok
15478
15479         * Timer.cs:
15480           - Now only calls SetTimer or KillTimer if the enabled state has
15481           changed
15482
15483 2004-08-25 12:33  pbartok
15484
15485         * XplatUIWin32.cs:
15486           - Fixed timer handling, now seems to work
15487           - Improved error message for window creation
15488
15489 2004-08-25 12:32  pbartok
15490
15491         * Control.cs:
15492           - Fixed generation of MouseUp message
15493
15494 2004-08-25 12:29  jordi
15495
15496         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
15497           and fixes for progressbar
15498
15499 2004-08-24 18:43  ravindra
15500
15501         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
15502           in ToolBar control.
15503
15504 2004-08-24 17:15  pbartok
15505
15506         * Panel.cs:
15507           - Added #region
15508           - Added missing events
15509           - Alphabetized
15510
15511 2004-08-24 17:14  pbartok
15512
15513         * StatusBar.cs, PictureBox.cs:
15514           - Now uses Control's CreateParams
15515
15516 2004-08-24 16:36  pbartok
15517
15518         * XplatUIX11.cs:
15519           - Fixed background color handling
15520           - Fixed sending of enter/leave events on a grab
15521
15522 2004-08-24 16:35  pbartok
15523
15524         * X11Structs.cs:
15525           - Refined definitions for CrossingEvent
15526
15527 2004-08-24 12:37  jordi
15528
15529         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
15530           formmating, methods signature, and adds missing events
15531
15532 2004-08-24 12:24  jordi
15533
15534         * Control.cs: fire OnEnabledChanged event
15535
15536 2004-08-24 11:17  pbartok
15537
15538         * XplatUIWin32.cs:
15539           - Implemented SetTimer() and KillTimer()
15540
15541 2004-08-24 11:16  pbartok
15542
15543         * XplatUIX11.cs:
15544           - Now uses Remove instead of Add to kill the timer
15545
15546 2004-08-24 10:16  jackson
15547
15548         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
15549           picture boxes in the theme now. Draw picture box borders and obey
15550           sizing modes
15551
15552 2004-08-24 05:49  jackson
15553
15554         * Timer.cs: Remove top secret debugging code
15555
15556 2004-08-24 05:34  jackson
15557
15558         * PictureBox.cs: Temp hack to make picture boxes draw their full
15559           image
15560
15561 2004-08-24 05:29  jackson
15562
15563         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
15564           XplatUIX11.cs: Move timers to the driver level. On X they are
15565           queued by the driver and checked on idle.
15566
15567 2004-08-24 01:07  jackson
15568
15569         * XplatUIX11.cs: Use a queue for async messages instead of passing
15570           them as ClientMessages since that was totally broken. Also simply
15571           check for events and return an idle message if none are found. This
15572           gives us an idle handler, and prevents deadlocking when no messages
15573           are in the queue.
15574
15575 2004-08-23 18:19  ravindra
15576
15577         * XplatUIWin32.cs: Removed the unwanted destructor.
15578
15579 2004-08-23 17:27  pbartok
15580
15581         * ButtonBase.cs:
15582           - Finishing touches. Works now, just needs some optimizations.
15583
15584 2004-08-23 16:53  jordi
15585
15586         * ScrollBar.cs: small fix
15587
15588 2004-08-23 16:45  pbartok
15589
15590         * Application.cs:
15591           - Removed debug output
15592           - Simplifications
15593
15594 2004-08-23 16:43  jordi
15595
15596         * ScrollBar.cs: [no log message]
15597
15598 2004-08-23 16:10  pbartok
15599
15600         * Form.cs:
15601           - Fixed handling of WM_CLOSE message
15602           - Removed debug output
15603
15604 2004-08-23 16:09  pbartok
15605
15606         * Application.cs:
15607           - Added handling of Idle event
15608           - Added handling of form closing
15609           - Fixed reporting of MessageLoop property
15610           - Removed some unneeded code, should provide a bit of a speedup
15611
15612 2004-08-23 15:22  pbartok
15613
15614         * Control.cs:
15615           - Added InitLayout() method
15616           - Added code to properly perform layout when Anchor or Dock property
15617             is changed
15618           - Changed 'interpretation' of ResumeLayout. MS seems to have a
15619             LAMESPEC, tried to do it in a way that makes sense
15620
15621 2004-08-23 14:10  jordi
15622
15623         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
15624           properties and methods
15625
15626 2004-08-23 13:55  pbartok
15627
15628         * Control.cs:
15629           - Properly fixed Jordi's last fix
15630           - Now uses Cursor's Position property instead of calling XplatUI
15631           directly
15632
15633 2004-08-23 13:44  jordi
15634
15635         * PaintEventHandler.cs: Adding missing attribute
15636
15637 2004-08-23 13:39  pbartok
15638
15639         * Cursor.cs:
15640           - Implemented Position property
15641
15642 2004-08-23 13:39  pbartok
15643
15644         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
15645           - Added method to move mouse cursor
15646
15647 2004-08-23 13:39  pbartok
15648
15649         * XplatUIX11.cs:
15650           - Fixed setting of background color
15651           - Added method to move mouse cursor
15652
15653 2004-08-23 13:16  jordi
15654
15655         * Control.cs: avoids null exception
15656
15657 2004-08-22 17:46  jackson
15658
15659         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
15660           PictureBox
15661
15662 2004-08-22 17:40  jackson
15663
15664         * XplatUIX11.cs: Add some missing locks
15665
15666 2004-08-22 15:10  pbartok
15667
15668         * Control.cs, Form.cs:
15669           - Removed OverlappedWindow style from Control, instead it's default
15670             now is child
15671           - Made form windows OverlappedWindow by default
15672
15673 2004-08-22 13:34  jackson
15674
15675         * ScrollBar.cs: Update the position through the Value property so
15676           the OnValueChanged event is raised.
15677
15678 2004-08-22 12:04  pbartok
15679
15680         * SWF.csproj:
15681           - Added Cursor.cs and UserControl.cs
15682
15683 2004-08-22 12:03  pbartok
15684
15685         * Cursor.cs:
15686           - Started implementation, not usable yet
15687
15688 2004-08-22 12:00  pbartok
15689
15690         * UserControl.cs:
15691           - Implemented UserControl (complete)
15692
15693 2004-08-21 19:20  ravindra
15694
15695         * ToolBar.cs: Correcting the formatting mess of VS.NET.
15696
15697 2004-08-21 18:49  ravindra
15698
15699         * ToolBar.cs: Probably this completes the missing attributes in
15700           toolbar control.
15701
15702 2004-08-21 18:03  ravindra
15703
15704         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
15705           Fixed toolbar control signatures.
15706
15707 2004-08-21 16:32  pbartok
15708
15709         * LinkLabel.cs:
15710           - Signature Fixes
15711
15712 2004-08-21 16:30  pbartok
15713
15714         * Label.cs:
15715           - Signature fixes
15716
15717 2004-08-21 16:19  pbartok
15718
15719         * Control.cs, Label.cs:
15720           - Signature fixes
15721
15722 2004-08-21 15:57  pbartok
15723
15724         * ButtonBase.cs:
15725           - Added loads of debug output for development
15726           - Fixed typo in method name
15727
15728 2004-08-21 15:52  pbartok
15729
15730         * ToolBarButtonClickEventArgs.cs:
15731           - Added missing base class
15732
15733 2004-08-21 14:53  pbartok
15734
15735         * Control.cs:
15736           - Updated to match new GrabWindow signature
15737
15738 2004-08-21 14:51  pbartok
15739
15740         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
15741           - Added method to get default display size
15742
15743 2004-08-21 14:23  pbartok
15744
15745         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
15746           - Added method to query current grab state
15747           - Added argument to allow confining a grab to a window
15748
15749 2004-08-21 14:22  pbartok
15750
15751         * Keys.cs:
15752           - Added [Flags] attribute so that modifiers can be used in bitwise
15753           ops
15754
15755 2004-08-21 14:21  pbartok
15756
15757         * TrackBar.cs, ScrollBar.cs:
15758           - Replaced direct XplatUI calls with their Control counterpart
15759
15760 2004-08-21 13:32  pbartok
15761
15762         * Control.cs:
15763           - Implemented Created property
15764
15765 2004-08-21 13:28  pbartok
15766
15767         * Control.cs:
15768           - Implemented ContainsFocus
15769
15770 2004-08-21 13:26  pbartok
15771
15772         * Control.cs:
15773           - Implemented CausesValidation
15774
15775 2004-08-21 13:21  pbartok
15776
15777         * Control.cs:
15778           - Implemented CanFocus
15779           - Implemented CanSelect
15780           - Implemented Capture
15781
15782 2004-08-21 12:35  pbartok
15783
15784         * XplatUIWin32.cs:
15785           - Fixed bug with Async message handling
15786           - Implemented getting the ModifierKeys
15787
15788 2004-08-21 12:32  jackson
15789
15790         * AsyncMethodResult.cs: Make sure we have the mutex before we
15791           release it. Fixes BeginInvoke on windows
15792
15793 2004-08-21 11:31  pbartok
15794
15795         * XplatUIWin32.cs, XplatUIX11.cs:
15796           - Drivers now return proper mouse state
15797
15798 2004-08-21 10:54  jackson
15799
15800         * Control.cs: Implement EndInvoke
15801
15802 2004-08-21 10:48  jackson
15803
15804         * Timer.cs: Remove unneeded finalizer
15805
15806 2004-08-20 19:52  ravindra
15807
15808         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
15809           in mouse event handling in the ToolBar control.
15810
15811 2004-08-20 19:50  ravindra
15812
15813         * ImageList.cs: Changed draw method to use the arguments passed in
15814           to draw the image.
15815
15816 2004-08-20 18:58  pbartok
15817
15818         * XplatUIStructs.cs:
15819           - Added private message for async communication
15820
15821 2004-08-20 17:38  ravindra
15822
15823         * Control.cs: Made RightToLeft property virtual and removed a
15824           Console.WriteLine.
15825
15826 2004-08-20 14:39  jordi
15827
15828         * ThemeGtk.cs: use style_attach
15829
15830 2004-08-20 14:39  pbartok
15831
15832         * XplatUIWin32.cs:
15833           - Added jackson's Async code from X11 to Win32
15834
15835 2004-08-20 14:09  pbartok
15836
15837         * SWF.csproj:
15838           - Added all new files
15839
15840 2004-08-20 14:09  pbartok
15841
15842         * Control.cs:
15843           - Added call to set window background color
15844
15845 2004-08-20 14:03  pbartok
15846
15847         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
15848           - Added method for setting the window background
15849
15850 2004-08-20 14:02  pbartok
15851
15852         * XplatUIWin32.cs:
15853           - Added method for setting the background color
15854           - Added handling for erasing the window background
15855
15856 2004-08-20 13:45  jordi
15857
15858         * TrackBar.cs: fixes timer, new properties and methods
15859
15860 2004-08-20 13:34  jackson
15861
15862         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
15863           correct thread
15864
15865 2004-08-20 13:22  jackson
15866
15867         * Timer.cs: Timer Tick events are now handed through Controls Async
15868           mechanism so the callbacks are executed in the same thread as X
15869
15870 2004-08-20 13:19  jackson
15871
15872         * XplatUIDriver.cs: Expose functionality to send async messages
15873           through the driver
15874
15875 2004-08-20 13:18  jackson
15876
15877         * Control.cs: Implement Begininvoke
15878
15879 2004-08-20 13:14  jackson
15880
15881         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
15882           messages through the driver
15883
15884 2004-08-20 13:12  jackson
15885
15886         * XplatUIX11.cs: Lock before all X operations. Also added Async
15887           method functionality through XSendEvent
15888
15889 2004-08-20 13:11  jackson
15890
15891         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
15892           This will screw up on 64 bit systems)
15893
15894 2004-08-20 13:10  jackson
15895
15896         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
15897           Async messages through X/Win32
15898
15899 2004-08-19 19:39  pbartok
15900
15901         * XplatUIX11.cs:
15902           - Updated code to match new HandleData.DeviceContext type
15903
15904 2004-08-19 19:38  pbartok
15905
15906         * HandleData.cs:
15907           - Made DeviceContext a generic object to allow usage from various
15908           drivers
15909           - Added support for queueing Windows messages
15910
15911 2004-08-19 19:37  pbartok
15912
15913         * XplatUIWin32.cs:
15914           - Added generation of MouseEnter, MouseLeave and MouseHover events
15915           - Added cleanup on EndPaint
15916
15917 2004-08-19 19:17  pbartok
15918
15919         * Control.cs:
15920           - Added handling of WM_MOUSEHOVER
15921           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
15922           code
15923
15924 2004-08-19 18:55  jordi
15925
15926         * ThemeGtk.cs: fixes button order
15927
15928 2004-08-19 18:12  jordi
15929
15930         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
15931
15932 2004-08-19 17:09  pbartok
15933
15934         * Control.cs:
15935           - Added Right property
15936           - Added RightToLeft property
15937
15938 2004-08-19 16:27  jordi
15939
15940         * ThemeGtk.cs: experimental GTK theme support
15941
15942 2004-08-19 16:26  jordi
15943
15944         * ITheme.cs, Theme.cs: move themes from an interface to a class
15945
15946 2004-08-19 16:25  jordi
15947
15948         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
15949           theme enhancaments
15950
15951 2004-08-19 16:04  pbartok
15952
15953         * XplatUIX11.cs:
15954           - Added colormap basics
15955           - Added a way to re-initialize with a different display handle
15956           - Fixed setting of the window background color
15957           - Added various X11 imports related to colors and colormaps
15958
15959 2004-08-19 15:51  pbartok
15960
15961         * X11Structs.cs:
15962           - Removed packing hints (Paolo suggested this a while back)
15963           - fixed colormap type
15964           - Added default Atom types
15965           - Added Screen and color structs and enums
15966
15967 2004-08-19 15:39  pbartok
15968
15969         * ImageList.cs:
15970           - Added missing Draw() method
15971           - Added missing RecreateHandle event
15972
15973 2004-08-19 15:30  pbartok
15974
15975         * Form.cs:
15976           - Added handling of WM_CLOSE
15977
15978 2004-08-18 13:16  jordi
15979
15980         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
15981           a table
15982
15983 2004-08-18 09:56  jordi
15984
15985         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
15986
15987 2004-08-17 15:31  ravindra
15988
15989         * SWF.csproj: Updated project.
15990
15991 2004-08-17 15:25  pbartok
15992
15993         * Control.cs:
15994           - Drawing improvement; don't call UpdateBounds if we are not visible
15995             (or have been minimized)
15996
15997 2004-08-17 15:24  pbartok
15998
15999         * XplatUIWin32.cs:
16000           - Finished IsVisible
16001           - Added Win32GetWindowPlacement
16002
16003 2004-08-17 15:08  jackson
16004
16005         * Panel.cs: Initial checkin of the Panel
16006
16007 2004-08-17 14:25  pbartok
16008
16009         * Control.cs:
16010           - Fixed broken handling of default window sizes
16011
16012 2004-08-17 13:29  jackson
16013
16014         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
16015           has a large startup time.
16016
16017 2004-08-17 10:25  jackson
16018
16019         * HandleData.cs: union areas properly
16020
16021 2004-08-17 10:12  jackson
16022
16023         * HandleData.cs: union areas properly
16024
16025 2004-08-16 20:00  ravindra
16026
16027         * ToolBar.cs, ToolBarButton.cs: Added attributes.
16028
16029 2004-08-16 18:48  ravindra
16030
16031         * ToolBar.cs: Added attributes.
16032
16033 2004-08-16 17:17  ravindra
16034
16035         * SWF.csproj: Updated project.
16036
16037 2004-08-16 17:16  jackson
16038
16039         * XplatUIX11.cs: Check for more expose events before sending a
16040           WM_PAINT so they can all be grouped together. This makes dragging a
16041           window across another window redraw in a sane way.
16042
16043 2004-08-16 15:47  pbartok
16044
16045         * Control.cs:
16046           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
16047             support OnMouseEnter/Leave()
16048           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
16049             exposure handling
16050
16051 2004-08-16 15:46  pbartok
16052
16053         * XplatUIStructs.cs, XplatUIX11.cs:
16054           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
16055           OnMouseEnter/Leave()
16056
16057 2004-08-16 15:34  jackson
16058
16059         * XplatUIX11.cs: Group multiple expose events in HandleData, make
16060           sure messages get the message field set to WM_NULL if they are not
16061           handled.
16062
16063 2004-08-16 15:24  jackson
16064
16065         * HandleData.cs: HandleData is used for storing message information
16066           for window handles
16067
16068 2004-08-15 17:23  ravindra
16069
16070         * ColorDepth.cs: Added attribute.
16071
16072 2004-08-15 17:23  ravindra
16073
16074         * SWF.csproj: Updated project for ToolBar Control.
16075
16076 2004-08-15 17:20  ravindra
16077
16078         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
16079           control and also dos2unix format.
16080
16081 2004-08-15 17:13  ravindra
16082
16083         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
16084           ToolBarButtonClickEventArgs.cs,
16085           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
16086           ToolBarTextAlign.cs: First Implementation of ToolBar control.
16087
16088 2004-08-15 15:31  pbartok
16089
16090         * ButtonBase.cs:
16091           - First (mostly) working version
16092
16093 2004-08-13 16:15  pbartok
16094
16095         * Control.cs:
16096           - Fixed Anchor default
16097
16098 2004-08-13 15:43  pbartok
16099
16100         * Control.cs:
16101           - Changed GetCursorPos signature
16102
16103 2004-08-13 15:42  pbartok
16104
16105         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
16106           - Changed signature for GetCursorPos
16107
16108 2004-08-13 15:25  pbartok
16109
16110         * XplatUIX11.cs:
16111           - Cleanup
16112           - Fixed resizing/exposure handling
16113
16114 2004-08-13 15:22  jordi
16115
16116         * ThemeWin32Classic.cs: removes redundant code and fixes issues
16117           with tickposition
16118
16119 2004-08-13 14:55  jordi
16120
16121         * TrackBar.cs: change from wndproc to events
16122
16123 2004-08-13 13:00  jordi
16124
16125         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16126           XplatUIX11.cs: implements PointToClient (ScreenToClient)
16127
16128 2004-08-13 12:53  pbartok
16129
16130         * XplatUIWin32.cs:
16131           - Changed GetWindowPos to also provide client area size
16132           - Fixed broken prototypes for several win32 functions
16133
16134 2004-08-13 12:53  pbartok
16135
16136         * XplatUI.cs, XplatUIDriver.cs:
16137           - Changed GetWindowPos to also provide client area size
16138
16139 2004-08-13 12:52  pbartok
16140
16141         * XplatUIX11.cs:
16142           - Added generation of WM_POSCHANGED
16143           - Changed GetWindowPos to also provide client area size
16144
16145 2004-08-13 12:52  pbartok
16146
16147         * Control.cs:
16148           - Added Dispose() and destructor
16149           - Fixed resizing and bounds calculation
16150           - Fixed Layout
16151           - Added memory savings for invisible windows
16152
16153 2004-08-13 12:46  jordi
16154
16155         * TrackBar.cs: adds timer and grap window
16156
16157 2004-08-13 10:25  jackson
16158
16159         * Timer.cs: SWF Timer
16160
16161 2004-08-12 16:59  pbartok
16162
16163         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16164           - Implemented method to get current mouse position
16165
16166 2004-08-12 14:29  jordi
16167
16168         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
16169           enhancement, fix mouse problems, highli thumb, etc
16170
16171 2004-08-12 13:31  pbartok
16172
16173         * Control.cs:
16174           - Fixed Anchoring bugs
16175
16176 2004-08-12 13:01  jackson
16177
16178         * StatusBar.cs: Don't forget things
16179
16180 2004-08-12 12:54  jackson
16181
16182         * ThemeWin32Classic.cs: Handle owner draw status bars
16183
16184 2004-08-12 12:54  jackson
16185
16186         * StatusBar.cs: Implement missing properties, events, and methods.
16187           Handle mouse clicking
16188
16189 2004-08-12 10:19  jackson
16190
16191         * StatusBarPanelClickEventArgs.cs,
16192           StatusBarPanelClickEventHandler.cs: Classes for handling status
16193           bar panel click events
16194
16195 2004-08-12 10:10  jackson
16196
16197         * Control.cs: Add missing properties
16198
16199 2004-08-12 09:46  pbartok
16200
16201         * BindingsManagerBase.cs:
16202           - Name changed to BindingManagerBase.cs
16203
16204 2004-08-12 09:25  jordi
16205
16206         * ScrollableControl.cs: calls ctrlbase instead of exeception
16207
16208 2004-08-11 16:28  pbartok
16209
16210         * InputLanguageChangingEventArgs.cs:
16211           - Never check in before compiling. Fixes the last check-in
16212
16213 2004-08-11 16:26  pbartok
16214
16215         * InputLanguageChangingEventArgs.cs:
16216           - More signature fixes
16217
16218 2004-08-11 16:20  pbartok
16219
16220         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
16221           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
16222           ImageListStreamer.cs, InputLanguage.cs,
16223           InputLanguageChangedEventArgs.cs,
16224           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
16225           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
16226           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
16227           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16228           - Signature fixes
16229
16230 2004-08-11 16:16  pbartok
16231
16232         * Application.cs:
16233           - Fixed Signature
16234           - Added .Net 1.1 method
16235
16236 2004-08-11 15:25  pbartok
16237
16238         * SWF.csproj:
16239           - Fixed BindingManagerBase.cs filename
16240
16241 2004-08-11 15:22  pbartok
16242
16243         * BindingManagerBase.cs:
16244           - Was checked in with wrong filename
16245
16246 2004-08-11 14:50  pbartok
16247
16248         * SWF.csproj:
16249           - Updated
16250
16251 2004-08-11 13:41  jordi
16252
16253         * XplatUIWin32.cs: Fixes ClientRect
16254
16255 2004-08-11 13:19  pbartok
16256
16257         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16258           XplatUIX11.cs:
16259           - We had SetWindowPos and MoveWindow to set window positions and
16260             size, removed MoveWindow. We have GetWindowPos, so it made sense to
16261             keep SetWindowPos as matching counterpart
16262           - Added some X11 sanity checking
16263
16264 2004-08-11 12:59  pbartok
16265
16266         * Control.cs:
16267           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
16268             (It seems that SetBounds is just a front for SetBoundsCore and
16269              SetBoundsCore updates the underlying window system and
16270              UpdateBounds is responsible for updating the variables associated
16271              with the Control and sending the events)
16272           - Major cleanup of Size handling; we now have two sizes, client_size
16273             and bounds. Bounds defines the window with decorations, client_size
16274             without them.
16275
16276 2004-08-11 12:55  pbartok
16277
16278         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16279           - Added method to calculate difference between decorated window and
16280             raw client area
16281
16282 2004-08-11 12:54  pbartok
16283
16284         * Label.cs:
16285           - Forcing redraw on resize
16286
16287 2004-08-11 11:43  pbartok
16288
16289         * ImageList.cs:
16290           - Removed disposing of the actual images when the list is disposed
16291
16292 2004-08-11 09:13  pbartok
16293
16294         * Control.cs:
16295           - Now properly reparents windows
16296
16297 2004-08-11 08:37  pbartok
16298
16299         * Control.cs:
16300           - Duh!
16301
16302 2004-08-11 07:47  pbartok
16303
16304         * Control.cs:
16305           - Rewrote the collection stuff. Might not be as fast now, not
16306             keeping the number of children around and accessible directly, but
16307             it's more straightforward
16308
16309 2004-08-11 07:44  pbartok
16310
16311         * AccessibleObject.cs:
16312           - Fixed to match ControlCollection rewrite
16313
16314 2004-08-11 07:43  pbartok
16315
16316         * ImageList.cs:
16317           - Added missing creation of the collection list
16318
16319 2004-08-10 20:08  jackson
16320
16321         * StatusBar.cs: Get the paint message from WndProc
16322
16323 2004-08-10 19:31  jackson
16324
16325         * ThemeWin32Classic.cs: Create Brushes as little as possible
16326
16327 2004-08-10 19:20  jackson
16328
16329         * UICues.cs: Add Flags attribute
16330
16331 2004-08-10 19:19  jackson
16332
16333         * StatusBarPanel.cs: Signature cleanup
16334
16335 2004-08-10 19:10  jackson
16336
16337         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
16338           Initial implementation of status bar item drawing
16339
16340 2004-08-10 17:27  jordi
16341
16342         * TrackBar.cs: add missing methods, properties, and restructure to
16343           hide extra ones
16344
16345 2004-08-10 16:24  jackson
16346
16347         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
16348           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
16349           attribute
16350
16351 2004-08-10 13:21  jordi
16352
16353         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
16354           enhancements and standarize on win colors defaults
16355
16356 2004-08-10 12:52  jackson
16357
16358         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
16359           ThemeWin32Classic.cs: Implement DrawItem functionality
16360
16361 2004-08-10 12:47  jordi
16362
16363         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
16364
16365 2004-08-10 12:32  jordi
16366
16367         * Control.cs: throw ontextchange event
16368
16369 2004-08-10 11:43  pbartok
16370
16371         * Control.cs:
16372           - Added more to the still unfinished Dock/Anchor layout code
16373
16374 2004-08-10 11:39  pbartok
16375
16376         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
16377           - Added GetWindowPos method
16378
16379 2004-08-10 11:36  pbartok
16380
16381         * XplatUIWin32.cs:
16382           - Implemented several methods
16383
16384 2004-08-10 09:47  jackson
16385
16386         * TrackBar.cs: Allow control to handle buffering
16387
16388 2004-08-10 09:41  jackson
16389
16390         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
16391
16392 2004-08-10 09:24  jackson
16393
16394         * Label.cs, LinkLabel.cs: Let Control handle buffering.
16395
16396 2004-08-10 09:09  jackson
16397
16398         * StatusBar.cs: Let Control handle all the buffering.
16399
16400 2004-08-10 09:08  jackson
16401
16402         * Control.cs: Control will now handle the buffering code, so each
16403           control does not have to implement this.
16404
16405 2004-08-10 08:34  jackson
16406
16407         * XplatUIDriver.cs: Use default colors from the theme
16408
16409 2004-08-09 17:12  pbartok
16410
16411         * ImageList.cs:
16412           - Fixed several bugs Ravindra pointed out
16413
16414 2004-08-09 16:11  pbartok
16415
16416         * Control.cs:
16417           - Added incomplete dock layout code
16418           - Added support for mouse wheel
16419
16420 2004-08-09 16:09  pbartok
16421
16422         * XplatUIX11.cs:
16423           - Added handling for middle and right mousebutton
16424           - Added handling for mouse wheel
16425           - Added handling for key state and mouse state and position
16426           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
16427           messages
16428
16429 2004-08-09 15:40  jackson
16430
16431         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
16432           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
16433           checkin
16434
16435 2004-08-09 15:37  jackson
16436
16437         * StatusBar.cs: Initial implementation of StatusBar
16438
16439 2004-08-09 15:36  jackson
16440
16441         * ITheme.cs: Add support for drawing status bar and getting status
16442           bar item sizes
16443
16444 2004-08-09 15:35  pbartok
16445
16446         * MouseButtons.cs:
16447           - Fixed values
16448
16449 2004-08-09 15:34  jackson
16450
16451         * ThemeWin32Classic.cs: Add support for drawing status bar and get
16452           status bar item sizes
16453
16454 2004-08-09 15:21  jackson
16455
16456         * ThemeWin32Classic.cs: Use known colors for default control
16457           colours
16458
16459 2004-08-09 15:12  jackson
16460
16461         * ThemeWin32Classic.cs: Make the default font static, it is static
16462           in control so this doesn't change functionality and creating fonts
16463           is sloooooow.
16464
16465 2004-08-09 14:56  pbartok
16466
16467         * X11Structs.cs:
16468           - Added GrabMode enum
16469
16470 2004-08-09 14:55  pbartok
16471
16472         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16473           - Removed Run method, was only required for initial development
16474
16475 2004-08-09 14:51  pbartok
16476
16477         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16478           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
16479           capture
16480
16481 2004-08-09 13:48  pbartok
16482
16483         * XplatUIX11.cs:
16484           - Fixed default sizing for child windows
16485
16486 2004-08-09 12:56  pbartok
16487
16488         * XplatUIX11.cs:
16489           - Added generation of WM_DESTROY message
16490           - Added handling of window manager induced shutdown
16491
16492 2004-08-09 11:31  jackson
16493
16494         * ThemeWin32Classic.cs: New names for control properties
16495
16496 2004-08-09 11:25  jackson
16497
16498         * Control.cs: Use new color names
16499
16500 2004-08-09 11:02  jackson
16501
16502         * XplatUI.cs: Get default window properties from the theme
16503
16504 2004-08-09 11:01  jackson
16505
16506         * ITheme.cs: The theme engine now controls default window
16507           properties
16508
16509 2004-08-09 11:00  jackson
16510
16511         * ThemeWin32Classic.cs: Add default window color properties
16512
16513 2004-08-09 10:17  jackson
16514
16515         * ThemeWin32Classic.cs: Use correct default back color
16516
16517 2004-08-09 10:05  jackson
16518
16519         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
16520           the theme now.
16521
16522 2004-08-09 09:56  jackson
16523
16524         * XplatUI.cs: Remove defaults, these are handled by the theme now.
16525
16526 2004-08-09 09:54  jackson
16527
16528         * Control.cs: Get default properties from the theme.
16529
16530 2004-08-09 09:53  jackson
16531
16532         * ITheme.cs: Themes now handle default control properties
16533
16534 2004-08-09 09:53  jackson
16535
16536         * ThemeWin32Classic.cs: Themes now handle default control
16537           properties so coloring will be consistent
16538
16539 2004-08-08 16:54  jordi
16540
16541         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
16542
16543 2004-08-08 15:08  jordi
16544
16545         * XplatUIX11.cs: fixes keyboard crash
16546
16547 2004-08-08 13:47  jordi
16548
16549         * Label.cs: add cvs header info
16550
16551 2004-08-08 12:09  jackson
16552
16553         * ThemeWin32Classic.cs: Add pen_buttonface
16554
16555 2004-08-08 11:52  jordi
16556
16557         * Label.cs, LinkLabel.cs: [no log message]
16558
16559 2004-08-08 11:34  jordi
16560
16561         * ThemeWin32Classic.cs: Use Windows Standard Colours
16562
16563 2004-08-07 17:32  jordi
16564
16565         * TrackBar.cs: throw exceptions of invalid enums values
16566
16567 2004-08-07 17:31  jordi
16568
16569         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
16570           draw method name
16571
16572 2004-08-07 16:56  jackson
16573
16574         * HorizontalAlignment.cs: Initial checkin
16575
16576 2004-08-07 13:16  jordi
16577
16578         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
16579           methods
16580
16581 2004-08-07 13:05  jordi
16582
16583         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
16584           GetSysColor defines
16585
16586 2004-08-06 18:01  pbartok
16587
16588         * ThemeWin32Classic.cs:
16589           - Fixed some rounding issues with float/int
16590
16591 2004-08-06 18:00  jackson
16592
16593         * DockStyle.cs, AnchorStyles.cs:
16594
16595                   Add flags and serializable attributes.
16596
16597 2004-08-06 17:46  pbartok
16598
16599         * XplatUIX11.cs:
16600           - Implemented GetParent
16601
16602 2004-08-06 17:18  pbartok
16603
16604         * TrackBar.cs:
16605           - Fixed some rounding issues with float/int
16606
16607 2004-08-06 17:17  pbartok
16608
16609         * X11Structs.cs, XplatUIX11.cs:
16610           - Fixed Refresh and Invalidate
16611
16612 2004-08-06 15:30  pbartok
16613
16614         * Control.cs, X11Structs.cs, XplatUIX11.cs:
16615           - Fixed recursive loop when resizing
16616           - Improved/fixed redrawing on expose messages
16617
16618 2004-08-06 09:53  jordi
16619
16620         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
16621           keyboard navigation
16622
16623 2004-08-06 08:02  pbartok
16624
16625         * X11Structs.cs, XplatUIX11.cs:
16626           - Fixed reparenting
16627           - Fixed window border creation
16628
16629 2004-08-05 15:38  pbartok
16630
16631         * XplatUIX11.cs:
16632           - Attempted fix for reparenting problems
16633
16634 2004-08-04 15:14  pbartok
16635
16636         * Control.cs:
16637           - Fixed Invalidation bug (calculated wrong client area)
16638           - Added ClientSize setter
16639
16640 2004-08-04 15:13  pbartok
16641
16642         * Form.cs:
16643           - Added AutoScale properties
16644
16645 2004-08-04 15:13  pbartok
16646
16647         * SWF.csproj:
16648           - Added latest files
16649
16650 2004-08-04 14:11  pbartok
16651
16652         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16653           XplatUIX11.cs:
16654           - Added Invalidate handling
16655
16656 2004-08-03 17:09  jordi
16657
16658         * XplatUIDriver.cs: fixes spelling mistake
16659
16660 2004-07-27 09:53  jordi
16661
16662         * TrackBar.cs: fixes trackbar events, def classname, methods
16663           signature
16664
16665 2004-07-27 09:29  jordi
16666
16667         * ScrollBar.cs: fixes scrollbar events
16668
16669 2004-07-27 04:38  jordi
16670
16671         * Control.cs: changes to be able to run winforms samples
16672
16673 2004-07-26 11:42  jordi
16674
16675         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
16676           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
16677
16678 2004-07-26 05:41  jordi
16679
16680         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
16681           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
16682           implementation
16683
16684 2004-07-22 09:22  jordi
16685
16686         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
16687           check link overlapping, implement events, and fixes
16688
16689 2004-07-21 10:28  jordi
16690
16691         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
16692
16693 2004-07-21 10:19  jordi
16694
16695         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
16696           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
16697           LinkLabelLinkClickedEventArgs.cs,
16698           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
16699           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
16700           implementation
16701
16702 2004-07-19 13:09  jordi
16703
16704         * Control.cs, Label.cs: label control re-written: added missing
16705           functionlity, events, and properties
16706
16707 2004-07-19 10:49  jordi
16708
16709         * Control.cs: fixes SetBounds logic
16710
16711 2004-07-19 01:29  jordi
16712
16713         * Control.cs: Call RefreshWindow only if the window has created
16714
16715 2004-07-15 14:05  pbartok
16716
16717         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
16718           - Implemented ImageList and ImageList.ImageCollection classes
16719           - Added ColorDepth enumeration
16720           - Updated SWF VS.Net project
16721
16722 2004-07-15 11:06  jordi
16723
16724         * XplatUIStructs.cs: added MsgButons enum
16725
16726 2004-07-15 11:03  jordi
16727
16728         * Control.cs: added basic mouse handeling events
16729
16730 2004-07-15 03:38  jordi
16731
16732         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
16733           Vertical TrackBar control implementation
16734
16735 2004-07-13 09:33  jordi
16736
16737         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
16738
16739 2004-07-13 09:31  jordi
16740
16741         * Control.cs, Form.cs: commit: new properties and fixes form size
16742           problems
16743
16744 2004-07-09 14:13  miguel
16745
16746         * ProgressBar.cs: Spelling
16747
16748 2004-07-09 11:25  pbartok
16749
16750         * ProgressBar.cs:
16751           - Removed usage of Rectangle for drawing. Miguel pointed out it's
16752           faster
16753
16754 2004-07-09 11:17  miguel
16755
16756         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
16757
16758                 * ProgressBar.cs: Fixed spelling for `block'
16759
16760                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
16761                 style guidelines.
16762
16763                 Avoid using the += on rect.X, that exposed a bug in the compiler.
16764
16765 2004-07-08 23:21  pbartok
16766
16767         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
16768           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
16769           BaseCollection.cs, Binding.cs, BindingContext.cs,
16770           BindingMemberInfo.cs, BindingsCollection.cs,
16771           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
16772           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
16773           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
16774           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
16775           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
16776           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
16777           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
16778           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
16779           FrameStyle.cs, GiveFeedbackEventArgs.cs,
16780           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
16781           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
16782           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
16783           InputLanguageChangedEventArgs.cs,
16784           InputLanguageChangedEventHandler.cs,
16785           InputLanguageChangingEventArgs.cs,
16786           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
16787           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
16788           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
16789           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
16790           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
16791           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
16792           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
16793           QueryAccessibilityHelpEventArgs.cs,
16794           QueryAccessibilityHelpEventHandler.cs,
16795           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
16796           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
16797           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
16798           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
16799           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
16800           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
16801           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
16802           XplatUIX11.cs, lang.cs:
16803           - Initial check-in
16804