New test.
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2006-10-03  Chris Toshok  <toshok@ximian.com>
2
3         * Form.cs (ProcessDialogKey): if the focused control is in this
4         form and is a button, call its PerformClick method here.  Fixes
5         #79534.
6
7 2006-10-04  Jackson Harper  <jackson@ximian.com>
8
9         * TabPage.cs: Ignore setting of Visible, and add an internal
10         method for setting the controls visibility.  TabPage's Visible
11         property is a little strange on MS, this seems to make us
12         compatible, and fixes cases where people set all the tab pages to
13         visible.
14         * TabControl.cs: Use the new internal setting on tab pages
15         visibility.
16
17 2006-10-03  Mike Kestner  <mkestner@novell.com>
18
19         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
20
21 2006-10-03  Mike Kestner  <mkestner@novell.com>
22
23         * ListView.cs : use is_visible instead of Visible to check if 
24         scrollbars should be placed/sized.  Also some max_wrap_width
25         love for LargeIcon view.  [Fixes #79533]
26
27 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
28
29         * TextControl.cs :
30           Make set_TextAlign() do actually update the align. Fixed #78403.
31
32 2006-10-03  Chris Toshok  <toshok@ximian.com>
33
34         * DataGrid.cs: fix a crash when switching datasources if the
35         vertical scrollbar is at someplace other than Value = 0.  Also,
36         reduce the number of recalculation passes we do in SetDataSource
37         from 2 to 1.
38
39 2006-10-03  Jackson Harper  <jackson@ximian.com>
40
41         * TextBoxBase.cs: Move the if value the same bail check up, we
42         don't want to empty the document if it is already empty, this
43         seems to severly mess up the caret.  TODO: I should probably fix
44         the empty statement to update teh caret somehow.
45
46 2006-10-03  Chris Toshok  <toshok@ximian.com>
47
48         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
49         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
50         reflection, an internal row type, properties on said type, etc.)
51         will work with our datagrid.  Fixes #79531.
52
53 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
54
55         * FileDialog.cs: Don't crash if a path is not accessible
56           (System.UnauthorizedAccessException). Fixes #79569.
57         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
58           a ':' too. Return unknown icon for those paths/files.
59
60 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
61
62         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
63         GetContainerControl returns null.
64
65 2006-10-02  Chris Toshok  <toshok@ximian.com>
66
67         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
68         call to XGetWindowAttributes instead of "handle".  fixes an X
69         error using notifyicon after the NotifyIconWindow to Form base
70         class switch.
71
72 2006-10-02  Chris Toshok  <toshok@ximian.com>
73
74         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
75         server grab and looping we need to do to get down to the most
76         deeply nested child window.
77         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
78         QueryPointer again after the WarpPointer so we can generate a
79         proper (fake) MotionNotify event to be enqueued in the destination
80         window's queue.
81         (GetCursorPos): call QueryPointer.
82
83         Fixes #79556.
84
85 2006-10-02  Jackson Harper  <jackson@ximian.com>
86
87         * NotifyIcon.cs: Derive the notify icon from a form, so things
88         like FindForm work on it.
89         - Swallow the WM_CONTEXTMENU message, since that is generated on
90         mouse down, and context menu is a mouse up kinda guy.  I believe
91         the correct fix here is probably to make the notify icon entirely
92         NC area, but this seems to work fine for anyone not manipulating
93         WndProc.
94
95 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
96
97         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
98           ToolStripItemCollection.cs, ToolStripLabel.cs,
99           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
100           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
101           Initial implementation.
102         * TextRenderer.cs: Provide padding to MeasureText.
103
104 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
105
106         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
107         of ButtonBaseAccessibleObject. Fix bug #79552.
108
109 2006-10-02  Jackson Harper  <jackson@ximian.com>
110
111         * MdiWindowManager.cs: When maximizing use the containers client
112         rect, not it's bounds, so nc area is accounted correctly.
113         - Use the parent form's size for the menu position, since the
114         client isn't always the full form size.
115
116 2006-10-01  Chris Toshok  <toshok@ximian.com>
117
118         * ScrollableControl.cs: make sure neither right_edge or
119         bottom_edge are < 0, since they're used as LargeChange for the
120         horiz/vert scrollbars respectively.  Fixes #79539.
121
122 2006-10-01  Chris Toshok  <toshok@ximian.com>
123
124         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
125         the xplatuix11 code can cause us to destroy/recreate our handle.
126
127         * XplatUIX11.cs
128         (SystrayAdd):
129         - this code can be invoked many times for the same Hwnd.  Make
130           sure we only destroy the client window once (the first time this
131           method is called).  This fixes bug #79544.
132         - Remove the call to the improperly bound XSync.  why we had two
133           bindings to this, I will never know, but this call resulted in
134           events being discarded from the queue(!).
135         - correct a misunderstanding of _XEMBED_INFO - the second atom is
136           not our current state but the state we wish to be in.  So, 0 if
137           we don't want to be mapped.  Change it to 1.
138         (SystrayRemove): The XEMBED spec makes mention of the fact that
139         gtk doesn't support the reparent of client windows away from the
140         embedder.  Looking at gtksocket-x11.c seems to agree with this.
141         The only avenue we have for removing systray icons is to destroy
142         them.  We don't want the handle to go away for good, though, so
143         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
144         #79545.
145         
146 2006-10-01  Chris Toshok  <toshok@ximian.com>
147
148         * Form.cs (WndProc): inline the native_enabled variable usage into
149         the cases in which it's used.  Fixes #79536.
150
151 2006-09-29  Mike Kestner  <mkestner@novell.com>
152
153         * ListView.cs : toggle the selection state for ctrl clicks in 
154         multiselect mode. [Fixes #79417]
155
156 2006-09-29  Mike Kestner  <mkestner@novell.com>
157
158         * ListView.cs : kill CanMultiSelect and refactor the selection
159         code to support multiselection in the absence of mod keys. Steal
160         arrow/home/end keys by overriding InternalPreProcessMessage to
161         restore regressed keynav behavior.
162         [Fixes #79416]
163
164 2006-09-29  Jackson Harper  <jackson@ximian.com>
165
166         * MdiClient.cs: Repaint the titlebars when the active window is
167         changed.
168
169 2006-09-29  Chris Toshok  <toshok@ximian.com>
170
171         * Application.cs: when entering a runloop with a modal, make sure
172         the hwnd is enabled.  Fixes #79480.
173
174 2006-09-29  Chris Toshok  <toshok@ximian.com>
175
176         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
177         when ListManager.CanAddRows == false, bump us back one.
178
179         * DataGridColumnStyle.cs (ParentReadOnly): remove the
180         listmanager.CanAddRows check.  This makes ArrayLists uneditable
181         using a datagrid, which is not right.
182         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
183         is an IEditable, but call property_descriptor.SetValue regardless.
184         fixes #79435.
185
186 2006-09-29  Chris Toshok  <toshok@ximian.com>
187
188         * DataGridBoolColumn.cs: we need to test equality in the face of
189         possible null values (as is the case with the default NullValue).
190         This patch keeps us from crashing in that case.
191
192 2006-09-29  Jackson Harper  <jackson@ximian.com>
193
194         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
195         here, since it will get called for every node collection in the
196         tree. This is now done in the treeview once the sorting is
197         finished.
198         * TreeView.cs: Recalculate the visible order, and update the
199         scrollbars after sorting, set the top nope to the root so that the
200         recalc actually works.
201
202 2006-09-29  Chris Toshok  <toshok@ximian.com>
203
204         * LinkLabel.cs: more handling of the default link collection in
205         the face of LinkArea manipulation.  The default link collection
206         contains 1 element (start=0,length=-1).  If the user sets LinkArea
207         to anything and the links collection is the default, clear it.
208         Then only add the link if its nonempty.  Fixes #79518.
209
210 2006-09-29  Chris Toshok  <toshok@ximian.com>
211
212         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
213         piece correctly when we hit a '\n'.  Fixes #79517.
214
215 2006-09-29  Chris Toshok  <toshok@ximian.com>
216
217         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
218         change the binding of gdk_init_check to take two IntPtr's, and
219         pass IntPtr.Zero for both of them.  Fixes #79520.
220
221 2006-09-29  Mike Kestner  <mkestner@novell.com>
222
223         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
224         [Fixes #78779]
225
226 2006-09-28  Jackson Harper  <jackson@ximian.com>
227
228         * XplatUIX11.cs: When translating NC messages make sure we go from
229         whole window to screen, not client window to screen.
230         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
231         method doesn't exist
232         - Skip over controls that aren't forms when arranging.
233
234 2006-09-28  Jackson Harper  <jackson@ximian.com>
235
236         * XplatUIWin32.cs: Clip the rect to the parent window.
237         * XplatUIStructs.cs: Add clipping modes struct.
238         * InternalWindowManager.cs: New private method that factors title
239         bar heights in when calculating the pos of an NC mouse message.
240         - Use SendMessage to force a paint when the form's size is changed
241         instead of painting the decorations immediately.
242         - Don't let the NC button click messages get to DefWndProc,
243         because they will attempt to handle windowing themself, and this
244         messes up z-order (it will put them in front of the scrollbars).
245         * XplatUIX11.cs: Make sure that we don't reset window managers if
246         we already have one (ie the window is an MDI window).
247
248 2006-09-28  Chris Toshok  <toshok@ximian.com>
249
250         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
251         menu code really needs going over.
252
253 2006-09-27  Chris Toshok  <toshok@ximian.com>
254
255         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
256         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
257         window is maximizable.  So, we need to make sure that even if we
258         clear the border/wm frame of those functions, they're still
259         available (basically, we remove the decoration without removing
260         the function).  Half the fix for #79338.
261
262 2006-09-27  Chris Toshok  <toshok@ximian.com>
263
264         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
265         Fixes bug #79515.
266
267 2006-09-27  Chris Toshok  <toshok@ximian.com>
268
269         * Splitter.cs: reorder things a bit so that we don't actually
270         draw/move the splitter until after calling OnSplitterMoving.  This
271         lets users cancel/disallow the movement by explicitly setting
272         event.SplitX/SplitY.  Fixes #79372.
273
274 2006-09-27  Jackson Harper  <jackson@ximian.com>
275
276         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
277         because it is most likely on a window being destroyed, and that
278         will give us an X11 error.
279
280 2006-09-27  Chris Toshok  <toshok@ximian.com>
281
282         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
283         the dropdown button now toggles between showing and hiding the
284         dropdown.  Also, get rid of dropdown_form_showing and just use
285         dropdown_form.Visible.  We still don't do a grab, but I'll leave
286         that part to someone who has handled Capture-fu before.
287
288 2006-09-27  Chris Toshok  <toshok@ximian.com>
289
290         * DataGrid.cs: return false if alt isn't pressed when '0' is
291         pressed.  this keeps the '0' key from being swallowed, and fixes
292         bug #79350.
293
294 2006-09-27  Chris Toshok  <toshok@ximian.com>
295
296         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
297         Calling Refresh (in response to a scrollbar event) screws up the
298         scrollbar painting.  Fixes bug #78923.
299
300 2006-09-27  Chris Toshok  <toshok@ximian.com>
301
302         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
303         then insert into hashtable" blocks threadsafe.
304
305 2006-09-27  Chris Toshok  <toshok@ximian.com>
306
307         * MessageBox.cs (CreateParams): the styles should be |'ed with our
308         baseclass's, since otherwise the
309         ControlBox/MinimizeBox/MaximizeBox assignments above have no
310         effect.  This gets the close button back in messageboxes.
311
312 2006-09-27  Chris Toshok  <toshok@ximian.com>
313
314         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
315         flag, not just != 0.  this makes flags that are actually multiple
316         bits (like WS_CAPTION) work.  fixes bug #79508.
317
318 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
319
320         * PageSetupDialog.cs: add support for getting and settings the 
321         paper size, source and orientation.
322
323 2006-09-26  Chris Toshok  <toshok@ximian.com>
324
325         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
326         and caption == "", we need to remove the resize handles as well as
327         the title bar.
328
329         * Control.cs (set_Text): turns out that setting Text on a form
330         should change the WM styles on the window, since if ControlBox ==
331         false, the only way to get a window border is to have a non-""
332         Text property.  check winforms/forms/text.cs for an example.  so,
333         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
334         update both window styles and title.  This fixes a lot of dialogs
335         (including the preferences dialog in MonoCalendar.)
336
337 2006-09-26  Chris Toshok  <toshok@ximian.com>
338
339         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
340         control isn't a Form), call Win32ShowWindow to hide the window,
341         but don't update the control Visible property.  When we reparent
342         back to a parent control, call SetVisible in order for the
343         window's visibility to be reinstated.
344
345         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
346         the FosterParent.
347
348         * Control.cs (ControlCollection.Remove): remove that value.Hide()
349         call for good, since it breaks MonoCalendar (and other things I'm
350         sure.) Also, set all_controls to null *after* the owner calls,
351         which end up regenerating it.
352         (ChangeParent): allow new_parent to be == null, passing
353         IntPtr.Zero down to XplatUI.
354
355         this fixes #79294 the right way.
356
357 2006-09-26  Mike Kestner  <mkestner@novell.com>
358
359         * GridEntry.cs : internal SetParent method.
360         * PropertyGrid.cs : attach to property changed on the proper
361         target if we have a hierarchical grid with subobjects. Setup
362         GridItem.Parent for hierarchical items.
363         * PropertyGridView.cs : Set value on the correct target for
364         hierarchical grids. [Fixes #78903]
365
366 2006-09-26  Chris Toshok  <toshok@ximian.com>
367
368         * Control.cs (ChildNeedsRecreating): this should return true if
369         either we're being recreated and the child is in our list, or our
370         parent is waiting for our recreation.
371
372 2006-09-26  Chris Toshok  <toshok@ximian.com>
373
374         * Control.cs (ControlCollection.Remove): reinstate the
375         value.Hide() call as suggested in bug #79294.
376
377 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
378
379         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
380         coordinates (versus a relative move).
381
382 2006-09-26  Chris Toshok  <toshok@ximian.com>
383
384         * Control.cs: rework child recreation a little bit.  It turns out
385         that we race between the DestroyNotify the WM_DESTROY message.  If
386         the parent gets its DestroyNotify before the child gets the
387         WM_DESTROY message, the child ends up not recreating (since the
388         parent finishes its recreation on DestroyNotify, and the child
389         checks ParentIsRecreating.)
390
391         So, instead we store off a list of all the child controls which
392         need to be recreated when the parent control starts to recreate
393         itself.  Then, when child controls get their WM_DESTROY message we
394         check to see if they're in the parent's pending recreation list,
395         and if so, we recreate.  This removes all dependency on ordering
396         from the code and fixes the initial MonoCalendar upgrade dialog.
397         
398 2006-09-26  Jackson Harper  <jackson@ximian.com>
399
400         * TextControl.cs: Use the Line to get the length of the line,
401         since soft line breaks can change the end line.
402
403 2006-09-26  Chris Toshok  <toshok@ximian.com>
404
405         * Control.cs (ControlCollection.AddImplicit): don't add the
406         control again if it's already in one of our lists.  This keeps us
407         from adding controls over and over again for comboboxes when their
408         handle gets recreated (as the combobox adds implicit controls in
409         OnHandleCreated).  Fixes the X11 errors in bug #79480.
410
411 2006-09-26  Jackson Harper  <jackson@ximian.com>
412
413         * TextControl.cs: When deleting characters make sure that any
414         orphaned zero lengthed tags get deleted.
415         - Fix ToString for zero lengthed tags.
416
417 2006-09-25  Jackson Harper  <jackson@ximian.com>
418
419         * TextControl.cs: When getting a tag at the location there can be
420         multiple tags at the same spot, these are 0-lengthed tags that
421         appear when extra formatting has been stuck in a location.  We
422         need to pull out the last of these 0 lengthed tags.
423
424 2006-09-25  Jackson Harper  <jackson@ximian.com>
425
426         * TextControl.cs: Fix print out in debug method.
427         * TextBoxBase.cs: When text is set bail if we are setting to the
428         previous value.
429         
430 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
431
432         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
433           It is now possible to change the selected index in a FontXXXListBox
434           with the up and down arrow keys from the FontXXXTextBoxes.
435           Also, send the FontXXXTextBox mouse wheel event to the corresponding
436           FontXXXListBoxes to match ms.
437
438 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
439
440         * SystemInformation.cs: Return a clone of the theme's MenuFont because
441         anyone can dispose it, anytime. All other properties returns enums, 
442         structs or basic types so they don't need such tricks.
443
444 2006-09-22  Jackson Harper  <jackson@ximian.com>
445
446         * XplatUI.cs:
447         * XplatUIWin32.cs:
448         * Clipboard.cs:
449         * DataFormats.cs:
450         * XplatUIOSX.cs:
451         * XplatUIDriver.cs: Update interface to add a primary selection
452         flag, so the driver can use the primary selection buffer if
453         needed.
454         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
455
456         * RichTextBox.cs: We need to supply the data object to paste now
457         (so we can choose to supply CLIPBOARD or PRIMARY).
458         * TextBoxBase.cs: Supply data object to paste (see above).
459         - Middle click uses the primary selection data object.
460         
461 2006-09-21  Chris Toshok  <toshok@ximian.com>
462
463         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
464         of SetWMStyles.  It's still a rat's nest and is largely
465         order-dependent which I dislike immensely.  This also fixes the X
466         button disappearing from toplevel forms.
467
468 2006-09-21  Mike Kestner <mkestner@novell.com>
469
470         * ListBox.cs: move Jordi's click/dblclick raising code to the
471         mouse up handler.
472
473 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
474
475         * ListBox.cs: Fixes 79450
476
477 2006-09-21  Mike Kestner <mkestner@novell.com>
478
479         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
480         to deal with people updating the TreeNodeCollection after the tree
481         is disposed.  "Fixes" 79330.
482
483 2006-09-20  Jackson Harper <jackson@ximian.com>
484
485         * TextControl.cs: Push the cursor record onto the undo stack
486         before the delete action. This fixes 78651.
487
488 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
489
490         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
491         CreateParams. Fixes 79329.
492
493 2006-09-19  Chris Toshok  <toshok@ximian.com>
494
495         * XplatUIX11.cs: a couple of blanket code massage passes to clean
496         things up a bit.  First, get rid of the NetAtoms array (and the NA
497         enum), and just embed the atoms as static fields.  Also, add a
498         couple of functions (StyleSet and ExStyleSet) to clean up all the
499         bitmask testing of styles.
500
501         * X11Structs.cs: remove the NA enum, not needed anymore.
502         
503 2006-09-19  Chris Toshok  <toshok@ximian.com>
504
505         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
506         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
507         added cleanup to get MessageBox titles appearing again, which were
508         broken by my earlier fix for caption-less/ControlBox-less windows.
509
510 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
511
512         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
513           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
514           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
515           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
516           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
517           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
518           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
519           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
520           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
521           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
522           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
523             Inital import.
524         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
525           ToolStripButton.cs: Stubs needed for above.
526         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
527
528 2006-09-15  Chris Toshok  <toshok@ximian.com>
529
530         * XplatUIX11.cs:
531         - make the MessageQueues hashtable Synchronized.
532         
533         - SendMessage: if the Hwnd is owned by a different thread, use the
534         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
535         thread.  Fixes bug #79201.
536
537 2006-09-15  Chris Toshok  <toshok@ximian.com>
538
539         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
540         ControlBox == false, we disallow maximize/minimize/close.  If the
541         form Caption is "" we also disallow move (and get rid of the Title
542         decoration).  Unfortunately, regardless of how things are set,
543         we're stuck with the Title and WM menu.
544
545 2006-09-15  Chris Toshok  <toshok@ximian.com>
546
547         * Application.cs: add locking around the static message_filters
548         ArrayList, part of #79196.
549
550 2006-09-15  Chris Toshok  <toshok@ximian.com>
551
552         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
553         Form.ControlBox == false, the window has no titlebar nor resize
554         handles.  fixes bug #79368.
555
556 2006-09-15  Chris Toshok  <toshok@ximian.com>
557
558         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
559         >= 0.  Fixes bug #79370.
560
561 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
562         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
563         * Control.cs:
564             Add properties: LayoutEngine, Margin, DefaultMargin.
565             Add method: GetPreferredSize.
566             Move layout logic from PerformLayout to layout engines. 
567
568 2006-09-13  Chris Toshok  <toshok@ximian.com>
569
570         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
571         fix for #79326 broke #78718, so this change addresses that.
572
573         - in SendWMDestroyMessages remove the call to
574         CleanupCachedWindows, since we might be recreating the control and
575         need to maintain the references to right Hwnd handles.  Also, set
576         the zombie flag to true for each of the children in the hierarchy
577         instead of calling hwnd.Dispose.  This will cause GetMessage to
578         ignore all events for the window except for DestroyNotify.
579
580         - In GetMessage, ignore messages except for DestroyNotify for
581         zombie hwnds.
582         
583         * Control.cs: revert the is_recreating fix from the last
584         ChangeLog.  It's definitely "right", but it breaks switching from
585         an MDI form to a non-MDI form.  Will need to revisit that.
586
587         * Hwnd.cs: add a zombie flag, which means "the
588         client_window/whole_window handles are invalid, but we're waiting
589         for the DestroyNotify event to come in for them".  Set the flag to
590         false explicitly if setting WholeWindow/ClientWindow, and also
591         when Disposing.
592         
593 2006-09-13  Chris Toshok  <toshok@ximian.com>
594
595         * XplatUIX11.cs: rework window destruction slightly.
596
597         - when destroying the windows associated with a control, we don't
598         need 2 separate XDestroyWindow calls.  Just the one for the
599         whole_window (or for client_window if whole_window is somehow
600         IntPtr.Zero -- can this happen?) is enough.
601
602         - reworked SendWMDestroyMessages slightly, so we always dispose
603         the child control hwnd's after sending the messages.
604         
605         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
606         the two places it was used (one was even using hwnd.Handle and the
607         other hwnd.client_window.  ugh), adding another call in
608         SendWMDestroyMessages.  We need this new call because now the
609         DestroyNotify events in the queue will be ignored for the child
610         controls (as their hwnd's were disposed, and the window id's
611         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
612
613         - this fixes bug #79326.
614
615 2006-09-13  Chris Toshok  <toshok@ximian.com>
616
617         * Control.cs: don't always set is_recreating to false at the end
618         of RecreateHandle, since sometimes we're not done (and won't be
619         until WndProc handles the WM_DESTROY message).  Also, set
620         is_recreating to false in the WM_DESTROY handling code.  Part of
621         the fix for bug #79326.
622
623 2006-09-13  Miguel de Icaza  <miguel@novell.com>
624
625         * X11DesktopColors.cs: Start the droppage of debugging messages.
626
627         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
628
629 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
630
631         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
632
633 2006-09-12  Chris Toshok  <toshok@ximian.com>
634
635         * DataGrid.cs (get_ListManager): if the list_manager is null, try
636         to create it using SetDataSource.  Fixes bug #79151.
637
638 2006-09-11  Chris Toshok  <toshok@ximian.com>
639
640         * XEventQueue.cs: add a DispatchIdle property.
641
642         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
643         either the queue is null, or the queue has DispatchIdle set to
644         true.
645         (DoEvents): set queue.DispatchIdle to false around the
646         peek/translate/dispatch message loop in this method.  This keeps
647         Application.Doevents from emitting idle events.  Part of the fix
648         for #78823.
649
650 2006-09-11  Chris Toshok  <toshok@ximian.com>
651
652         * DataGrid.cs (set_DataSource): make this work for both the
653         winforms/datagrid test and ReportBuilder.  It seems as though when
654         we've created a ListManager (or maybe it's if we have a
655         BindingContext?), when we set the DataSource it clears the
656         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
657         #79333.
658
659 2006-09-11  Chris Toshok  <toshok@ximian.com>
660
661         * XplatUIX11.cs: deal with queue being null, which happens in all
662         the Clipboard functions.  Fixes one of the two problems mentioned
663         in #78612.
664
665 2006-09-11  Chris Toshok  <toshok@ximian.com>
666
667         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
668         button on various spots (including outside the menu) works closer
669         to MS, and doesn't crash.  Fixes #79343.
670
671 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
672
673         * ListView.cs: Do not initialize item_sorter in init. To match MS,
674         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
675         and the internal comparer is set. When a new ListViewItemSorter is set,
676         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
677         was specified. No further processing is necessary if SortOrder is set
678         to it's current value. If Sorting is modified to None, and View is
679         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
680         (either custom or our internal ItemComparer) to null, on 1.0 profile
681         only set item_sorter to null if its our internal IComparer. If Sorting
682         is modified to Ascending or Descending, then use our internal IComparer
683         if none is set, and if the current IComparer is our internal one then:
684         on 2.0 profile always replace it with one for new Sorting, and on 1.0
685         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
686         Enum.IsDefined to verify whether a valid View value is specified in
687         its setter. Automatically sort listview items when listview is
688         created. In Sort, do nothing if ListView is not yet created, or if
689         no item_sorter is set (no Sorting was set, Sorting was explicitly set
690         to None or ListViewItemSorter was set to null). Added Sort overload
691         taking a bool to indicate whether the ListView should be redrawn when
692         items are sorted (we use this in ListViewItemCollection to avoid double
693         redraws). Modified our internal IComparer to take the sort order into
694         account. In Add and AddRange methods of ListViewItemCollection, also
695         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
696         view), but use overload with noredraw option to avoid double redraw.
697         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
698         true when View is Tile, and do the same when attempting to set View to
699         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
700         for selected/checked indices, as it involves overhead when sorting is
701         done while these collections are not used all that often. Instead
702         we'll build the indices on demand. Modified IList implementation of
703         CheckedIndexCollection to use public methods if object is int.
704         Modified CheckedListViewItemCollection to hide checked items if
705         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
706         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
707         IList implementation in SelectedIndexCollection to use public methods
708         if object is int. Modified SelectedListViewItemCollection to hide
709         selected items if listview is not yet created.
710         * ListViewItem.cs: CheckedIndices list no longer needs to be
711         maintained separately (see ListView changes). Also clone font, fixes
712         test failure.
713
714 2006-09-11  Mike Kestner  <mkestner@novell.com>
715
716         * ComboBox.cs: if we are updating the contents of the currently
717         selected index, refresh the control or the textbox selection.
718         [Fixes #79066]
719
720 2006-09-11  Mike Kestner  <mkestner@novell.com>
721
722         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
723         the 'specified' logic has been moved there.  This seems like a bug 
724         in Control.cs, since our current SetBoundsCore completely ignores 
725         the specified parameter.  Peter's commit seems to indicate that is 
726         the way the MS control implementation works.  [Fixes #79325]
727
728 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
729
730         * XplatUI.cs: Set default_class_name to be composed
731         of current domain id. This allows MWF to be loaded in multiple
732         domains on Win32.
733
734 2006-09-09  Miguel de Icaza  <miguel@novell.com>
735
736         * X11Keyboard.cs: If we are unable to obtain the input method, do
737         not call CreateXic to create the input context.   Should fix
738         #78944/79276.
739
740 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
741
742         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
743           Simplified gnome support by adding more pinvokes to get the
744           icon for a file or mime type.
745
746 2006-09-08  Jackson Harper  <jackson@ximian.com>
747
748         * MenuAPI.cs: Deslect popup context menu items before closing the
749         window, so that you don't see the previously selected item
750         selected when you reopen the menu.
751         * TextControl.cs: Update the cursor position even if we don't have
752         focus.  This fixes typing in things like the ComboBox.  I'm not
753         totally sure we should always set the visibility if we don't have
754         focus, but couldn't find any corner cases where the cursor showed
755         up when it shouldn't.
756
757 2006-09-08  Chris Toshok  <toshok@ximian.com>
758
759         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
760         our arrays are length 256.  & 0xff before indexing.  Fixes the
761         crash in bug #78077.
762         
763 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
764
765         * ThemeWin32Classic.cs: 
766         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
767         is true. Handle that check box too.
768
769 2006-09-07  Chris Toshok  <toshok@ximian.com>
770
771         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
772         79244.
773
774 2006-09-07  Chris Toshok  <toshok@ximian.com>
775
776         * Control.cs: in set_BackColor only do the work if
777         background_color != value.
778
779         * XplatUIX11.cs: move the clearing of invalid areas (both client
780         and nc) to the same block of code where we set (nc_)expose_pending
781         to false.  That is, move it from PaintEventEnd to PaintEventStart,
782         so things that cause invalidates from within OnPaint will trigger
783         another call to OnPaint.  Fixes bug #79262.
784
785 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
786
787         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
788         * FileDialog.cs: Fix typo
789
790 2006-09-07  Jackson Harper  <jackson@ximian.com>
791
792         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
793         for tab pages if they have any.
794
795 2006-09-06  Mike Kestner  <mkestner@novell.com>
796
797         * Splitter.cs: use the "current" rect when finishing drag handle
798         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
799
800 2006-09-06  Mike Kestner  <mkestner@novell.com>
801
802         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
803         support offset splitters. [Fixes #79298]
804
805 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
806
807         * Mime.cs: Fixed a bug that could override the global mime type
808           result.
809
810 2006-09-05  Jackson Harper  <jackson@ximian.com>
811
812         * TabControl.cs: Better calculation method for setting the slider
813         pos. Prevents crashes on really wide tabs.
814         - Draw Image on tab pages if an image list is used.
815
816 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
817
818         * MonthCalendar.cs: When Font changes, the Size should be
819         updated to fit the new font's space requirements.
820
821 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
822
823         * ListBox.cs: If the items are cleared with Items.Clear set
824           top_index to 0.
825
826 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
827
828         * MonthCalendar.cs: Handle arrow keys as input keys. Also
829         fire DateChanged event instead of DateSelected event when
830         the date was changed by keyboard interaction.
831
832 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
833
834         * DateTimePicker.cs: Handle DateChanged for the associated
835         month_calendar control, and set month_calendar.Font from 
836         OnFontChanged method, as well as resize the height of the
837         control when needed. Make PreferredHeight proportional.
838
839 2006-09-01  Chris Toshok  <toshok@ximian.com>
840
841         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
842         properties.
843
844         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
845
846 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
847
848         * FileDialog.cs: Set ClientSize instead of window size, to allow space
849           for decorations (Fixes #79219)
850
851 2006-09-01  Mike Kestner  <mkestner@novell.com>
852
853         * ComboBox.cs: first stab at sorting plus some selection handling
854         fixes to bring us more in line with MS behavior.  Also switches back
855         to index based selection.  Alternative patches for index-based 
856         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
857         and latency@gmx.de on bug 78848.  I assume they were similar to this
858         code I've had simmering in my tree forever.
859         [Fixes #78848]
860
861 2006-09-01  Chris Toshok  <toshok@ximian.com>
862
863         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
864         when setting list position guard against ending up with a -1 index
865         (the other part of the fix for #78812).  Should probably make sure
866         we don't need the analogous fix in the ItemDeleted case.
867
868         * DataGrid.cs:
869         - in SetDataSource, work around the fact that the way
870         OnBindingContextChanged is invoked will cause us to re-enter this
871         method.  I'll remove the hack once I investigate
872         OnBindingContextChanged.
873
874         - fix the logic in set_DataSource and set_DataMember (basically
875         what to do if the other of the two is null.)
876         
877         - in OnListManagerItemChanged, we need to take into account the
878         edit row when deciding whether or not to call RecreateDataGridRows
879         (part of the fix for #78812).
880
881 2006-09-01  Jackson Harper  <jackson@ximian.com>
882
883         * Splitter.cs: Don't do anything if there is no control to affect
884         (prevents us from crashing in weird tet cases).
885         * TreeView.cs: Bounding box for the mouse movement reverting
886         focus/selection back to previously selected node.  This matches
887         MS, and makes the tree a lot more useable.
888         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
889         use clipping so they are not drawn.  This fixes when the control
890         is set to have a transparent background, or if it was over an
891         image.
892
893 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
894
895         * MimeIcon.cs: Improved handling for reading default icons when
896           using gnome (2.16 made it necessary). Check and read svg icons
897           first, then 48x48 and then 32x32 icons.
898
899 2006-08-31  Chris Toshok  <toshok@ximian.com>
900
901         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
902         visible.
903
904         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
905         ProcessKeyPreview.  Fixes part of #77806.
906
907         * DataGrid.cs: big patch.
908
909         - revert the queueing up of DataSource/DataMember if inside
910         BeginInit/EndInit calls.  That's not the way the datagrid achieves
911         its delayed databinding.  Instead, call SetDataSource in
912         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
913         #78811.
914
915         - Also, it wasn't mentioned in #78811, but the test case exhibits
916         behavior that was lacking in our datagrid implementation - Columns
917         that have mapping names that don't exist in the datasource's
918         properties aren't shown.  Yuck.  To fix this I added the bound
919         field to the column style, and basically any calculation to figure
920         out anything about columns uses a loop to find the bound columns.
921         still need to investigate if I can cache an array of the bound
922         columns or if the indices must be the same.
923
924         - When setting CurrentCell, we no longer abort if the cell being
925         edited was in the add row.  This fixes the other part of #77806.
926
927         - The new code also fixes #78807.
928         
929         * ThemeWin32Classic.cs: perpetrate the same disgusting
930         column.bound field hack, and only render bound fields.
931
932 2006-08-31  Chris Toshok  <toshok@ximian.com>
933
934         * DataGridColumnStyle.cs: add bound field.  this field is true if
935         the datasource has a property corresponding to the mapping name.
936
937         * DataGridTableStyle.cs: set the bound field on the column styles
938         depending on whether or not we have a column for that property.
939
940 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
941
942         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
943           splitter control (fixes #79228)
944
945 2006-08-31  Chris Toshok  <toshok@ximian.com>
946
947         * DataGridColumnStyle.cs: we need to delay the assignment of
948         property descriptor until the last possible moment due to the lazy
949         databinding stuff in the datagrid.  Also, fix the exceptions
950         thrown by CheckValidDataSource to match MS.
951
952 2006-08-31  Jackson Harper  <jackson@ximian.com>
953
954         * Form.cs: When activated select the active control, if there is
955         no active control, we select the first control.
956         * XplatUIX11.cs: If there is no focus control when we get a
957         FocusIn event, find the toplevel form and activate it.  This
958         occurs when you popup a window, it becomes the focus window, then
959         you close that window, giving focus back to the main window.
960
961 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
962
963         * MonthCalendar.cs: 
964         * ThemeWin32Classic.cs: Cache Font in bold style, as well
965         as StringFormat with Center alignments in MonthCalendar,
966         instead of creating new ones when drawing the control. 
967         Also, draw the month name in bold style.
968
969 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
970
971         * Control.cs:
972           - PerformLayout(): It would seem MS performs the fill even if the 
973             control is not visible (part of #79218 fix)
974           - ResetBackColor(): Use the setter to reset the color, to allow
975             overriders to catch the change.
976         * Form.cs:
977           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
978           - CreateHandle(): dito (part of $79218 fix)
979           - Don't set an icon if we have a dialog
980         * ScrollableControl.cs:
981           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
982           - ScrollIntoView(): No need to scroll if control is already visible
983             (resolves fixme and fixes #79218)
984
985 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
986
987         * MonthCalendar.cs: Change proportions in SingleMonthSize
988         to match the aspect of the original control.
989
990 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
991
992         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
993           get updated when they get maximized.
994
995 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
996
997         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
998
999 2006-08-29  Chris Toshok  <toshok@ximian.com>
1000
1001         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
1002
1003 2006-08-29  Jackson Harper  <jackson@ximian.com>
1004
1005         * TreeView.cs: Need to track selected node and highlighted node,
1006         they aren't always the same thing, when the mouse is down on a
1007         node it is hilighted, but not selected yet.
1008         - Do the HideSelection stuff right
1009         - Need to focus on rbutton mouse down. And redraw selection when
1010         right click is mouse upped.
1011
1012 2006-08-29  Mike Kestner  <mkestner@novell.com>
1013
1014         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
1015         when SubItems.Count < Columns.Count.  [Fixes #79167]
1016
1017 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
1018
1019         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
1020
1021 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
1022
1023         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
1024           from X. Only send based on ConfigureNotify if we don't have the
1025           correct location in hwnd (if the window manager moved us)
1026
1027 2006-08-28  Mike Kestner  <mkestner@novell.com>
1028
1029         * ListView.cs: remove a TODO. 
1030         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
1031         [Fixes ListView part of #79166]
1032
1033 2006-08-28  Mike Kestner  <mkestner@novell.com>
1034
1035         * ListView.cs: move wheel handler to parent since it is focused
1036         instead of the item_control now.  [Fixes #79177]
1037
1038 2006-08-28  Mike Kestner  <mkestner@novell.com>
1039
1040         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
1041         when the control is focused. [Fixes #79171]
1042
1043 2006-08-28  Mike Kestner  <mkestner@novell.com>
1044
1045         * ListView.cs: size the item and header controls for empty and
1046         unscrollable views.
1047         * ThemeWin32Classic.cs: draw disabled backgrounds.
1048         [Fixes #79187]
1049
1050 2006-08-28  Chris Toshok  <toshok@ximian.com>
1051
1052         * Form.cs: remove unused "active_form" static field.
1053
1054         * Hwnd.cs: lock around accesses to static windows collection.
1055
1056         * Application.cs: lock threads in Exit ().
1057
1058 2006-08-28  Chris Toshok  <toshok@ximian.com>
1059
1060         * NativeWindow.cs: lock around accesses to window_collection.
1061         
1062 2006-08-28  Chris Toshok  <toshok@ximian.com>
1063
1064         * Control.cs: err, fix this the right way, by locking on controls
1065         when using it.  not by making it synchronized.
1066
1067 2006-08-28  Chris Toshok  <toshok@ximian.com>
1068
1069         * Control.cs: make the static "controls" field synchronized, as it
1070         gets updated from multiple threads.
1071
1072 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
1073
1074         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
1075           Prevent other threads from exiting when calling thread sets quit state.
1076         * XEventQueue.cs: Added PostQuitState property
1077
1078 2006-08-27  Chris Toshok  <toshok@ximian.com>
1079
1080         * AsyncMethodData.cs: add a slot for the window handle.
1081
1082         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
1083         window (the destination control's window, not the foster window).
1084
1085         * Control.cs (BeginInvokeInternal): store the window's handle in
1086         the AsyncMethodData.
1087         
1088
1089 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
1090
1091         * XplatUIX11.cs:
1092           - PostQuitMessage: Removed resetting S.D display handle, we might have
1093             another loop started after calling PostQuitMessage (Fixes #79119)
1094           - Created destructor to reset S.D handle
1095
1096 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
1097
1098         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
1099
1100 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
1101
1102         * TextControl.cs (Insert): Update the caret position even if we don't
1103           have a handle yet, just don't call the driver in that case.
1104         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
1105           to the end of the new selection text (Fixes #79184)
1106
1107 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
1108
1109         * Form.cs (Activate): Only activate if the handle is created)
1110         * Control.c:
1111           - Mark window as invisible when it's disposed
1112           - Check if window handle is created when setting window visible, 
1113             instead of relying just on the is_created variable
1114           - Check if object is disposed when creating the control (Fixes #79155)
1115
1116 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
1117
1118         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
1119           when allowing layout again. Otherwise we re-generate the anchoring 
1120           distance to the border again and actually alter what the user wanted
1121           This is ugly, it'd be better if we used DisplayRectangle instead of
1122           ClientRectangle for Control.UpdateDistances, but that causes us to
1123           have other problems (initial anchoring positons would be wrong)
1124           (Fixes #78835)
1125
1126 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
1127
1128         * Control.cs:
1129           - The size and location setters shouldn't go directly to 
1130             SetBoundsCore, but to SetBounds, which triggers layout on the
1131             parent, then calls SetBoundsCore. (Related to fix for #78835)
1132           - SetBounds: Moved actual location update code into this function
1133             from SetBoundsCore, to match MS. Added call to PerformLayout if
1134             we have a parent (to trigger resizing of anchored parents if the 
1135             child size has changed (see testcase for #78835) 
1136         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
1137           new control code
1138         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
1139
1140 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
1141
1142         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
1143           System.Drawing when a toplevel window gets closed; there might
1144           be other toplevel windows belonging to the same app (Fixes #78052)
1145
1146 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
1147
1148         * FileDialog.cs: After reading FileDialog settings from mwf_config
1149           use Desktop prefix only if a real folder doesn't exist anymore.
1150         * FontDialog.cs: Added char sets.
1151           It is now possible to select the font, size or style with the
1152           textboxes.
1153
1154 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
1155
1156         * PrintPreviewDialog.cs: Use assembly name constants.
1157
1158 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
1159
1160         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
1161           scrollbar from whacking it's buttons)
1162
1163 2006-08-24  Chris Toshok  <toshok@ximian.com>
1164
1165         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
1166         in this patch (aggregating setting Left/Top/Width/Height to
1167         setting Bounds on the scrollbars), but the crux of the fix is in
1168         Recalculate, where we scroll by the remaining scroll_position if
1169         we're hiding a scrollbar.  The 2*$5 reward in the comment is
1170         serious.
1171
1172 2006-08-24  Jackson Harper  <jackson@ximian.com>
1173
1174         * MdiClient.cs:
1175         * MdiWindowManager.cs: If the form is made a non-mdi window we
1176         need to remove the form closed event so that closing forms works
1177         correctly.
1178
1179 2006-08-24  Jackson Harper  <jackson@ximian.com>
1180
1181         * Control.cs: Make IsRecreating internal so that the driver can
1182         check it
1183         - Temporarily remove the Hide when controls are removed, its
1184         making a whole bunch of things not work because visibility isn't
1185         getting reset elsewhere correctly
1186         * Form.cs: Need to do a full handle recreation when the mdi parent
1187         is set.
1188         * XplatUIX11.cs: If we are recreating handles don't dispose the
1189         HWNDs.  What was happening is the handles were being recreated in
1190         SendWMDestroyMessages, but then flow continued on in that method
1191         and destroyed the new handles.
1192
1193 2006-08-23  Jackson Harper  <jackson@ximian.com>
1194
1195         * Form.cs: MdiClient is always at the back of the bus
1196         * Control.cs: When the order of items in the collection is changed
1197         we need to reset the all_controls array
1198         - do the same sorta setup thats done when adding a control when a
1199         control is set on the collection.
1200
1201 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
1202
1203         * TextBoxBase.cs (get_Text): Return an empty array if our document
1204           is empty (fixes #79052)
1205
1206 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
1207
1208         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
1209           on WM_SYSCHAR messages (fixes #79053)
1210
1211 2006-08-23  Chris Toshok  <toshok@ximian.com>
1212
1213         * DataGrid.cs: fix flickering when scrolling vertically.
1214
1215 2006-08-23  Chris Toshok  <toshok@ximian.com>
1216
1217         * DataGrid.cs (EndEdit): only invalidate the row header when we
1218         need to.
1219
1220 2006-08-23  Chris Toshok  <toshok@ximian.com>
1221
1222         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
1223         methods.  fixes the flicker when scrolling around.
1224
1225 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
1226
1227         * FileDialog.cs: Making sure the control is created before we get a 
1228           chance to use it with BeginInvoke (Fixes #79096)
1229
1230 2006-08-23  Chris Toshok  <toshok@ximian.com>
1231
1232         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
1233         width to use when painting the rows.
1234
1235 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
1236
1237         * TextBoxBase.cs:
1238           - Throw ArgumentException if a negative value is passed to SelectionLength
1239           - Update the selection end if start is moved. end needs to be always
1240             after start. (Fixes #79095)
1241           - Track selection length; MS keeps the selection length even if start
1242             is changed; reset on all other operations affection selection
1243
1244 2006-08-22  Jackson Harper  <jackson@ximian.com>
1245
1246         * TreeView.cs: Make sure both scrollbars get displayed and sized
1247         correctly when the other bar is visible.
1248         - Use the original clip rectangle for checking if the area between
1249         the two scrollbars is visible, not the viewport adjusted clipping
1250         rectangle.
1251
1252 2006-08-22  Jackson Harper  <jackson@ximian.com>
1253
1254         * Binding.cs: We don't use IsBinding because it requires the
1255         control to be created, which really shouldn't be necessary just to
1256         set a property on the control.
1257
1258 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1259
1260         * ComboBox.cs: Some CB.ObjectCollection methods must throw
1261         ArgumentNullReferenceException when the argument is null.
1262
1263 2006-08-21  Jackson Harper  <jackson@ximian.com>
1264
1265         * Timer.cs: Track the thread that the timer is started in (NOT
1266         CREATED), this way messages for it will only be triggered on its
1267         queue.
1268         * XEventQueue.cs: Track the timers here, this makes timers per
1269         thread, like MS.
1270         * XplatUIX11.cs: The timers are moved to the XEventQueue.
1271
1272 2006-08-19  Chris Toshok  <toshok@ximian.com>
1273
1274         * XplatUIX11.cs: after further communication with pdb, we get the
1275         best of both worlds.  SetZOrder working for un-Mapped windows, and
1276         no X errors for un-mapped windows.
1277
1278 2006-08-19  Chris Toshok  <toshok@ximian.com>
1279
1280         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
1281         as it was causing pdn toolbars to not have the correct stacking.
1282
1283 2006-08-18  Mike Kestner  <mkestner@novell.com> 
1284
1285         * ListView.cs : guard against negative ClientArea.Width in scrollbar
1286         calculation.  Not sure why control should ever be setting a negative
1287         width though.  Fixes #78931.
1288
1289 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1290
1291         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
1292         null items in ObjectCollection class.
1293         * ListBox.cs.: Likewise.
1294
1295 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
1296
1297         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
1298           as the base method in ThemeWin32Classic should work fine.
1299           Fixed bug #78607.
1300
1301 2006-08-18  Jackson Harper  <jackson@ximian.com>
1302
1303         * Binding.cs: When validating if the value entered doesn't convert
1304         properly reset to the old value.
1305         * RadioButton.cs: Don't fire click when we get focus.
1306
1307 2006-08-18  Jackson Harper  <jackson@ximian.com>
1308
1309         * FileDialog.cs: Paint the selection on the directory combobox the
1310         same way as on MS. 
1311
1312 2006-08-17  Jackson Harper  <jackson@ximian.com>
1313
1314         * ErrorProvider.cs: Don't allow the error control to be selected.
1315         * Control.cs: Don't send the SetFocus messages, the control
1316         activation will do this, and if we do it blindly here validation
1317         does not work.
1318
1319 2006-08-17  Jackson Harper  <jackson@ximian.com>
1320
1321         * Control.cs:
1322         * ContainerControl.cs: Make validation events fire in the correct
1323         order.  TODO: For some reason the first validation event is not
1324         getting fired.
1325
1326 2006-08-17  Mike Kestner  <mkestner@novell.com> 
1327
1328         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
1329
1330 2006-08-17  Mike Kestner  <mkestner@novell.com> 
1331
1332         * ComboBox.cs : implement scroll wheel support for popped-down
1333         state. Fixes #78945. 
1334
1335 2006-08-17  Jackson Harper  <jackson@ximian.com>
1336
1337         * TreeView.cs: Specify treeview actions (old patch that didn't get
1338         committed for some reason).
1339         - Don't let the mouse wheel scroll us too far.  Just want to make
1340         the bottom node visible, not scroll it all the ways to the top.
1341
1342 2006-08-17  Jackson Harper  <jackson@ximian.com>
1343
1344         * XplatUIX11.cs: Mouse wheel events go to the focused window.
1345
1346 2006-08-17  Mike Kestner  <mkestner@novell.com> 
1347
1348         * ComboBox.cs : don't do mouseover selection in simple mode.
1349
1350 2006-08-16  Jackson Harper  <jackson@ximian.com>
1351
1352         * Form.cs: Fire the closing events for all the mdi child windows
1353         when a window is closed.  If the cancel args are set to true, the
1354         main window still gets the event fired, but it doesn't not close.
1355         * MdiWindowManager.cs: Do this closing cleanup in a Closed
1356         handler, instead of when the button is clicked, so cancelling the
1357         close works correctly.
1358         * ComboBox.cs: Send the mouse down to the scrollbar.
1359
1360 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1361
1362         * ListBox.cs: When passing 'null' to SelectedItem,
1363         set SelectedIndex to -1, to unselect items. This is the
1364         observed behaviour in .Net.
1365
1366 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
1367
1368         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
1369           MS flags saying there won't be any. (fixes #78800)
1370         * Control.cs (HandleClick): Made virtual
1371
1372 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
1373
1374         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
1375           cultures. Fixed bug #78399.
1376
1377 2006-08-16  Jackson Harper  <jackson@ximian.com>
1378
1379         * Form.cs: Use the MdiClients MdiChildren property to access
1380         MdiChildren instead of creating the array from the child controls.
1381         * MdiClient.cs: Maintain a separate array of the mdi children, so
1382         that insertion order is maintained when the Z-order is changed.
1383
1384 2006-08-16  Mike Kestner  <mkestner@novell.com> 
1385
1386         * ListView.cs : add an ItemComparer and default to it for sorting.
1387         Fixes #79076, but sorting needs a complete overhaul to be compat with
1388         MS.
1389
1390 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
1391
1392         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
1393
1394 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
1395
1396         * Hwnd.cs (Mapped): Properly traverse the tree
1397
1398 2006-08-15  Chris Toshok  <toshok@ximian.com>
1399
1400         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
1401         pass manager.Current.GetType() to ParseData.  It has to be the
1402         property type.  So, hold off doing the ParseData until we're in
1403         SetPropertyValue where we know the type.  This fixes the crash in
1404         #78821 but the textbox is still empty.
1405
1406 2006-08-15  Chris Toshok  <toshok@ximian.com>
1407
1408         * DataGrid.cs:
1409         - when we're scrolling, only call Edit() again if the
1410         current cell is still unobscured. Fixes bug #78927.
1411         - when handling mousedown on a cell, ensure the cell is visible
1412         before calling Edit.
1413         - remove the properties from DataGridRow, and remove the
1414         DataGridParentRow class altogether.
1415         
1416
1417 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
1418
1419         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
1420           fire OnTextChanged by ourselves. There's no point calling base,
1421           we don't set the base value anywhere else. Fixes #78773.
1422
1423 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1424
1425         * ListBox.cs: Call CollectionChanged when modifying
1426         an item from Items indexer, to update the actual items
1427         in the list box.
1428
1429 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1430
1431         * PrintDialog.cs: Small fixes for focus and a pair of checks,
1432         to match .Net behaviour.
1433
1434 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
1435
1436         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
1437
1438 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
1439
1440         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
1441
1442 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
1443
1444         * MessageBox.cs: Prevent potential NRE exception.
1445         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
1446
1447 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
1448
1449         * MessageBox.cs: Calculate the owner of a messagebox, also make
1450           it topmost. Fixes #78753
1451
1452 2006-08-14  Chris Toshok  <toshok@ximian.com>
1453
1454         * XplatUIX11.cs: A couple of fixes so that metacity will let us
1455         programmatically move windows.  first, set the PPosition hint as
1456         well as the USPosition hint.  Second include some code from pdb
1457         that sets the window type to NORMAL when we set the transient for
1458         hint.  This is because, in the absence of a window type, metacity
1459         thinks any window with TransientFor set is a dialog, and refuses
1460         to let us move it programmatically.  fascists.
1461
1462 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
1463
1464         * XplatUIX11.cs: When setting normal hints, take into consideration
1465           an different hints previously set so we don't delete them (fixes #78866)
1466
1467 2006-08-12  Chris Toshok  <toshok@ximian.com>
1468
1469         * ToolBarButton.cs: make Layout return a boolean, if something to
1470         do with the button's layout changed.
1471
1472         * ToolBar.cs:
1473         - add another parameter to Redraw, @force, which all existing
1474           calls set to true.
1475         - make the Layout function return a boolean which is true if the
1476           layout has actually changed.  Redraw now uses this (and @force)
1477           to determine when to invalidate.  At present the only place
1478           where @force can be false is the call from OnResize, when
1479           background_image == null.  So, resizing a toolbar when the
1480           layout doesn't change results in no drawing.
1481
1482 2006-08-12  Chris Toshok  <toshok@ximian.com>
1483
1484         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
1485         the VScrollBar and HScrollbar reversed.  oops.
1486
1487         * DataGrid.cs: fix the logic that assigns sizes to the implicit
1488         scrollbars.  we were assigning them twice (once in
1489         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
1490         therefore causing two scrollbar resizes (and redraws?) to happen
1491         per grid resize.
1492
1493 2006-08-12  Chris Toshok  <toshok@ximian.com>
1494
1495         * ToolBarButton.cs: redraw the entire button if the theme tells us
1496         to.
1497
1498         * Theme.cs: add ToolBarInvalidateEntireButton.
1499
1500         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
1501         buttons, just the border.
1502
1503         * ThemeNice.cs: redraw the entire toolbar button since we need to
1504         draw the highlight image.
1505
1506         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
1507         we need to redraw the entire button (not just the border).
1508
1509 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
1510
1511         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
1512           for vertical bars. Fixes the mismatches shown by #78513
1513
1514 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
1515
1516         * FileDialog.cs: If a saved/remembered path doesn't exist
1517           anymore, fall back to "Desktop".
1518
1519 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
1520
1521         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
1522           parent. It's apparently legal to not have one
1523         * XplatUIX11.cs:
1524           - SetZOrder: Don't try to set Z-Order on an unmapped window
1525           - CreateWindow: 0,0 are legal coordinates for a window. don't move
1526             it unless the coordinates are negative
1527
1528 2006-08-10  Mike Kestner  <mkestner@novell.com>
1529
1530         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
1531         when setting to null per msdn docs.  Fixes #78854.
1532
1533 2006-08-10  Chris Toshok  <toshok@ximian.com>
1534
1535         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
1536         flickering by setting a clip rectangle on the Graphics when we
1537         need to redraw just a particular menuitem.  Also, rename "OnClick"
1538         to "OnMouseDown" to reflect what it actually is.
1539         
1540         * Form.cs: track the OnMouseDown change.
1541
1542 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
1543
1544         * CommonDialog.cs: Properly inherit the CreateParams from the form
1545           and only change what we need. Fixes #78865
1546
1547 2006-08-10  Chris Toshok  <toshok@ximian.com>
1548
1549         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
1550         flickering in flat mode (and most of the flickering in general) by
1551         only invalidating the button border (and not the entire rectangle)
1552         when the state changes.  A couple of cases still flicker:
1553         ToggleButtons, and the dropdown arrow case when the user mouse
1554         ups.
1555
1556 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
1557
1558         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
1559           for german keyboards. Numlock state shouldn't affect the behaviour
1560           of the Del key. Fixes bug #78291.
1561
1562 2006-08-10  Chris Toshok  <toshok@ximian.com>
1563
1564         * ListControl.cs: remove the items.Clear line from BindDataItems,
1565         as this is the first thing done by both subclasses in their
1566         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
1567         passed -1, refresh the list.  This gets databinding working when
1568         the datasource is set on the list before the datasource is
1569         populated (as in wf-apps/ReportBuilder.)
1570
1571         * ComboBox.cs: remove the argument to BindDataItems.  This call
1572         should really go away, and be initiated by the ListControl code.
1573
1574         * ListBox.cs: same.
1575
1576 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
1577
1578         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
1579           if no data is in the document when the control is displayed
1580
1581 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
1582
1583         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
1584           yes (fixes #78806)
1585         * TextControl.cs: 
1586           - PositionCaret: Allow positioning of caret but don't call methods 
1587             requiring a handle if the window isn't created yet
1588           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
1589           - owner_HandleCreated: Don't position the caret, just update it's 
1590             location. User might have already set a different position
1591
1592 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
1593
1594         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
1595           windows. Screws up the returned coordinates for child windows. 
1596           Fixes #78825. I'm hoping this doesn't break something, since the
1597           code was explicitly put in 8 months ago, but no bug was attached.
1598           Menus still seem to work properly.
1599
1600 2006-08-08  Chris Toshok  <toshok@ximian.com>
1601
1602         * DataGrid.cs: make BeginInit/EndInit actually do what they're
1603         supposed to do - delay data binding until the EndInit call.  Also,
1604         make the table style collection's CollectionChangeAction.Refresh
1605         work properly.
1606
1607         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
1608         (with action = Refresh) when a consituent table's MappingName is
1609         changed.
1610
1611 2006-08-08  Chris Toshok  <toshok@ximian.com>
1612
1613         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
1614         Invalidate, since changing the text can change the size of the all
1615         toolbar buttons.
1616
1617 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
1618
1619         * Form.cs (AddOwnedForm): Still need to add the form to our listif
1620           we don't have it yet
1621
1622 2006-08-08  Chris Toshok  <toshok@ximian.com>
1623
1624         * PrintControllerWithStatusDialog.cs: don't .Close() the status
1625         dialog, as this causes X errors later on, since we actually
1626         destroy the window.  Instead, .Hide() it.
1627
1628 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
1629
1630         * ComboBox.cs: Added focus reflection for popup window
1631         * XplatUIX11.cs: 
1632           - Removed transient setting for non-app windows for now, not sure it
1633             was needed
1634           - Fixed logic checking if we have captions when deciding 
1635             override_redirect, WS_CAPTION is two bits and a 0 check was not
1636             sufficient
1637           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
1638             complicated
1639         * Form.cs: 
1640           - AddOwnedForm: Don't just add the form to the list, call the property
1641             to ensure the driver is informed about the ownership as well
1642           - CreateHandle: Set the TopMost status in the driver if we have an owner
1643         * XplatUI.cs: Fixed debug statement
1644
1645 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
1646         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
1647           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
1648           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
1649           TrackBarRenderer.cs: Make constructor private.
1650         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
1651         * ProfessionalColorTable.cs: Make properties virtual.
1652
1653 2006-08-06  Duncan Mak  <duncan@novell.com>
1654
1655         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
1656         is not changing.
1657
1658 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
1659         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
1660           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
1661           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
1662           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
1663           Initial import of new 2.0 classes.
1664
1665 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
1666         * Application.cs: Add 2.0 VisualStyles properties.
1667
1668 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
1669         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
1670           XplatUIX11.cs: Create property to allow access to existing private
1671           variable "themes_enabled"
1672
1673 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1674
1675         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
1676         file size, as otherwise our class libraries fail using windows. Fixes
1677         bug #78759.
1678
1679 2006-08-04  Jackson Harper  <jackson@ximian.com>
1680
1681         * Form.cs:
1682         * XplatUIX11.cs: Move the toolwindow window manager creation into
1683         the X11 driver, this way on win32 we can let windows create/handle
1684         the toolwindows.
1685
1686 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1687
1688         * PrintDialog.cs: Remove some redundant checks, add some others,
1689         clean some code, and move the focus to the text boxes when the
1690         values are incorrect.
1691
1692 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
1693
1694         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
1695
1696 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
1697
1698         * NumericUpDown.cs: Setting the Minimum and Maximum is now
1699           handled correctly. Fixes bug #79001.
1700
1701 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1702
1703         * PrintDialog.cs: The "Copies" numeric up down must have
1704         set the Minimum property to 1; only if the value is bigger
1705         than 1, activate "Collate" check box. This is the behaviour of .Net.
1706         Also modify the Document elements only if it is not null.
1707
1708 2006-08-03  Jackson Harper  <jackson@ximian.com>
1709
1710         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
1711         length. (We have a larger array then actual node count).
1712                 
1713 2006-08-03  Jackson Harper  <jackson@ximian.com>
1714
1715         * ComboBox.cs: Don't show selection by default.
1716         - The SelectAll isn't needed here, since the focus code should do
1717         that
1718         - DDL style lists to manual selection drawing, so when they
1719         get/lose focus they have to invalidate.
1720
1721 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
1722
1723         * TextBoxBase.cs: Don't always show all selections by default.
1724
1725 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
1726         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
1727           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
1728           Fixed various typos.
1729
1730 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
1731
1732         * Control.cs: Removing the controls in a ControlCollection with
1733           Clear now hides the controls as expected. Fixes bug #78804. 
1734
1735 2006-08-03  Jackson Harper  <jackson@ximian.com>
1736
1737         * Control.cs: Revert previous focus patch, it breaks reflector.
1738
1739 2006-08-03  Jackson Harper  <jackson@ximian.com>
1740
1741         * ComboBox.cs: Cleanup selection and focus with the combobox.
1742         This also eliminates some duplicated keyboard code, since now
1743         everything is handled by the main class.
1744         - Make list selection work on mouse up instead of down, to match
1745         MS.
1746
1747 2006-08-02  Jackson Harper  <jackson@ximian.com>
1748
1749         * Control.cs: Setting focus needs to go through the whole
1750         selection mechanism.
1751
1752 2006-08-02  Chris Toshok  <toshok@ximian.com>
1753
1754         * PrintPreviewDialog.cs: change MinimumSize to use
1755         base.MinimumSize so it works.
1756
1757 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
1758
1759         * TextControl.cs:
1760           - UpdateCaret: Added sanity check in case caret isn't defined yet
1761           - Line.Delete: Now updating selection and caret markers if we're
1762             transfering a node (Properly fixes #78323)
1763           - SetSelectionEnd: Added sanity check
1764         * TextBoxBase.cs: Removed broken attempt to fix #78323
1765
1766 2006-08-01  Chris Toshok  <toshok@ximian.com>
1767
1768         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
1769         Close() call is handled in Form, not here.
1770
1771 2006-08-01  Chris Toshok  <toshok@ximian.com>
1772
1773         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
1774         layout/rendering.
1775
1776         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
1777         for sizes < 100% zoom.  The code now aggressively attempts to keep
1778         from calling document.Print (), and tries not to use the scaling
1779         g.DrawImage whenever possible (it still does if you scale to >
1780         100%, since usually that involves huge images).
1781
1782         * PrintPreviewControl.cs: hook up the close button.
1783
1784 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
1785         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
1786           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
1787           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
1788           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
1789           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
1790           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
1791           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
1792           Removed [Serializable] for 2.0 Event Handlers.
1793
1794 2006-07-31  Jackson Harper  <jackson@ximian.com>
1795
1796         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
1797         * TextControl.cs: Uncomment out the body of this method.
1798
1799 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
1800
1801         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
1802           standard cursors.
1803
1804 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
1805
1806         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
1807           that embed TextBox and need selections visible even if textbox is not
1808           focused to enforce that behaviour.
1809         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
1810           selection drawing
1811
1812 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
1813
1814         * TextControl.cs:
1815           - Added new SetSelectionStart/SetSelectionEnd overloads
1816           - Fixed viewport width assignment to be accurate
1817           - Adjusted alignment line shift calculations to allow cursor on right
1818             aligned lines to be always visible at the right border (like MS)
1819         * TextBoxBase.cs:
1820           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
1821           - TextBoxBase_SizeChanged: recalculating canvas on size changes
1822           - CalculateScrollBars: Use ViewPort size instead of window size, to
1823             properly consider space occupied by the border and scrollbars 
1824             (Fixes #78661)
1825           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
1826             calculations; no longer leaves artifacts
1827           - CaretMoved: Adjusted window scrolling to match MS and fixed several
1828             calculation bugs (Still missing right/center align calculations)
1829
1830 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
1831
1832         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
1833           use of both scroll rect and clip rect, as they do the same.
1834
1835 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
1836
1837         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
1838           in the event handler (fixes #78912)
1839
1840 2006-07-31  Chris Toshok  <toshok@ximian.com>
1841
1842         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
1843         grid.ListManager.Count, since grid.ListManager might be null.
1844         This of course begs the question "why are we drawing rows for a
1845         grid with no list manager (and therefor no rows)?"  Fixes the
1846         crash in bug #78929.
1847
1848 2006-07-31  Chris Toshok  <toshok@ximian.com>
1849
1850         * RelatedPropertyManager.cs: Don't always chain up to the parent
1851         ctor.  instead, call SetDataSource if the parent's position is !=
1852         -1.  Fixes the crash in #78822.
1853
1854 2006-07-31  Chris Toshok  <toshok@ximian.com>
1855
1856         * DataGrid.cs (get_ListManager): use field instead of property
1857         accessors for datasource and datamember.
1858         (RowsCount): make internal again.
1859         (OnMouseDown): end edits before resizing columns/rows.
1860         (OnMouseUp): restart edits after resizing columns/rows.
1861
1862 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
1863
1864         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
1865           This fixes the situation where the last set cursor is displayed
1866           whenever the mouse is over scrollbars.
1867
1868 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1869
1870         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
1871         Document properties, as well as initial values.
1872
1873 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
1874
1875         * XplatUIWin32.cs (SetBorderStyle): Setting both border
1876           and ClientEdge results in a 3-pixel border, which is
1877           wrong.
1878
1879 2006-07-28  Jackson Harper  <jackson@ximian.com>
1880
1881         * TreeNodeCollection.cs: Fix the clear method.
1882         - Fix the Shrink also
1883
1884 2006-07-27  Jackson Harper  <jackson@ximian.com>
1885
1886         * TreeView.cs: Make sure the visible order is computed when we
1887         attempt to size the scrollbars (for trees that mess with the
1888         scrolling when they shouldn't.
1889         - Make sure to give the scrollbars valid values.
1890
1891 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
1892
1893         * XplatUIX11.cs: Move motion compression code to where it
1894           has less performance impact
1895
1896 2006-07-26  Jackson Harper  <jackson@ximian.com>
1897
1898         * UpDownBase.cs: When the control is selected make the child
1899         controls non selectable, so that a click on them won't do a
1900         focus/unfocus cycle.
1901         - Don't give focus to the text box when the spinner is selected.
1902         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
1903
1904 2006-07-26  Chris Toshok  <toshok@ximian.com>
1905
1906         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
1907         satisfied with this solution.  If the bitmaps are small, we should
1908         just cache them in the PrintPreviewDialog and draw them here.
1909         Also, the layout is broken for the 2-up and 3-up cases.
1910
1911         * Theme.cs: add PrintPReviewControlPaint.
1912
1913         * PrintPreviewDialog.cs: first pass implementation.
1914
1915         * PrintPreviewControl.cs: first pass implementation.  No
1916         scrollbars yet.
1917
1918         * PrintDialog.cs: only validate fields if that particular portion
1919         of the UI is enabled.  Also, set the document's controller to a
1920         PrintControllerWithStatusDialog wrapping the document's print
1921         controller.
1922
1923         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
1924         bring up a SaveFileDialog (i hope we don't want to match the
1925         behavior of the crappy windows file entry) and set the
1926         PrinterSettings.PrintFileName accordingly.
1927
1928 2006-07-26  Jackson Harper  <jackson@ximian.com>
1929
1930         * ContainerControl.cs: Add a field that disables auto selecting
1931         the next control in a container when the container is activated.
1932         * UpDownBase.cs: Don't select the text box when the up down is
1933         selected.
1934
1935 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
1936
1937         * XEventQueue.cs: Added methods for peeking (used for compression
1938           of successive events)
1939         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
1940           mouse move events (fixes #78732)
1941
1942 2006-07-25  Jackson Harper  <jackson@ximian.com>
1943
1944         * UpDownBase.cs: Use an internal class for the textbox so that we
1945         can control focus.  the updown control should always have focus,
1946         if either the text area or the buttons are clicked.
1947         - Send the key messages to the textbox, since it never actually
1948         has focus
1949         - Activate and decativate the textbox caret.
1950
1951 2006-07-24  Jackson Harper  <jackson@ximian.com>
1952
1953         * Control.cs: Use the directed select when selecting a control,
1954         this way the container controls override will get called and the
1955         whole ActiveControl chain will get triggered.  TODO: probably need
1956         to make sure this gets done everywhere instead of the old
1957         Select(Control).
1958         * ContainerControl.cs: Implement the directed Select method to
1959         find and activate the correct child control.    
1960         
1961 2006-07-22  Mike Kestner  <mkestner@novell.com>
1962
1963         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
1964         menu handling code so that clicks without a grab work too.
1965         [Fixes #78914]
1966
1967 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
1968
1969         * FileDialog.cs: Enable the BackButton when dirstack has one element.
1970           Added some small optimizations.
1971
1972 2006-07-21  Matt Hargett  <matt@use.net>
1973
1974         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
1975
1976 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
1977
1978         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
1979           tests pass and match MS in some strange border cases.
1980
1981 2006-07-21  Chris Toshok  <toshok@ximian.com>
1982
1983         * ThemeWin32Classic.cs: handle drawing of the relation links and
1984         parent row buttons.
1985
1986         * Theme.cs: change args to DataGridPaintParentRow.
1987
1988         * DataGrid.cs: Don't use controls for the relation links and
1989         parent buttons, so we have to handle all their interactions in
1990         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
1991         when we're navigating through child tables, so we can reinstate
1992         selection, expanded state, current cell, etc.
1993
1994 2006-07-20  Chris Toshok  <toshok@ximian.com>
1995
1996         * ToolBar.cs: When we redraw a button, for whatever reason,
1997         there's no reason to redraw the entire toolbar.  Also, don't call
1998         Control.Refresh from within Redraw, as it's much heavier than
1999         Invalidate (which is really what we want).
2000
2001 2006-07-20  Chris Toshok  <toshok@ximian.com>
2002
2003         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
2004         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
2005         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
2006         traces from within a debug IBindingList datasource
2007         (in mono/winforms/datagrid) for *days*, I've finally gotten things
2008         to work in a similar fashion.
2009
2010 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2011
2012         * ListBox.cs: Don't call Sort () when setting 
2013         the Sorted property to false (avoid an unnecessary sort).
2014
2015 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2016
2017         * ListControl.cs: DataSource should throw an ArgumentException
2018         instead of a normal exception when the argument is not of the 
2019         correct type.
2020
2021 2006-07-20  Mike Kestner  <mkestner@novell.com>
2022
2023         * Control.cs: add InternalPreProcessMessage to allow us to steal
2024         key events before MWF gets its paws on them.  Adapted from a
2025         suggestion by eno.
2026         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
2027         up/down/left/right navigation. Override the new internal control
2028         method to steal the events since they never make it to WndProc.
2029         * ToolBarButton.cs: don't worry about pushed when setting hilight
2030         since the drawing code prefers pushed to hilight. Invalidate on 
2031         Hilight changes. Fixes #78547 and #78525.
2032
2033 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
2034
2035         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
2036           the canvas size. Fixes #78868
2037
2038 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
2039
2040         * Splitter.cs: Track requested split position until first layout
2041           is performed. Fixes #78871
2042
2043 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
2044
2045         * Application.cs: Removed code that forces 1.x for the version
2046           number if the version started with 0. Not sure why that code was
2047           there and I couldn't find any bugs that indicated we needed it.
2048           Fixes #78869
2049
2050 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
2051
2052         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
2053           ResetDefaults(), just write some output to the console until it's
2054           implemented. Fixes bug #78907 for now. Eliminated two warnings.
2055
2056 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
2057
2058         * PropertyGridView.cs: set StartPosition of drop down forms
2059         so they appear in correct initial spot.  Fixes #78190.
2060
2061 2006-07-19  Mike Kestner  <mkestner@novell.com>
2062
2063         * ThemeWin32Classic.cs: use parent background color when drawing
2064         flat toolbars.  Restructure the conditionals to make sure non-flat
2065         non-Divider toolbars are filled too.  Fixes #78837.
2066
2067 2006-07-19  Mike Kestner  <mkestner@novell.com>
2068
2069         * ListBox.cs: Sort on collection changes even if the handle
2070         isn't created yet.  Fixes #78813.
2071
2072 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2073
2074         * ListControl.cs: DisplayMember should never be null,
2075         and now we assign String.Empty when null is passed to it (this
2076         is the .Net way).
2077
2078 2006-07-17  Mike Kestner  <mkestner@novell.com>
2079
2080         * ListViewItem.cs: restructure Font and subitem Font handling 
2081         to hold a specific font and refer back to owner on null.
2082         Fixes #78761.
2083
2084 2006-07-17  Mike Kestner  <mkestner@novell.com>
2085
2086         * ToolBar.cs: bandaid for side-effect of previous patch which was
2087         discarding explicit heights for non-AutoSize toolbars.  Need to
2088         extend my format tester to deal with AutoSize=false. Fixes #78864.
2089
2090 2006-07-15  Jackson Harper  <jackson@ximian.com>
2091
2092         * LabelEditTextBox.cs:
2093         * TreeView.cs: Use a new LabelEdit class for node editing, this
2094         class automatically 'closes' itself when it gets the enter key or
2095         loses focus.
2096         - Use the client rectangle when setting the trees scrollbars, so
2097         border style is taken into account.
2098         
2099 2006-07-14  Jackson Harper  <jackson@ximian.com>
2100
2101         * TreeNode.cs:
2102         * TreeView.cs: Make the editing work similar to MSs, firing the
2103         events correctly and ending edits correctly.
2104
2105 2006-07-14  Mike Kestner  <mkestner@novell.com>
2106
2107         * ToolBarButton.cs:
2108         * ToolBar.cs: layout restructuring and redraw enhancements to support
2109         formatting changes gracefully, like setting TextAlign, ImageList, 
2110         ButtonSize, and Appearance.  Handles explicit button sizing quirks
2111         of the MS controls.  Things like flat toolbars ignoring button size
2112         but becoming constant sized at the largest button's size.  Normal
2113         toolbars with an image set cannot be shrunk smaller than the image,
2114         but text can be clipped/ignored.
2115         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
2116         is zero.  Seems like DrawString should be smart enough to not put
2117         anything on screen though. Also trim labels and ellipsize at the char
2118         boundary, not word.
2119         Fixes #78711 and #78483.
2120
2121 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
2122
2123         * FolderBrowserDialog.cs: Disable "New Folder" button and
2124           "New Folder" contextmenu menuitem if a folder like "My Computer"
2125           is selected.
2126
2127 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
2128
2129         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
2130         * FolderBrowserDialog.cs:
2131           - Use MWFConfig to store and read size and position settings
2132           - Added code to create a new folder (button or context menu).
2133             Use TreeView labeledit to change the name of the new folder.
2134
2135 2006-07-14  Jackson Harper  <jackson@ximian.com>
2136
2137         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
2138         when the tree is scrolled we end editing.
2139
2140 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
2141
2142         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
2143           Down arrows
2144
2145 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
2146
2147         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
2148         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
2149         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
2150         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
2151         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
2152         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
2153         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
2154         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
2155         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
2156         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
2157         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
2158         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
2159         ListViewItemSelectionChangedEventHandler.cs,
2160         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
2161         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
2162         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
2163         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
2164         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
2165         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
2166         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
2167         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
2168         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
2169         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
2170         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
2171         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
2172         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
2173         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
2174         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
2175         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
2176         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
2177         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
2178         WebBrowserNavigatingEventHandler.cs, 
2179         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
2180
2181 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
2182
2183         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
2184         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
2185         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
2186         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
2187         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
2188         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
2189         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
2190         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
2191         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
2192         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
2193         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
2194         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
2195         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
2196         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
2197         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
2198         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
2199         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
2200         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
2201         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
2202         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
2203         ListViewItemStates.cs, MaskFormat.cs: Added
2204
2205 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
2206
2207         * PropertyGridView.cs: Fix keyboard navigation of drop down.
2208         Patch from eno for bug 78558.
2209         
2210 2006-07-13  Jackson Harper  <jackson@ximian.com>
2211
2212         * TreeView.cs: When an edit is finished make sure that the
2213         selected node is visible.
2214         - When setting the top/bottom use the scrollbars is_visible, so
2215         everything will be set correctly even if the tree isn't visible
2216         yet.
2217
2218 2006-07-13  Jackson Harper  <jackson@ximian.com>
2219
2220         * ComboBox.cs: Revert the item->index part of my previous patch.
2221         * TreeView.cs: Use LostFocus instead of Leave for detecting when
2222         the edit box has lost focus (duh).
2223         - Just make the edit box not visible when we get return, that will
2224         take the focus, which will call EndEdit
2225         * TreeNode.cs When we start editing, notify the treeview.
2226
2227 2006-07-12  Jackson Harper  <jackson@ximian.com>
2228
2229         * ComboBox.cs: Clear out old items before setting the item list.
2230         This prevents databound controls from having their items added
2231         twice.
2232         - Switch the combobox to use indices whereever possible instead of
2233         using Item's.  This allows usto navigate through lists that have
2234         more then one item with the same string value (ie a, b, b, a).
2235         - Scroll the listboxes scrollbar when a non visible item is
2236         highlighted
2237         - Allow keypress to cycle through all the possible values. For
2238         example if you have b1, b2, b3 and hold down the B key all the
2239         values will be cycled through.
2240         
2241 2006-07-12  Jackson Harper  <jackson@ximian.com>
2242
2243         * TextBoxBase.cs:
2244         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
2245         this using the internal methods.
2246         * Control.cs: Add OnGotFocusInternal.  A new method that allows
2247         controls to "override" OnGotFocus and change focus behavior if
2248         needed.
2249         - Same thing for LostFocus
2250         * ComboBox.cs: Pass off focus to the text control properly.
2251
2252 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
2253
2254         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
2255         * FolderBrowserDialog.cs: Almost a complete rewrite.
2256           - Better support for Environment.Specialfolders
2257           - Added support for MWFVFS
2258           - Made setting SelectedPath work
2259
2260 2006-07-12  Jackson Harper  <jackson@ximian.com>
2261
2262         * Control.cs: Optimze getting all the controls.
2263
2264 2006-07-11  Jackson Harper  <jackson@ximian.com>
2265
2266         * ContainerControl.cs: Override SETFOCUS in the container control,
2267         so that it is not selected on mouse click.
2268
2269 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
2270
2271         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
2272           Hopefully we will have a better way once all of focus is complete.
2273
2274 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
2275
2276         * ThemeWin32Classic.cs: Commented out some debug code and fixed
2277           a compile error with csc.
2278
2279 2006-07-11  Jackson Harper  <jackson@ximian.com>
2280
2281         * Control.cs: When hiding a control only select the next control
2282         if the current control was focused.
2283         - Don't handle enter/leave when setting/killing focus, this is
2284         done by the container control.
2285         - Remove is_selected, it's not needed anymore.
2286         - Add utility methods for selecting a child control, and for
2287         firing the Enter/Leave events.
2288         * ContainerControl.cs: When a control is activated fire the
2289         enter/leave events.
2290         - Don't wrap when processing the tab key, so that focus can be
2291         moved outside of the container.
2292         - Use the correct active control
2293
2294 2006-07-11  Jackson Harper  <jackson@ximian.com>
2295
2296         * ComboBox.cs: Remove some debug code that was blinding me.
2297         * UpDownBase.cs: These controls actually aren't implicit, they are
2298         visible to the user.
2299
2300 2006-07-10  Chris Toshok  <toshok@ximian.com>
2301
2302         * DataGrid.cs: move back to the is_adding boolean field.  god i
2303         hate this is_editing/is_adding/is_changing stuff.
2304
2305 2006-07-10  Chris Toshok  <toshok@ximian.com>
2306
2307         * DataGridTableStyle.cs: just check if the property type is bool.
2308         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
2309         Don't use CanRenderType.
2310
2311         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
2312         if our text == NullText.  Remove CanRenderType.
2313
2314         * DataGridBoolColumn.cs: nuke CanRenderType.
2315
2316         * DataGrid.cs: reenable some code to end the current edit inside
2317         of set_CurrentCell.  This fixes the other 1.1.16 regression.
2318         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
2319         Also, remove the visible_row_count arg from CalcRowHeaders, since
2320         we don't need to worry about the actual height of the area.
2321
2322 2006-07-10  Chris Toshok  <toshok@ximian.com>
2323
2324         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
2325         mode, just return.
2326
2327         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
2328         the real sense of the IsInEditOrNavigateMode property (true =
2329         navigate, false = edit).  Also, update OnKeyPress to reflect this.
2330
2331         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
2332         column style exists, we still need to set its property descriptor
2333         to match up with our list manager.
2334
2335 2006-07-10  Chris Toshok  <toshok@ximian.com>
2336
2337         * ThemeWin32Classic.cs: implement the new row/header painting
2338         approach.  The parent row painting will likely go away and
2339         replaced with label controls, but the rest seems to work ok (and
2340         efficiently).
2341
2342         * Theme.cs: change the way we draw datagrid rows.  we don't draw
2343         the row headers as a block now.  Instead we draw them in the
2344         normal draw-row loop.  Add some calls for drawing parent rows and
2345         relation rows.
2346
2347         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
2348         a default table style.  Set the defaults from ThemeEngine.Current,
2349         not SystemColors.  Fix lots of misc issues with property setters.
2350
2351         * DataGrid.cs: move loads of style information out of this class
2352         as it's being duplicated with DataGridTableStyle.  keep track of a
2353         special DataGridTableStyle for the properties we used to mirror
2354         here.  Switch all the style properties to access this table style
2355         instead of instance fields of this class.  Also add a internal
2356         class to represent parent rows (more needs to be stored here, like
2357         the selection state from the parent table, as well as the
2358         expansion state.)  Also, for datasources with relations, do the
2359         right thing for collapse/expand, and add support for the
2360         navigation/parent row buttons.
2361
2362         Lastly, fix the crash in the 1.1.16 build.
2363
2364         * GridTableStylesCollection.cs: make the explicit interface
2365         implementations call the class's methods as opposed to duplicating
2366         them.
2367
2368         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
2369         0 so the text doesn't jump around when we move the cursor.
2370
2371 2006-07-10  Jackson Harper  <jackson@ximian.com>
2372
2373         * TextBoxBase.cs:
2374         * ListBox.cs: Match MS's ToString (this makes debugging focus
2375         stuff infinitely easier).
2376
2377 2006-07-10  Jackson Harper  <jackson@ximian.com>
2378
2379         * Control.cs (SelectNextControl): When checking the control's
2380         parent use this instead of ctrl.parent so that null can be passed
2381         to SelectNextControl. (I have unit tests for this).
2382         - Remove unused var.
2383
2384 2006-07-10  Chris Toshok  <toshok@ximian.com>
2385
2386         * CurrencyManager.cs: correct one regression, the removal of the
2387         finalType field.  Also, add a MonoTODO on CanAddRows, implement
2388         Refresh() correctly, and fix some event emission in
2389         ListChangedHandler.
2390
2391 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
2392
2393         * FileDialog.cs: Don't use brackets for new folders if they exist
2394           under *nix. Instead use -(number of existing folders +1).
2395
2396 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
2397
2398         * FileDialog.cs:
2399           - Fixed really nasty bug #78771
2400           - Don't block the whole GUI when reading directories with a lot of
2401             entries. Use an other thread instead and call BeginInvoke to
2402             update the ListView in MWFFileView
2403
2404 2006-07-07  Chris Toshok  <toshok@ximian.com>
2405
2406         * Control.cs (Dispose): release any Capture when disposing.
2407
2408 2006-07-07  Chris Toshok  <toshok@ximian.com>
2409
2410         * LinkLabel.cs (Select): if we chain up to the parent, set
2411         focused_index to -1 so we'll search for the first available link
2412         the next time the user tabs into us.  Also, if the direction is
2413         backward and focused_index == -1, start the search from the last
2414         element.
2415
2416 2006-07-07  Chris Toshok  <toshok@ximian.com>
2417
2418         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
2419         is beyond the end of the text, don't do anything.
2420         (CreateLinkPieces): set our ControlStyles.Selectable based on
2421         whether or not we have any links.
2422         (Link.Invalidate): use a loop instead of foreach.
2423         (Link.set_Start): null out owner.sorted_links so it'll be
2424         recreated by CreateLinkPieces.
2425
2426 2006-07-06  Chris Toshok  <toshok@ximian.com>
2427
2428         * LinkLabel.cs: revert the SetStyle change.
2429
2430 2006-07-06  Chris Toshok  <toshok@ximian.com>
2431
2432         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
2433         (OnEnableChanged): s/Refresh/Invalidate
2434         (OnGotFocus): if we have a focused index already, refocus it (so
2435         if we mouse out/in to the window it'll focus the right link).
2436         (OnKeyDown): move the tab handling out of here.
2437         (OnLostFocus): don't set focused_index to -1, so we can refocus it
2438         when we lose focus.
2439         (OnMouseDown): don't Capture here - Control handles it.  Also,
2440         focus the active link.
2441         (OnMouseUp): don't deal with Capture.
2442         (OnPaintBackgroundInternal): remove.
2443         (OnTextAlignChanged): CreateLinkPieces before calling the
2444         superclass's method.
2445         (OnTextChanged): call CreateLinkPieces before calling superclass's
2446         method.
2447         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
2448         move around.
2449         (Select): implement this, moving the selection between different
2450         links, and call parent.SelectNextControl if we don't have another
2451         link to focus in the given direction.
2452         (CreateLinkPieces): call Invalidate instead of Refresh.
2453         
2454 2006-07-06  Chris Toshok  <toshok@ximian.com>
2455
2456         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
2457         new LinkLabel internals.
2458
2459         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
2460         over pieces looking for active/focused/etc links.  also, deal with
2461         runs of text (and links) with embedded \n's in them, and use
2462         MeasureCharacterRanges instead of MeasureString to figure out the
2463         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
2464         two-step.
2465
2466 2006-07-04  Jackson Harper  <jackson@ximian.com>
2467
2468         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
2469         XKB or key auto repeat, do it manually.  Without key auto repeat,
2470         when a key is held down we get key press, key release, key press,
2471         key release, ... with auto repeat we get key press, key press, key
2472         press ..., and then a release when the key is actually released.
2473
2474 2006-07-03  Jackson Harper  <jackson@ximian.com>
2475
2476         * TabControl.cs:
2477         * ThemeWin32Classic.cs: Tabs do not obey normal background color
2478         rules, they are always control color regardless of the background
2479         color.
2480
2481 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
2482
2483         * FileDialog.cs: Added internal class MWFConfig.
2484           Removed Registry support and replaced it with support for the new
2485           MWFConfig class. See MWFConfig comments for more information.
2486
2487 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
2488
2489         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
2490           rectangle. Added some patches from eno from bug #78490 and fixed
2491           the arrow position for small up and down CPDrawScrollButtons.
2492
2493 2006-06-30  Jackson Harper  <jackson@ximian.com>
2494
2495         * InternalWindowManager.cs: Remove some debug code.
2496         * Form.cs: When an MdiParent is set to null, the window is
2497         "detatched" and becomes a normal window.
2498         * MdiClient.cs: Don't bring the new child form to the front until
2499         it is activated (setting it as active does this), this makes the
2500         previously active forms titlebar get redrawn as inactive.
2501
2502 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
2503
2504         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
2505           with later controls
2506
2507 2006-06-29  Mike Kestner  <mkestner@novell.com>
2508
2509         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
2510         arrow in keynav state.  Fixes #78682.
2511
2512 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
2513
2514         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
2515           order (fixes #78393)
2516
2517 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
2518
2519         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
2520           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
2521           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
2522           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
2523           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
2524           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
2525           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
2526           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
2527           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
2528           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
2529           enumerations (FlagsAttribute, SerializableAttribute, added/removed
2530           values)
2531
2532 2006-06-28  Mike Kestner  <mkestner@novell.com>
2533
2534         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
2535
2536 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
2537
2538         * PropertyGrid.cs,
2539           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
2540           item lines from other area (It also makes BackColor consistent and
2541           compatible with .NET). Fixed bug #78564.
2542
2543 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
2544
2545         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
2546         Patch from Eno for #78555.
2547
2548 2006-06-27  Chris Toshok  <toshok@ximian.com>
2549
2550         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
2551
2552         * DataGridColumnStyle.cs: same.
2553
2554         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
2555         
2556         * DataGridDrawingLogic.cs: nuke.
2557
2558 2006-06-27  Chris Toshok  <toshok@ximian.com>
2559
2560         * DataGridTableStyle.cs: clean up the constructors, and build the
2561         list of child relations for this table.  I have no idea if this is
2562         where we should be doing it (it probably isn't), but since we're
2563         already iterating over the properties..
2564
2565         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
2566         struct and array for keeping track of row information, similar to
2567         what's shown in a hack on
2568         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
2569
2570         * Theme.cs: be consistent about the naming of DataGrid methods,
2571         prefering ColumnWidths and RowHeights over columnsWidths and
2572         RowsHeights.
2573
2574         * ThemeWin32Classic.cs: same, and also add support for variable
2575         sized rows (and the +/- expansion icons for related rows).
2576
2577 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
2578
2579         * TextBoxBase.cs: Applied Eno's patch from #78660
2580
2581 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
2582
2583         * Form.cs (ScaleCore): We don't want to scale our form if it's
2584           state is minimized or maximized, but we still need to scale our
2585           child windows. Also, added try/finally block to ensure layout
2586           gets reset (Fixes #78697)
2587
2588 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
2589
2590         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
2591
2592 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
2593
2594         * Form.cs: Fixed c+p error and added check to resize form if minimum
2595           size is bigger than current size (Fixes #78709)
2596
2597 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
2598
2599         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
2600
2601 2006-06-26  Mike Kestner  <mkestner@novell.com>
2602
2603         * ComboBox.cs: only do Keypress handling in the combo when there  
2604         are items in the collection. Fixes #78710.
2605
2606 2006-06-26  Chris Toshok  <toshok@ximian.com>
2607
2608         * Binding.cs: make this work bi-directionally.  also, clear up
2609         other mixups between Push/Pull Data (e.g. we're supposed to pull
2610         data when validating).
2611
2612         * BindingManagerBase.cs: trim some fully qualified collection
2613         types.
2614
2615         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
2616
2617 2006-06-23  Chris Toshok  <toshok@ximian.com>
2618
2619         * PropertyManager.cs: It appears (according to the unit tests)
2620         that PropertyManager doesn't use
2621         PropertyDescriptor.AddValueChanged to track propery value changes
2622         in its datasource, but uses the same scheme as Binding, where it
2623         looks for a <Property>Changed event and binds to it.
2624
2625         Also, according to the docs, IsSuspended always returns false for
2626         a property manager with a non-null datasource.
2627
2628 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
2629
2630         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
2631           need to update the actual DialogResult. (Fixes #78613)
2632
2633 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
2634
2635         * Form.cs (ShowDialog): Release any captures before running the
2636           new message pump (fixes #78680)
2637
2638 2006-06-22  Mike Kestner  <mkestner@novell.com>
2639
2640         * ListView.cs: Layout column widths properly in details mode even 
2641         if HeaderStyle.None is set.  Fixes #78691.
2642
2643 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
2644
2645         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
2646
2647 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
2648
2649         * Control.cs (ContainsFocus): Using new driver method to get focused
2650           window, instead of trying to use internal tracking var, which can
2651           recursion issues (Fixes #78685)
2652         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
2653           XplatUIWin32.cs: Added GetFocus method to return focused window
2654
2655 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2656
2657         * ColorDialog.cs: when the mouse button is pressed inside the color
2658         matrix, don't let the cursor move out of it until the button is
2659         released, which is the behavior on windows. Changed 'colours' by
2660         'colors' to use the same word consistently.
2661
2662 2006-06-21  Chris Toshok  <toshok@ximian.com>
2663
2664         * DataGrid.cs: add in some basic navigation stuff (navigating to a
2665         child relation and back, using a stack).  Also, remove
2666         GetDataSource and the code that calls it - it's not needed.  Also,
2667         track CurrencyManager.ListName's removal.
2668
2669 2006-06-21  Chris Toshok  <toshok@ximian.com>
2670
2671         * CurrencyManager.cs: push some of the original type checking from
2672         BindingContext.CreateBindingManager to here, and remove some of
2673         the finalType stuff.  Need more tests to make sure I've got the
2674         ListName part right, and we might need more in SetDataSource.
2675
2676         * PropertyManager.cs: add a ctor that takes just the datasource,
2677         and no property name.  Make SetDataSource work with a null
2678         property_name, and make Current return the data_source if the
2679         property descriptor is null.  this makes 'string foo = "hi";
2680         BindingContext[foo].Current' return "hi" as it should.
2681
2682         * RelatedCurrencyManager.cs: make this code more generic - there's
2683         no reason the parent manager has to be CurrencyManager, and
2684         there's no reason to pass the DataRelation.  It suffices to use a
2685         BindingManagerBase and PropetyDescriptor.
2686
2687         * RelatedPropertyManager.cs: make a similar change here.
2688         
2689         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
2690         flower I knew it could be.
2691
2692 2006-06-20  Chris Toshok  <toshok@ximian.com>
2693
2694         * PropertyManager.cs: the PropertyChangedHandler is invoked when
2695         data in the source has changed and we need to update the control,
2696         so s/PullData/PushData.
2697
2698         * CurrencyManager.cs: Refresh is meant to update the control from
2699         data in the datasource.  So, s/PullData/PushData.
2700
2701         * BindingContext.cs: add more ugliness (we weren't handling the
2702         case where data_source = DataTable and data_member = column_name).
2703
2704         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
2705         from the perspective of the datasource.  PullData pulls from the
2706         control, PushData pushes to the control.
2707
2708 2006-06-20  Chris Toshok  <toshok@ximian.com>
2709
2710         * BindingContext.cs: rewrite the CreateBindingManager code to
2711         handle navigation paths more or less properly.  This could
2712         definitely stand some more work, in particular to push the
2713         recursion up to the toplevel.  But that relies on fixes in other
2714         places (System.Data comes to mind).
2715
2716         Also, move to a flat hashtable (and encode the twolevel nature of
2717         the dictionary into the hash key).  This lets us implement the
2718         IEnumerable.GetEnumerator method.
2719
2720         * RelatedCurrencyManager.cs: new class.  Update our view based on
2721         our relation and our parent CurrencyManager's position.
2722
2723         * CurrencyManager.cs: split out some logic from the ctor into
2724         SetView, so it can be called from the new RelatedCurrencyManager
2725         subclass.
2726
2727         * RelatedPropertyManager.cs: new class.  Update our datasource
2728         based on the position of our parent CurrencyManager.
2729
2730         * PropertyManager.cs: split out some logic from the ctor into
2731         SetDataSource, so it can be called from the new RelatedDataSource
2732         subclass.  Also, make the Current getter return the value
2733         of the PropertyDescriptor, not the data_source.
2734
2735         * Binding.cs: no need to duplicate the string splitting code here.
2736
2737 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
2738
2739         * Control.cs:
2740           - set_Enabled: OnEnabledChanged is not called if the inherited state 
2741             of the control is not altered, even though  we might be changing the
2742             internal state of the control (#78458)
2743           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
2744             OnEnabledChanged, to allow easy altering of any child window state
2745           - OnEnabledChanged: Added code to enable/disable driver window state
2746           - OnParentEnabledChanged: Instead of firing the event, call 
2747             OnEnabledChanged, which will fire the event and also a) set driver
2748             window state and pass the enabled state to any grandchildren (#78458)
2749
2750 2006-06-19  Jackson Harper  <jackson@ximian.com>
2751
2752         * InternalWindowManager.cs: We don't set the cursor explicitly
2753         thats done via the response to NCHITTESTs.
2754         - Don't need to adjust for titlebar heights anymore, the
2755         coordinates are coming in the correct coordinates now (see peters
2756         last patch).
2757
2758
2759 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
2760
2761         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
2762           being translated relative to whole window, instead of client window.
2763           That caused broken offsets on mouseclick (and caused gas for our
2764           InternalWindowManager)
2765
2766 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
2767
2768         * TextControl.cs:
2769           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
2770           - Undo(): Added replay of cursor move on DeleteChars action; added
2771             calling Undo() again if a recorded cursor move is invalid (to
2772             ensure that some action is performed on Undo)
2773         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
2774
2775 2006-06-16  Jackson Harper  <jackson@ximian.com>
2776
2777         * MdiClient.cs: Instead of just sizing maximized windows when
2778         there is a resize we also have to adjust the Y of minimized
2779         windows, so they stay pinned to the bottom of the mdi container.
2780         - Eliminate separate tracking of the active control, we can just
2781         get this from the controls collection.
2782         - Paint the decorations for the newly activated titlebar so we get
2783         a pretty blue bar.
2784         * InternalWindowManager.cs:
2785         * ThemeWin32Classic.cs: Minimized windows get all three buttons
2786         even if they are a tool window.
2787         
2788 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
2789
2790         * TextControl.cs (Undo): Handle non-existent cursor locations in the
2791           undo buffer, these can happen when text was deleted and the cursor
2792           was recorded first. Since we will also have a recorded cursor
2793           after the delete this is not an issue. (Fixes #78651)
2794
2795 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
2796
2797         * AccessibleObject.cs: Remove dependence on Control.is_selected;
2798           instead properly track control states internally (allows us to
2799           remove is_selected from Control)
2800
2801 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2802
2803         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
2804         whose width is not a multiple of 8.
2805
2806 2006-06-13  Jackson Harper  <jackson@ximian.com>
2807
2808         * MdiClient.cs:  Only maximize the next child if the current one
2809         is maximized.
2810
2811 2006-06-13  Chris Toshok  <toshok@ximian.com>
2812
2813         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
2814         modified.  Also, guard against grid or grid_drawing being null in
2815         Invalidate.
2816
2817         * DataGrid.cs: Reformat tons of getters/setters.  In the
2818         DataMember setter, just call SetNewDataSource instead of
2819         duplicating some of its functionality.  In SetNewDataSource, don't
2820         check ListManager for null, since the property getter creates the
2821         object if needed.
2822
2823         * DataGridTableStyle.cs: don't set TableStyle or call
2824         SetDataGridInternal on the column here, it's done in
2825         GridColumnStylesCollection.Add.
2826
2827         * GridColumnStylesCollection.cs: fix all the explicit interface
2828         implementations to just call our methods.  Nuke AddInternal() and
2829         move the body of it to Add().  Also, add a call to
2830         column.SetDataGridInternal to Add().
2831
2832         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
2833         base()+duplicate code.  Also, use the Format property instead of
2834         format to generate an Invalidate ala MS.  Lastly, create the
2835         textbox here, unconditionally.
2836         (set_Format): call Invalidate.
2837         (get_TextBox): no need to call EnsureTextBox.
2838         (Commit): remove the message box.
2839         (Edit) remove the call to EnsureTextBox.
2840         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
2841         (EnterNullValue): no need to check textbox for null.
2842         (HideEditBox): no need to check textbox for null.
2843         (SetDataGridInColumn): add the textbox to the grid's controls.
2844         (EnsureTextBox): nuke.
2845         
2846 2006-06-13  Jackson Harper  <jackson@ximian.com>
2847
2848         * MdiWindowManager.cs: Hook up to the maximized menus paint event
2849         and redraw the buttons when needed. Unhook when the window is
2850         unmaximized.
2851         * MainMenu.cs: Add an internal Paint event, the mdi window manager
2852         needs this so that it can redraw its buttons when the menu is
2853         repainted.
2854         * InternalWindowManager.cs:
2855         * Form.cs: The method order has changed for DrawMaximizedButtons,
2856         so that it can be a PaintEventHandler.
2857         
2858 2006-06-13  Jackson Harper  <jackson@ximian.com>
2859
2860         * MdiClient.cs: When we close a maximized mdi window, the next mdi
2861         window is activated and maximized, even if it wasn't before.
2862         - When  a new window is activated repaint the decorations of the
2863         old one, so that it no longer has the Active "look" (the blue
2864         titlebar).
2865         * InternalWindowManager.cs: Open up CreateButtons to base classes
2866         so they can recreate the buttons on state changes.
2867         - If a window is maximized give it all three buttons
2868         * MdiWindowManager.cs: Create the titlebar buttons when the state
2869         is changed, this is needed because a toolwindow will not have all
2870         three buttons until it is maximized.
2871
2872 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
2873
2874         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
2875           Fixed bug #78609.
2876
2877 2006-06-12  Jackson Harper  <jackson@ximian.com>
2878
2879         * KeysConverter.cs: Make sure we handle the Ctrl special case
2880         if its the only key.
2881         
2882 2006-06-12  Jackson Harper  <jackson@ximian.com>
2883
2884         * Theme.cs: Add a method to get the size of a managed window
2885         toolbar button.
2886         * InternalWindowManager.cs: Remove the ButtonSize property, this
2887         should be retrieved from the theme.
2888         * MdiWindowManager.cs: Get the button size from the theme
2889         * ThemeWin32Classic.cs: Make the method to get the managed window
2890         titlebar button size public.
2891         - Handle the different button sizes of maximized toolwindows
2892         (should match any maximized window).
2893         - Get the titlebar height from the theme, not the WM (which gets
2894         it from the theme).
2895
2896 2006-06-12  Jackson Harper  <jackson@ximian.com>
2897
2898         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
2899         event down to the mdi window manager.
2900         - Expose some extra stuff to base classes
2901         - Make sure to end the Capture on an NC Mouse up, so that we can
2902         get double clicks properly, and the sizing doens't stick.
2903         - When doing PointToClient contain it in the workable desktop
2904         area, this prevents windows from changing size when the cursor is
2905         pulled outside of the working area while sizing.
2906         * MdiWindowManager.cs: When we get a double click maximize the
2907         window.
2908         - Reset the cursor after handling mode changes.
2909
2910 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
2911
2912         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
2913           current desktop, instead of just assuming a 0, 0 origin. This
2914           is needed for our internal window manager, to know the top
2915           margin of the desktop
2916
2917 2006-06-12  Chris Toshok  <toshok@ximian.com>
2918
2919         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
2920         we need this to get rid of the selected background in the bool
2921         column.
2922         (CancelEditing): move the ConcedeFocus call to above the Abort
2923         call.  Also, set is_changing to false and invalidate the row
2924         header if we were changing before.
2925         (ProcessKeyPreviewInternal): remove, since noone outside this
2926         class calls it anymore.  Roll the code into ProcessKeyPreview.
2927         (EndEdit): remove the internal version.
2928         (InvalidateCurrentRowHeader): make private.
2929
2930         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
2931         Keys.Escape handling (and with it the last call to
2932         DataGrid.EndEdit from outside the class.)
2933
2934
2935 2006-06-12  Chris Toshok  <toshok@ximian.com>
2936
2937         * DataGridTextBox.cs (.ctor): isedit defaults to false.
2938         (OnKeyPress): set isedit to true.
2939         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
2940         already handled by the grid.
2941
2942         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
2943         right.  ugh.
2944         (set_DataSource): SetDataSource always returns true, so stop
2945         putting it in an if statement.
2946         (EndEdit): get rid of some {}'s
2947         (ProcessGridKey): return true in case Keys.Escape.
2948         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
2949         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
2950         PositionChanged, stopped connecting to CurrentChanged.
2951         (GetDataSource): simplify this a bunch.
2952         (SetDataSource): change return type from bool to void.
2953         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
2954         to this, and make sure we don't set ListManager.Position inside
2955         set_CurrentCell.
2956         (OnListManagerItemChanged): if we're passed an actual index,
2957         redraw that row.
2958
2959         * CurrencyManager.cs (set_Position): don't call PullData here.
2960
2961 2006-06-09  Jackson Harper  <jackson@ximian.com>
2962
2963         * TreeNode.cs:  Recalculate the visible order before doing the
2964         Expand/Collapse Below calls, because those calls generate an
2965         expose.
2966         - Reduce calls to the TreeView property, which is mildly expensive
2967         by using a local var.
2968         * Form.cs: Layout the MDI child windows when creating the parent
2969         form.
2970         - Don't use the internal constructor anymore
2971         * MdiClient.cs: use the parent form width/height (if available)
2972         when laying out the child windows, we do this because the
2973         mdiclient isn't docked yet when the initial layout is done.
2974         - Don't need an internal constructor anymore.
2975
2976 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2977
2978         * FileDialog.cs: handle access errors when trying to create a folder
2979         or changing to a directory. No need to initialize out parameters.
2980
2981 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
2982
2983         * FileDialog.cs: Append a number when creating a new folder if the
2984           folder already exists (use parenthesis instead of square brackets)
2985
2986 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
2987
2988         * FileDialog.cs:
2989           - Disabled registry support for windows and added better registry
2990             error checking for other systems (need to investigate why it
2991             works perfectly on my system)
2992           - If a folder already exist show an error MessageBox instead of
2993             trying to create an indexed name.
2994           - Fixed a non intentional typo.
2995
2996 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2997
2998         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
2999
3000 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
3001
3002         * FileDialog.cs: When creating a new folder don't crash if the
3003           folder already exists.
3004
3005 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
3006
3007         * FileDialog.cs: Allmost a complete rewrite.
3008           - added a "virtual" file system that handles the differences
3009             between unix and windows file systems (especially the directory
3010             structure). Moved most of the directory and file handling code
3011             into the vfs.
3012             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
3013             UnixFileSystem and FSEntry.
3014           - Recently used folder/directory, size, location and used file names
3015             (file name ComboBox) are now stored in the registry and get read
3016             before the dialog shows up (fixes part 6 of bug #78446).
3017           - Creation of new folders/directories is now possible (context menu
3018             or ToolBar). Added TextEntryDialog for this that fills in the gap
3019             until ListView.LabelEdit works.
3020           - Fixed cursor handling (bug #78527) and focus handling for
3021             PopupButtonPanel
3022           - Various "Search in" ComboBox enhancements. The content of the
3023             dropdown listbox now almost matches ms.
3024           - Changed the behaviour when the user switches to SpecialFolder
3025             Recent to show the ListView in View.Details.
3026           - Beside using the ToolBar to change the View property of the
3027             file ListView it is now possible to use the context menu too.
3028
3029 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
3030
3031         * ComboBox.cs: Don't create a new ObjectCollection when an item
3032           gets inserted. Just insert the item in the existing object_items
3033           ArrayList.
3034
3035 2006-06-08  Jackson Harper  <jackson@ximian.com>
3036
3037         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
3038         that the treeview and root node checks are done also, this fixes a
3039         regression i caused in the unit tests.
3040
3041 2006-06-07  Wade Berrier <wberrier@novell.com> 
3042
3043         * RichTextBox.cs: More ISO8859-1 -> unicode
3044
3045 2006-06-07  Mike Kestner  <mkestner@novell.com>
3046
3047         * ComboBox.cs : use items to hold highlight/selection so that
3048         collection insertions don't require synchronization.
3049
3050 2006-06-07  Jackson Harper  <jackson@ximian.com>
3051
3052         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
3053         routine.  We now always keep the sized edge at the cursor instead
3054         of computing movement and adjusting rects.  There is one buglet
3055         with this method though when the cursor is moved over area that
3056         the window can not expand too (such as the toolbars on the desktop).
3057
3058 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3059
3060         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
3061         here. Fixes crash on startup in AlbumSurfer.
3062
3063 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
3064
3065         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
3066           values
3067
3068 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3069
3070         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
3071         statement to avoid calling XNextEvent which will block if another thread
3072         took the event that we were expecting. Fixes bug #78605.
3073
3074 2006-06-07  Mike Kestner  <mkestner@novell.com>
3075
3076         * ListView.cs : isolated checkbox clicking from the selection logic.
3077         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
3078
3079 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3080
3081         * Form.cs: Check that the value passed to Form.DialogResult
3082         is a valid enum value.
3083
3084 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3085
3086         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
3087         Computer'. Clicking it in the network view goes to 'My Computer'.
3088         Added CIFS filesystem type. Display the mount point of filesystems.
3089         Avoid duplicate mount points (happens for me with CIFS);
3090
3091 2006-06-06  Jackson Harper  <jackson@ximian.com>
3092
3093         * InternalWindowManager.cs: Draw the maximized windows buttons
3094         when resizing.
3095
3096 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3097
3098         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
3099         all other dialogs. Fixes bug #78585.
3100
3101 2006-06-06  Mike Kestner  <mkestner@novell.com>
3102
3103         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
3104         Only invalidate checkbox on checkstate changes to avoid flicker.
3105         * ListBox.cs : avoid unselect/select when clicking selected item.
3106         avoid reselection flicker for already multiselected items.
3107         Fixes #78382.
3108
3109 2006-06-06  Jackson Harper  <jackson@ximian.com>
3110
3111         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
3112         the parent form so that the menu is removed if needed.
3113
3114 2006-06-06  Mike Kestner  <mkestner@novell.com>
3115
3116         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
3117         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
3118
3119 2006-06-06  Mike Kestner  <mkestner@novell.com>
3120
3121         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
3122
3123
3124 2006-06-06  Jackson Harper  <jackson@ximian.com>
3125
3126         * Control.cs: Use the property (instead of the field) to get the
3127         default cursor so it is instantiated correctly.
3128         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
3129         resizes so we need to manually repaint the window decorations here.
3130         - Set the titlebar button locations as soon as they are created,
3131         otherwise they are not set correctly on win32.
3132         
3133 2006-06-06  Chris Toshok  <toshok@ximian.com>
3134
3135         * CurrencyManager.cs (set_Position): call PullData before
3136         OnCurrentChanged.
3137         (AddNew): after calling IBindingList.AddNew, update our
3138         listposition, and call OnCurrentChanged/OnPositionChanged (without
3139         calling PullData).
3140         (OnCurrentChanged): remove the call to PullData from here.
3141         (OnItemChanged): remove the call to PushData from here.
3142         (OnPositionChanged): change the test from == null to != null to
3143         match the other methods.
3144         (ListChangedHandler): the grossest part of the patch.  Implement
3145         this such that it passes the unit tests in CurrencyManagerTest and
3146         the output more or less matches that of MS's implementation.
3147  
3148 2006-06-06  Mike Kestner  <mkestner@novell.com>
3149
3150         * ListView.cs : only update check state on single click.
3151         * ThemeWin32Classic.cs : fix focus drawing for details view without
3152         fullrowselect.  Fixes #78454.
3153         * XplatUIX11.cs : fix for double click emission.
3154
3155 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
3156
3157         * PropertyGridView.cs : Applied Atsushi's patch to fix
3158         font dialog bug  (#78197).
3159
3160 2006-06-05  Jackson Harper  <jackson@ximian.com>
3161
3162         * TreeNode.cs: Compute the next node for expanding/collapsing
3163         correctly. We now factor in nodes without a NextNode
3164         correctly. (Fixes somes cases in nunit-gui).
3165         * InternalWindowManager.cs: Set the bounds when updating the
3166         virtual position of a tool window.
3167         
3168 2006-06-05  Chris Toshok  <toshok@ximian.com>
3169
3170         * DataGrid.cs: rename cached_currencymgr to list_manager.
3171         (set_CurrentCell): move SetCurrentCell code here, and clean it up
3172         some.
3173         (CurrentRow, CurrentColumn): single accessors so we can make the
3174         cursor movement code a lot easier to understand.
3175         (CurrentRowIndex): implement this in terms of CurrentRow.
3176         (BeginEdit): clean this up a bit.
3177         (CancelEditing): sort out the is_editing/is_changing/is_adding
3178         stuff a little.
3179         (EndEdit): minor changes.
3180         (OnKeyDown): add a comment about a (most likely) unnecessary
3181         check.
3182         (OnMouseDown): cancel editing when we click on a row header.  And
3183         use the CurrentRow setter, not CurrentCell.
3184         (ProcessDialogKey): directly call ProcessGridKey.
3185         (UpdateSelectionAfterCursorMove): factor out this common block of
3186         code (it's used everywhere that we move the cursor by updating row
3187         or column).
3188         (ProcessGridKey): pretty substantial overhaul.  Use the
3189         CurrentRow/CurrentColumn properties to make the code a lot more
3190         readable.  Only use the CurrentCell property when we have to
3191         modify both row and column at once.  Tab behavior is still broken,
3192         and Delete is untested.
3193         (Select): if we have no selected rows, set selection_start to
3194         @row.
3195         (EditCurrentCell): rename EditCell this.  It was only ever invoked
3196         with CurrentCell as the arg, so drop the arg and rename it.
3197
3198         * DataGridColumnStyle.cs: clean up the constructors a little, and
3199         drop CommonConstructor().
3200
3201         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
3202         actually get notified when the user hits it.
3203         (ProcessKeyMessage): *substantially* simplify this method.
3204         There's no reason (that I can see) for the textbox to be making
3205         calls into the datagrid at all.  Remove all of them but the ones
3206         for Enter handling.  those will take some more work.
3207
3208         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
3209         calling HideEditBox.
3210         (HideEditBox): if we have an active textbox, render it invisible
3211         without causing a re-layout of the datagrid.
3212
3213 2006-06-05  Mike Kestner  <mkestner@novell.com>
3214
3215         * ListView.cs : fix NRE crasher when focuseditem is cleared by
3216         collection changes by resetting it to Items[0].  Fixes #78587.
3217
3218 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3219
3220         * MessageBox.cs: if the height of the text is larger than the icon_size,
3221         use that. Fixes bug #78575.
3222
3223 2006-06-05  Jackson Harper  <jackson@ximian.com>
3224
3225         * TreeView.cs: Fix line drawing when scrolling.  To do this each
3226         node is basically responsible for drawing its entire horizontal
3227         area.  When drawing a node it draws its parent node lines if
3228         needed.
3229         - Adjust the clip area to the viewport rectangle
3230         - Fix Left/Right key handling to match MS. (It expand/collapses
3231         and moves to parents/first child but does not move selection to
3232         sibling nodes).
3233         - Fix SetTop to work with new bound calculation code
3234         - When scrollbars are no longer needed we need to reset scrolling
3235         vars and recalculate the visible order so the redraw is correct
3236         * TreeNode.cs: We can't expand/collapse nodes with no children.
3237
3238 2006-06-03  John Luke  <john.luke@gmail.com> 
3239
3240         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
3241         so the colors work without dev packages
3242         
3243 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
3244
3245         * Control.cs 
3246           - Select: Implemented to just use activate. Seems to match MS 
3247             behaviour closest. Documented to only do actual control walking 
3248             based on it's parameters if in a container control so I moved 
3249             the code there.
3250           - Removed selection check logic from our internal Select() method
3251         * ContainerControl.cs:
3252           - Select: Moved selection logic from Control here, since MS documents
3253             that containers obey the bool arguments. No longer calling base
3254
3255 2006-06-02  Jackson Harper  <jackson@ximian.com>
3256
3257         * TreeView.cs: If the selected node isn't changed when we get
3258         focus update the previously selected node so that we see the
3259         selection box.
3260
3261 2006-06-02  Mike Kestner  <mkestner@novell.com>
3262
3263         * ComboBox.cs: restructure grab and general mouse event handling.
3264         Make the composite control raise mouse events like it was a single
3265         control for leaves/enters/motion/up/down events.  fix dropdown list
3266         coordinate mangling and refactor it into the scrollbar subclass to
3267         reduce code duplication.  Fixes #78282 #78361 and #78457.
3268
3269 2006-06-02  Mike Kestner  <mkestner@novell.com>
3270
3271         * ScrollBar.cs: remove Capture setting/clearing, as it happens
3272         automatically in the Control.WndProc.
3273
3274 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3275
3276         * FileDialog.cs: fix crash when running SharpChess, which sets the
3277         FilterIndex to 2 with only one Filter.
3278
3279 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3280
3281         * ToolBar.cs: add SizeSpecified property.
3282         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
3283         try to figure out our real size, otherwise fallback to what the
3284         container says.
3285
3286 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
3287
3288         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
3289         * Control.cs (WndProc): MS always calls the DefWndProc to pass
3290           up the event
3291
3292 2006-06-01  Mike Kestner  <mkestner@novell.com>
3293
3294         * ListView.cs: revamp the focus management in ListView.  It still
3295         causes churn of LostFocus/GotFocus emissions on clicks, but it's
3296         better than not handling focus at all.  Will revisit when pdb feels
3297         the general focus handling is solid.  Fixes #78526.
3298
3299 2006-06-01  Jackson Harper  <jackson@ximian.com>
3300
3301         * TreeView.cs: Set the default border style in the constructor.
3302         - Move painting to use OnPaintInternal instead of capturing
3303         WM_PAINT, this is the correct way of doing things
3304         - UpdateBelow shouldn't invalidate the scrollbar area
3305         - Cap the top on update below in case the node was above the top
3306         of the viewport rectangle.
3307         - ExpandBelow and Collapse below need to obey Begin/End Update.
3308         * TreeNode.cs: Make is_expanded internal so the treenode
3309         collection can change it without firing the whole event chain.
3310         * TreeNodeCollection.cs: When clearing all the child nodes make
3311         sure to recalc the visible order.
3312         - Improve algo for remove the top node
3313
3314 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
3315
3316         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
3317           SendMessage directly calling window procedures, which in turn might
3318           call SetFocus()
3319
3320 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
3321
3322         * Control.cs: Don't handle WM_SETFOCUS if the same window already
3323           has focus (works around X11 sending a FocusIn after our SetFocus)
3324         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
3325
3326 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
3327
3328         * Mime.cs: Fix for the NET_2_0 build.
3329           NameValueCollection needs StringComparer now.
3330
3331 2006-05-31  Chris Toshok  <toshok@ximian.com>
3332
3333         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
3334         return (via an out parameter) the starting X of the column.
3335         (UpdateVisibleColumn): track change to FromPixelToColumn.
3336         (HitTest): add a ColumnResize case here.
3337         (DrawResizeLine): new function, probably poorly named.
3338
3339         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
3340         only need to keep one reference.
3341         (set_ListManager): same.
3342         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
3343         Also, add support for HitTestType.ColumnResize.
3344         (OnMouseMove): add column resize behavior here, and change the
3345         cursor to the correct one as we move around the datagrid.
3346         (OnMouseUp): terminate the column resize if we're resizing.
3347         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
3348         for the current cell.
3349         (ConnectListManagerEvents): use cached_currencymgr.
3350         (DisconnectListManagerEvents): fill this in, using
3351         cached_currencymgr.
3352         (SetCurrentCell): remove cached_currencymgr_events handling.
3353         (SetDataMember): only call DisconnectListManagerEvents if
3354         cached_currencymgr is != null.
3355         (SetDataSource): same.
3356         (OnListManagerCurrentChanged): cached_currencymgr_events ->
3357         cached_currencymgr.
3358
3359 2006-05-31  Jackson Harper  <jackson@ximian.com>
3360
3361         * BindingManagerBase.cs: Remove somedebug code that creeped into
3362         SVN.
3363         * TreeNode.cs: We get the indent level dynamically right now, so
3364         don't track it as a member.
3365         * TreeNodeCollection.cs: Make sure all nodes added to the list
3366         have parents, treeviews/topnodes setup properly.
3367         - Don't attempt to track indent level.
3368
3369 2006-05-30  Jackson Harper  <jackson@ximian.com>
3370
3371         * BindingContext.cs: Create the currency manager tables here.
3372         This allows us to more easily create null tables (when bad data
3373         members are used), and more easily create related currency
3374         managers.
3375         * CurrencyManager.cs: All the table creation stuff is done by the
3376         binding context now.
3377         - Current should throw an exception if listposition is -1.
3378         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
3379         been bound yet.
3380
3381 2006-05-30  Mike Kestner  <mkestner@novell.com>
3382
3383         * ListView.cs: allow reexpansion of zero-width column headers.
3384         Fixes #78528.
3385
3386 2006-05-28  Chris Toshok  <toshok@ximian.com>
3387
3388         * CurrencyManager.cs (get_Current): after the late binding
3389         listposition = -1 fix, we need to guard against it here and return
3390         null, otherwise we raise an exception (which is swallowed
3391         elsewhere, and breaks datagrid databinding.)
3392
3393 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
3394
3395         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
3396           than WM_SYSKEY, don't throw if get something unexpected (#78507)
3397
3398 2006-05-26  Jackson Harper  <jackson@ximian.com>
3399
3400         * ControlPaint.cs:
3401         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
3402         values, it's faster and it's all we care about (we don't care if
3403         the names aren't equal).
3404         * KeyboardLayouts.cs: Eliminate some dead code.
3405         - Lazy init things
3406         * X11Keyboard.cs: Lazy init keyboard detection.
3407         - Cleanup access modifiers a little.
3408
3409 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
3410
3411         * XplatUIX11.cs: Once again, attempting to get layout just right.
3412
3413 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
3414
3415         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
3416           the sizes of each link section, that will result in sizes that
3417           match DrawString's layout (Fixes #78391)
3418
3419 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
3420
3421         * FileDialog.cs: If AddExtension property is true autocomplete the
3422           extensions in SaveFileDialog correctly. Fixes bug #78453.
3423           Set MyNetwork and MyComputer to "C:\" for windows. This should
3424           fix part 8 of bug #78446 for now.
3425
3426 2006-05-26  Chris Toshok  <toshok@ximian.com>
3427
3428         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
3429         invalidate the current row header if we need to, but presumably
3430         we'll invalidate the row corrsponding to the bounds or
3431         editingControl.
3432         (GridHScrolled): switch back to this method, as it's part of the
3433         public api.  *sigh*.
3434         (GridVScrolled): same.
3435         (OnMouseWheel): hack up something that more or less works.  Call
3436         GridHScrolled/GridVScrolled directly, instead of duplicating much
3437         of their code here.
3438         (EnsureCellVisibility): reinstate a bunch of this code, since we
3439         can't just set the scrollbar Value and expect to do all the work
3440         in the ValueChanged handler.  Also, Call Update() after scrolling
3441         in one direction so the other XplatX11.ScrollWindow call has the
3442         proper stuff in the proper places.
3443         (EditCell): set is_editing to true before calling .Edit.
3444
3445         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
3446         don't bother comparing first.
3447         (OnKeyPress): call grid.ColumnStartedEditing before calling
3448         base.OnKeyPress.  this will set is_changing and invalidate the row
3449         header if necessary.
3450         (ProcessKeyMessage): for WM_CHAR messages, call
3451         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
3452         and WM_KEYDOWN.
3453         
3454         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
3455         it's done in the DataGrid.
3456         (NextState): call grid.ColumnStartedEditing, which takes care of
3457         invalidating the row header (and setting is_changing).
3458
3459         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
3460         here.  it's done in the DataGrid.
3461
3462 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3463
3464         * Control.cs: allow changing the cursor when the mouse position is
3465         out of bounds but Capture is set.
3466         * LinkLabel.cs: handle the case when the mouse button is pressed on the
3467         linklabel but released somewhere else.
3468
3469 2006-05-25  Jackson Harper  <jackson@ximian.com>
3470
3471         * TreeView.cs: When we get focus if there is no selected node make
3472         it the top node
3473         - Remove some uneeded setup code from Draw.
3474         * TreeNodeCollection.cs: If the tree doesn't have a top node when
3475         a new node is inserted make the new node the top.
3476         * XplatUIX11.cs:
3477         * Timer.cs: Use Utc time so that no local time zone stuff needs to
3478         be used (should be faster).
3479         
3480 2006-05-25  Chris Toshok  <toshok@ximian.com>
3481
3482         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
3483         problem with the last commit.
3484
3485 2006-05-25  Chris Toshok  <toshok@ximian.com>
3486
3487         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
3488         need the invalidate call here, while scrolling right-to-left via
3489         the left arrow key (i.e. moving the editing cell while scrolling).
3490
3491         * DataGrid.cs (.ctor): remove the initialization of
3492         ctrl_pressed/shift_pressed.  We no longer track them using key
3493         up/down handlers, but by using Control.ModifierKeys.  Also, switch
3494         to using ValueChanged handlers on the scrollbars instead of
3495         Scrolled event handlers.  This simplifies a bunch of the scrolling
3496         code.
3497         (GridHValueChanged): rename from GridHScrolled, and change it to
3498         work with the new event args.
3499         (GridVValueChanged): same.
3500         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
3501         (OnMouseWheel): actually scroll the datagrid.  Don't change the
3502         selected cell.
3503         (ProcessGridKey): correct all the keyboard navigation stuff I
3504         could find.  Ctrl up/down/left/right/home/end work now.
3505         (EnsureCellVisibility): correct method name spelling.  Also,
3506         simplify this a touch by not explicitly calling the
3507         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
3508         scrollbar value.
3509         (OnKeyUpDG): no need for this method now.
3510         
3511 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3512
3513         * LinkLabel.cs: display the OverrideCursor when hovering the label.
3514         Fixes bug #78392.
3515
3516 2006-05-25  Chris Toshok  <toshok@ximian.com>
3517
3518         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
3519         r61019.
3520
3521 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
3522
3523         * Application.cs: Moved setting of is_modal and closing to before
3524           we create the control, to allow the event handlers called as a
3525           result of creation affect closing. Also removed Gonzalo's previous
3526           change to setting DialogResult, the behaviour has been moved to 
3527           Form.ShowDialog()
3528         * Form.cs: 
3529           - ShowDialog(): Removed explicit creation of the form, let RunLoop
3530             handle it instead
3531           - ShowDialog(): If no dialog result is set, we need to return Cancel
3532           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
3533             the close is cancelled
3534
3535 2006-05-25  Jackson Harper  <jackson@ximian.com>
3536
3537         * StatusBar.cs: We only need to update the sizes of the other
3538         panels when we have auto size contents.  Also we are only updating
3539         the contents of the panel, not the borders, so compensate for the
3540         border width (TODO: get this width from the theme somehow).
3541         * TreeView.cs: Scrollable is true by default
3542         - Use invalidate instead of refresh where needed
3543         - Factor the scrollable value into scrollbar updating
3544         - Update the scrollbars if the Scrollable property is altered
3545         - Update the selected node if its ImageIndex is changed
3546         - Handle null nodes in UpdateNode (mainly so we don't have to
3547         check if selected is null when updating it
3548         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
3549         are factored into the visible count
3550         - Use VisibleCount for clarity in the code
3551         - When the font is changed we need to recurse through all the
3552         nodes and invalidate their sizes
3553         
3554 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3555
3556         * Application.cs: set the DialogResult to fixed when the main form is
3557         hidden or destroyed while being modal.
3558
3559 2006-05-25  Miguel de Icaza  <miguel@novell.com>
3560
3561         * Theme.cs: Use Tangoified messagebox icons. 
3562
3563         (GetSizedResourceImage): Also cope with width = 0 and do not
3564         trigger a warning in that case (0 means "give me your icon from
3565         the resouce, no special size needed).
3566
3567 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
3568
3569         * Application.cs: Leave runloop if the the main modal form is 
3570           hidden (fixes #78484)
3571
3572 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
3573
3574         * BindingContext.cs : reject null datasource in Contains() and
3575           Item[].
3576         * CurrencyManager.cs : check data_member validity when data_source
3577           is dataset. When it is late binding, the initial position is -1.
3578
3579 2006-05-24  Jackson Harper  <jackson@ximian.com>
3580
3581         * TreeNodeCollection.cs: Dont't recalculate the visible order on
3582         inserted nodes that aren't visible.  This changes the
3583         max_visible_order which confuses scrollbar settings.
3584         - Use the enumerator to get the prev node instead of duplicating
3585         code.
3586         * TreeView.cs: Use new method for setting scrollbar values
3587         - Don't set the bounds every time the scrollbar is updated
3588         - When updating below the root node use an invalidate instead of a
3589         refresh to prevent the child controls (scrollbars) from being
3590         refreshed. (UpdateBelow still needs to be reworked anyways).
3591         - Reenable SetBottom now that visible orders are set correctly,
3592         added some debug code incase we ever get bad values there again.
3593         - Set the scrollbar max to 2 less then the max value, this
3594         compensates for the max value being one above the node count, and
3595         for scrollbars adding one extra "notch".
3596         - When drawing image nodes if there is an imagelist we draw the
3597         first image in the list if the supplied image index is out of the
3598         image list's bounds.
3599         
3600 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
3601
3602         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
3603           we receive a size change from the WM (Fixes #78503)
3604
3605 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
3606
3607         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
3608           rectangle (Fixes #78501)
3609
3610 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
3611
3612         * ButtonBase.cs: 
3613           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
3614             as a bitfield.
3615           - Fixed MouseMove to no longer switch pressed state unless the left
3616             mouse button is pressed. Atsushi provided the original patch (#78485)
3617           
3618 2006-05-24  Jackson Harper  <jackson@ximian.com>
3619
3620         * ScrollBar.cs: New internal methods that allow us to change a
3621         couple values on the scrollbar (the most common case is maximum
3622         and large change) without getting multiple invalidates.
3623
3624 2006-05-24  Chris Toshok  <toshok@ximian.com>
3625
3626         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
3627         (Edit): save off the original state in oldState, and set
3628         grid.is_editing to true.
3629         (OnKeyDown): abort editing if escape is pressed.  also, call
3630         NextState if space is pressed.
3631         (OnMouseDown): call NextState.
3632         (NextState): factor out shared code from OnKeyDown and OnMouseDown
3633         here.  Also, only invalidate the row header once (on the initial
3634         is_changing switch) to save on redraws.
3635
3636 2006-05-24  Chris Toshok  <toshok@ximian.com>
3637
3638         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
3639         if the value in the cell is different than it was before.  This
3640         keeps us from triggering a layout when we move around a datarid
3641         with a highlighted cell.
3642         (Edit): suspend layout when creating/positining the text box, and
3643         resume passing false so we don't ever actually re-layout.
3644         (ReleaseHostedControl): same.
3645         (EnsureTextBox): reformat slightly, and set WordWrap to false.
3646
3647         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
3648         control-key sequences should go to the datagrid - remove that
3649         lock.  Also, modify the conditions under which we move between
3650         cells when moving the cursor within a cell, and remove the "this"
3651         and "base" from field accesses.  We weren't even consistent, given
3652         they all were in the base class.
3653
3654 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
3655
3656         * Binding.cs : (.ctor)
3657           An obvious NRE fix for BindingTest.CtorNullTest().
3658
3659 2006-05-23  Chris Toshok  <toshok@ximian.com>
3660
3661         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
3662         them between lines.  This fixes some quirks editing cells in the
3663         datagrid.
3664
3665 2006-05-23  Jackson Harper  <jackson@ximian.com>
3666
3667         * TreeView.cs: Use begin/end update when doing expand/collapse all
3668         so that we don't get flicker on the scrollbar.
3669
3670 2006-05-23  Jackson Harper  <jackson@ximian.com>
3671
3672         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
3673         treenode calculations to be independant of the painting code. To
3674         do this nodes track a visible order which is calculated by the
3675         treeview.
3676         - Call new methods for expanding/collapsing nodes.  These methods
3677         use scrollwindow so we don't have to update everything below the
3678         node.
3679         * TreeView.cs: Refactored drawing and scrolling code.  We don't
3680         need to update nodes when drawing anymore or calculate scrollbar
3681         stuff.
3682         - Added new methods for expanding/collapsing nodes. These methods
3683         use ScrollWindow so as to not have to redraw all the nodes below.
3684         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
3685         we add/remove nodes or sort.
3686         - Handle removing the selected and the top node properly.
3687
3688 2006-05-23  Chris Toshok  <toshok@ximian.com>
3689
3690         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
3691         maybe this should actually happen in the datagrid code?
3692         (EndEdit): no need to invalidate anything, given that
3693         ReleaseHostedControl causes the datagrid to relayout, which
3694         invalidates everything anyway.
3695
3696         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
3697         in SetCurrentCell).
3698         (set_SelectionBackColor): call InvalidateSelection instead of
3699         Refresh.
3700         (set_SelectionForeColor): same.
3701         (BeginEdit): Flesh this out a bit.
3702         (CancelEditing): only do any of this if we're editing/adding.
3703         (EndEdit): same.
3704         (OnMouseDown): there's no need to cancel editing here, it's done
3705         in SetCurrentCell.
3706         (SetCurrentCell): only invalidate the current row header if it's a
3707         different row than the new one.
3708         (ShiftSelection): fix this to work like MS does.
3709         (ResetSelection): factor out the invalidation of selected_rows to
3710         InvalidateSelection.
3711         (SetDataSource): cancel any editing that's going on.
3712
3713         * DataGridColumnStyle.cs
3714         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
3715         call the non-interface version.
3716
3717         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
3718         header rectangle with the clip rectangle so we don't redraw the
3719         entire header for just a small area.  Gets rid of the last flicker
3720         when horizontally scrolling.
3721         (DataGridPaintRow): same.
3722
3723 2006-05-23  Mike Kestner  <mkestner@novell.com>
3724
3725         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
3726         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
3727         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
3728         Critical bug report.
3729
3730 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
3731
3732         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
3733           and this fixes #78493
3734
3735 2006-05-23  Miguel de Icaza  <miguel@novell.com>
3736
3737         * Theme.cs (GetSizedResourceImage): Scale images if the proper
3738         size is not found.  
3739         
3740         * FileDialog.cs: Do not change the background for the side bar as
3741         it wont work nicely with the theme, and also reduces the artifacts
3742         in rendering the icons (which I want to fix too).
3743
3744         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
3745         resources, not resgen resources. 
3746
3747         (PlatformDefaultHandler): Pull images using the new API.
3748
3749 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
3750
3751         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
3752           a reference to the hwnd and will not remove it unless there are
3753           no pending exposures (fixes #78341)
3754         * XplatUI.cs: Improved debug
3755
3756 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
3757
3758         * MenuAPI.cs : don't handle OnClick event when it was not the left
3759           button. Fixed bug #78487.
3760
3761 2006-05-23  Mike Kestner  <mkestner@novell.com>
3762
3763         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
3764         prefer submenus to the top menu for item lookup, to avoid popping down
3765         top-row items.
3766
3767 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
3768
3769         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
3770           Graphics.FillRectangle as the visual results are really bad (even
3771           on win). We now draw perfect arrows (and perfect shadows when the
3772           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
3773           Pen.DashPattern to draw the dots of each line.
3774
3775 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
3776
3777         * FileDialog.cs: Update the filename combobox when navigating through
3778           the ListView with the cursor keys. Fixes part 7 of bug #78446.
3779
3780 2006-05-22  Mike Kestner  <mkestner@novell.com>
3781
3782         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
3783         Fixes #78463.
3784
3785 2006-05-22  Mike Kestner  <mkestner@novell.com>
3786
3787         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
3788         requests. Fix a misspelled parameter and a copy paste exception error
3789         in Select.
3790
3791 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
3792
3793         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
3794           to get the same width/height (5/13) on X11 as the default font has on
3795           win32. This means that our DefaultFont emSize is smaller than the 
3796           the MS SWF equivalent (even thought the width/height stays the same)
3797
3798 2006-05-20  Jackson Harper  <jackson@ximian.com>
3799
3800         * MdiClient.cs:
3801         * MdiWindowManager.cs:
3802         * InternalWindowManager.cs: Make sure to use the border width from
3803         the theme.
3804
3805 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
3806
3807         * PrintDialog.cs: Implements printer details
3808
3809 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
3810
3811         * FileDialog.cs: Added focus handling for PopupButtonPanel.
3812           Fixes part 1 and 2 of bug #78446
3813
3814 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
3815
3816         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
3817           instead of sticking to the first ever calculated value
3818
3819 2006-05-19  Mike Kestner  <mkestner@novell.com>
3820
3821         * ComboBox.cs: fix mouse motion selection to use MousePosition and
3822         PointToClient, since Capture is set. Fixes #78344.
3823
3824 2006-05-19  Mike Kestner  <mkestner@novell.com>
3825
3826         * ListView.cs: match MS behavior in Details view where items are not
3827         drawn if Columns.Count == 0. 
3828         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
3829         Use a separate pen to draw the check, since changing the width affects
3830         the box as well.  Fixes #78454.
3831
3832 2006-05-18  Miguel de Icaza  <miguel@novell.com>
3833
3834         * ListView.cs: ArgumentOutOfRangeException, single versions of the
3835         exception should throw the name of the invalid argument.
3836
3837         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
3838         there are no files listed. 
3839
3840 2006-05-18  Jackson Harper  <jackson@ximian.com>
3841
3842         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
3843         up.
3844
3845 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
3846
3847         * Control.cs: Brought back our old UpdateZOrder method as a private
3848           function and switched our calls from UpdateZOrder to the new one.
3849           This fixes the Paint.Net canvas disappearing bug.
3850
3851 2006-05-18  Jackson Harper  <jackson@ximian.com>
3852
3853         * Theme.cs:
3854         * ThemeWin32Classic.cs:
3855         * InternalWindowManager.cs: Move the drawing into the theme,
3856         expose everything the theme should need from the window manager.
3857
3858 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
3859
3860         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
3861           from the call to NativeWindow to avoid walking up the parent chain
3862           further than needed (speeds up setting cursors and avoids setting
3863           the wrong cursor if a parent has another cursor defined)
3864         * Cursor.cs: When loading an icon as cursor, MS uses the center of
3865           the icon as hotspot, not what's contained as hotspot in the icon
3866           file. This fixes the perceived drawing offset seen with Paint.Net
3867         
3868 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
3869
3870         * XplatUIX11.cs: 
3871           - Store the calculated rectangle in Hwnd object and use it when 
3872             setting the client size
3873           - Force Toolwindows to always be type Dock, to ensure they're on top
3874
3875 2006-05-18  Mike Kestner  <mkestner@novell.com>
3876
3877         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
3878         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
3879         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
3880         Substantial refactoring to remove confusing nested classes. Coding
3881         standard and Get+Set->property refactorings.  Shift to index based
3882         highlighting in ComboListBox instead of constantly using IndexOf and
3883         Items[]. Add invalidations on resize for DropDownList to fix ugliness
3884         in FileDialog growth.  Draw borders manually since Simple mode needs
3885         to look like two independent controls.  Make listbox border
3886         conditional to DropDownStyle.  Improved OwnerDraw support.
3887
3888 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
3889
3890         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
3891         Don't set the disposed graphics to null, so we can throw the "right"
3892         exception if the graphics is reused later (added a flag to avoid 
3893         double disposing). Some behaviours are different under 2.0 and are
3894         filled under bug #78448.
3895
3896 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
3897
3898         * Control.cs: When double-buffering is enabled, we need to reset
3899           our graphics context between paint calls. Otherwise, any 
3900           transformations and other alterations on the context will 
3901           become cumulative (#77734)
3902
3903 2006-05-18  Mike Kestner  <mkestner@novell.com>
3904
3905         * ListView.cs: do focused item selection like MS on clicks. 
3906         Rework focus handling for ItemControl so LostFocus invalidates as
3907         well.
3908         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
3909         the ListView ItemControl has focus.
3910
3911 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
3912
3913         * XplatUIX11.cs: If client_window ends up being width or height zero
3914           due to border settings, move it off window inside whole_window (#78433)
3915
3916 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
3917
3918         * Mime.cs: Shrink the mime file cache correctly.
3919
3920 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
3921
3922         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
3923
3924 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
3925
3926         * XplatUIX11.cs (AddExpose): More sanity checks
3927
3928 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
3929
3930         * XplatUIX11.cs:
3931           - AddExpose: Don't add expose ranges outside the size of our
3932             window
3933           - Cast opacity values to Int32 to avoid crashes with certain
3934             values
3935           - Added disabled code paths that protect against illegal cross-
3936             thread painting (Developers.exe)
3937
3938 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
3939
3940         * ProgressBar.cs: Invalidate the control when it's resized
3941           since block size is based on control size. (#78388)
3942
3943 2006-05-16  Miguel de Icaza  <miguel@novell.com>
3944
3945         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
3946         of setting the incoming argument to the "reset" value, we set the
3947         this.datamember to string.empty (before we were invalidating the
3948         incoming data).   
3949
3950         Fixes 78420
3951
3952 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
3953
3954         * Form.cs: Only apply transparency settings after the form
3955           is created. (Fixes #77800)
3956
3957 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
3958
3959         * ApplicationContext.cs: Grab the HandleDestroyed event so
3960           we know when to fire OnMainFormClosed 
3961
3962 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
3963
3964         * Application.cs: Introduced sub-class to allow tracking of
3965           threads and centralized triggering of the event mess for
3966           ThreadExit, AppExit, etc..  (#76156)
3967
3968 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
3969
3970         * MimeIcon.cs:
3971           - Do not return a null icon index value for a mime subclass.
3972             Instead try the main mime type class too.
3973           - Seems that some newer distributions don't have a link to some
3974             gnome default icons anymore. So check the default gnome dir too.
3975           
3976
3977 2006-05-16  Jackson Harper  <jackson@ximian.com>
3978
3979         * MdiClient.cs: Don't paint the parent background image if we have
3980         our own background image.
3981
3982 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
3983
3984         * Control.cs:
3985           - PerformLayout: Do not shrink space filled by DockStyle.Fill
3986             controls, all filled controls are supposed to overlap (#78080)
3987           - UpdateZOrder is supposed to update the control's z-order in the
3988             parent's z-order chain. Fixed to behave like that
3989           - BringToFront: Removed obsolete code
3990           - SendToBack: Simplyfied
3991           - SetChildIndex: Trigger layout calculations when Z-order changes
3992             since layout is done by z-order
3993
3994 2006-05-16  Chris Toshok  <toshok@ximian.com>
3995
3996         [ fixes bug #78410 ]
3997         * DataGrid.cs (set_AlternatingBackColor): use
3998         grid_drawing.InvalidateCells instead of Refresh().
3999         (set_BackColor): call grid_drawing.InvalidateCells.
4000         (set_BackgroundColor): use Invalidate instead of Refresh.
4001
4002         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
4003         invalidate the cell area.
4004
4005 2006-05-15  Chris Toshok  <toshok@ximian.com>
4006
4007         [ fixes bug #78011 ]
4008         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
4009         on to DataGridPaintRow.
4010         (DataGridPaintRow): take a clip argument, and only draw the cells
4011         which intersect it.  same with the not_usedarea.
4012
4013         * Theme.cs (DataGridPaintRow) add @clip parameter.
4014
4015         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
4016         XplatUI.ScrollWindow.
4017         (ScrollToRow): same.
4018
4019         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
4020         with last column which was causing a gray swath to appear with the
4021         XplatUI.ScrollWindow code.
4022
4023 2006-05-15  Chris Toshok  <toshok@ximian.com>
4024
4025         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
4026         use XplatUI.ScrollWindow.
4027         (VerticalScrollEvent): use XplatUI.ScrollWindow.
4028
4029 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
4030
4031         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
4032
4033 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
4034
4035         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
4036           file since there are no equivalent X11 cursors
4037
4038 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
4039
4040         * MonthCalendar.cs : DateTimePicker should reflect selected date
4041           on mouse*up*, not mouse*down*. Fixed originally reported part of
4042           bug #76474.
4043
4044 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
4045
4046         * TabControl.cs : When argument index is equal or more than tab
4047           count, just ignore. Fixed bug #78395.
4048
4049 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
4050
4051         * Control.cs: Dispose all child controls when control is diposed (#78394)
4052
4053 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
4054
4055         * ColorDialog.cs: Finally it is possible to select the color with
4056           the text boxes
4057
4058 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
4059
4060         * PrintDialog.cs: Fix typo
4061
4062 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
4063
4064         * PrintDialog.cs: PrintDialog is not resizable
4065         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
4066           color. Made some ToolBar drawing methods protected virtual.
4067
4068 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
4069
4070         * PrintDialog.cs: Implementation of the PrintDialog
4071
4072 2006-05-12  Chris Toshok  <toshok@ximian.com>
4073
4074         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
4075         thumb, instead use MoveThumb.  This has the side effect of making
4076         most of the other thumb moving machinery use MoveThumb as well.
4077         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
4078         need to actually invalidate the rectangle where the new thumb will
4079         go.
4080         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
4081         We force an Update() after, so it's not as fast as it could be,
4082         but at least there's zero flicker and no droppings.
4083         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
4084         (UpdateThumbPos): add another argument (dirty), which says whether
4085         or not to calculate/add dirty regions which we later invalidate.
4086         For cases where we know we're going to use MoveThumb, we pass
4087         false for this.  Otherwise, pass true.
4088
4089 2006-05-12  Jackson Harper  <jackson@ximian.com>
4090
4091         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
4092         the status bar.
4093         
4094 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
4095
4096         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
4097           and GetClipRegion methods and UserClipWontExposeParent property.
4098         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
4099           overriding UserClipWontExposeParent property, setting to false, since
4100           Win32 handles the required expose messages to draw our clipped parent
4101           areas internally
4102         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
4103           PaintEventStart to set the user clip region if set.
4104         * Control.cs: 
4105           - Now internally tracking the Region for the control since we need to
4106             store it if the handle is not yet created and only set it when it
4107             becomes created. Before setting the region forced handle creation
4108           - Added code to draw the parents underneath a user-clipped region
4109         * Hwnd.cs: Added UserClip property
4110
4111 2006-05-12  Chris Toshok  <toshok@ximian.com>
4112
4113         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
4114         (set_Maximum): same.
4115         (set_Minimum): same.
4116         (set_SmallChange): same.
4117         (OnMouseUpSB): remove the call to refresh when releasing the
4118         thumb.  We shouldn't need it.
4119         
4120 2006-05-12  Miguel de Icaza  <miguel@novell.com>
4121
4122         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
4123         AutoSize set to None, we do not need to relayout everything, we
4124         just need to invalidate the current region.
4125
4126         (Draw): Do not draw the entire ClientArea, just redraw the
4127         clip area being passed.
4128
4129         * MdiClient.cs: Make MdiClient constructor with the Form argument
4130         internal. 
4131
4132 2006-05-12  Jackson Harper  <jackson@ximian.com>
4133
4134         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
4135         parents background image,  but strangely not their own.
4136         - (DrawStatusBarPanel): Take into account horizontal alignment
4137         when drawing the strings and icons.
4138
4139 2006-05-12  Mike Kestner  <mkestner@novell.com>
4140
4141         * ListBox.cs: avoid invalidations for focus when the collection is
4142         empty. 
4143
4144 2006-05-12  Chris Toshok  <toshok@ximian.com>
4145
4146         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
4147         invalidate the entire thumb area.  Call InvalidateDirty which
4148         limits the redraw to the thumb itself and surrounding pixels.
4149
4150         * XplatUIX11.cs (ScrollWindow): optimize copying.
4151         
4152 2006-05-12  Chris Toshok  <toshok@ximian.com>
4153
4154         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
4155         Figure out the positioning/layout in a single pass instead of
4156         multiple recursive invocations.  Speeds up the initial display of
4157         the data grid.  Also, make many things private that were
4158         originally public but unused outside this class.
4159
4160 2006-05-11  Jackson Harper  <jackson@ximian.com>
4161
4162         * MdiClient.cs: Improved layout code.
4163
4164 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
4165
4166         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
4167           not SelectedObject.
4168
4169 2006-05-11  Chris Toshok  <toshok@ximian.com>
4170
4171         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
4172         union of that will always be {0,0,width,height}.
4173
4174 2006-05-11  Jackson Harper  <jackson@ximian.com>
4175
4176         * Form.cs: Match MS's DefaultSize for forms (they must have
4177         changed the size in sp2).
4178
4179 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
4180
4181         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
4182
4183 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
4184
4185         * TextControl.cs : Fixed bug #78109. This incorrect position
4186           comparison caused crash on automatic line split.
4187         * TextBoxBase.cs : reduce duplicate code.
4188
4189 2006-05-10  Jackson Harper  <jackson@ximian.com>
4190
4191         * MdiClient.cs: Active form is only sent to the back when using
4192         the Next form functionality, when a form is clicked the current
4193         active shouldn't be sent to the back.
4194         - Layout the mdi windows when the container is first made visible.
4195         * Form.cs: Give the MdiClient a ref to the containing form when we
4196         create it.
4197         
4198 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
4199
4200         * LinkLabel.cs : link_font could be uninitialized, so populate one
4201           before actual use. Fixed bug #78340.
4202
4203 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
4204
4205         * XplatUIX11.cs : clipboard format native value is IntPtr.
4206           Fixed bug #78283.
4207
4208 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
4209
4210         * Control.cs: 
4211           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
4212             which is passed up the parent chain by DefWndProc
4213           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
4214             to DefWndProc (#77956)
4215         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
4216
4217 2006-05-10  Jackson Harper  <jackson@ximian.com>
4218
4219         * MdiClient.cs: We need to remove the controls from the mdi
4220         collection, when we close the window.
4221         * MdiWindowManager.cs: Special handling of closing mdi windows.
4222         * InternalWindowManager.cs: Make the close method virtual so the
4223         mdi window manager can handle it specially.
4224
4225 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
4226
4227         * DataGrid.cs:
4228           - Recalculate grid when the data source has changed
4229           - Matches styles provided by user from all data sources types
4230         * DataGridTableStyle.cs: For columns that provided by the user set the
4231         with the preferred value is there was unassigned.
4232         * CurrencyManager.cs: throw OnItemChanged event
4233
4234 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
4235
4236         * PictureBox.cs: Don't animate until handle is created. Start animation
4237           when handle is created.
4238
4239 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
4240
4241         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
4242           current codebase.
4243         * XEventQueue.cs: We don't need to provide the extra info
4244
4245 2006-05-10  Jackson Harper  <jackson@ximian.com>
4246
4247         * MdiClient.cs: If the mdi clients parent form has a background
4248         image set, we draw that background image for the mdi area's
4249         background.
4250
4251 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
4252
4253         * TextBoxBase.cs: Set IBeam cursor (#78347)
4254
4255 2006-05-10  Mike Kestner  <mkestner@novell.com>
4256
4257         * ToolBar.cs: fix some text padding issues with ButtonSize
4258         calculation. Update the default size to match MS documentation.
4259         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
4260         button size. Fixes #78296.
4261
4262 2006-05-10  Mike Kestner  <mkestner@novell.com>
4263
4264         * ListBox.cs: use is_visible for scrollbar positioning in case the
4265         control isn't on screen yet.  Fix off by one with Right vs Width
4266         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
4267         
4268 2006-05-10  Jackson Harper  <jackson@ximian.com>
4269
4270         * X11Dnd.cs: Drop to a control with another control on top of it.
4271         * ToolBar.cs: Work on a copy of the buttons list, so that it can
4272         be modified in click handlers. TODO: Look for similar problems in
4273         other controls.
4274
4275 2006-05-09  Jackson Harper  <jackson@ximian.com>
4276
4277         * Form.cs: Window managers need the old window state when setting
4278         window state now.
4279         * InternalWindowManager.cs: Allow the base mdi window manager to
4280         handle more of the MDI only stuff (like maximize buttons).
4281         * MdiWindowManager.cs: Fix some snafus in changing the window
4282         state.  Add all the menu functionality, for both popup and
4283         maximized menus.
4284         * MdiClient.cs: When a new form is selected the currently
4285         activated form is sent to the back, this matches MS.
4286         - Implement a new method to activate the next mdi child window.
4287
4288 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
4289
4290         * Control.cs: 
4291           - Added new InternalCapture method to allow controls to prevent
4292             the capture behaviour on the click handlers
4293           - Switched to use InternalCapture
4294         * ComboBox.cs:
4295           - Using InternalCapture to prevent mouse captures from being released
4296             on mouse button release (Fixes #78100)
4297         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
4298           returns Form borders if a caption is present. (Fixes #78310)
4299
4300 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
4301
4302         * TreeNode.cs: Changed serialization .ctor to not require every field
4303           to be present. (#78265)
4304         * OwnerDrawPropertyBag.cs: Added serialization .ctor
4305
4306 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
4307
4308         * MimeIcon.cs: for is faster than foreach for strings.
4309
4310 2006-05-05  Mike Kestner  <mkestner@novell.com>
4311
4312         * CheckedListBox.cs: update check handling code to not use selected.
4313         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
4314         behavior for visual feedback, motion response, shift/ctrl handling,
4315         and properly deal with all 4 selection modes. Updates to bounds
4316         handling logic.  Add scroll wheel support. [Fixes #77842]
4317
4318 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
4319
4320         * ListView.cs:
4321           - Moved adding of Implicit controls into .ctor. That way, subsequent
4322             creation of the controls will not cause them to think they are 
4323             toplevel windows (fixes #78200 header problem)
4324           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
4325           - Switched visibility setting of header control to use internal field
4326             to avoid triggering handle creation
4327           - Now checking if handle is created before causing a refresh when items
4328             are added (This makes us now match handle creation time with MS)
4329         * Splitter.cs: Removed loading of private splitter cursor, switched to
4330           Cursors version now that that is loading the right ones
4331         * Cursors.cs: Load proper splitter cursors from resources
4332         * Cursor.cs: Added second method of loading resource cursors for the 
4333           VS.Net users amongst us
4334
4335 2006-05-05  Mike Kestner  <mkestner@novell.com>
4336
4337         * ListView.cs: give header_control a minimum size based on the
4338         ListView size.
4339
4340 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
4341
4342         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
4343           window seems to do that with metacity, so set that type. (#78120)
4344
4345 2006-05-05  Mike Kestner  <mkestner@novell.com>
4346
4347         * ListViewItem.cs: fix Details mode checkbox layout bug.
4348         * ThemeWin32Classic.cs: draw a ListView column header for unused space
4349         at the end of the header, if it exists. [Fixes for #78200]
4350
4351 2006-05-04  Jackson Harper  <jackson@ximian.com>
4352
4353         * MdiClient.cs: Add a helper property to get the container form.
4354         * MdiWindowManager.cs: We have to make sure to use the menu origin
4355         when drawing the icons and buttons, this fixes maximized window
4356         icons/buttons on win32.
4357         * InternalWindowManager.cs: Reset the restore captions when a
4358         window goes from Maximized to Minimized and vice versa. Move the
4359         DrawMaximizedButtons into the MdiWindowManager source, tool
4360         windows can't be maximized. NOTE: This could use a little
4361         refactoring if time ever permits.
4362         
4363 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
4364
4365         * TextBox.cs: Add MWFCategoryAttributes
4366         * TextBoxBase.cs: Add MWFCategoryAttributes
4367         * Form.cs: Add MWFCategoryAttributes
4368
4369 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
4370
4371         * Control.cs: Add MWFCategoryAttributes
4372         * ScrollableControl.cs: Add MWFCategoryAttributes
4373
4374 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
4375
4376         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
4377           Divider is true. Fix a little glitch in PropertyToolBar
4378           drawing code
4379
4380 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
4381
4382         * Control.cs:
4383           - Dispose: Call base.Dispose, this causes the disposed event
4384             to be fired (and probably other, more important stuff)
4385           - SetVisibleCore: Set is_visible to true after creating the
4386             window so that the window still gets created invisible (if
4387             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
4388             to generate a WM_ACTIVE message
4389         * Form.cs: Call Dispose when we want to destroy the window, instead of
4390           just destroying the handle (Dispose will do that for us)
4391         * XplatUIX11.cs:
4392           - RootWindow also needs a queue, so we can properly process the
4393             property change events from RootWindow (like Activate)
4394           - Generatic synthetic WM_ACTIVE message when the active window is
4395             being destroyed
4396
4397 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
4398
4399         * LinkLabel.cs: Trigger a recalc of our label dimensions when
4400           bounds are changed
4401
4402 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
4403
4404         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
4405           for determining width and height (image might not be assigned if
4406           we're drawing an imagelist)
4407
4408 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
4409
4410         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
4411         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
4412           height from system
4413         * Theme.cs: No longer returns hardcoded menu height, instead calls
4414           new driver method
4415         * Form.cs (OnLoad): Scaling happens before triggering Load events 
4416           on MS (# 78257)
4417
4418 2006-05-01  Mike Kestner  <mkestner@novell.com>
4419
4420         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
4421
4422 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
4423
4424         * TextBoxBase.cs: Removed Fixme
4425         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
4426
4427 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
4428
4429         * XplatUIX11.cs:
4430           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
4431             the rectangle relative to the parent, considering borders. We
4432             don't really want that.
4433           - ScrollWindow: Fixed warning to be more understandable
4434         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
4435           scrollbars and scroll only the visible area
4436         * RichTextBox.cs: Removed debug output
4437
4438 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
4439
4440         * NumericUpDown.cs (Text): Just use base
4441         * UpDownBase.cs: Ensure txtView is created before using it
4442
4443 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
4444
4445         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
4446           casting to IntPtr to avoid 64bit overflow errors
4447
4448 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
4449
4450         * Control.cs:
4451           - AllowDrop: Don't force handle creation.
4452           - CreateHandle: Added call to tell driver if we're allowed to drop
4453
4454 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
4455
4456         * FileDialog.cs: Remember the last directory not only for the
4457           current instance but also for new FileDialog instances.
4458
4459 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
4460         
4461         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
4462           broke sending async messages
4463
4464 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
4465
4466         * XplatUIX11.cs:
4467           - ScrollWindow: Fixed method. We finally generate expose events again
4468             for scrolled areas. This was causing 'garbage' when scrolling
4469             textbox and other controls that used ScrollWindow
4470           - Switched from using the regular queue for paint events to the MS 
4471             model of 'generating' paint events when the queue is empty.
4472             We use the new XQueueEvent.Paint subclass to store which windows
4473             need painting.
4474           - AddExpose now takes the x/y/width/height of the exposed area
4475             and inserts the window into the paint queue if not already there
4476           - InvalidateWholeWindow: Switched to use new AddExpose method
4477           - UpdateMessageQueue: Added which queue to monitor for paint events
4478           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
4479             the unlikely case nothing above handles it. We reset the expose
4480             pending states to get them off the queue.
4481           - GetMessage: Now pulls a paint event if no other events are in the
4482             queue
4483           - Invalidate: Switched to new AddExpose method
4484           - PeekMessage: Updated to understand pending paint events
4485           - UpdateWindow: Fixed logic bug. We were only updating if the window
4486             didn't need updating. Also switched to sending WM_PAINT directly,
4487             like MS does.
4488         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
4489           and random access Remove(). The random access is needed to handle
4490           UpdateWindow() where a WM_PAINT is sent directly without accessing
4491           the queue.
4492         * ScrollBar.cs: Added Update() calls to cause immediate updates to
4493           allow for better feedback when scrolling. Scrollbars are small and
4494           the immediate update should make it 'feel' more responsive without
4495           slowing things down. ScrollBar still needs it's invaliate logic
4496           updated to not always invalidate the whole bar on certain changes.
4497
4498 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4499
4500         * Control.cs:
4501         (BackColor): if the control does not support a transparent background,
4502         return the default backcolor when the parent backcolor is transparent.
4503
4504 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
4505
4506         * Application.cs: Updated to new StartLoop/GetMessage API
4507         * RichTextBox.cs: Provide some output on RTF parsing errors
4508         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
4509           new queue_id argument to GetMessage and PeekMessage to allow faster
4510           handling of per-thread queues in drivers.
4511         * Hwnd.cs: Added Queue tracking and property
4512         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
4513         * XEventQueue.cs: Added thread trackingA
4514         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
4515         * XplatUIX11.cs:
4516           - Implemented new per-thread queue
4517           - GetMessage: Fixed return/break behaviour on several cases. We were
4518             returning stale messages in some cases, instead of just processing
4519             the next message
4520
4521 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
4522
4523         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
4524
4525 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
4526
4527         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
4528           fixed off-by-one comparisons between Width/Height and Right/Bottom.
4529
4530 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
4531
4532         * PropertyGridView.cs: Fix drop down width.
4533
4534 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
4535
4536         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
4537           a mess in DrawToolBar, so I removed one of them.
4538
4539 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
4540
4541         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
4542           needed (clip). Otherwise we get artifacts.
4543
4544 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
4545
4546         * FixedSizeTextBox.cs: Added constructor to allow specifying which
4547           dimension is fixed
4548         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
4549           and switched FixedSizeTextBox to only be fixed vertical (#78116)
4550         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
4551           if it matches the scale base font (avoids unneeded scaling)
4552
4553 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
4554
4555         * X11DesktopColors.cs: One gtk_init_check should be enough
4556
4557 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
4558
4559         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
4560           match MS behaviour
4561
4562 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
4563
4564         * TextBoxBase.cs: 
4565           - Generate OnTextChanged for Backspace even if we're only deleting
4566             the current selection
4567           - When setting the Text property, only select all text if the
4568             control does not have focus when it is being set. Otherwise
4569             just place the cursor at the beginning of the control
4570
4571 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
4572
4573         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
4574           Added a little helper to draw PropertyGrid ToolBar with a different
4575           border and a different BackColor.
4576         * PropertyGrid.cs: Some background parts didn't get painted with the
4577           correct background color. Added a class that helps us to draw the
4578           correct border for PropertyGridView and a class that helps us to
4579           draw ToolBars with a different backcolor
4580         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
4581
4582 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
4583
4584         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
4585         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
4586
4587 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
4588
4589         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
4590           into the palette entries. Also, since we're working on a copy
4591           we needed to copy the palette back onto the bitmap.
4592         * Cursor.cs: Same fix as XplatUIWin32.cs.
4593
4594 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
4595
4596         * ImageListStreamer.cs: Need to read the var (or we're off)
4597
4598 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
4599
4600         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
4601           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
4602           TextBoxBase.cs: Unused var fixes
4603         * AxHost.cs: Small 2.0 fix
4604         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
4605           as it seems that is what at least Metacity expects. This will make
4606           icons show up on 64bit platforms. We still have some 64bit size
4607           issues, though, since the startup app window size still won't match.
4608
4609 2006-04-25  Mike Kestner  <mkestner@novell.com>
4610
4611         * *.cs: cleanup newly reported exception var unused warnings.
4612
4613 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
4614
4615         * ThemeWin32Classic.cs: Button image alignment now matches exactly
4616           ms
4617
4618 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
4619
4620         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
4621           image. The image position is always the same, no matter if the
4622           button is pressed or not.
4623
4624 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
4625
4626         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
4627           selection and set the correct filename for SaveFileDialog.
4628           Patch by Emery Conrad.
4629
4630 2006-04-24  Mike Kestner  <mkestner@novell.com>
4631
4632         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
4633         check for item.X outside the ClientRect instead of item.Y. Fixes
4634         #78151.
4635
4636 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4637
4638         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
4639         trust that value blindly and do some sanity check. Fixes bug #77814.
4640
4641 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4642
4643         * ImageListStreamer.cs: save the mask as a 1bpp image.
4644
4645 2006-04-21  Mike Kestner  <mkestner@novell.com>
4646
4647         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
4648         pass Checked and Indeterminate to the Theme Engine. Improve
4649         encapsulation with ListBox.
4650         * ListBox.cs: Keep a StringFormat instead of calculating it every item
4651         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
4652         nested types.  Move all CheckState functionality to CheckedListBox.
4653         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
4654         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
4655         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
4656         single base list. Fix scrollbar sizing and placement to mirror MS.
4657         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
4658         used.
4659         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
4660         for CheckedListBox by using new DrawItemState info.  Center the
4661         checkboxes on the items. Use new StringFormat property.
4662
4663 2006-04-18  Jackson Harper  <jackson@ximian.com>
4664
4665         * Form.cs: MdiChildren don't do default locations the same way as
4666         regular forms.  This prevents a crash when trying to position the
4667         mdi windows.
4668
4669 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
4670
4671         * PropertyGridTextBox.cs: Formatting, copyright
4672         * PropertiesTab.cs: Formatting
4673         * PropertyGrid.cs: Formatting
4674         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
4675           click toggling of values
4676           
4677 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
4678
4679         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
4680         * Control.cs (.ctor): verify_thread_handle is static, don't reset
4681           every time a control is created
4682         * Application.cs: Removed obsolete EnableRTLMirroring method
4683
4684 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
4685
4686         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
4687         SelectedIndex to -1. Fixes bug #78121.
4688
4689 2006-04-17  Jackson Harper  <jackson@ximian.com>
4690
4691         * Binding.cs: Handle null values for Current and BindingContext.
4692         This occurs when binding is a little delayed.
4693         * CurrencyManager.cs: return null for Current when there are no
4694         items in the list.
4695         - Hookup to the listchanged event on the DataView and update
4696         bindings when the list is changed.  This fixes late binding of
4697         controls.
4698
4699 2006-04-17  Jackson Harper  <jackson@ximian.com>
4700
4701         * X11Dnd.cs:
4702         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
4703         Ringenbach.
4704
4705 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
4706
4707         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
4708           place
4709         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
4710           with the correct ButtonState
4711
4712 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
4713
4714         * XplatUIX11.cs: Improved distinguishing between window types to
4715           tell the WM a type closer to what the app wants (Fixes #78107)
4716
4717 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
4718
4719         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
4720           GrabHandle
4721
4722 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
4723
4724         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
4725           drawing code to reflect the size grip changes
4726
4727 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4728
4729         * ImageListStreamer.cs: fix handling of the mask that follows the main
4730         bitmap when deserializing and serialize it properly. The generated mask
4731         should better be a 1bpp image, but I'll do that later.
4732
4733 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
4734
4735         * FileDialog.cs: Show something in the DirComboBox on *nix if the
4736           path doesn't fit into some of our Current.Places
4737
4738 2006-04-13  Jackson Harper  <jackson@ximian.com>
4739
4740         * ComboBox.cs: Use borders instead of drawing our own decorations,
4741         try to obey correct rules for heights.
4742         * Theme.cs:
4743         * ThemeNice.cs:
4744         * ThemeClearLooks.cs:
4745         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
4746         this is now handled by borders.
4747         - Remove unused DrawListBoxDecorationSize method.
4748         
4749 2006-04-13  Mike Kestner  <mkestner@novell.com>
4750
4751         * MenuAPI.cs: null guarding for the disbled click check fixes crash
4752         reported by Alex.
4753
4754 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
4755
4756         * ThemeWin32Classic.cs: 
4757           - Fixed CPDrawStringDisabled
4758           - Corrected drawing of disabled menu items
4759           - Fixed drawing of disabled radio buttons (bug #78095)
4760           - Draw check in a disabled CheckBox with color ControlDark 
4761
4762 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
4763
4764         * Form.cs: Use the provided width when calculating the menu size;
4765           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
4766           and ClientSize.Width won't be updated yet
4767         * Application.cs: Use Visible instead of Show() to make form visible,
4768           this way we create the handle later and menusize is considered
4769
4770 2006-04-12  Mike Kestner  <mkestner@novell.com>
4771
4772         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
4773         reporting.
4774
4775 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
4776
4777         * TextBox.cs: Implemented context menu
4778
4779 2006-04-12  Mike Kestner  <mkestner@novell.com>
4780
4781         * ListView.cs: implement box selection. fixes #77838.
4782         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
4783
4784 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
4785
4786         * XplatUIX11.cs: Added setting of window type when transient window
4787           is created (metacity would move it otherwise)
4788         * X11Structs.cs: Added WINDOW_TYPE atoms
4789         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
4790           background (the control is Opaque but still wants transparent
4791           backgrounds)
4792
4793 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
4794
4795         * Control.cs: Added OnPaintBackgroundInternal to allow controls
4796           that set Opaque but don't mean it (like all ButtonBase-derived
4797           controls) to still draw their background
4798         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
4799           the background
4800
4801 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
4802
4803         * Control.cs (PaintControlBackground): Set the graphics object
4804           on our PaintEvent to null to prevent it from being disposed
4805           when the PaintEvent gets disposed
4806
4807 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
4808
4809         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
4810         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
4811
4812 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
4813
4814         * Control.cs: 
4815           - Added transparency check to BackColor property. Transparent
4816             backgrounds are only allowed if the control styles permit it
4817           - Added recursive painting of parent control background and
4818             foreground if a control with a transparent backcolor is drawn
4819             (Thanks to Tim Ringenback for providing his 'hack' as a base
4820              for this patch) Fixes #77985 and #78026.
4821           - Added Opaque style check before calling OnPaintBackground, no
4822             need to draw the background if the control is opaque
4823           - Removed ControlAccessibleObject owner variable (inherited from
4824             base, no need to define again)
4825           - Added some documentation links explaining the drawing events
4826             and styles
4827
4828 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
4829
4830         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
4831           that the affected control is the located at the left border of our
4832           parent (Fixes #77936)
4833
4834 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
4835
4836         * TextBoxBase.cs: When rendering disabled or readonly controls,
4837           draw the background with 'Control' instead of 'Window' color as
4838           long as the user hasn't specifically set a color
4839
4840 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
4841
4842         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
4843           since that won't be updated if the user types text (only if it's
4844           programatically set)
4845
4846 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
4847
4848         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
4849           layout changes do to app-triggered resizes will have the proper
4850           display rectangle for layout
4851
4852 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
4853
4854         * ThemeWin32Classic.cs:
4855           - Make use of the SystemBrushes and SystemPens wherever possible
4856           - Corrected some highlight colors
4857           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
4858             drawing
4859         * Theme.cs: Added Empty field to CPColor struct
4860
4861 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
4862
4863         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
4864           is displayed when calculating the display rectangle. Thanks to Mike
4865           for teaching me the err of my ways.
4866
4867 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
4868
4869         * ScrollableControl.cs:
4870           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
4871             (instead of 0,0) and we now return the real width/height instead of
4872             just the clientrectangle, adjusted for padding. The rectangle is
4873             now cached and created by the new CalculateDisplayRectangle method.
4874           - Created new CalculateDisplayRectange method, which basically does
4875             what get_DisplayRectangle() did originally, but now using the 
4876             right edge instead of DisplayRectangle to determine the size of
4877             our scrollbars
4878           - get_Canvas(): Fixed it to properly calculate canvas for 
4879             right/bottom controls which seem to be placed to the right/bottom
4880             of any controls that have a fixed location
4881           - Removed TODO that's taken care of
4882           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
4883             and SetDisplayRectLocation according to new MSDN2 docs
4884           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
4885             event when that is called, this is added for compatibility
4886           - ScrollControlIntoView(): Implemented.
4887           - Switched scrollbars to be implicit, they shouldn't be selectable
4888         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
4889           call it when the active control is set/changed
4890         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
4891         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
4892           implicit_control variable (used for native Win32 message generation)
4893         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
4894           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
4895         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
4896         * XplatUIStructs.cs: Added ScrollBarCommands enum
4897
4898 2006-04-10  Jackson Harper  <jackson@ximian.com>
4899
4900         * ButtonBase.cs:
4901         * CheckedListBox.cs:
4902         * ComboBox.cs:
4903         * DataGrid.cs:
4904         * DataGridView.cs:
4905         * Form.cs:
4906         * GroupBox.cs:
4907         * ListBox.cs:
4908         * PrintPreviewControl.cs:
4909         * ProgressBar.cs:
4910         * PropertyGrid.cs:
4911         * Splitter.cs:
4912         * StatusBar.cs:
4913         * TrackBar.cs:
4914         * UpDownBase.cs: Fixup base event overrides.
4915         
4916 2006-04-06  Mike Kestner  <mkestner@novell.com>
4917
4918         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
4919         all user-initiated value changes to min <= value <= max-thumbsz+1.
4920         (set_Value): check for vert/horiz when calculating new thumb position.
4921         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
4922         like MS does.
4923         (OnMouseMoveSB): refactor the thumb dragging code and refine
4924         invalidation logic to reduce flicker.
4925         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
4926         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
4927         (UpdateThumbPosition): small code readability cleanup
4928
4929 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
4930
4931         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
4932           different
4933
4934 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
4935
4936         * ThemeNice.cs: Use a better graphics effect when a button is pressed
4937
4938 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
4939
4940         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
4941         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
4942           This dramatically reduces the number of Pen.Dispose calls. 
4943           Where possible call ResPool methods only once instead of calling it
4944           over and over again (for example for the same color).
4945
4946 2006-04-06  Mike Kestner  <mkestner@novell.com>
4947
4948         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
4949         Also remove an unused private field on the collection. Fixes #77972.
4950
4951 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
4952
4953         * ThemeNice.cs: Added ToolBar drawing code
4954
4955 2006-04-06  Mike Kestner  <mkestner@novell.com>
4956
4957         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
4958         I'm assuming that means we need to look up the toplevel for the
4959         provided control. Fixes the crash trace in #77911 but exposes another
4960         crash in some strange reflection usage in NDocGui.
4961
4962 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
4963
4964         * ThemeNice.cs: Gave it a little silver touch and added Images
4965           method
4966         * FontDialog.cs: FontDialog is not resizable
4967         * FileDialg.cs: Added SizeGripStyle.Show
4968
4969 2006-04-05  Jackson Harper  <jackson@ximian.com>
4970
4971         * KeyboardLayouts.cs: Remove warning.
4972
4973 2006-04-05  Jackson Harper  <jackson@ximian.com>
4974
4975         * Control.cs: Enable OnPaintInternal so we can use it for drawing
4976         all of our controls instead of Paint +=.
4977         * ListBox.cs:
4978         * ListView.cs:
4979         * MenuAPI.cs:
4980         * MessageBox.cs:
4981         * NotifyIcon.cs:
4982         * ProgressBar.cs:
4983         * ScrollBar.cs:
4984         * Splitter.cs:
4985         * StatusBar.cs:
4986         * TabControl.cs:
4987         * TextBoxBase.cs:
4988         * ToolBar.cs:
4989         * TrackBar.cs:
4990         * UpDownBase.cs:
4991         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
4992         use OnPaintInternal. Remove Width/Height and Visible checks in
4993         paint handler, this is done at a higher level now.
4994         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
4995         * PaintEventArgs.cs: Add a handled flag so controls that don't
4996         want anymore painting after OnPaintInternal can make sure OnPaint
4997         isn't called.
4998
4999 2006-04-05  Mike Kestner  <mkestner@novell.com>
5000
5001         * Form.cs: fix the menu WndProc hacks to respect the native enabled
5002         state of the form, so that we don't process events when Modal dialogs
5003         are up. Fixes #77922.
5004
5005 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
5006
5007         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
5008           checking is done.
5009
5010 2006-04-05  Mike Kestner  <mkestner@novell.com>
5011
5012         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
5013
5014 2006-04-05  Mike Kestner  <mkestner@novell.com>
5015
5016         * ListView.cs (HeaderMouseMove): null guarding for the over column
5017         when setting up the drag_to_index.  Fixes #78015.
5018
5019 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
5020
5021         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
5022           in the taskbar. Transient windows seem to accomplish that.
5023
5024 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
5025
5026         * Form.cs:
5027           - Re-enabled CreateParams.X/Y code for FormStartPosition
5028           - Added code for manual placement when creating the Control
5029           - Incomplete patch to treat MDI forms differently when
5030             setting the ClientSizeCore. (Still need to figure out handling
5031             x/y coords there)
5032         * XplatUIX11.cs:
5033           - When we're explicitly setting the X/Y position of a non-Child
5034             window, let the WM know. Metacity really wants this.
5035
5036 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
5037
5038         * ThemeNice.cs: Added CPDrawButton
5039
5040 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
5041
5042         * ThemeNice.cs: Changed the color for focused buttons and activated
5043           the arrows for small scroll buttons.
5044
5045 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
5046
5047         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
5048           anymore. Changed some method modifiers to protected (virtual)
5049         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
5050           changes
5051         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
5052           Updated drawing of menus, buttons and progressbars; added
5053           CPDrawBorder3D 
5054
5055 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5056
5057         * ImageListStreamer.cs: implemented serialization/deserialization
5058         of the images.
5059
5060 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
5061
5062         * ThemeWin32Classic.cs:
5063           - Removed all the DrawFrameControl stuff; CPDrawButton,
5064             CPDrawCheckBox and CPDrawRadioButton are now handled directly
5065             inside the methods
5066           - Updated and corrected the drawing code of CPDrawButton,
5067             CPDrawCheckBox and CPDrawRadioButton to better match ms
5068           - Updated theme checkbox and radiobutton code to use the CP*
5069             methods
5070
5071 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
5072
5073         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
5074           bug is fixed
5075
5076 2006-03-31  Jackson Harper  <jackson@ximian.com>
5077
5078         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
5079         sometimes.
5080         * UpDownBase.cs: Don't CreateGraphics manually, use a
5081         Refresh. Ideally we would invalidate the correct areas here.
5082
5083 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
5084
5085         * XplatUIX11.cs: 
5086           - We now track the mapping state of windows. If a window (or 
5087             one of it's parents) is not mapped we no longer permit
5088             WM_PAINT messages to be generated since we'd otherwise get 
5089             lots of BadMatch X errors. Jackson did all the work figuring
5090             out the problem.
5091           - Destroying the caret if the window it's contained in is 
5092             destroyed. Can't use regular DestroyCaret method since it
5093             might fall into a drawing function (trying to remove the
5094             caret) and with that generate new BadMatch errors. Again,
5095             Jackson tracked this down.
5096           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
5097             make sure we send the messages to all windows. (The old code
5098             would send the WM_DESTROY to the window, and then all child
5099             windows would be 'gone' because the WM_DESTROY handle lookup
5100             would no longer find the destroyed window)
5101         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
5102         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
5103
5104 2006-03-31  Jackson Harper  <jackson@ximian.com>
5105
5106         * ScrollableControl.cs: Dont recalc if we are not visible.
5107
5108 2006-03-31  Mike Kestner  <mkestner@novell.com>
5109
5110         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
5111         the visibility branch.
5112
5113 2006-03-31  Jackson Harper  <jackson@ximian.com>
5114
5115         * ScrollBar.cs: Cap values when incrementing/decrementing.
5116
5117 2006-03-31  Mike Kestner  <mkestner@novell.com>
5118
5119         * MenuAPI.cs: setup menu.tracker for popup/context menus.
5120         * ToolTip.cs: guard against timer expirations with no active control.
5121         Not sure why it happened.
5122
5123 2006-03-31  Mike Kestner  <mkestner@novell.com>
5124
5125         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
5126         text.
5127         * ToolTip.cs: Position the tooltip based on where the cursor is at
5128         popup time, not at MouseEnter time.  Add a Down state so that we don't
5129         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
5130         positioning offset. Lookup DisplaySize at positioning time, since it
5131         can theoretically change during invocation.
5132         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
5133         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
5134
5135 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
5136
5137         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
5138           Fixes behaviour when the Text property of the box is String.Empty
5139
5140 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
5141
5142         * XplatUIX11.cs: Only send mouseleave for our client windows, not
5143           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
5144           a window)
5145
5146 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
5147
5148         * FileDialog.cs: Visual enhancement for the popup buttons in 
5149           PopupButtonPanel
5150
5151 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
5152
5153         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
5154           code
5155
5156 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
5157
5158         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
5159           highlighted menu items to match ms
5160
5161 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
5162
5163         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
5164
5165 2006-03-30  Mike Kestner  <mkestner@novell.com>
5166
5167         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
5168         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
5169         go active to account for HotLight to Selected transition.
5170         * MenuItem.cs: add internal Selected prop. Fill out the Status
5171         property by calculating it from item info. Add HotLight,
5172         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
5173
5174 2006-03-30  Mike Kestner  <mkestner@novell.com>
5175
5176         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
5177
5178 2006-03-29  Jackson Harper  <jackson@ximian.com>
5179
5180         * Form.cs: Implement TODO.
5181
5182 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
5183
5184         * PrintPreviewDialog.cs: Implemented missing methods and events; still
5185           missing proper dialog setup in the constructor
5186
5187 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
5188
5189         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
5190         * Control.cs:
5191           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
5192           - Fixed ResetBindings and removed TODO
5193           - Added check for cross-thread calls to get_Handle()
5194           - Added Marshaller attribute for set_Font to satisfy class status
5195         * FontDialog.cs: Removed TODOs that seemed implemented
5196         * UpDownBase.cs: Removed unneeded TODO and Fixme
5197         * MessageBox.cs: Implemented support for Default button and removed TODO
5198         * FileDialog.cs: Removed obsolete TODO
5199         * DomainUpDown.cs: Removed obsolete TODO
5200         * ButtonBase.cs: Removed obsolete TODO
5201         * XplatUIWin32.cs: Removed obsolete TODO
5202         * Form.cs:
5203           - Removed obsolete TODO
5204           - Calling CheckAcceptButton when the acceptbutton is changed to allow
5205             internal status updates
5206           - Making sure the active control is selected when the control is created
5207         * CurrencyManager.cs: Removed obsolete TODO
5208
5209 2006-03-29  Mike Kestner  <mkestner@novell.com>
5210
5211         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
5212         of PrintPreviewDialog and RichTextBox.
5213
5214 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
5215
5216         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
5217           DarkDark, Light and LightLight colors for a specific color
5218         * ThemeWin32Classic.cs:
5219           - Use Button drawing code to draw RadioButtons and CheckBoxes with
5220             Appearance = Button 
5221           - Make use of the new ResPool helper CPColor
5222           - Draw ProgressBar and StatusBar with correct 3D borders
5223
5224 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
5225
5226         * ColorDialog.cs: Return selected color. Fixes bug #77940.
5227
5228 2006-03-28  Mike Kestner  <mkestner@novell.com>
5229
5230         * ListView.cs: fix Icon layout to plan for scrollbar widths when
5231         calculating col/row counts.
5232
5233 2006-03-28  Mike Kestner  <mkestner@novell.com>
5234
5235         * ColumnHeader.cs:
5236         * ListView.cs:
5237         * ListViewItem.cs:
5238         * Menu.cs: 
5239         switch to explicit interface method implementation for some methods
5240         corcompare identifies as inconsistent with MS.
5241
5242 2006-03-28  Mike Kestner  <mkestner@novell.com>
5243
5244         * MainMenu.cs: 
5245         * Menu.cs:
5246         add a few missing methods from the class status output.
5247
5248 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
5249
5250         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
5251           correct.
5252
5253 2006-03-28  Mike Kestner  <mkestner@novell.com>
5254
5255         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
5256
5257 2006-03-27  Mike Kestner  <mkestner@novell.com>
5258
5259         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
5260         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
5261
5262 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
5263
5264         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
5265
5266 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
5267
5268         * ThemeWin32Classic.cs:
5269           - GroupBox: Inserted a little gap between the text and the lines
5270             on the right side
5271           - Made the code in CPDrawBorder3D more readable
5272           - Corrected the drawing location of the up and down arrows in 
5273             CPDrawScrollButton
5274
5275 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
5276
5277         * ControlPaint.cs: Corrected line widths in DrawBorder for
5278           ButtonBorderStyle Inset and Outset
5279
5280 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
5281
5282         * ThemeWin32Classic.cs:
5283           - Rewrote the totally broken CPDrawBorder3D method. That was
5284             one of the main problems for the terrific ThemeWin32Classic
5285             look
5286           - Updated and corrected Button drawing
5287           - Correct the dimensions of the SizeGrip to match ms ones
5288           - Removed a small drawing glitch in DrawComboBoxEditDecorations
5289         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
5290           Border3DStyle.Sunken to match ms.
5291
5292 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
5293
5294         * ThemeWin32Classic.cs: First small part of the "de-uglify
5295           ThemeWin32Classic" effort, SizeGrip
5296
5297 2006-03-24  Jackson Harper  <jackson@ximian.com>
5298
5299         * XplatUIX11.cs: Give a max idle time of one second, this matches
5300         MS and forces an Idle event every second when there are no other
5301         events in the queue.
5302
5303 2006-03-24  Mike Kestner  <mkestner@novell.com>
5304
5305         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
5306         * ListView.Item.cs: fix layout issues with null image lists and images
5307         smaller than checkbox size.
5308         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
5309         mode like MS does.  It's weird, but consistent.  ;-)
5310         Fixes #77890.
5311
5312 2006-03-24  Mike Kestner  <mkestner@novell.com>
5313
5314         * ListView.cs: Scroll wheel support for the item control.  Fixes
5315         #77839.
5316
5317 2006-03-23  Jackson Harper  <jackson@ximian.com>
5318
5319         * ScrollableControl.cs: Special case negative sized areas, not
5320         zero.
5321         * MonthCalendar.cs: Save the rect of the clicked date so we can
5322         use it for invalidation.
5323         - Try to cut down on the number of invalidates
5324         - Invalidate the rect the mouse is over and was over when moving
5325         the mouse, so we get the focus box following the cursor.
5326
5327 2006-03-23  Mike Kestner  <mkestner@novell.com>
5328
5329         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
5330         focus rectangle drawing. Fixes #77835.
5331
5332 2006-03-23  Mike Kestner  <mkestner@novell.com>
5333
5334         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
5335         the if and else if and reverting back to the original == check on the
5336         None conditional.
5337
5338 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
5339
5340         * FontDialog.cs: Update the example panel if the selected index of
5341           the fontListBox changes.
5342
5343 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
5344
5345         * FileDialog.cs: Make FileDialog remember which directory it was in
5346           last in the same execution.
5347
5348 2006-03-22  Mike Kestner  <mkestner@novell.com>
5349
5350         * FileDialog.cs: make the DropDownMenu on the toolbar display
5351         RadioChecks since they are mutually exclusive and that's what MS does.
5352
5353 2006-03-22  Mike Kestner  <mkestner@novell.com>
5354
5355         * Theme.cs: add Color param to CPDrawMenuGlyph.
5356         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
5357         checks and radio marks and arrows are visible on highlighted items.
5358         * ControlPaint.cs: update to use new Theme signature.
5359
5360 2006-03-22  Mike Kestner  <mkestner@novell.com>
5361
5362         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
5363         is active. Fixes #77870.
5364
5365 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
5366
5367         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
5368           to be focused/selected after startup
5369
5370 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
5371
5372         * ColorDialog.cs: 
5373           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
5374             CustomColors and ShowHelp properties
5375           - Some internal rewrites to get better results when using the
5376             ColorMatrix
5377
5378 2006-03-22  Mike Kestner  <mkestner@novell.com>
5379
5380         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
5381         HoverSelection.  Fixes #77836.
5382
5383 2006-03-22  Mike Kestner  <mkestner@novell.com>
5384
5385         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
5386         ToggleButtons.  (De)Sensitize the Back button around a stack count of
5387         1, not 0.  Update ButtonSize based on a pixel count of the win32
5388         control.  Adjust the toolbar size/location for new button size.
5389
5390 2006-03-22  Jackson Harper  <jackson@ximian.com>
5391
5392         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
5393         true.
5394         * ScrollBar.cs: When doing increments and decrements we need to
5395         set the Value property so that ValueChanged gets raised. A
5396         possible optimization here would be to make an internal SetValue
5397         that doesn't invalidate immediately.
5398         * ToolTip.cs: Tooltips get added to their container (when
5399         supplied) so they get disposed when the container is disposed.
5400         - Don't create tooltips for String.Empty. This prevents all these
5401         little 2-3 pixel windows from showing up when running nunit-gui
5402         and driving me mad.
5403         * Form.cs: Don't set topmost when setting the owner if the handles
5404         haven't been created yet.  The topmost set will happen when the
5405         handles are created.
5406
5407 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
5408
5409         * XplatUIX11.cs:
5410           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
5411           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
5412             visible (to allow them to recalculate their sizes)
5413
5414 2006-03-21  Mike Kestner  <mkestner@novell.com>
5415
5416         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
5417         methods. Removed a ton of redundant code.  Still not really happy with
5418         the border rendering, but I think that's mainly because of the
5419         ControlDarkDark being black instead of a dark grey. Depending on how 
5420         close we want to be, we might want to revisit those color choices.
5421         Among the new features added during the refactor were DropDownArrow
5422         pressed rendering, Disabled image rendering.  Proper flat appearance
5423         boundary rendering.  Removed the Divider and Wrapping dividers since I
5424         can't figure out any combination of themes and conditions to make the
5425         MS control draw a horizontal line on a toolbar despite what the
5426         Divider property docs indicate.
5427         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
5428         conditions and incorrect layout.  Updated to coding standard.
5429         * ToolBarButton.cs: refactored layout and positioning code from
5430         ToolBar to here.  Invalidate wherever possible instead of forcing
5431         redraws of the whole toolbar. 
5432         (Known remaining issues: explicit ButtonSize smaller than provided
5433         images.)
5434
5435 2006-03-21  Mike Kestner  <mkestner@novell.com>
5436
5437         * ContextMenu.cs (Show): use the position parameter instead of just
5438         showing at the MousePosition.
5439
5440 2006-03-21  Jackson Harper  <jackson@ximian.com>
5441
5442         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
5443         control handle this.
5444         * TreeNodeCollection.cs: If we are clearing the root node we need
5445         to reset top_node so calcs can still happen.
5446         * ThemeWin32Classic.cs: This is a Flags so we need to check
5447         properly.
5448         
5449 2006-03-21  Jackson Harper  <jackson@ximian.com>
5450
5451         * DataGrid.cs: Create columns when the binding context has been
5452         changed.
5453         * X11Structs.cs: Keysyms are uints.
5454         - Add size to fix build.
5455
5456 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
5457
5458         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
5459           XplatUIOSX.cs: 
5460           - Added ResetMouseHover method to allow controls to retrigger
5461             hovering if they need it more than once
5462           - Implemented MouseHoverTime and MouseHoverSize properties
5463         * Timer.cs: Start() must reset the interval
5464         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
5465           properties
5466
5467 2006-03-21  Jackson Harper  <jackson@ximian.com>
5468
5469         * X11Keyboard.cs: improved layout detection. Move the nonchar
5470         tables into this file.
5471         * KeyboardLayouts.cs: Move the tables into resource files.
5472
5473 2006-03-21  Mike Kestner  <mkestner@novell.com>
5474
5475         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
5476
5477 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
5478
5479         * Mime.cs: Various speed optimizations. Looking up mime types
5480           is now 2 times faster than before
5481
5482 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
5483
5484         * CreateParams.cs: Added internal menu field
5485         * Control.cs: 
5486           - Switched call order for UpdateBounds; now we always call
5487             the one that also takes ClientSize, and we're calculating the 
5488             client size via driver method in the others. The previous
5489             method of tracking client size by difference wasn't working
5490             for forms where even the starting client size wouldn't match
5491             the overall form size (due to borders) (Part of fix for #77729)
5492           - CreateParams(): Do not use parent.Handle unless the handle is
5493             already created. Causes havoc with Nexxia and throws off our
5494             creation of controls
5495         * XplatUIX11.cs:
5496           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
5497           - Switched handling of ConfigureNotify over to new PerformNCCalc 
5498             method (consolidates code)
5499           - Changed RequestNCRecalc to use new PerformNCCalc method
5500           - Added calls to RequestNCRecalc when menus and borders are changed
5501             to allow app to set NC size. (Part of fix for #77729) This matches
5502             when MS send a WM_NCRECALC on Win32 windows.
5503           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
5504             (Part of fix for #77729). This matches what MS does, they also
5505             send that message when the form is made visible.
5506           - XException.GetMessage: Improved usability of X errors by including
5507             a translation of the window into Hwnd and Control class
5508           - Improved debug info for window creation, reparenting and destruction
5509           - Created helper method WindowIsMapped() [Currently not used]
5510         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
5511         * Form.cs:
5512           - CreateParams: Now setting our menu on the new internal menu field
5513           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
5514             avoid calculating the same property twice
5515         * Hwnd.cs:
5516           - Improved usability of ToString() for debugging purposes
5517           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
5518             determine the height of the menu, instead of just the font. This
5519             required to also create a graphics context and to keep a bmp 
5520             around (for performance reasons)
5521
5522 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
5523
5524         * MenuAPI.cs: Added OnMouseUp method
5525         * Form.cs:
5526           - Now remembering the requested client size, avoids size errors
5527           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
5528             instead of base if the menu is active. This is required due to
5529             control now capturing and releasing on down/up and it would
5530             prematurely release our menu capture
5531
5532 2006-03-17  Jackson Harper  <jackson@ximian.com>
5533
5534         * KeyboardLayouts.cs: Add the czech layouts.
5535
5536 2006-03-16  Jackson Harper  <jackson@ximian.com>
5537
5538         * Control.cs: Use the viewport space when sizing not the controls
5539         client size, so things like ScrollableControl that effect the
5540         viewport size (when scrollbars are added) are computed correctly.
5541         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
5542         of ManagerEntrys.
5543         - Handle creating BindingManagers for null data sources.
5544         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
5545         source, otherwise when rows are added they are added to the 'fake'
5546         datasource and we will crash when trying to set the position in
5547         those rows.
5548         - Use Implicit scrollbars on the datagrid so they arent
5549         selectable.
5550         
5551 2006-03-16  Jackson Harper  <jackson@ximian.com>
5552
5553         * Binding.cs:
5554         * InternalWindowManager.cs:
5555         * MdiWindowManager.cs:
5556         * X11Keyboard.cs: I really want Mike to love me again (fix
5557         compiler warnings).
5558
5559 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
5560
5561         * DataGrid.cs:
5562           - OnMouseDown: Switch to editing mode when clicking on the cell
5563                          even if we're clicking on the cell that's currently 
5564                          selected
5565           - ProcessGridKey: Left/Right now wrap like MS.Net does
5566           - ProcessGridKey: Tab now knows to add a new row when tab is
5567                             pressed in the cell of the last column of the 
5568                             last row
5569           - ProcessGridKey: Enter now adds another row  if pressed in the last
5570                             row and selectes the new row, same column cell
5571           - ProcessGridKey: Home/End navigate columns, not rows, like 
5572                             originally implemented
5573           - Broke ProcessKeyPreview code out into an extra Internal method
5574             so it can be called from the edit code
5575         * DataGridTextBox.cs (ProcessKeyMessage):
5576           - Switched to accept Tab keypresses
5577           - Added F2 handling to allow jumping to the end of the edited cell
5578           - Added logic to allow moving caret left/right inside edited cell
5579             and making the edited cell jump when the caret hits cell borders
5580           - Tab and Enter are now passed to the datagrid after being handled
5581         * TextBoxBase.cs:
5582           - Removed capture code now that Control handles it
5583           - set_SelectionStart now ensures caret is visible
5584
5585 2006-03-16  Jackson Harper  <jackson@ximian.com>
5586
5587         * TrackBar.cs: Debackwards the increment/decrement for handling
5588         mouse clicks on the bar with vertical trackbars.
5589         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
5590         bottom to match MS.
5591
5592 2006-03-16  Mike Kestner  <mkestner@novell.com>
5593
5594         * ListView.cs: make shift/ctrl keyboard and mouse selection 
5595         consistent with the MS control. Fix a bug in
5596         SelectedListViewItemCollection.Clear that was pissing me off for the
5597         better part of a day because the collection was being altered
5598         underneath us as we walked the list.
5599
5600 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
5601
5602         * Control.cs: Not sure how we could miss this so long, but it seems
5603           that MS.Net has Capture set all the way from before calling 
5604           OnMouseDown through sending the mouse events until after
5605           OnMouseUp. This will fix DataGrid's selection being set to end
5606           at the location of the MouseUp.
5607
5608 2006-03-15  Jackson Harper  <jackson@ximian.com>
5609
5610         * BindingContext.cs: Check the binding after its added so that it
5611           can initialize the binding managers and hookup to events.
5612         * Binding.cs: Data members seem to sometimes include rows/cols in
5613           the format Row.Column we now take this into account.
5614           - Hookup to the position changed event so we can update the
5615           control when the position has changed in the data set.
5616         * CurrencyManager.cs: Take into account the row/col naming
5617           convention when creating dataset tables.
5618         * BindingContext.cs: Using a newer better way of storing
5619           datasource/datamember pairs.  Hopefully this better matches MS for
5620           looking up binding managers.
5621
5622
5623 2006-03-15  Jackson Harper  <jackson@ximian.com>
5624
5625         * BindingContext.cs: The currency manager needs the data member
5626         name, if the member is a data set we use the name to find the
5627         correct table.
5628         * CurrencyManager.cs: When creating the list prefer an IList over
5629         an IListSource.
5630         - Attempt to create a DataTable from a DataSet (TODO: might need
5631         some better error checking here, although MS doesn't seem to have much)
5632         - If we have a DataTable create a view and use it as our list.
5633
5634 2006-03-15  Mike Kestner  <mkestner@novell.com>
5635
5636         * ListView.cs: keep a matrix of the icon mode layout to facilitate
5637         keyboard navigation. Support Up/Down/Left/Right selection correctly
5638         for all 4 View modes.
5639         * ListViewItem.cs: add internal row/col fields for icon layouts.
5640
5641 2006-03-15  Jackson Harper  <jackson@ximian.com>
5642
5643         * TabControl.cs: Redraw the tabs when we resize so their newly
5644         calculated sizes are drawn on screen.
5645         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
5646         composite characters.
5647         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
5648         - filter events so that composite characters can be created
5649         patches by peter
5650         * X11Structs.cs: Add XIMProperties enum.
5651
5652 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
5653
5654         * Control.cs (BringToFront, SendToBack): Don't use window or handle
5655           unless it's created
5656
5657 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
5658
5659         * Control.cs (PerformLayout): We don't need to consider visiblity
5660           for anchoring, only for docking. This fixes 'whacky' alignment
5661           in listbox and other controls that use implicit scrollbars after
5662           the previous PerformLayout patch
5663         * ListBox.cs: Switched to use implicit scrollbars
5664           
5665 2006-03-14  Mike Kestner  <mkestner@novell.com>
5666
5667         * ToolBar.cs: 
5668         * VScrollBar.cs:
5669         - chain up the "new event" overrides to base and use
5670         OnEvent to raise them.  Part of fix for bug #76509.
5671
5672 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
5673
5674         * FileDialog.cs: Do not select an item in the parent directory
5675           on backspace
5676
5677 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
5678
5679         * Control.cs (PerformLayout): It would seem that we considered
5680           invisible windows for our layout. Not quite the right thing
5681           to do. Now we don't any longer, thereby fixing bug #76889.
5682
5683 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
5684
5685         * Control.cs (CanFocus): I goofed. A control can have focus 
5686           even though it's not selectable. Made it match MS docs.
5687
5688 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
5689
5690         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
5691           center by default (fixes #76895)
5692         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
5693           all uses of Border3DSides.All with the explicit ORd together
5694           Left|Right|Top|Bottom because I assume that nobody was aware 
5695           that All also implies a center fill. Most places I checked had
5696           a fill right above.
5697         * ProgressBarStyle.cs: Added
5698
5699 2006-03-13  Mike Kestner  <mkestner@novell.com>
5700
5701         * ListView.cs: fix breakage in drag shadow header positioning 
5702         from Peter's csc compilation fix.
5703
5704 2006-03-13  Mike Kestner  <mkestner@novell.com>
5705
5706         * ListView.cs: fix NRE produced by backspacing twice in a focused
5707         FileDialog.
5708
5709 2006-03-13  Mike Kestner  <mkestner@novell.com>
5710
5711         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
5712
5713 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
5714
5715         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
5716           be changed
5717         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
5718           the allowed size before making programmatic size changes
5719
5720 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
5721
5722         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
5723           set, metacity is broken and will still use the emty sizes in 
5724           the struct. (Fix for #77089)
5725
5726 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
5727
5728         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
5729           WindowExStyles and marked both enums as Flags
5730         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
5731           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
5732           to match WindowStyles split
5733         * XplatUIX11.cs:
5734           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
5735           - Updated to match WindowStyles split
5736         * XplatUIWin32.cs:
5737           - Fixed FosterParent creation, was using ExStyle on the Style field
5738             (This should help with Popup focus issues)
5739           - Updated to match WindowStyles split
5740
5741 2006-03-13  Jackson Harper  <jackson@ximian.com>
5742
5743         * MdiWindowManager.cs: Use the system menu height. Fixes some
5744         strange sizing issues.
5745
5746 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
5747
5748         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
5749         * TextBoxBase.cs:
5750           - Scroll to caret after inserting text (#77672)
5751           - Make scroll range one pixel higher, fixes off-by-one error (and
5752             makes underlines visible on the last line)
5753
5754 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
5755
5756         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
5757           the keyboard state from being stuck with keys in 'pressed' state when
5758           focus is switched away via keyboard
5759         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
5760           reset the keyboard if no X11 KeyUp events are expected to come
5761         * X11Structs.cs: Switched type of Visible to bool to match driver
5762
5763 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
5764
5765         * TextControl.cs:
5766           - Switched caret to be just 1 pixel wide, matches MS and looks less
5767             clunky
5768           - Moved caret display 1 pixel down from the top of the control
5769             to improve view
5770           - InsertCharAtCharet: Update the selection start if moving the caret
5771             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
5772           - No longer always creating the caret when the caret methods are
5773             called. Only the actual ShowCaret/HideCaret will do that now
5774           - Only setting caret visible if the owner control has focus
5775           - UpdateView: Added invalidation-shortcut logic for center and right 
5776             aligned text. Previously we'd update all according to the left
5777             logic which caused drawing errors. Also fixed height of invalidated
5778             areas, now properly invalidating the whole area (was off-by-one)
5779           - owner_HandleCreated: Always generate the document when the
5780             handle is created; this ensures that 
5781         * TextBoxBase.cs:
5782           - Fixed situation where caret would disappear under the right
5783             window border, also improved scrolling behaviour on left-
5784             aligned textboxes
5785           - Fixed right-aligned textboxes to have a border to the
5786             right instead of the caret being under the right border
5787         * XplatUIX11.cs:
5788           - Switched from 'nested' to simple visible/not visible tracking 
5789             for caret (part of fix for #77671)
5790           - No longer passing through translated FocusIn/FocusOut messages
5791             since we were notifying too often and the wrong windows. Instead
5792             we just notify our focussed window of receiving or loosing focus
5793         * XplatUIWin32.cs: Switched from 'nested' show/hide 
5794           counting for caret to simple visible yes/no behaviour (part of 
5795           fix for #77671)
5796
5797 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
5798
5799         * Mime.cs: Remove debug code...
5800
5801 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
5802
5803         * MimeGenerated.cs: Removed
5804         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
5805           and subclasses) from /usr/(local/)share/mime and
5806           $HOME/.local/share/mime.
5807
5808 2006-03-10  Jackson Harper  <jackson@ximian.com>
5809
5810         * MdiWindowManager.cs: Recalc the NC area when a window is
5811         maximized/restored so that the menu area is drawn on forms that
5812         don't have a menu.
5813
5814 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
5815
5816         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
5817           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
5818           us to force a WM_NCCALCRESIZE message being sent. This is needed
5819           for MDI maximizing.
5820
5821 2006-03-10  Jackson Harper  <jackson@ximian.com>
5822
5823         * Form.cs: We need to use the ActiveMenu when calculating menu
5824         height.
5825         - Fix nullref when the window manager hasn't been created yet.
5826         * Control.cs: Fix nullref when we try to bring a control to the
5827         front that has no parent.
5828         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
5829         height.
5830         - Add a dummy item to the maximized menu so it always has the
5831         correct height. Otherwise when there are no menus we don't get our
5832         icon and buttons.
5833         
5834
5835 2006-03-10  Jackson Harper  <jackson@ximian.com>
5836
5837         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
5838         stuff.
5839         * Form.cs: Make the window_state internal so the window managers
5840         can track it.
5841         - When an MDI child is maximized let its window manager create the
5842         main menu (so it can add its icon).
5843         - Notify the window managers of state changes
5844         - Let the window manager paint its buttons and handle button
5845         clicks on the menu when it is maximized.
5846         * InternalWindowManager.cs: Move the prev_bounds into the mdi
5847         window manager, since tool windows don't use it, only mdi windows.
5848         - Tell the main form that we don't want it to handle NCPAINT
5849         itself to avoid extra painting.
5850         - Handle clicks on a maximized windows menu.
5851         - Handle window state changes
5852         - Handle minimize/maximize clicks correctly by setting the window state.
5853         * MdiWindowManager.cs: Add an icon menu that (the menu you get
5854         when clicking on the forms icon).
5855         - New method to create a forms maximized menu. This is its normal
5856         menu + an icon.
5857         - Handle window state changes.
5858         - Handle sizing of maximized windows.  Maximized windows are just
5859         drawn bigger then the parent visible area. All controls are still
5860         there, they are just outside the visible area (this matches windows).
5861         * MdiClient.cs: No scrollbars when a child window is maximized.
5862         - Let the children windows figure out how big they should be when
5863         sizing maximized windows.
5864         - Implement a version of ArrangeIconicWindows somewhat similar to
5865         Windows version.  There are some little differences, but I don't
5866         think any app will rely on the layout of minimized mdi windows.
5867
5868 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
5869
5870         * Padding.cs: Several fixes to allow compiling with csc 2.0
5871
5872 2006-03-09  Jackson Harper  <jackson@ximian.com>
5873
5874         * Menu.cs:
5875         * MenuItem.cs: Cheap hack so we can add items to the list without
5876         the events being raised.  This allows adding mdi items during
5877         drawing. TODO: Should probably find a better time to add the items.
5878
5879 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
5880
5881         * ThemeWin32Classic.cs:
5882           - CheckBox_DrawText: Added logic to not wrap if not enough space
5883             is available (Fix for bug #77727)
5884           - RadioButton_DrawText: Added logic not to wrap if not enough
5885             space is available (Fix for bug #77727). Also removed some
5886             duplicate code, DrawString always drawing the regular text
5887             before hitting the if statement.
5888
5889 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
5890
5891         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
5892
5893 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
5894
5895         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
5896         * ContainerControl.cs: Partial implementation of some 2.0 scaling
5897           methods. Moved the new 2.0 properties into alphabetical order with
5898           other properties and added MonoTODO tags
5899
5900 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
5901
5902         * AutoScaleMode.cs: Added. Fix build.
5903
5904 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
5905
5906         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
5907           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
5908           and was requiring premature handle creation for calls from above
5909         * Form.cs, Control.cs: Removed handle arguments from calls to
5910           CalculateClientRect()
5911
5912 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
5913
5914         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
5915           drag_column.column_rect is MarshalByRef and can't be used that way
5916
5917 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
5918
5919         * AxHost.cs: Added deserialization constructor for 
5920           AxHost+State (fixes 77743)
5921
5922 2006-03-09  Mike Kestner  <mkestner@novell.com>
5923
5924         * ListView.cs: 
5925         - Added column drag reordering for details view.
5926         - fixed behavior when mouse is dragged off column and
5927         AllowColumnReorder is false.
5928         * ColumnHeader.cs: clone the format too in Clone.
5929         * Theme.cs: add DrawListViewHeaderDragDetails method.
5930         * ThemeWin32Classic.cs:
5931         - impl new method for drawing drag column shadows and targets.
5932         - support column offset for details mode in DrawListViewItem.
5933
5934 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
5935
5936         * TextControl.cs: Reset the char_count when the document is cleared
5937           (Fixes bug reported on mono-winforms mailing list)
5938
5939 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
5940
5941         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
5942           of calling base we simply process the key ourselves, since both
5943           DefWindowProc and the handled method would set m.Result. 
5944           (Fixes #77732)
5945
5946 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
5947
5948         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
5949           method also moves the window; instead implemented a copy of
5950           Control.ScaleCore (Part of fix for #77456)
5951         * TextBoxBase.cs: 
5952           - Created new CreateGraphicsInternal method to allow providing
5953             a graphics context when no handle is created without triggering
5954             handle creation. (Part of fix for #77456)
5955           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
5956         * TextControl.cs: 
5957           - Switched Constructor to require TextBoxBase instead of Control (to
5958             allow uncast access to CreateGraphicsInternal)
5959           - Safeguarded use of owner.Handle property. No longer accessing it
5960             unless the handle is already created.
5961           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
5962           - Now triggering a recalc when owning control becomes visible
5963         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
5964           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
5965           premature handle creation (Part of fix for #77456)
5966         * Control.cs:
5967           - We now only destroy our double-buffering buffers when the
5968             control is resized or disposed, but not when visibility
5969             changes. (The code even re-created them twice every time)
5970           - Now requiring a redraw of the buffer on visibility changes
5971             (fixes bug 77654 part 2)
5972           - Not passing OnParentVisibleChanged up unless the control
5973             is visible
5974           - CanFocus: Fixed to match MS documentation
5975           - Focus: Fixed to return actual focus state and to check if
5976             setting focus is legal before setting it
5977
5978 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
5979
5980         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
5981           when to draw focus rectangle by looking at parent focus and
5982           selected state instead. This fixes TabPages on Linux sometimes
5983           having none or multiple focus rectangles.
5984         * XplatUIX11.cs (SetFocus): 
5985           - Don't set the focus if the same window already has focus
5986           - Use SendMessage instead of PostMessage (like it's Win32
5987             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
5988             to match MS behaviour
5989         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
5990           are not selectable.
5991
5992 2006-03-07  Jackson Harper  <jackson@ximian.com>
5993
5994         * PictureBox.cs: Revert line I accidently committed last week.
5995
5996 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
5997
5998         * Control.cs: 
5999           - Added new IsRecreating and ParentIsRecreating properties to
6000             allow testing if RecreateHandle has been called on ourselves
6001             or one of our parents
6002           - WndProc(WM_DESTROY): If our control handle is being recreated
6003             we immediately need to create the handle when receiving the
6004             destroy, that way our child windows find a valid parent handle
6005             when they themselves are being recreated upon WM_DESTROY receipt
6006             (fix for bug #77654 part 1)
6007         * XplatUIX11.cs:
6008           - DestroyWindow: WM_DESTROY must be sent to our own window before
6009             notifying any child windows. MS documents that child windows
6010             are still valid when WM_DESTROY is received. (Control now relies on
6011             this behaviour)
6012           - Added some fine-grain debug options
6013
6014 2006-03-06  Jackson Harper  <jackson@ximian.com>
6015
6016         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
6017         box and base calculations off this.
6018         * MdiChildContext.cs:
6019         * MdiWindowManager.cs: Don't need to ensure scrollbars here
6020         anymore.
6021         
6022 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
6023
6024         * Splitter.cs: In situations where the affected control is added
6025           to the parent's control list after the splitter, we would not
6026           populate affected. Now we try populating it on mousedown, if
6027           it's not already set, and force it to be re-set whenever our
6028           parent changes.
6029
6030 2006-03-03  Matt Hargett  <matt@use.net>
6031
6032         * Control.cs: implement Control.Padding
6033         * Padding.cs: -Padding.All returns -1 when constructing with the
6034         implicit default ctor
6035         -Padding.ToString() matches MS.NET
6036         * ContainerControl.cs: implement
6037         ContainerControl.AutoScaleDimensions
6038         * ListControl.cs: implement ListControl.FormattingEnabled
6039         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
6040         * ButtonBase.cs:
6041         * TabPage.cs: Implement UseVisualStyleBackColor.
6042         * PictureBox.cs: Implement PictureBox.InitialImage.
6043
6044 2006-03-03  Mike Kestner  <mkestner@novell.com>
6045
6046         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
6047         event declarations to proxy to base event.
6048         * ListViewItem.cs: update to use ItemControl.
6049         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
6050         * ThemeWin32Classic.cs: update to new ListView theme API and fix
6051         column header label rendering for 0 width columns.
6052
6053 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
6054
6055         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
6056           that causes the control to be created. Fixes #77476.
6057
6058 2006-03-02  Jackson Harper  <jackson@ximian.com>
6059
6060         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
6061         expose_pending.
6062
6063 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
6064
6065         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
6066           passed in for the EventArgs (fixes #77690)
6067
6068 2006-03-01  Jackson Harper  <jackson@ximian.com>
6069
6070         * ScrollBar.cs: Refresh afterbeing resized.
6071
6072 2006-02-28  Mike Kestner  <mkestner@novell.com>
6073
6074         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
6075         Clean up a tracker compile warning.
6076         * MenuItem.cs: add internal PerformPopup method.
6077         [Fixes #77457]
6078
6079 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
6080
6081         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
6082           implicit expose) when the text is set to null
6083
6084 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
6085
6086         * RichTextBox.cs (FlushText): When newline is true, we always
6087           need to split the line, even if no text is on it and we may
6088           never eat newlines. (Fixes #77669)
6089
6090 2006-02-28  Mike Kestner  <mkestner@novell.com>
6091
6092         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
6093         and set Selected instead.
6094         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
6095         collections.
6096
6097 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
6098
6099         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
6100
6101 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
6102
6103         * FontDialog.cs:
6104           - Got rid of the panel. All controls are now directly added to
6105             the dialog form
6106           - It is now possible to set a font with the Font property
6107           - MinSize and MaxSize property do now what they should
6108           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
6109           - Searching and selecting a font with the font textbox works now,
6110             the same applies to the style and size textbox
6111           - Draw the correct 3D border in the example panel
6112           - Fixed a little mem leak (unused fonts didn't get disposed)
6113           - Many other internal updates/rewrites...
6114           - Fix typo
6115
6116 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
6117
6118         * TextControl.cs: 
6119           - InsertRTFFromStream: Added 'number of characters inserted' argument
6120           - set_SelectedRTF: Now using the number of characters to calculate
6121             the new location for the selection and cursor (x/y cannot be used
6122             due to potentially already wrapped text)
6123
6124 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
6125
6126         * TextControl.cs: Added property and implemented means to allow 
6127           disabling recalculation of a document (can be used to speed up
6128           multiple inserts and is needed to make RTF inserts predictable, see
6129           bug #77659)
6130         * RichTextBox.cs: Using the new NoRecalc property of Document to
6131           keep x/y insert locations predictable. Also makes it faster inserting
6132           large chunks of RTF
6133
6134 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
6135
6136         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
6137           it's easier for a child control to handle the other messages without
6138           having to duplicate the special functionality
6139         * TextBoxBase.cs
6140           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
6141             code to handle processing the key ourselves, in order to get 
6142             access to the result of KeyEventArgs.Handled. We now only call 
6143             ProcessKey if they key hasn't been handled already. Fixes #77526.
6144           - set_Text: If null or empty string is given, just clear the 
6145             document. Fixes part of #77526
6146
6147 2006-02-27  Jackson Harper  <jackson@ximian.com>
6148
6149         * SizeGrip.cs: Paint the background color before painting the grip
6150         so things look right.
6151         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
6152
6153 2006-02-27  Mike Kestner  <mkestner@novell.com>
6154
6155         * ListView.cs:
6156           - Restructure layout and invalidation model to remove a ton of
6157           flicker from the control and speed up performance in general.
6158           - Add manual column resize, flickers like crazy, but I already have
6159           some ideas on how I'll fix that. (#76822)
6160           - Merge the three Icon-based views into a single layout method.
6161           - Move item selection interaction logic from the item since 
6162           interaction with the collections is more appropriate to the view.
6163           - Deselection on non-item clicks.
6164         * ListViewItem.cs:
6165           - Encapsulate most of the layout. Add some internal props to trigger
6166           layout.  Move to a model where Items invalidate themselves instead
6167           of just invalidating the whole control every time something changes.
6168           - Invalidate on Text/Caption changes.
6169           - switch to an offset based layout model to avoid having to absolute
6170           position every element on item moves.
6171           - correct checkbox layout to conform to MS layout.
6172         * ThemeWin32Classic.cs:
6173           - refactor some column header drawing code.
6174           - fix string justification for column headers (#76821)
6175           - make SmallIcon labels top justified for compat with MS impl.
6176         * ThemeClearlooks.cs:
6177           - adjust to new ListViewItem internal checkbox bounds api.
6178
6179 2006-02-27  Jackson Harper  <jackson@ximian.com>
6180
6181         * Control.cs:  Change where implicit controls fall in the zorder.
6182         They are now on top of all children.
6183         - Synced AddImplicit code with Add
6184         - Removed unused enumerator.
6185         * SizeGrip.cs: Remove the TODO as its been TODONE.
6186
6187 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
6188
6189         * TextControl.cs(Insert): Combine the last lines unless the insertion
6190           string ends with \n\n, otherwise we leave one line too many (Fixes
6191           something I noticed with the testapp for #77526; the bug itself was
6192           already fixed in the previous checkin)
6193
6194 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
6195
6196         * RichTextBox.cs:
6197           - SelectionColor and SelectionFont methods no longer set absolute
6198             styles. Instead, the keep font or color respectively (This 
6199             resolves a long-standing FIXME in the code)
6200           - When flushing RTF text, the insert code now considers text trailing
6201             behind the insertion point (Fixes the bug where when replacing
6202             the selected text via SelectedRTF the remainder of the line behind 
6203             the selection would stay on the first insertion line)
6204         * TextBoxBase.cs:
6205           - AppendText now updates the selection points after inserting text
6206           - AppendText now ensures that the last tag (sometimes 0-length) of
6207             the document is used for the style information (Fixes part of 
6208             bug #77220)
6209         * TextControl.cs:
6210           - Created new FontDefiniton class to allow describing partial style
6211             changes
6212           - StreamLine() now takes a lines argument, to allow it to decide
6213             whether an encountered zero-length tag is the last in the document
6214             (which must be kept to not loose the font/color contained in it,
6215             for later appends)
6216           - Created Combine() and Split() methods for Marker structs, to 
6217             support marker updates due to reformatted documents (soft line
6218             wraps)
6219           - Implemented Document.CaretTag setter
6220           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
6221             of the last line (Not the cause, but also exposed by bug #77220)
6222           - Added LineTag argument to InsertString method, to allow callers
6223             to force a certain tag to be used (required to force use of the
6224             trailing zero-length tag of a document)
6225           - Now updating markers in Combine(), to avoid stale tag markers
6226           - Added some method descriptions to aid maintenance
6227           - Implemented new FormatText concept, allowing additive/subtractive
6228             formatting by only specifying the components that are to be 
6229             changed. This was needed for resolving the RTB.SelectedColor/
6230             RTB.SelectedFont fixmes
6231           - Added Break() support method to allow breaking up linetags (used
6232             for partial formatting)
6233           - Added GenerateTextFormat() method. It is used for partial 
6234             formatting and allows to generate a full font/color from given
6235             attributes and an existing tag.
6236
6237 2006-02-26  Jackson Harper  <jackson@ximian.com>
6238
6239         * XplatUIX11.cs:  Use the correct caption height.
6240         - Translate hittest coordinates to screen coords to match MS.
6241         * XplatUIWin32.cs: When we create MDI windows we need to reset
6242         some of the style flags, so we get a nice blank window, and can
6243         draw all the decorations ourselves.
6244         - Set a clipping rectangle on the non client paint event, the
6245         window manager drawing code needs one.
6246         * Form.cs: The window manager needs to know when the window state
6247         has been updated.
6248         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
6249         don't need to factor in border and title sizes in these
6250         methods. TODO: Remove the args and fix the call points.
6251         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
6252         properly.
6253         - Let the driver set the cursors.
6254         - Improve active window handling
6255         - Correct sizes for title bars and buttons.
6256         - Match MS drawing better
6257         * MdiWindowManager.cs: We don't need to handle border style
6258         updates specially anymore.
6259         - Check for scrollbars when windows are done moving
6260         - Handle Active properly.
6261         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
6262         correctly. I am spewing the exception though, so we don't hide the
6263         bugs.
6264         
6265 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
6266
6267         * DataGridViewRowPostPaintEventArgs.cs,
6268           DataGridViewCellPaintingEventArgs.cs,
6269           DataGridViewRowCollection.cs,
6270           DataGridViewRowPrePaintEventArgs.cs,
6271           DataGridViewCell.cs: Clear a few warnings and implement a few
6272           exceptions that should be thrown.
6273
6274 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
6275
6276         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
6277           'inheriting' our parent's (non-default) cursor. (Part of
6278            the fix for #77479)
6279
6280 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
6281
6282         * XplatUIX11.cs: Fixed cast to make csc happy
6283
6284 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
6285
6286         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
6287           it's for the client area (part of fix for #77479 and needed
6288           for MDI window cursor handling)
6289         * XplatUIX11.cs
6290           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
6291             the appropriate default cursors and also passing the message
6292             up the parent chain 
6293           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
6294             for non-client areas
6295
6296 2006-02-15  Jackson Harper  <jackson@ximian.com>
6297
6298         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
6299         is a real MDI window
6300
6301 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
6302
6303         * X11DesktopColors.cs: Instead of checking the desktop session
6304           string for "KDE" check if it starts with "KDE"
6305
6306 2006-02-10  Jackson Harper  <jackson@ximian.com>
6307
6308         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
6309         systems).
6310
6311 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
6312
6313         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
6314           errors
6315         * ColorDialog.cs:
6316           - Got rid of the panel. All controls are now directly added to
6317             the dialog form
6318           - Changed to mono coding style
6319
6320 2006-02-10  Jackson Harper  <jackson@ximian.com>
6321
6322         * InternalWindowManager.cs: We don't need the set visibility to
6323         false hack anymore now that peter has written beautiful shutdown
6324         code.
6325
6326 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
6327
6328         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
6329           where already explicitly destroyed
6330
6331 2006-02-10  Jackson Harper  <jackson@ximian.com>
6332
6333         * MdiClient.cs: Handle the case where windows are too high or to
6334         the left and we need scrollbars.
6335
6336 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
6337
6338         * MimeIcon.cs: Added some icons
6339         * FileDialog.cs:
6340           - Fixed bug #77477
6341           - Got rid of the panel. All controls are now directly added to
6342             the dialog form
6343           - Changed to mono coding style
6344           - On Linux "My Computer" and "My Network" will now show some
6345             more usefull information. A new class, MasterMount, gathers
6346             this information from /proc/mount. Updated MWFFileView to make
6347             use of this information
6348           - Fixed a bug that caused FileDialog to crash when
6349             ".recently_used" file had a zero size
6350           - FilterIndex does now what it should
6351           - Some Refactoring
6352         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
6353             FileDialog changes
6354
6355 2006-02-09  Jackson Harper  <jackson@ximian.com>
6356
6357         * ComboBox.cs: Don't touch if null.
6358
6359 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
6360
6361         * Cursor.cs: 64bit safeness fix
6362         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
6363
6364 2006-02-09  Jackson Harper  <jackson@ximian.com>
6365
6366         * Form.cs: If a form is made into an MDI form update the styles so
6367         all the props can get set correctly.
6368         - Kill the mdi_container when we dont need it anymore.
6369         * InternalWindowManager.cs: Add missing NOT
6370
6371 2006-02-08  Jackson Harper  <jackson@ximian.com>
6372
6373         * InternalWindowManager.cs: Respek clipping when drawing MDi
6374         decorations.
6375
6376 2006-02-08  Jackson Harper  <jackson@ximian.com>
6377
6378         * Hwnd.cs: Add bits to track non client expose events.
6379         * XplatUIX11.cs: Track non client expose events on the hwnd. This
6380         gives us a proper invalid rect and will allow for some nice
6381         optimizations with NC client drawing
6382         - MDI windows are children windows, so move their style handling
6383         into the child window block.
6384         * InternalWindowManager.cs: Remove a state reset that was
6385         getting invoked at the wrong time. Fixes managed windows getting
6386         into a 'stuck' captured state.
6387
6388 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
6389
6390         * TextControl.cs (Document.ctor): Now initializing 
6391           selection_anchor. Fixes #77493
6392
6393 2006-02-07  Jackson Harper  <jackson@ximian.com>
6394
6395         * TrackBar.cs: The increment/decrements were backwards.
6396
6397 2006-02-07  Mike Kestner  <mkestner@novell.com>
6398
6399         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
6400         to the instance itself.
6401
6402 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
6403
6404         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
6405           on ulongs and pointers, the size differs between 32bit and 64bit
6406           systems. 
6407
6408 2006-02-07  Mike Kestner  <mkestner@novell.com>
6409
6410         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
6411         for 64 bit platforms to work around a metacity bug. 
6412
6413 2006-02-07  Jackson Harper  <jackson@ximian.com>
6414
6415         * TrackBar.cs: Process the input keys we need, and hookup to
6416         KeyDown instead of using WndProc, so we get key messages.
6417
6418 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
6419
6420         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
6421           machine we're on. 
6422         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
6423           we need to translate the XdndVersion atoms array before sending it
6424
6425 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
6426
6427         * XplatUIX11.cs: 
6428           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
6429             number of bits for the property, not the number of bytes. The
6430             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
6431             but would not crash since it specified 8 bits instead of 4 bits)
6432           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
6433             defined as XID -> long in the C headers)
6434           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
6435             references since those are now IntPtr to begin with
6436           - Switched all Atom.XXX 'int' casts to IntPtr casts
6437           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
6438           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
6439           - Added XChangeActivePointerGrab DllImport (for X11DnD)
6440         * X11Structs.cs:
6441           - Changed 'int' type for Atoms in XEvent structures to IntPtr
6442           - Changed atom in HoverStruct to be IntPtr
6443         * X11DnD.cs:
6444           - Removed local DllImports, switched code to use those from XplatUIX11
6445           - Removed/fixed casts related to the switch of Atom to be a IntPtr
6446
6447 2006-02-06  Mike Kestner  <mkestner@novell.com>
6448
6449         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
6450         method signatures in the import region.  There may still be some
6451         lingering struct marshaling issues, as I didn't drill down into those.
6452         Yet.
6453
6454 2006-02-06  Jackson Harper  <jackson@ximian.com>
6455
6456         * ComboBox.cs: Dont manually set the top_item, this is computed
6457         when the scrollbar position is set.
6458
6459 2006-02-06  Mike Kestner  <mkestner@novell.com>
6460
6461         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
6462         startup crashes on amd64.  There's other fixes needed.  All pinvoke
6463         usage of Atom needs to be mapped to IntPtr for example.  And there are
6464         likely other int/long issues to be addressed.
6465
6466 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
6467
6468         * FileDialog.cs: One more...
6469
6470 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
6471
6472         * FileDialog.cs: Next try
6473
6474 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
6475
6476         * FileDialog.cs: First part of fix for #77464
6477
6478 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
6479
6480         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
6481           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
6482           AcceptButton border drawing.
6483
6484 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
6485
6486         * Form.cs: Moved positioning of form after auto scaling is applied,
6487           otherwise it would possibly use wrong form size.
6488
6489 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
6490
6491         * Control.cs (RecreateHandle): No need to re-create any child
6492           controls, the child windows will get destroyed automatically by
6493           the windowing system or driver, and re-created when the handle
6494           is being accessed the first time. Fixes #77456
6495         * Form.cs: No longer setting the form to closing if the handle is 
6496           being recreated. This seems like the right thing to do, don't
6497           have a bug or testcase for this, though.
6498
6499 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
6500
6501         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
6502           controls to avoid unwanted side effects
6503
6504 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
6505
6506         * Control.cs: 
6507           - ScaleCore needs to scale the bounds, not the ClientSize of the 
6508             control. Fixes #77416.
6509           - DefaultSize is 0,0 for control
6510         * TextBoxBase.cs: 
6511           - DefaultSize is 100, 20
6512           - SetBoundsCore: Now enforcing the height, no matter if the provided
6513             height is more or less than the preferred one, as long as AutoSize
6514             is on
6515         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
6516
6517 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
6518
6519         * Control.cs:
6520           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
6521             call unless both performLayout is true *and* we have a pending
6522             layout change
6523           - ResumeLayout: MS does not completely nest Suspend and Resume,
6524             they bottom out at 0, fixed our code to match that.
6525           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
6526             SetBoundsCore, we were updating even when we shouldn't. This fixes
6527             swf-anchors mis-anchoring when resizing the app fast and lots.
6528           - UpdateDistances: Now only setting the left and top distance if 
6529             we have a parent and are not suspended, this is based on
6530             a suggestion by Don Edvaldson in bug #77355.
6531           - OnVisibleChanged: Fixed logic when to create the control. We may
6532             not create the control if we have no parent or if it's not visible;
6533             switched to using Visible property instead of is_visible field 
6534             since the property also considers parent states. This fixes a bug
6535             when starting Paint.Net
6536
6537 2006-02-02  Jackson Harper  <jackson@ximian.com>
6538
6539         * Form.cs: If the forms handle hasn't been created yet don't call
6540         into xplatui to make it top most, just set the topmost flag on the
6541         form in CreateParams
6542         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
6543
6544 2006-02-01  Jackson Harper  <jackson@ximian.com>
6545
6546         * ScrollableControl.cs: Refactored the Recalculate method a
6547         little, this wasn't handling all the variants of bottom and right
6548         bars needed to be added and added/removed based on their
6549         counterparts being added/removed (which changes the drawable
6550         size). Also we special case client widths and heights of 0 and
6551         don't add the scrollbar for those.
6552
6553 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
6554
6555         * XplatUIX11.cs: 
6556           - Added method to get AbsoluteGeometry(); currently unused, but might
6557             be used in the future, if we try again to figure out toplevel
6558             coordinates with some more crappy window managers
6559           - Added FrameExtents() method to retrieve the WM set decoration size
6560           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
6561             to deal with at least KDE, FVWM and metacity (Fixes #77092)
6562         * Hwnd.cs: 
6563           - Added whacky_wm tracking var for metacity
6564           - Added logic to have default menu height if the actual menu height
6565             has not yet been calculated (part of fix for #77426)
6566         * Form.cs: Keep track whether client size has been set and re-set 
6567           it if a menu is added/removed afterwards (Fixes #77426)
6568
6569 2006-01-31  Jackson Harper  <jackson@ximian.com>
6570
6571         * Control.cs: When a new Site is set on the component attempt to
6572         pull the AmbientProperties from it.
6573
6574 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
6575
6576         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
6577           in the background of the owning form. Fixes #77332
6578
6579 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
6580
6581         * MimeIcon.cs: Fix for #77409
6582
6583 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
6584
6585         * XplatUIX11GTK.cs: Initial import
6586
6587 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
6588
6589         * FixedSizeTextBox: fixes class signature
6590
6591 2006-01-30  Jackson Harper  <jackson@ximian.com>
6592
6593         * FixedSizeTextBox.cs: New internal class that represents a
6594         textBox that will not be scaled.
6595         * TreeView.cs:
6596         * ComboBox.cs:
6597         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
6598         standard TextBox.
6599                 
6600 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
6601
6602         * XplatUIX11.cs: Retrieve default screen number instead of
6603           assuming 0. Attempted fix for #77318
6604
6605 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
6606
6607         * XplatUIWin32.cs: 
6608           - GetWindowPos: When a window is parented by FosterParent, use 
6609             the desktop instead of FosterParent as the base to get coordinates
6610           - CreateWindow: Don't make FosterParent the parent window for Popups
6611             if we don't want a taskbar entry, Popups automatically don't get one
6612         * Hwnd.cs: Need to call remove to actually remove the key from the
6613           hash table
6614
6615 2006-01-30  Mike Kestner  <mkestner@novell.com>
6616
6617         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
6618
6619 2006-01-30  Jackson Harper  <jackson@ximian.com>
6620
6621         * TreeView.cs:
6622         * TreeNode.cs: Raise events no matter how the treenode is
6623         checked. Patch by Don Edvalson.
6624
6625 2006-01-30  Jackson Harper  <jackson@ximian.com>
6626
6627         * TreeNode.cs: Signature fix.
6628
6629 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
6630
6631         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
6632
6633 2006-01-20  Mike Kestner  <mkestner@novell.com>
6634
6635         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
6636         event forwarding when menus are active.
6637         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
6638         Most of the patch is pdb's with a little rework.
6639
6640 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
6641
6642         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
6643           Removed GetMenuDC and ReleaseMenuDC methods; replaced
6644           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
6645         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
6646         * InternalWindowManager.cs: Added use of PaintEventStart/End to
6647           handling of WM_NCPAINT message, now passing the PaintEventArgs to
6648           the PaintWindowDecorations method
6649         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
6650         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
6651         * MenuAPI.cs: Made tracker window invisible
6652         * XplatUIWin32.cs:
6653           - Removed GetMenuDC and ReleaseMenuDC methods
6654           - Implemented the client=false path for PaintEventStart and
6655             PaintEventEnd
6656
6657 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
6658
6659         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
6660         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
6661           styles
6662         * Form.cs: 
6663           - MaximizeBox, MinimizeBox: Recreate the handle when setting
6664             the style
6665           - CreateParams: Reworked the styles to match MS look'n'feel,
6666             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
6667             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
6668
6669 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
6670
6671         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
6672           window is not mapped, since otherwise every form that's being 
6673           created is considered minimized, which is wrong.
6674         * Form.cs: Catching the exception and returning our internal value
6675           instead
6676
6677 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
6678
6679         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
6680           SetWindowMinMax() to have means to tell the driver about the minimum,
6681           maximum and maximized state window sizes. (Part of the fix for #76485)
6682         * Form.cs:
6683           - Implemented tracking of minimum and maximum window size, now calling
6684             new SetWindowMinMax() driver method to tell the driver (Part of the
6685             fix for #76485)
6686           - Finished handling of WM_GETMINMAXINFO method, now setting all values
6687             (Completes fix for #76485)
6688           - Calling new SetWindowMinMax driver method when the handle for a 
6689             form is created, to make sure the driver knows about it even if
6690             the values have been set before the window was created
6691           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
6692             to avoid messing up our anchoring calculations (partial fix
6693             for #77355)
6694         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
6695         * XplatUIX11.cs:
6696           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
6697           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
6698             (and presumably other freedesktop.org compliant WMs). Left the
6699             assumption unmapped=minimized, needed for SetVisible to work.
6700           - Now setting the window state when creating windows
6701           - Fixed SetVisible to consider/set the window state when mapping
6702             a Form. We cannot set the state before it's mapped, and we cannot
6703             use Form.WindowState once it's mapped (since it would ask the
6704             driver and get 'normal'. Therefore, we grab the state before
6705             mapping, map, and then set state.
6706           - Implmemented SetWindowMinMax method; Metacity does not seem to
6707             honor the ZoomHints, though.
6708         * XplatUIWin32.cs:
6709           - Removed MINMAXINFO (moved to XplatUIStructs)
6710           - Added SetWindowMinMax stub (on Win32 the only way to set that
6711             information is in response to the WM_GETMINMAXINFO message, which
6712             is handled in Form.cs)
6713           - Added logic to SetVisible to set the proper window state when a 
6714             form is made visible (fixes #75720)
6715
6716 2006-01-26  Jackson Harper  <jackson@ximian.com>
6717
6718         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
6719         same way we handle them with Invoke.
6720
6721 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
6722
6723         * Form.cs:
6724           - Added tracking of window state so CreateParams can return
6725             the appropriate style
6726           - Moved setting of WS_CAPTION style in CreateParams to allow
6727             styles without caption
6728         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
6729           control if the TextBox property is accessed. Fixes #77345
6730         * Control.cs:
6731           - get_Created: now uses is_disposed and is_created to determine
6732             return value (suggested by Jackson)
6733           - CreateHandle: No longer exits if the handle is being recreated
6734           - RecreateHandle: If the handle is not yet created call the 
6735             appropriate method to create either control or handle. If the
6736             control is already created CreateHandle will simply exit instead
6737             of just creating the handle
6738         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
6739           now SendMessage WM_DESTROY directly to the control when DestroyWindow
6740           is called.
6741         * XplatUIX11.cs: 
6742           - When DestroyWindow is called, instead of waiting for the 
6743             DestroyNotification from X11, we directly post it to the WndProc
6744             and immediately dispose the hwnd object.
6745             Same applies to DestroyChildWindows, and this obsoletes the
6746             expose_pending tracking. Contrary to Win32 behaviour we destroy our
6747             child windows before our own, to avoid X11 errors.
6748           - Removed the direct sending of WM_PAINT on UpdateWindow
6749         * XplatUIWin32.cs:
6750           - Reworked DoEvents and GetMessage to allow access to internal queue
6751             even when trying non-blocking access to the queue.  Fixes #77335. 
6752             Based on a patch suggestion by Don Edvalson. The new private
6753             GetMessage can now also be used as a backend for a PeekMessage
6754             frontend version.
6755         * XplatUI.cs: Improved debug output for CreateWindow
6756
6757 2006-01-25  Jackson Harper  <jackson@ximian.com>
6758
6759         * Help.cs: Allow param to be null. Patch by Don Edvalson.
6760
6761 2006-01-24  Jackson Harper  <jackson@ximian.com>
6762
6763         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
6764         when we have a MaxDropItems lower then the selected index.
6765
6766 2006-01-24  Jackson Harper  <jackson@ximian.com>
6767
6768         * Control.cs: Don't allow selection of non visible controls, allow
6769         selection of controls without parents.
6770
6771 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
6772
6773         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
6774         * DataGridDrawingLogic.cs: Add editing row only when is necessary
6775
6776 2006-01-23  Jackson Harper  <jackson@ximian.com>
6777
6778         * UpDownBase.cs: Make the textbox handle all the selection and
6779         tabbing. This fixes tabing to updown controls.
6780
6781 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
6782
6783         * TextBoxBase.cs: fixes exception thown the object was null
6784
6785 2006-01-23  Jackson Harper  <jackson@ximian.com>
6786
6787         * ButtonBase.cs: Just use the base CreateParams. They set
6788         visibility and enabled correctly.
6789         * ComboBox.cs:
6790         * TrackBar.cs:
6791         * MonthCalendar.cs: Lets let the base set as much of the
6792         createparams as possible so we don't have duplicate code all over
6793         the place.
6794
6795 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
6796
6797         * ThemeGtk.cs: Added TrackBar and some experimental code to
6798           get double buffering back
6799
6800 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
6801
6802         * DataGrid.cs: Allows row number set internally higher than the last
6803         when creating a new row. Restores the editing functionality.
6804
6805 2006-01-20  Mike Kestner  <mkestner@novell.com>
6806
6807         * MimeIcon.cs: delay Image creation until the icons are accessed
6808         instead of creating 190 scaled images on GnomeHandler startup.
6809
6810 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
6811
6812         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
6813           first call base before processing the event. Fixes #77279
6814
6815 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
6816
6817         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
6818           that the stride for the GDI bitmap would match the stride of
6819           a DIB or a Cursor.
6820
6821 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
6822
6823         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
6824
6825 2006-01-19  Jackson Harper  <jackson@ximian.com>
6826
6827         * ComboBox.cs: Hookup the text controls keydown event so we get
6828         those when the text control has the focus.
6829
6830 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
6831
6832         * Label.cs: Now using the base events instead of defining new ones;
6833           this allows us to just call the base properties without having to
6834           duplicate all base property logic 
6835
6836 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
6837
6838         * Label.cs: A label by default is not a tabstop (Fixes one of our
6839           failing nunit tests)
6840
6841 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
6842
6843         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
6844         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
6845
6846 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
6847
6848         * Cursor.cs: Reimplemented creating cursor bitmaps without using
6849           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
6850           This fixes #77218
6851         * XplatUIWin32.cs: 
6852           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
6853             constructor creates images that can't be saved. Part of the fix
6854             for #76103
6855           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
6856           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
6857             bug fix for handling window state in forms properly)
6858
6859 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
6860
6861         * ThemeGtk.cs: Simplify ScrollBar drawing
6862
6863 2006-01-18  Jackson Harper  <jackson@ximian.com>
6864
6865         * Splitter.cs: Set the default dock style for the splitter control
6866         in the constructor.
6867
6868 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
6869
6870         * ThemeGtk.cs: Corrected StateType and ShadowType for
6871           gtk_paint_box
6872
6873 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
6874
6875         * Control.cs: Make use of Theme.DoubleBufferingSupported
6876         * ThemeGtk.cs:
6877           - Added drawing for flat style buttons
6878           - Added ScrollBar drawing
6879
6880 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
6881
6882         * ThemeClearlooks.cs: Removed some unneeded code.
6883         * ThemeGtk.cs: First part of ThemeGtk enhancements.
6884
6885 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
6886
6887         * LinkLabel.cs: We need to update the hover drawing when
6888           leaving the control as well.
6889
6890 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
6891
6892         * DataGrid.cs: Clicking on non empty areas in the columns
6893            area was giving an exception
6894
6895 2006-01-17  Jackson Harper  <jackson@ximian.com>
6896
6897         * ThemeWin32Classic.cs:
6898         * ListView.cs: Do not draw/clip the headers when the header style
6899         is None.
6900
6901 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
6902
6903         * DataGrid.cs: Fixes 77260
6904         
6905 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
6906
6907         * DataGrid.cs: Clicking on a column on a empty grid was giving
6908           an exception
6909
6910 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
6911
6912         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
6913           or any keypress will crash the grid.
6914
6915 2006-01-17  Mike Kestner  <mkestner@novell.com>
6916
6917         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
6918         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
6919         invisible/previously-visible items.
6920         [Fixes #76909]
6921
6922 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
6923
6924         * ThemeClearlooks.cs:
6925         - Added CL_Draw_Button method; now other theme controls that are 
6926           not derived from button or do not have a button can draw buttons
6927           too
6928         - Updated ComboBox drawing
6929         - Beautified RadioButton drawing
6930         - Corrected drawing of bottom and left tabs
6931         - Beautified DateTimePicker and MonthCalendar
6932         - Added CPDrawButton and CPDrawRadioButton
6933
6934 2006-01-16  Jackson Harper  <jackson@ximian.com>
6935
6936         * ComboBox.cs: Set the initial value of the scrollbar to the
6937         current index. Reduce the numbers of refreshs and IndexOfs called.
6938
6939 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
6940
6941         * FileDialog.cs: When the file listview is focused hitting the
6942           backspace key moves the fileview to the parent directory
6943
6944 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
6945
6946         * Form.cs: 
6947           - Added RecreateHandle call when changing taskbar visibility to 
6948             trigger reparenting in Win32 driver (Fixes #75719)
6949           - If a window has minimize or maximize buttons, it cannot have
6950             a help button
6951         * XplatUIWin32.cs:
6952           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
6953             the toplevel form with FosterParent (A toolwindow not on the
6954             taskbar) (Fixes #75719)
6955           - Made FosterParent a toolwindow
6956
6957 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
6958
6959         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
6960
6961 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
6962
6963         * ToolTip.cs: If SetToolTip is called from a control and the mouse
6964           is currently over that control, make sure that tooltip_window.Text
6965           gets updated
6966
6967 2006-01-13  Mike Kestner  <mkestner@novell.com>
6968
6969         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
6970
6971 2006-01-13  Jackson Harper  <jackson@ximian.com>
6972
6973         * TreeView.cs: On MS GetNodeAt never actually factors in the X
6974         value passed.  Also redraw the selected node when we recieve
6975         focus, so tabbing between trees works correctly.
6976
6977 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
6978
6979         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
6980           ~/.gconf/%gconf-tree.xml, so use
6981           .gconf/desktop/gnome/interface/%gconf.xml
6982
6983 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
6984
6985         * TextControl.cs: Draw text in gray if control is disabled
6986
6987 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
6988
6989         * TreeView.cs: Draw the focus rectangle outside the highlight, to
6990           make sure it's always visible. Fixes #76680.
6991
6992 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
6993
6994         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
6995
6996 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
6997
6998         * PageSetupDialog.cs: Added.
6999         * PrintDialog.cs: Attributes.
7000         * PrintPreviewControl.cs: Updates.
7001         * PrintPreviewDialog.cs: Updates.
7002         
7003 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
7004
7005         * Control.cs: Undid my selection check fix, since it's not needed
7006         * TextBoxBase.cs:
7007           - Now considering the presence of hscroll/vscroll when sizing
7008             vscroll/hscroll respectively. Fixed bug #77077
7009           - Added Left/Up/Down/Right to IsInputKey list to prevent
7010             ContainerControl from stealing them. This fixes what I broke
7011             with my last checkin.
7012
7013 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
7014
7015         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
7016           I finally understand how the property can be set without a setter :-)
7017
7018 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
7019
7020         * Application.cs:
7021           - Switched RunLoop to use static Message.Create to create a 
7022             Message object
7023           - Added PreProcessMessage call in runloop for keyboard events; this
7024             is part of the fix for #77219, I overlooked this originally in the
7025             MSDN doc for PreProcessMessage
7026         * Control.cs:
7027           - Removed call to PreProcessMessage from handling of keyboard 
7028             messages; it's supposed to be done in the message pump
7029           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
7030             per MSDN documentation.
7031           - IsInputChar: All chars are input chars by default; removed the 
7032             parent calling chain, MS does not document that
7033           - PreProcessMessage: If IsInputChar is true, we want to return false
7034             to allow dispatching of the message
7035           - When selecting the next control, now also check that we're not
7036             selecting ourselves again and therefore return a false positive.
7037         * TextBoxBase.cs:
7038           - Tried to match return values for IsInputKey and ProcessDialogKey
7039             to what MS returns; moved processing of our special keys outside
7040             ProcessDialogKey since MS does not seem to return true on those.
7041           - Moved code that previously was in ProcessDialogKey into new private
7042             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
7043           - Reworked handling of WM_CHAR to not have to duplicate code from
7044             Control.cs anymore, instead we simply call down to base.
7045            
7046 2006-01-12  Jackson Harper  <jackson@ximian.com>
7047
7048         * ComboBox.cs: We always need to refresh the text area when
7049         EndUpdate is called. Fixes the combobox in the file dialog.
7050         * Control.cs: Don't create the creator_thread until the controls
7051         handle is created.  Also in InvokeRequired we check if the
7052         creator_thread is null. This gives the effect of InvokeRequired
7053         returning true if the controls handle is not created yet, and
7054         matches MS.
7055
7056 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
7057
7058         * XplatUI.cs:
7059           - Added StartLoop() driver method. This is used to allow drivers to
7060             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
7061             loop for a particular thread
7062           - Added EndLoop() driver method. This is called once the message
7063             pump for the thread is shut down
7064           - Added SupportsTransparency method to allow the driver to indicate
7065             opacity support for windows
7066         * Form.cs:
7067           - Removed TODO attribute, completed AllowTransparency property
7068           - Added documented logic to Opacity
7069         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
7070           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
7071           versions of CompatibleTextRendering
7072         * X11Structs.cs: Added opacity atom to our atom enumeration
7073         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
7074           of a form might be set before it's reparented by the WM, and we need
7075           the opacity value without calling up to Form)
7076         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
7077           SupportsTransparency() driver methods
7078         * Application.cs: Now calling StartLoop and EndLoop driver methods
7079         * XplatUIX11.cs:
7080           - Added opacity atom registration
7081           - Added StartLoop()/EndLoop() methods. They're empty right now but
7082             will need to get implemented when we switch to a per-thread queue
7083           - Implemented SupportsTransparency() method
7084           - Implemented SetWindowTransparency() method
7085           - Added support for setting the opacity value when a window is
7086             reparented (since the opacity needs to be set on the WM frame)
7087         * XplatUIOSX.cs, XplatUIWin32.cs:
7088           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
7089
7090 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
7091
7092         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
7093
7094 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
7095
7096         * FileDialog.cs: Added ToolTip for MWFFileView
7097         * MimeIcon.cs: Rewrote GnomeHandler.
7098           - Get currently used gnome icon theme from
7099             ($HOME)/.gconf/%gconf-tree.xml
7100           - Make use of inherited icon themes
7101           - Support SVG icon themes like Tango via librsvg
7102
7103 2006-01-12  Miguel de Icaza  <miguel@novell.com>
7104
7105         Revert's Jackson's revert which broke 2.0 builds.   Fix both
7106         builds. 
7107         
7108         * Application.cs: Move the use_compatible_text_rendering outside
7109         the NET_2_0 define.  If we ever need to use the
7110         use_compatible_text_rendering on the individual controls they will
7111         access the variable from the common shared code paths.
7112
7113 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
7114
7115         * XplatUI.cs:
7116           - Added more granular debug options
7117           - Added method to print both window text and id
7118           - Switched debug output to use new Window() debug method
7119           - Added IsEnabled() driver method
7120           - Added EnableWindow() driver method
7121         * Form.cs:
7122           - Removed end_modal; no longer needed, new loop handles termination
7123             via 'closing' variable
7124           - If form is modal, setting DialogResult will now initiate loop
7125             termination via 'closing' variable
7126           - Added support for is_enabled/WS_DISABLED to CreateParams
7127           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
7128             does all the work
7129           - Removed code that's now in RunLoop from ShowDialog()
7130           - Added various documented sanity checks to ShowDialog()
7131           - Added handling of WM_DESTROY message; we set 'closing' on getting
7132             the message to indicate the message pump to terminate
7133           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
7134             send by the Application.ExitThread method. (We send the message
7135             to destroy the window after all other events have been
7136             processed through the queue, instead of destroying the handle 
7137             directly)
7138           - Moved code from Close() method to WM_CLOSE handler; added logic
7139             to only send close-related events if the form is not displayed
7140             modal
7141         * Splitter.cs (..ctor): Fixed typo in resource name
7142         * Control.cs:
7143           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
7144             brush now
7145           - set_Cursor: Now only setting calling into XplatUI if the handle for
7146             the control is already created; this avoids implict handle creation
7147             or crashes if it's not created
7148           - set_Enabled: Now setting the enabled state via the new driver method
7149             instead of just tracking it
7150           - CreateParams: Added logic to set WS_DISABLED based on enabled state
7151           - CreateControl: Reordered event firing and method calls to more
7152             closely fire events in the order MS does. Now setting the
7153             enabled state in the driver when creating the control.
7154           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
7155             match MS order
7156         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
7157           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
7158         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
7159         * Hwnd.cs:
7160           - Added tracking of window enabled state (get_Enabled/set_Enabled)
7161           - Added EnabledHwnd property to easily allow a driver to find the
7162             handle of the first enabled window in the parent chain (this is
7163             used by drivers to pass up input events of disabled windows)
7164         * XplatUIDriver.cs: Added IsEnabled() method
7165         * Application.cs:
7166           - Removed crude and obsolete exiting tracking variable
7167           - Removed internal ModalRun(); replaced by RunLoop()
7168           - Implemented private CloseForms() method to allow closing all 
7169             windows owned by a particular (or all) threads
7170           - Exit() now properly closes all windows without forcing the message
7171             pump to quit
7172           - Removed obsolete InternalExit() method
7173           - Changed Run() methods to use new RunLoop() message pump
7174           - Implemented new RunLoop() method for both modal and non-modal forms
7175         * CommonDialog.cs:
7176           - get_CreateParams: Added setting of WS_DISABLED
7177           - Simplified ShowDialog(); now all the work is done in RunLoop(),
7178             invoked via Form.ShowDialog()
7179         * NativeWindow.cs: We don't remove the window from the collection when
7180           the handle is destroyed; there might still be messages for it in the
7181           queue (mainly the resulting WM_DESTROY); instead it will be removed
7182           when Control calls InvalidateHandle in the WM_DESTROY handler
7183         * XplatUIX11.cs:
7184           - CreateWindow: Added logic to handle the WS_DISABLED window style
7185           - EnableWindow: Implemented based on Hwnd.Enabled
7186           - GetMessage: Reset PostQuitState so the method can be called again
7187           - Implemented support for disabled windows (passing messages to the
7188             first enabled parent) in handling all input messages
7189           - Added optimizations for handling Expose events
7190           - Implemeted new driver method IsEnabled()
7191           - Now always resetting paint pending tracking vars when we start paint
7192           - Re-implemented UpdateWindow via just sending a WM_PAINT message
7193         * XplatUIOSX.cs: Added IsEnabled method stub
7194         * XplatUIWin32.cs: Implemented new IsEnabled() method
7195
7196 2006-01-11  Jackson Harper  <jackson@ximian.com>
7197
7198         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
7199         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
7200         variables a little.
7201         * ColorDialog.cs: Clear out the old form before adding the new
7202         panel.  
7203
7204 2006-01-11  Jackson Harper  <jackson@ximian.com>
7205
7206         * X11Dnd.cs: Make sure to add all the text formats when adding
7207         strings to the data object.
7208         * TreeNodeCollection.cs: When adding to a sorted tree we need to
7209         do some redrawing too.  Also change the UpdateNode to an
7210         UpdateBelow so the newly added node gets painted.
7211         
7212 2006-01-11  Miguel de Icaza  <miguel@novell.com>
7213
7214         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
7215         LinkLabel.cs, PropertyGrid.cs: Implement the
7216         UseCompatibleTextRendering property for 2.x
7217
7218         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
7219
7220 2006-01-11  Jackson Harper  <jackson@ximian.com>
7221
7222         * TreeView.cs: Use the property for setting the selected node so
7223         the correct events get raised.
7224         * TreeNode.cs: Update the tree when the fore/back colours of a
7225         node are set.
7226
7227 2006-01-10  Jackson Harper  <jackson@ximian.com>
7228
7229         * TreeView.cs: Allow setting SelectedNode to null.
7230
7231 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
7232
7233         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
7234
7235 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
7236
7237         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
7238
7239 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
7240
7241         * PrintDialog.cs: Added attributes and set default property values.
7242
7243 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
7244
7245         * PrintControllerWithStatusDialog.cs: 
7246         Added PrintControllerWithStatusDialog.
7247
7248 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
7249
7250         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
7251         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
7252
7253 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
7254
7255         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
7256
7257 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
7258
7259         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
7260         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
7261
7262 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
7263
7264         * MimeIcon.cs: Added internal class SVGUtil.
7265
7266 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
7267
7268         * FileDialog.cs: Don't crash if there are two files with the
7269           same name but different locations.
7270
7271 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
7272
7273         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
7274         dates across multiple month grids. Used to not highlight entire 
7275         month, but does now.
7276         
7277 2006-01-06  Jackson Harper  <jackson@ximian.com>
7278
7279         * MonthCalendar.cs: Removed DoEvents call to prevent a running
7280         message loop. Change timer intervals to numbers that seem more
7281         natural.
7282
7283 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
7284
7285         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
7286           object for location info since screen object is now implemented.
7287
7288 2006-01-05  Jackson Harper  <jackson@ximian.com>
7289
7290         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
7291         * AsyncMethodResult.cs: We no longer use a WeakReference for the
7292         AsyncMethodResult, this is because we ALWAYS want the
7293         ManualResetEvent to get set.
7294         * Control.cs: When disposing use an async invoke to call shutdown
7295         code, so that thigns don't block on the finalizer thread.  Also
7296         check if we even have a message loop before trying to send
7297         messages, if we don't then don't bother sending messages.
7298         - No more weak references for async methods
7299         * XplatUIDriver.cs: No more weak references for async methods.
7300
7301 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
7302
7303         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
7304           returns two FontFamily with the same name
7305
7306 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
7307
7308         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
7309           drawing disabled text. Instead using the ColorGrayText color
7310
7311 2006-01-04  Jackson Harper  <jackson@ximian.com>
7312
7313         * TreeNode.cs: redraw the node when its image index is changed.
7314
7315 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
7316
7317         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
7318           time I checked there are no others like it.
7319
7320 2006-01-04  Jackson Harper  <jackson@ximian.com>
7321
7322         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
7323         this gives the behavoir I was looking for.
7324         * Control.cs: Special case Invoking EventHandlers, this matches MS
7325         and fixes part of bug #76326.
7326
7327 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
7328
7329         * ThemeClearlooks.cs, FileDialog.cs:
7330           - Reflect the latest Theme class changes
7331           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
7332             with DateTime
7333             
7334 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
7335
7336         * Theme.cs: Cache UI resource images and resize them if needed
7337
7338 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
7339
7340         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
7341           is called. This fixes the crash in Nexxia when setting the font
7342           attributes in the chat. [However, RTF needs a look-over to make sure
7343           that all SelectionXXX methods handle the special case that selection
7344           is empty and therefore the change must be applied to all text starting
7345           at the cursor/selection start]
7346
7347 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
7348
7349         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
7350           XplatUIOSX.cs: Added SendMessage and PostMessage methods
7351         * X11Keyboard.cs: Switched to new way of calling PostMessage
7352
7353 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
7354
7355         * Theme.cs: Added theme interface for images to allow the theme to
7356           control what images are used for things like FileDialog, MessageBox
7357           icons, etc.
7358         * MessageBox.cs: Now uses the new Theme icon/image interfaces
7359
7360 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
7361
7362         * FileDialog.cs:
7363           - Removed some dead code
7364           - Opening a recently used file does work now
7365           - Small UI enhancements
7366           - Refactoring
7367
7368 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
7369
7370         * FileDialog.cs: Forgot too add __MonoCS__
7371
7372 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
7373
7374         * FileDialog.cs: We are able to read recently used files now let's
7375           go on and write them.
7376
7377 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
7378
7379         * FileDialog.cs: Breathe some life into "last open"/"recently used"
7380           button
7381         * MimeIcon.cs: Do a check for the top level media type also
7382
7383 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
7384
7385         * ThemeClearlooks.cs:
7386           - Added CPDrawStringDisabled
7387           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
7388             some chars if the text doesn't fit into text_rect
7389           - DrawListViewItem: If View = View.LargeIcon center the image;
7390             rewrote the drawing of ListViewItem.Text if View = 
7391             View.LargeIcon
7392
7393 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
7394
7395         * MimeIcon.cs: Use default KDE icon theme if there is no
7396           "48x48" directory for the current icon theme, fixes #77114
7397         * Mime.cs: Disable not working and actually not used code. 
7398         * ThemeWin32Classic.cs:
7399           - Replace "new SolidBrush" in GetControlBackBrush and
7400             GetControlForeBrush with ResPool.GetSolidBrush
7401           - Changed DrawListViewItem from private to protected virtual
7402         * FileDialog.cs:
7403           - Added form.MaximizeBox = true
7404           - Don't throw an exception if there is a broken symbolic link
7405
7406 2005-12-23  Jackson Harper  <jackson@ximian.com>
7407
7408         * TabControl.cs: Give the panels focus, keyboard navigation is
7409         fixed so this works correctly now.
7410         - We need these key events also.
7411         * ToolBar.cs: Remove some of the poor mans double buffering.
7412         
7413 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
7414
7415         * ComboBox.cs: The internal TextBox now returns the focus.
7416
7417 2005-12-23  Jackson Harper  <jackson@ximian.com>
7418
7419         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
7420
7421 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
7422
7423         * Control.cs: Removed debug code
7424         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
7425           implicit children
7426
7427 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
7428
7429         * Control.cs: When creating the control, update the Z-order after
7430           all it's children are created, too. (Fixes nexxia not showing
7431           picturebox bug)
7432
7433 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
7434
7435         * Control.cs: Do not update the anchoring distances if layout is
7436           suspended, instead do it once layout is resumed
7437
7438 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
7439
7440         * Control.cs: 
7441           - After many hours of debugging, for both Jackson and
7442             myself, it turns out that it helps to set the parent of a control
7443             if you want to actually see it onscreen. In the spirit of that
7444             discovery, we're now setting the parent of the control and
7445             it's children when the control's handle is created. This fix
7446             will make Lutz Roeder's Reflector run happily. 
7447           - now just creating the handle instead of the whole control when
7448             getting a graphics context for the control.
7449
7450 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
7451
7452         * ScrollableControl.cs: When calculating the canvas, don't consider
7453           the scrollbar widths. Instead, predict if horizontal scrollbar
7454           will affect canvas when deciding on vertical display and vice versa.
7455
7456 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
7457
7458         * RichTextBox.cs: Set default RTF font for documents that don't
7459           have a font table (Fixes #77076)
7460
7461 2005-12-22  Jackson Harper  <jackson@ximian.com>
7462
7463         * TextBoxBase.cs: It's difficult to do, but you can have an empty
7464         clipboard. This prevents a NullRef in that case.
7465         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
7466         clipboard. PRIMARY is for the currently selected text only. (We
7467         should implement PRIMARY at some point.
7468
7469 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
7470
7471         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
7472           a Unicode function with a structure that was defined in Ansi way.
7473           This fixes #76942.
7474
7475 2005-12-21  Jackson Harper  <jackson@ximian.com>
7476
7477         * StatusBar.cs: Statusbar handles its fore/back colours on it's
7478         on. Because thats how it rolls. (and this avoids it using ambient
7479         colours).
7480         * ThemeWin32Classic.cs: Use the proper back color for filling.
7481         * Menu.cs: Use the system menu bar color for drawing menu
7482         bars. Using the window back color will bring ambient colours into
7483         the picture.
7484
7485 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
7486
7487         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
7488           Bitmaps were created and not disposed.
7489
7490 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
7491
7492         * Control.cs (CreateControl): Don't do anything if the control is
7493           already created, otherwise we'd fire the OnCreated event more than
7494           once
7495
7496 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
7497
7498         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
7499           will always match. Instead return -1. Fixes #76464.
7500
7501 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
7502
7503         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
7504           neither the beginning nor the end of the line (Fixes bug #76479)
7505
7506 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
7507
7508         * Control.cs:
7509           - ControlNativeWindow.ControlFromHandle(): Now handling situation
7510             where handle is invalid
7511           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
7512             instead of slower linear search
7513         * NativeWindow.cs: Don't remove the window from the hashtable until
7514           after the driver has destroyed it (since the driver might use
7515           Control.FromHandle to lookup the control object
7516         * Hwnd.cs: Added DestroyPending property to track if a window is 
7517           already destroyed as far as the driver is concerned and only hasn't
7518           yet notified the control
7519         * XplatUIX11.cs:
7520           - Activate(): Check if the window is still valid before using the 
7521             handle
7522           - Implemented DestroyChildWindow() method to mark child windows as
7523             destroyed when a window is destroyed. This prevents situations 
7524             where we might call an X method based on queued events for a
7525             window that already has been destroyed but we haven't yet pulled
7526             the destroy method from the queue.
7527           - Added a call to the new DestroyChildWindow() method to the drivers
7528             DestroyWindow code. Also now marking the destroyed window itself
7529             as pending
7530
7531 2005-12-20  Jackson Harper  <jackson@ximian.com>
7532
7533         * StatusBar.cs:
7534         * StatusBarPanel.cs: Don't calculate panel sizes on draw
7535         anymore. Just do them when needed, also track the rects of panels
7536         so that we can optimize refreshing more in the future.
7537
7538 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
7539
7540         * ColorDialog.cs: Fixed focus drawing in small color controls
7541
7542 2005-12-19  Jackson Harper  <jackson@ximian.com>
7543
7544         * InternalWindowManager.cs:
7545         * MdiWindowManager.cs: Cleanup some coordinate system changes so
7546         moving windows works properly.
7547
7548 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
7549
7550         * Control.cs: 
7551           - Removed call to InitLayout() from SetBoundsCore(); doc says
7552             it's only called when a control is added to a container
7553           - Split InitLayout logic, moved to separate UpdateDistances() method
7554             since we need to perform those calculations more often than just
7555             when adding the control to a container. (Needed to fix #77022)
7556           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
7557           - Reduced the OnBindingContextChanged events count, don't send them
7558             unless the control is created, we still aren't totally matching
7559             MS, but I can't quite figure out some of their rules
7560
7561 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
7562
7563         * ThemeClearlooks.cs: Corrected distance between ProgressBar
7564           stripes
7565
7566 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
7567
7568         * ThemeClearlooks.cs:
7569           - Updated ProgressBar drawing
7570           - Corrected drawing of ScrollBars and scroll buttons
7571           - Some temporary fixes for minor pixel artefacts
7572
7573 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
7574
7575         * Control.cs:
7576           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
7577             cause events to be sent in the same order as MS does.
7578           - Added ChangeParent() method to trigger various OnXXXChanged events
7579             that need to be fired when a parent changes (This is a reworking
7580             of the patch from r54254, with the X11 errors fixed)
7581           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
7582             since on MS we get OnLayoutChanged events when calling Clear()
7583           - Changed Enabled property to consider parent state as well, if a
7584             parent is not enabled, the control will not be either
7585           - Changed Parent property to simply call Controls.Add() since that
7586             now does all the work required, this way we avoid code duplication
7587           - Threw in a few OnBindingsContextChanged calls to try and match
7588             when MS sends them. We seem to send a few too many, though.
7589           - Added call to CreateControl when adding the control to a parent.
7590             We were never calling CreateControl. Still needs some work, in
7591             some places we treat HandleCreated and ControlCreated as equal, 
7592             which is wrong
7593           - Removed obsolete commented out code from UpdateZOrder()
7594
7595 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
7596
7597         * ThemeClearlooks.cs: Updated TrackBar drawing.
7598
7599 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
7600
7601         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
7602
7603 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
7604
7605         * FileDialog.cs: Add the Help button and the open readonly
7606           checkbox only if needed
7607
7608 2005-12-16  Jackson Harper  <jackson@ximian.com>
7609
7610         * Control.cs: Make sure we have an active menu before trying to
7611         process commands on it. Prevents menu-less forms from crashing
7612         when Alt is pressed.
7613         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
7614         Dieter Bremes.
7615         * RichTextBox.cs: Expand statement to help out gmcs and fix the
7616         2.0 build.
7617
7618 2005-12-16  Jackson Harper  <jackson@ximian.com>
7619
7620         * InternalWindowManager.cs: Don't translate tool windows screen
7621         coordinates. This fixes windows 'bouncing' around when being moved.
7622
7623 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
7624
7625         * TextBoxBase.cs:
7626           - MaxLength now treats 2^31-1 equal to unlimited length (this is
7627             not quite MS compatible, MS uses that number only for single line
7628             and 2^32-1 for multi-line, but I figure it won't hurt keeping
7629             the limit at 2GB)
7630           - Now enforcing the MaxLength limit when entering characters
7631           - Added argument to internal Paste() method to track if it's called
7632             from programatically or via keyboard, since keyboard driven pastes
7633             need to enforce max-length
7634           - Added logic to Paste to only paste as many chars as MaxLength 
7635             allows
7636         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
7637         * TextControl.cs:
7638           - Added Length property to return number of characters in document
7639           - Added private CharCount property which only tracks actual chars
7640             in the document (no linefeeds) and fires event when CharCount
7641             changes
7642           - Added tracking of character count to all methods that alter it
7643           - Added LengthChanged event to allow applications to subscribe
7644             to any changes to the document
7645
7646 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
7647
7648         * TextBox.cs: 
7649           - Removed local password_char field (moved to TextBoxBase)
7650           - Now setting the document's password var when password is
7651             set
7652         * TextBoxBase.cs:
7653           - Added password_char field (needed here so MultiLine can
7654             access it)
7655           - Added logic to MultiLine property setter to set the document's
7656             variable when password display is allowed
7657           - Removed debug code and made some debug code conditional
7658         * TextControl.cs:
7659           - Added RecalculatePasswordLine() method to handle special password
7660             char only lines
7661           - Added PasswordChar property, also added related tracking vars
7662           - Draw() method now uses local text var for grabbing text to draw,
7663             this var is set to line.text unless we're doing password display,
7664             then it is set to the pre-generated all-password-chars line
7665           - Added calling RecalculatePasswordLine() method for password lines
7666
7667 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
7668
7669         * Hwnd.cs: 
7670           - Added Reparented property to allow tracking of Window Manager
7671             reparenting actions (which affect X/Y calculations of toplevel 
7672             windows)
7673           - Made ToString() print window handles in hex
7674         * XplatUIX11.cs:
7675           - AddConfigureNotify(): Now uses reparented state off Hwnd to
7676             determine if X/Y needs offsetting
7677           - AddConfigureNotify(): Fixed offset calculations
7678           - Now adds ReparentNotify messages into the queue
7679           - Now processes ReparentNotify messages and causes a 
7680             WM_WINDOWPOSCHANGED message to be sent upstream if a window
7681             is reparented (as most likely it's X/Y coordinates are changed
7682             due to that)
7683
7684 2005-12-14  Jackson Harper  <jackson@ximian.com>
7685
7686         * XplatUIX11.cs: Tool windows still need to respek focus.
7687
7688 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
7689
7690         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
7691           have a working release
7692
7693 2005-12-13  Jackson Harper  <jackson@ximian.com>
7694
7695         * Form.cs: Update styles after setting the border style regardless
7696         of whether or not the window is using a window manager.
7697
7698 2005-12-13  Jackson Harper  <jackson@ximian.com>
7699
7700         * Form.cs: We now hook into an internal window manager instead of just an
7701         MDI subsystem, this is so we can have properly behaving tool windows.
7702         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
7703         * InternalWindowManager.cs: New internal class that acts as a
7704         window manager for tool windows and as a base for mdi windows.
7705         * MdiWindowManager.cs: New class that acts as a window manager for
7706         mdi windows.
7707
7708 2005-12-12  Jackson Harper  <jackson@ximian.com>
7709
7710         * Control.cs: Updates so we match behavoir for for implicit
7711         controls. Fixes explosions in MDI.
7712
7713 2005-12-12  Jackson Harper  <jackson@ximian.com>
7714
7715         * Control.cs: Implement Invalidate (Region).
7716
7717 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
7718
7719         * Control.cs: 
7720           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
7721             the same events as MS does. MS fires events for each property 
7722             except, for unknown reasons, Cursor, when the control is reparented. 
7723             I can't seem to totally match add/remove since MS also fires some 
7724             VisibleChanged events, which makes no sense. Consolidated the
7725             parenting code into a separate method so it can be called from
7726             both Add and Remove. set_Parent no longer needs any special logic
7727             as it calls the parent's add method which implicitly fires
7728             all events
7729           - Removed some obsolete code and debug output
7730           - Enabled state is inherited from parents, if this is enabled
7731
7732 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
7733
7734         * Form.cs: Removed commented out code
7735
7736 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
7737
7738         * Control.cs:
7739           - Added internal version of Invoke, with additional argument 
7740             indicating if we're calling it from a Dispose() handler. That
7741             way we can avoid BeginInvoke throwing an exception if we're
7742             calling for an already destroyed window.
7743           - Added a dispose argument to BeginInvokeInternal, and made the
7744             check if a valid window handle chain exists conditional on
7745             it not being a dispose call
7746           - Removed code in DestroyHandle to destroy our children. Since we
7747             now handle the WM_DESTROY message we will catch all our children
7748             being destroyed.
7749           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
7750         * Form.cs:
7751           - Added a field to track the application context of the form.
7752           - No need to set closing variable as response to WM_CLOSE, instead
7753             we destroy the window. We also call PostQuitMessage if the form
7754             has an application context (which makes it the main app form,
7755             which, when closed terminates the app)
7756         * XplatUI.cs:
7757           - Dropped Exit() method, it's naming was confusing
7758           - Added PostQuitMessage() which causes GetMessage to return false
7759             once the message queue is empty
7760         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
7761           PostQuitMessage()
7762         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
7763           no longer a valid XplatUI method, but left it in since it's used
7764           internally. Added empty PostQuitMessage() method.
7765         * MenuAPI.cs: Replaced call to Exit() with call to
7766           PostQuitMessage, even though this is probably no longer needed.
7767         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
7768         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
7769         * Application.cs:
7770           - Replaced call to XplatUI.Exit() with PostQuitMessage()
7771           - Removed old debug code that would call XplatUI for exception
7772             display, enabled standard exception handling (Still not enabled
7773             though, until NativeWindow's ExternalExceptionHandler define
7774             is removed
7775         * NativeWindow.cs:
7776           - Added internal method to allow control to update NativeWindow
7777             after a window has been destroyed
7778           - Added handling of already destroyed windows when calling i
7779             DestroyWindow
7780           - Added removal of handle from list on ReleaseHandle
7781         * XplatUIX11.cs:
7782           - Dropped GetMessageResult var and related code
7783           - Added PostQuitState to field to track if PostQuitMessage has been
7784             called
7785           - Dropped Exit() method
7786           - Added PostQuitMessage() method
7787           - GetMessage now will return false if PostQuitState is set and no
7788             more messages are in the queue.
7789           - Expose handler will no longer generate WM_PAINT messages if we are
7790             in PostQuitState since it's very likely any windows have already
7791             been destroyed, and since Hwnd won't get updated until we have
7792             processed the DestroyNotify we'd be causing X errors.
7793         
7794 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
7795
7796         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
7797           Thanks to Mike for pointing out the err of my ways.
7798
7799 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
7800
7801         * Control.cs(PreProcessMessage): Moved menu handling back, but
7802           after all other key handling, to match MS (who handles Menu in
7803           DefWndProc)
7804         * Menu.cs (WndProc): Removed my brainfart
7805
7806 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
7807
7808         * Control.cs(PreProcessMessage): Removed special menu handling 
7809         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
7810
7811 2005-12-07  Mike Kestner  <mkestner@novell.com>
7812
7813         * Control.cs : special case SYSKEYUP so that we can adjust keynav
7814         state according in tracker.
7815         * Menu.cs : promote tracker field to base class and provide a tracker
7816         lookup capability.  Add/Remove shortcuts dynamically if the top menu
7817         has a tracker. Unparent items that are removed from the collection.
7818         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
7819         * Theme*.cs: add always_show_hotkeys field to support configurability
7820         of mnemonic display.  win32 doesn't show mnemonics until Alt is
7821         pressed.
7822
7823 2005-12-07  Jackson Harper  <jackson@ximian.com>
7824
7825         * MdiChildContext.cs: Use Control.ResetCursor.
7826         * Control.cs: ResetCursor needs to set the property so that the
7827         correct XplatUI call gets made.
7828
7829 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
7830
7831         * Control.cs: More fixes to make our key events match MS. We
7832           were not setting the modifier state on KeyData, and we were
7833           not generating any events when Alt was pressed with a key
7834           since handling of WM_SYSxxx was missing for the OnKey methods.
7835
7836 2005-12-07  Jackson Harper  <jackson@ximian.com>
7837
7838         * MdiChildContext.cs: reenable the sizing code.
7839         - When the mouse leaves a window reset its cursor.
7840
7841 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
7842
7843         * ThemeClearlooks.cs: Reflect latest Hwnd changes
7844
7845 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
7846
7847         * Hwnd.cs: Now using the theme 3d bordersize to calculate
7848           widths of Fixed3D borders
7849
7850 2005-12-07  Jackson Harper  <jackson@ximian.com>
7851
7852         * MdiClient.cs: Fix warnings. Earn Mike's love.
7853
7854 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
7855
7856         * ThemeClearlooks.cs:
7857           - Adjusted mouse over button color
7858           - Added first parts of CheckBox drawing
7859           - Added correct color for selected text background
7860           - Fixed ComboBox drawing
7861           - Added CPDrawBorder3D and CPDrawBorder
7862
7863 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
7864
7865         * XplatUIX11.cs: Added call to XBell for AudibleAlert
7866
7867 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
7868
7869         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
7870           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
7871           alert users via sound. We could add an enum arg with different
7872           types of alerts in the future
7873
7874 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
7875
7876         * Control.cs: Fix behaviour problems pointed out by Mike
7877
7878 2005-12-05  Mike Kestner  <mkestner@novell.com>
7879
7880         * StatusBarPanel.cs: add Invalidate method and hook it into all the
7881         prop setters.  Calls parent.Refresh for now, but could be maybe be
7882         optimized with an internal method on StatusBar at some point.
7883         [Fixes #76513]
7884
7885 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
7886
7887         * RichTextBox.cs: Implemented get_SelectionColor
7888
7889 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
7890
7891         * ThemeClearlooks.cs:
7892           - Removed dead code
7893           - Draw black button border only if button is Form.AcceptButton
7894           - Draw correct button color for pressed RadioButton if the mouse 
7895             has entered the button
7896           - Updated ProgressBar drawing!
7897           - Updated CPDrawSizeGrip drawing
7898           - Updated StatusBarPanel drawing
7899
7900 2005-12-05  Mike Kestner  <mkestner@novell.com>
7901
7902         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
7903         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
7904
7905 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
7906
7907         * ThemeClearlooks.cs: Initial check-in, activate with
7908           export MONO_THEME=clearlooks
7909         * ThemeEngine.cs: Added ThemeClearlooks
7910
7911 2005-12-03  Mike Kestner  <mkestner@novell.com>
7912
7913         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
7914         [Fixes #76897]
7915
7916 2005-12-02  Jackson Harper  <jackson@ximian.com>
7917
7918         * Form.cs: If the child form has no menu the default main menu is
7919         used as the active menu.
7920
7921 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
7922
7923         * ListBox.cs: Check if any items exist before trying to resolve 
7924           coordinates into items
7925
7926 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
7927
7928         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
7929           as the second color for the background hatch
7930
7931 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
7932
7933         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
7934         * RichTextBox.cs: FormatText position arguments are 1-based, now making
7935           sure that what we pass to FormatText is always 1-based. Fixes #76885
7936
7937 2005-11-29  Miguel de Icaza  <miguel@novell.com>
7938
7939         * NumericUpDown.cs (EndInit): When we are done initializing,
7940         reflect any updates on the UI.
7941
7942 2005-12-02  Jackson Harper  <jackson@ximian.com>
7943
7944         * ImplicitHScrollBar.cs:
7945         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
7946         their container controls.
7947         * TreeView.cs: Use the new implicit scrollbars.
7948
7949 2005-12-02  Jackson Harper  <jackson@ximian.com>
7950
7951         * TreeView.cs: Make top_node internal so the TreeNodeCollections
7952         can play with it.
7953         * TreeNodeCollection.cs: If we remove the topnode we need to
7954         update topnode to the next node in line.
7955         - When clearing nodes go through the same process as removing
7956         them, so they get depareneted and checked if they are top node.
7957
7958 2005-12-01  Jackson Harper  <jackson@ximian.com>
7959
7960         * TreeView.cs: When imagelists are used the image area is
7961         selectable as well as the text.
7962         - If there are no selected nodes select the first one.
7963         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
7964         so don't do it more then we need to.
7965
7966 2005-12-01  Jackson Harper  <jackson@ximian.com>
7967
7968         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
7969         that arrows can be scaled.
7970
7971 2005-12-01  Jackson Harper  <jackson@ximian.com>
7972
7973         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
7974         fail. Patch by Dieter Bremes
7975
7976 2005-11-30  Jackson Harper  <jackson@ximian.com>
7977
7978         * Form.cs: Property is 2.0 only
7979         * PrintDialog.cs: Signature fix.
7980
7981 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
7982
7983         * TextControl.cs: 
7984           - No longer artificially moves text 2 pixels down (now that we have
7985             borders this is no longer needed)
7986           - Added calcs for left, hanging and right indent
7987
7988 2005-11-23  Mike Kestner  <mkestner@novell.com>
7989
7990         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
7991
7992 2005-11-30  Jackson Harper  <jackson@ximian.com>
7993
7994         * MdiChildContext.cs: Set the cloned menus forms, as these don't
7995         get cloned as part of CloneMenu ().
7996         * Menu.cs: Make sure the parent of the items get set correctly
7997         when they are added.  And the owners are notified of the changes.
7998         * Form.cs: Create an ActiveMenu property, so that when MDI is used
7999         we can change the menu being displayed/handled by the form without
8000         changing the menu assosciated with the form.
8001         - Don't let Mdi children draw/handle menus.
8002         
8003 2005-11-30  Jackson Harper  <jackson@ximian.com>
8004
8005         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
8006         a MenuChanged event. Just to make the API a little more
8007         consistent.
8008         * MainMenu.cs:
8009         * MenuItem.cs: Use the new OnMenuChanged
8010         * MdiChildContext.cs: Handle menu merging.
8011         * Form.cs: Implement MergedMenu.
8012         
8013 2005-11-30  Jackson Harper  <jackson@ximian.com>
8014
8015         * Menu.cs: We were misusing Add. Add goes behind the specified
8016         index according to the docs, and does not replace the specified
8017         index. So I added an Insert method.
8018
8019 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
8020
8021         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
8022           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
8023           is for Jackson
8024         * RichTextBox.cs: Added calls to base for DnD events
8025
8026 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
8027
8028         * TextControl.cs:
8029           - Fixed drag-selection related crash; style fixes
8030           - Implemented undo class
8031             o Implemented method to capture document state for specified
8032               range in document tree
8033             o Implemented method to restore captured document state
8034             o Implemented cursor tracking
8035             o Implemented basic undo stack
8036           - Added undo cursor tracking to methods altering cursor location
8037           - Added undo tracking to selection deletion (still missing
8038             other text-altering hookups)
8039         * RichTextBox.cs:
8040           - Added SelectionLength property
8041           - Implemented CanPaste()
8042           - Implemented Paste()
8043           - Added missing protected methods
8044           - Fixed RTF->Document conversion; now uses font index 0 and color 
8045             index 0 as the default font for the parsed text
8046           - Fixed RTF<->Document font size translation
8047           - Fixed RTF generation, now properly handles cross-tag boundaries
8048             for single line selection
8049           - No longer always appends blank line to generated RTF
8050           - Removed TODOs
8051           - Added missing attributes
8052           - Hooked up undo-related methods
8053         * TextBoxBase.cs:
8054           - Implemented Copy()
8055           - Implemented Paste()
8056           - Implemented Cut()
8057           - Fixed caret mis-behaviour on backspace across line-boundaries
8058
8059 2005-11-29  Jackson Harper  <jackson@ximian.com>
8060
8061         * MdiClient.cs: Add a method for activating mdi children. Very
8062         basic right now. I imagine someday it might need more girth.
8063         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
8064         children windows names are added to the menu item.
8065         * ThemeWin32Classic.cs: Draw the arrow if the item is an
8066         mdilist. This happens regardless of whether or not there are any
8067         mdi windows to see in the list, and according to my tests happens
8068         before the items are even added. Also happens if there isn't even
8069         an mdi client to get windows from.
8070
8071 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
8072
8073         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
8074         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
8075
8076 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
8077
8078         * DataGridTableStyle.cs:
8079           - Create always the styles for the missing columns even if they are
8080             provided by the user (not default table style)
8081         * DataGrid.cs:
8082           - Fixes bug 76770
8083           - Fixes SetDataBinding (always re-attach source)
8084           - Fixes SetNewDataSource (only clear styles if they are not for 
8085             this source)
8086          -  Expands OnTableStylesCollectionChanged to handle style refresh 
8087             and remove properly
8088
8089 2005-11-29  Jackson Harper  <jackson@ximian.com>
8090
8091         * FileDialog.cs: Implement missing bits, remove some dead
8092         code.
8093         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
8094         creation of the panel so that the options set on the dialog are
8095         seen when the panel is created.
8096         * TreeView.cs: raise a click when items are clicked.
8097         
8098 2005-11-29  Jackson Harper  <jackson@ximian.com>
8099
8100         * MdiClient.cs: Pass some signature methods through to base.
8101
8102 2005-11-28  Jackson Harper  <jackson@ximian.com>
8103
8104         * ListView.cs: Raise the click event when items are clicked.
8105
8106 2005-11-28  Jackson Harper  <jackson@ximian.com>
8107
8108         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
8109         a nullref.
8110
8111 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
8112
8113         * ThemeNice.cs: - Removed 1 pixel bitmaps
8114           - Use SmoothingMode.AntiAlias where it makes sense
8115             (ScrollButton arrow for example)
8116           - Enhanced Button focus drawing
8117           - Fixed ComboBox drawing (no artefacts anymore, focus
8118             rectangle is back again, reduced size of ComboButton, etc.)
8119           - Fixed RadioButton focus drawing for Appearence.Button
8120           - Slight ScrollButton redesign
8121           - Some LinearGradientBrush size fixes
8122           - GroupBoxes have now rounded edges
8123           - Fixed StatusBar drawing
8124
8125 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
8126
8127         * ThemeNice.cs: - Remove dead code
8128           - use correct background colors for menus, etc.
8129           - Fake pixel drawing with 1 pixel bitmaps
8130
8131 2005-11-24  Jackson Harper  <jackson@ximian.com>
8132
8133         * MdiClient.cs: Size the scrollbars when resizing the window.
8134         - Resize the maximized windows when the client is resized
8135         * Form.cs: Make the child context available
8136         
8137 2005-11-23  Jackson Harper  <jackson@ximian.com>
8138
8139         * MdiChildContext.cs: Don't size windows if they are maximized.
8140
8141 2005-11-23  Mike Kestner  <mkestner@novell.com>
8142
8143         * ContextMenu.cs: use MenuTracker.
8144         * Control.cs: remove menu handle usage.
8145         * Form.cs: remove menu handle usage.
8146         * Hwnd.cs: remove menu handle usage.
8147         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
8148         motion and clicks to the new Tracker handlers.
8149         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
8150         and handle usage.
8151         * MenuAPI.cs: refactored to combine popup and menubar event handling.
8152         Killed the MENU and MENUITEM data types and associated collections
8153         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
8154         MenuTracker class that exposes the leftovers from the old MenuAPI
8155         static methods. Restructured Capture handling so that only one grab is
8156         done for the entire menu hierarchy instead of handing off grabs to
8157         submenus. Tracker now has an invisible control to Capture when active.
8158         * MenuItem.cs: add sizing accessors, kill Create
8159         and handle usage.
8160         * Theme.cs: remove menu handle and MENU(ITEM) usage.
8161         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
8162         MENU(ITEM). remove menu handle usage, use Menu directly.
8163         * XplatUIDriver.cs: remove menu handle usage.
8164         * XplatUIOSX.cs: remove menu handle usage.
8165         * XplatUIWin32.cs: remove menu handle usage.
8166         * XplatUIX11.cs: remove menu handle usage.
8167
8168 2005-11-22  Jackson Harper  <jackson@ximian.com>
8169
8170         * Hwnd.cs: Don't compute the menu size for
8171         DefaultClientRectangle.
8172         - Reenable menu sizes being computed for GetClienRectangle.
8173         * Form.cs: Remove comment of trechery
8174         
8175 2005-11-22  Jackson Harper  <jackson@ximian.com>
8176
8177         * Hwnd.cs: The adjustments for the menu bar are made when it is
8178         attached to the form.
8179
8180 2005-11-19  Jackson Harper  <jackson@ximian.com>
8181
8182         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
8183         (just like on windows).
8184
8185 2005-11-19  Jackson Harper  <jackson@ximian.com>
8186
8187         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
8188         use real buttons anymore because they are in non client area. The
8189         one TODO here is that I need to somehow invalidate a section of
8190         the non client area.
8191
8192 2005-11-18  Jackson Harper  <jackson@ximian.com>
8193
8194         * Control.cs: Put the enum check back in now that MDI doesnt have
8195         to use this to set border styles.
8196         * Form.cs: Only set mdi child windows borders if the handle has
8197         been created.
8198         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
8199         this directly on to the driver.
8200         - Get the move start position before adjusting for the titlebar
8201         height, this fixes the windows "skipping" when they are first
8202         moved.
8203
8204 2005-11-18  Jackson Harper  <jackson@ximian.com>
8205
8206         * XplatUIX11.cs: Just compute the mdi borders separately as they
8207         don't totally match up with normal form borders.
8208
8209 2005-11-18  Jackson Harper  <jackson@ximian.com>
8210
8211         * Control.cs: Set WS_ styles for borders, so that the driver does
8212         not have to retrieve the control instance to figure out what kind
8213         of borders it should have.
8214         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
8215         driver can know its an mdi child easily.
8216         * XplatUIX11.cs: Get the border styles and whether the window is
8217         MDI from the Styles and ExStyles params instead of having to get a
8218         control. This prevents a chicken and egg problem.       
8219
8220 2005-11-18  Jackson Harper  <jackson@ximian.com>
8221
8222         * MdiClient.cs: Fix typo so scrollbars show up correctly.
8223
8224 2005-11-18  Jackson Harper  <jackson@ximian.com>
8225
8226         * MdiClient.cs: Calculate when to add and remove scrollbars
8227         correctly.
8228         * MdiChildContext.cs: Adjust the y position to take the titlebar
8229         into account.
8230         - No height for FormBorderStyle.None
8231
8232 2005-11-18  Jackson Harper  <jackson@ximian.com>
8233
8234         * Control.cs: Allow non enum values to be used for
8235         InternalBorderStyle.  MDI does this to set a special border style.
8236         - New utility methods for converting points to/from client coords
8237         - Add the newly created control to the Controls collection before
8238         updating its style. This way UpdateStyle can walk the control
8239         heirarchy to find the control if needed.
8240         so I don't need to create a new Point object all the time.
8241         * Form.cs: Let MDI windows handle their border styles.
8242         - Set styles on MDI windows so the correct title style is derived.
8243         * MdiChildContext.cs: Move all the painting and window handling
8244         into the non client area.
8245         - Use correct sizing and put correct buttons on frames based on
8246         the FormBorderStyle.
8247         - Notify the mdi client about scrolling
8248         - Need to handle the buttons ourselves now, because they are all
8249         in non client areas and we can't add controls there.
8250         * MdiClient.cs: Halfway to scrolling, this implementation is
8251         somewhat broken though, we need to check to make sure other
8252         windows aren't causing scrolling before removing the bars. Also
8253         the bars need to be drawn on top, maybe I can switch implicit
8254         controls to be on top.
8255         * Hwnd.cs: caption_height and tool_caption_height are now
8256         properties of an hwnd, this way they can be set by the driver
8257         based on the type of window they are.  In X11 the window manager
8258         handles the decorations so caption_height is zero unless its an
8259         MDI window.
8260         - Add 3 pixel borders for MDI windows (0xFFFF).
8261         - Get rid of some code duplication, have DefaultClientRectanle
8262         just call GetClientRectangle.
8263         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
8264         Hwnd now.
8265         - Set border styles differently for mdi windows.
8266         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
8267         Hwnd now.
8268         
8269 2005-11-15  Mike Kestner  <mkestner@novell.com>
8270
8271         * Menu.cs: when adding an item to the collection, if item is already 
8272         parented, remove it from the parent.
8273
8274 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
8275
8276         * X11DesktopColors.cs: Added KDE support
8277
8278 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
8279
8280         * XplatUIWin32.cs: 
8281           - Clipboard methods now can translate Rtf format
8282           - No longer removes clipboard contents whenever a new format is added
8283             to allow placing multiple formats on the clipboard
8284         * Clipboard.cs: Clipboard now supports getting a IDataObject and
8285           will place all formats contained in it onto the clipboard. Also
8286           now cleans the clipboard before placing a new object onto it
8287         * RichTextBox.cs:
8288           - Implemented set_Rtf
8289           - Implemented set_SelectedRtf
8290           - Created InsertRTFFromStream() method to allow single code base
8291             for all properties and methods that insert RTF into document
8292           - Removed debug output
8293         * TextControl.cs:
8294           - Fixed Delete(int) to fix up line numbers
8295           - Fixed ReplaceSelection to combine start and end line
8296           - Fixed serious DeleteChars bug that would leave the document tree
8297             broken
8298           - Improved DumpTree with several logic checks to detect broken
8299             document trees
8300           - Removed debug lines
8301           - Fixed Caret.WordForward/WordBack moving code, now always also 
8302             updates caret.tag (fixes crash when word-selecting across tag
8303             boundaries via keyboard)
8304           - Added Insert() method for inserting multiline text into documents
8305           - Fixed DeleteChars() calculation errors that would cause a broken
8306             tag chain with multiple tag lines
8307           - DeleteChars() no longer crashes on multi-tag lines if not all tags
8308           - Split() no longer moves caret if split is at caret location
8309           - ReplaceSelection() now updates the cursor and re-displays it
8310           - ReplaceSelection() now uses new Insert() method to avoid code
8311             duplication
8312           - FormatText() can now handle formatting partial lines
8313         * TextBoxBase.cs:
8314           - Append now uses new TextControl.Insert() method (this avoids 
8315             duplicate code)
8316           - Implemented Ctrl-X (Cut) (
8317           - Implemented Ctrl-C (Copy)
8318           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
8319             regeneration when pasting text; roundtripping Copy&Paste within
8320             edit control still fails due to some calculation bugs in GenerateRTF)
8321           - The Delete key will now remove the current selection if it is visible
8322         * TextBox.cs: Removed debug lines
8323         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
8324           driver to be initialized and can't therefore be done via a static ctor)
8325
8326 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
8327
8328         * TextControl.cs: Added backend code for finding char arrays and strings
8329         * TextBoxBase.cs:
8330           - Added mouse wheel scroll support
8331           - Added support for VScroll and HScroll events
8332         * RichTextBox.cs:
8333           - Implemented all seven Find() variants
8334           - Implemented GetCharFromPosition()
8335           - Implemented GetCharIndexFromPosition()
8336           - Implemented GetLineFromIndex()
8337           - Implemented GetPositionFromCharIndex();
8338           - Implemented SaveFile for PlainText and UnicodeText
8339           - Fixed set_Font, now setting a new font applies that font to
8340             the whole document
8341           - Implemented generic Document to RTF converter
8342           - Implemented SaveFile for RichText format (still missing unicode
8343             conversion for non-ansi chars)
8344           - Implemented get_Rtf
8345           - Implemented get_SelectedRtf
8346
8347 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
8348
8349         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
8350           to allow any captures to be released before triggering OnClick. This
8351           way a click handler may capture the mouse without interference.
8352         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
8353           This way we send them even though X may not allow a grab (if the window
8354           isn't visible, for example)
8355
8356 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
8357
8358         * DataGridViewRowEventArgs.cs: DataGridView implementation
8359         * DataGridViewElement.cs: DataGridView implementation
8360         * DataGridViewComboBoxCell.cs: DataGridView implementation
8361         * DataGridViewDataErrorContexts.cs: DataGridView implementation
8362         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
8363         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
8364         * ImageLayout.cs: DataGridView implementation
8365         * DataGridViewComboBoxColumn.cs: DataGridView implementation
8366         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
8367         * DataGridViewSelectionMode.cs: DataGridView implementation
8368         * IDataGridViewEditingControl.cs: DataGridView implementation
8369         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
8370         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
8371         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
8372         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
8373         * DataGridViewColumnSortMode.cs: DataGridView implementation
8374         * DataGridView.cs: DataGridView implementation
8375         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
8376         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
8377         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
8378         * Padding.cs: DataGridView implementation
8379         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
8380         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
8381         * DataGridViewRowEventHandler.cs: DataGridView implementation
8382         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
8383         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
8384         * DataGridViewButtonCell.cs: DataGridView implementation
8385         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
8386         * DataGridViewEditMode.cs: DataGridView implementation
8387         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
8388         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
8389         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
8390         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
8391         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
8392         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
8393         * DataGridViewCellEventHandler.cs: DataGridView implementation
8394         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
8395         * DataGridViewCellStyleConverter.cs: DataGridView implementation
8396         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
8397         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
8398         * DataGridViewColumnEventArgs.cs: DataGridView implementation
8399         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
8400         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
8401         * QuestionEventArgs.cs: DataGridView implementation
8402         * IDataGridViewEditingCell.cs: DataGridView implementation
8403         * DataGridViewTriState.cs: DataGridView implementation
8404         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
8405         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
8406         * DataGridViewColumnCollection.cs: DataGridView implementation
8407         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
8408         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
8409         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
8410         * DataGridViewColumn.cs: DataGridView implementation
8411         * DataGridViewCellBorderStyle.cs: DataGridView implementation
8412         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
8413         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
8414         * DataGridViewRow.cs: DataGridView implementation
8415         * DataGridViewImageCellLayout.cs: DataGridView implementation
8416         * DataGridViewImageCell.cs: DataGridView implementation
8417         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
8418         * DataGridViewCheckBoxCell.cs: DataGridView implementation
8419         * DataGridViewHeaderCell.cs: DataGridView implementation
8420         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
8421         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
8422         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
8423         * DataGridViewTextBoxColumn.cs: DataGridView implementation
8424         * QuestionEventHandler.cs: DataGridView implementation
8425         * DataGridViewCellStyleScopes.cs: DataGridView implementation
8426         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
8427         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
8428         * DataGridViewCell.cs: DataGridView implementation
8429         * DataGridViewCellEventArgs.cs: DataGridView implementation
8430         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
8431         * DataGridViewCellStyle.cs: DataGridView implementation
8432         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
8433         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
8434         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
8435         * TextFormatFlags.cs: DataGridView implementation
8436         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
8437         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
8438         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
8439         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
8440         * DataGridViewButtonColumn.cs: DataGridView implementation
8441         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
8442         * HandledMouseEventArgs.cs: DataGridView implementation
8443         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
8444         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
8445         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
8446         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
8447         * DataGridViewRowCollection.cs: DataGridView implementation
8448         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
8449         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
8450         * DataGridViewHitTestType.cs: DataGridView implementation
8451         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
8452         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
8453         * DataGridViewColumnEventHandler.cs: DataGridView implementation
8454         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
8455         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
8456         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
8457         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
8458         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
8459         * DataGridViewContentAlignment.cs: DataGridView implementation
8460         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
8461         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
8462         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
8463         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
8464         * DataGridViewPaintParts.cs: DataGridView implementation
8465         * DataGridViewCellCollection.cs: DataGridView implementation
8466         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
8467         * DataGridViewImageColumn.cs: DataGridView implementation
8468         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
8469         * DataGridViewElementStates.cs: DataGridView implementation
8470         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
8471         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
8472         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
8473         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
8474         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
8475         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
8476         * DataGridViewRowHeaderCell.cs: DataGridView implementation
8477         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
8478         * DataGridViewTextBoxCell.cs: DataGridView implementation
8479         * DataGridViewBand.cs: DataGridView implementation
8480         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
8481         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
8482         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
8483         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
8484         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
8485         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
8486         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
8487         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
8488         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
8489         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
8490         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
8491
8492 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
8493
8494         * ThemeWin32Classic.cs: 
8495           - Draw the outside focus rectangle around buttons
8496           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
8497             doesn't use end caps for every dash of a line anymore. This
8498             workaround ignores the forecolor.
8499
8500 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
8501
8502         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
8503           endian safe.
8504
8505 2005-11-07  Jackson Harper  <jackson@ximian.com>
8506
8507         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
8508
8509 2005-11-07  Jackson Harper  <jackson@ximian.com>
8510
8511         * ScrollableControl.cs: Calculate the maximum and change vars
8512         (more) correctly so that scrollbars appear as a sensible size.
8513
8514 2005-11-04  Jackson Harper  <jackson@ximian.com>
8515
8516         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
8517         collection.
8518         * TreeView.cs: When the tree is sorted null out the top_node so
8519         that it is recalculated.
8520         - Use dotted lines instead of dashed lines to match MS better.
8521
8522 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
8523
8524         * ListView.cs: 
8525           - Implements key search for items. Useful when browsing files with FileDialog
8526           - When changing view mode or when clear the items reset scrollbar positions
8527
8528 2005-11-04  Jackson Harper  <jackson@ximian.com>
8529
8530         * CurrencyManager.cs: Implement the MetaDataChanged event, the
8531         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
8532         as to what the method may do as there is no real way of creating a
8533         derived CurrencyManager and calling the method. 
8534
8535 2005-11-03  Jackson Harper  <jackson@ximian.com>
8536
8537         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
8538         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
8539         method which seems to just be used internally to refresh the tabs.
8540
8541 2005-11-03  Jackson Harper  <jackson@ximian.com>
8542
8543         * TabControl.cs: Implement the remove method. Fix some broken
8544         comments.
8545
8546 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
8547
8548         * DateTimePicker.cs:
8549           - Added missing DateTimePickerAccessibleObject class
8550           - Added missing events
8551           - Added OnFontChanged method
8552         * Form.cs: Added missing attributes
8553         * TreeView.cs: Added missing attributes
8554
8555 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
8556
8557         * GridItemCollection.cs: Fix signatures
8558
8559 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
8560
8561         * XplatUI.cs: Updated build rev/date
8562         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
8563           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
8564         * Application.cs: Trigger context-specific ExitThread events
8565
8566 2005-11-03  Jackson Harper  <jackson@ximian.com>
8567
8568         * Menu.cs:
8569         * MainMenu.cs:
8570         * GridTableStylesCollection.cs:
8571         * Timer.cs:
8572         * TabPage.cs:
8573         * HelpProvider.cs:
8574         * StatusBar.cs:
8575         * MonthCalendar.cs: Signature fixes
8576
8577 2005-11-03  Jackson Harper  <jackson@ximian.com>
8578
8579         * TreeNodeCollection.cs: Remove should not be virtual.
8580         * TreeView.cs: Implement the last of the missing methods.
8581
8582 2005-11-03  Jackson Harper  <jackson@ximian.com>
8583
8584         * TreeNodeConverter.cs: Implement to get off my class-status back.
8585
8586 2005-11-03  Jackson Harper  <jackson@ximian.com>
8587
8588         * TreeView.cs: Hookup the bits for drag and drop.
8589         * TreeNode.cs: Don't cache the tree_view or index anymore, now
8590         that nodes can be moved from tree to tree easily this just causes
8591         all sorts of problems.
8592         * TreeNodeCollection: Don't need to give treenodes an index and
8593         treeview anymore when they are added, these are computed on the
8594         fly. Also make sure to remove a node before its added.
8595
8596 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
8597
8598         * TextControl.cs:
8599           - Added CaretSelection enum
8600           - Added comparison methods to Marker struct, makes selection code
8601             more readable
8602           - Added SelectionStart and SelectionEnd as 'moveable' location for
8603             the CaretDirection enum and handler
8604           - Added selection_prev variable to track optimized invalidation for
8605             word and line selection
8606           - Added SelectionVisible property (returns true if there is a valid 
8607             selection)
8608           - Switched CaretHasFocus to only display the caret if there is no
8609             visible selection
8610           - Avoiding StringBuilder.ToString to retrieve a single char, instead
8611             using the direct character index; should be much faster
8612           - Added various conditional debug statements
8613           - Fixed invalidation calculation for selection ranges
8614           - Added ExpandSelection() method to support word and line selection
8615           - Switched SetSelectionToCaret to use new Marker compare overloads
8616           - Added central IsWordSeparator() method to determine word 
8617             separators/whitespace and FindWordSeparator() to streamline common
8618             usage of IsWordSeparator()
8619         * TextBoxBase.cs:
8620           - Removed unneeded grabbed variable, it was just mirroring
8621             Control.Capture
8622           - No longer firing OnTextChanged event when Text setter is called,
8623             since the base will fire the event for us
8624           - Added handling of Ctrl-Up/Down selection
8625           - Added handling of Shift-Cursorkey selection
8626           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
8627             words
8628           - Added handling of Shift and Ctrl-Shift-Home/End selection
8629           - Removed some debug output
8630           - Added handling for single/double/tripple-click to place caret/
8631             select word/select line respectively (Fixes bug #76031)
8632           - Added support for drag expansion of word/line selection
8633         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
8634           current selection
8635
8636 2005-11-02  Jackson Harper  <jackson@ximian.com>
8637
8638         * X11Dnd.cs: If the drag is going to and from a MWF window just
8639         copy the data instead of sending it out through the X Selection
8640         mechanism.
8641
8642 2005-11-02  Jackson Harper  <jackson@ximian.com>
8643
8644         * X11Dnd.cs:
8645         * XplatUIX11.cs: When in a drag we don't want motion notify
8646         messages to get passed on to the other controls. This prevents
8647         mouse move messages from showing up in the drag source.
8648
8649 2005-11-02  Jackson Harper  <jackson@ximian.com>
8650
8651         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
8652         the correct button is release to end a drag.
8653         * XplatUIX11.cs: Make the button state internal so the drag system
8654         can access it.  Dragging needs to know about all button releases,
8655         not just left button.
8656
8657 2005-11-02  Miguel de Icaza  <miguel@novell.com>
8658
8659         * Form.cs (Icon): If the icon is null, reset the icon to the
8660         default value. 
8661
8662         * Cursor.cs: When writing the AND-mask bitmap do not include the
8663         number of colors, but hardcode those to two (black and white),
8664         fixes the loading of color cursors (Paint Dot Net).
8665
8666         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
8667         turn off autoscaling.
8668
8669         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
8670
8671 2005-11-02  Jackson Harper  <jackson@ximian.com>
8672
8673         * X11Dnd.cs: Make sure to send a status message if the pointer
8674         enters a control that can not accept a drop, otherwise the cursor
8675         isn't updated correctly. Also tried to compress the lines of code
8676         a bit.
8677
8678 2005-11-02  Jackson Harper  <jackson@ximian.com>
8679
8680         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
8681         set actions correctly.  This isn't perfect as XDND and win32 have
8682         some differences on how you allow actions. I'll clear this up by
8683         adding a path for drag from MWF to MWF windows.
8684         * XplatUIX11.cs: Hook into the dnd system.
8685
8686 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
8687
8688         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
8689         previously shown but they are no longer need it. Very obvious when 
8690         browsing files with FileDialog.
8691
8692 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
8693
8694         * Control.cs: We always need to call OnPaintBackground. We pretty much
8695           ignore AllPaintingInWmPaint and always do the painting there, whether 
8696           it's set or not, since we always ignore the WM_ERASEBKGND message 
8697           (which we don't generate on X11). This fixes #76616.
8698         * Panel.cs: Removed unneeded background painting. This happens properly
8699           in Control.cs already
8700
8701 2005-10-31  Mike Kestner  <mkestner@novell.com>
8702
8703         * Menu.cs: Add items to collection before setting their index.
8704         * MenuItem.cs : add range checking with ArgumentException like MS.
8705         [Fixes #76510]
8706
8707 2005-10-31  Jackson Harper  <jackson@ximian.com>
8708
8709         * ListBox.cs: Invalidate if the area is visible at all not just
8710         contained in the visible rect. Fixes unselection of semi visible
8711         items.
8712
8713 2005-10-31  Jackson Harper  <jackson@ximian.com>
8714
8715         * Control.cs: Consistently name the dnd methods. Make them
8716         internal so we can override them to match some MS behavoir
8717         internally.
8718         * Win32DnD.cs: Use the new consistent names.
8719
8720 2005-10-31  Jackson Harper  <jackson@ximian.com>
8721
8722         * TreeView.cs: Don't draw the selected node when we lose focus.
8723
8724 2005-10-31  Jackson Harper  <jackson@ximian.com>
8725
8726         * X11Dnd.cs: We still need to reset the state even though a full
8727         reset isn't being done, otherwise status's still get sent all over
8728         the place.
8729
8730 2005-10-31  Jackson Harper  <jackson@ximian.com>
8731
8732         * Control.cs: Make the dnd_aware flag internal so the dnd
8733         subsystem can check it. Catch exceptions thrown in dnd handlers to
8734         match MS behavoir.
8735         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
8736         * X11Dnd.cs: Handle null data in the converters. Set the XDND
8737         version when sending a XdndEnter. Use the control/hwnd dnd_aware
8738         flags to reduce the number of dnd enters/status's sent.
8739
8740 2005-10-31  Jackson Harper  <jackson@ximian.com>
8741
8742         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
8743
8744 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
8745
8746         * PictureBox.cs: Fixes 76512
8747
8748 2005-10-28  Jackson Harper  <jackson@ximian.com>
8749
8750         * X11Dnd.cs: Early implementation to support winforms being a drag
8751         source for data on X11. Also restructured the converters so they
8752         can go both ways now.
8753         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
8754         
8755 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
8756
8757         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
8758           clipboard requests
8759
8760 2005-10-27  Jackson Harper  <jackson@ximian.com>
8761
8762         * TreeNode.cs: Implement serialization so my DnD examples will work.
8763
8764 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
8765
8766         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
8767           TreeView.cs: Don't dispose objects that are not owned.
8768           
8769 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
8770
8771         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
8772           should retrieve the current cursor and report that, but XplatUI
8773           doesn't (yet) have an interface for that (and I'm not sure I even
8774           can, on X11)
8775         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
8776           until any message loop processing is done (and the WM_SETCURSOR
8777           replaces the cursor to the proper one)
8778         * XplatUIX11.cs: 
8779           - Fixed override behaviour, we can't set the cursor globally on X11, 
8780             just for our windows.
8781           - Invalidating the System.Drawing X11 display handle when we are
8782             shutting down
8783         * Control.cs: Fix to make csc happy
8784
8785 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
8786
8787         * TextBoxBase.cs: 
8788           - get_Text: Add last line (without trailing newline) to returned
8789             value (Fixes 76212)
8790           - get_TextLength: Count last line in returned length
8791           - ToString: Call Text property instead of duplicating code
8792
8793 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
8794
8795         * ImageList.cs: Dispose ImageAttributes objects.
8796
8797 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
8798
8799         * ImageList.cs: Use attribute constructors with less arguments where
8800           possible.
8801
8802 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
8803
8804         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
8805           Use typeof instead of strings when assembly is referenced. Added
8806           some more comments.
8807
8808 2005-10-21  Jackson Harper  <jackson@ximian.com>
8809
8810         * ListView.cs: Raise a double click event. Also tried to somewhat
8811         fix when the selectedindexchanged event is raised. Its still
8812         broken though.
8813
8814 2005-10-21  Jackson Harper  <jackson@ximian.com>
8815
8816         * TreeView.cs: New method to invalidate the plus minus area of a
8817         node without invalidating the whole node (maybe this can be used
8818         in some more places).
8819         * TreeNodeCollection.cs: When adding to an empty node we need to
8820         invalidate its plus minus area so the little block shows up.
8821         
8822 2005-10-21  Jackson Harper  <jackson@ximian.com>
8823
8824         * TreeView.cs: Make sure that when we invalidate a node the bounds
8825         are big enough to cover the selected box and the focus
8826         rectangle. Use a different colour for the lines connecting nodes
8827         so they show up with all themes.
8828
8829 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
8830
8831         * NativeWindow.cs: Don't call anything that could call into the driver,
8832           we might be on a different thread.
8833
8834 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
8835
8836         * Control.cs(Dispose): Since Dispose might run on a different thread,
8837           make sure that we call methods that could call into the driver via
8838           invoke, to avoid thread issues
8839
8840 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
8841
8842         * XplatUI.cs: Removed finalizer
8843         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
8844           not allowing to be called on the finalizer thread.
8845
8846 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
8847
8848         * ImageList.cs:
8849           - Reverted r51889 and r51891.
8850           - Added ImageListItem class that stores unmodified image items and image
8851             properties required to create list images until handle is created.
8852           - Added AddItem and moved image creation logic to AddItemInternal.
8853           - Added CreateHandle method that creates images based on unmodified items.
8854           - Added DestroyHandle that changes state to store unmodified items.
8855           - Add and AddStrip methods no more create handle.
8856           - ReduceColorDepth has no return value.
8857           - Dispose destroys handle.
8858           - Modified other methods to reflect the above changes.
8859           - Implemented key support.
8860           - Added profile 2.0 members and attributes.
8861           - Added private Reset and ShouldSerialize methods that provide the same
8862             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
8863             them as they are private.
8864           - Added some more comments about implementation details.
8865
8866 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
8867
8868         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
8869
8870 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
8871
8872         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
8873
8874 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
8875
8876         * DataGridDrawingLogic.cs: Fixes column hit calcultation
8877         * DataGridColumnStyle.cs: Remove debug message
8878
8879 2005-10-20  Jackson Harper  <jackson@ximian.com>
8880
8881         * TreeView.cs: We can always get input keys regardless of whether
8882         or not editing is enabled. They are used for navigation.
8883
8884 2005-10-20  Jackson Harper  <jackson@ximian.com>
8885
8886         * TreeNode.cs: Use the viewport rect for determining if a node
8887         needs to be moved for visibility. Don't use Begin/End edit. This
8888         calls a full refresh when its done.
8889         * TreeView.cs: New SetBottom works correctly.  Make the viewport
8890         rect property internal so the treenodes can see it. When clicking
8891         on a node we need to ensure that its visible because it might just
8892         be partly visible when clicked.
8893
8894 2005-10-20  Jackson Harper  <jackson@ximian.com>
8895
8896         * TreeNodeCollection.cs: Remove debug code.
8897
8898 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
8899
8900         * Datagrid.cs: Implements column sorting in Datagrid
8901         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
8902
8903 2005-10-20  Jackson Harper  <jackson@ximian.com>
8904
8905         * TreeNodeCollection.cs: Remove items properly. Update the correct
8906         area after removing them.
8907
8908 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
8909
8910         * Datagrid.cs: Should not call base.OnPaintBackground
8911
8912 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
8913
8914         * XplatUIX11.cs (GetMessage):
8915           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
8916             window instead of client window
8917           - Now properly calculates NC_xBUTTONUP message coordinates
8918           - ScreenToMenu now properly calculates it's coordinates of whole 
8919             window, since menus are in the whole window, not in the client
8920             window
8921           - Added WholeToScreen coordinate translation method
8922
8923 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
8924
8925         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
8926           want to return a message, loop back to the beginning of the function
8927           and grab the next real message to process instead.
8928
8929 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
8930
8931         * Splitter.cs: Properly set limits if no filler control is used
8932
8933 2005-10-19  Jackson Harper  <jackson@ximian.com>
8934
8935         * ColorDialog.cs: Don't show the help button if it is not enabled
8936         instead of disabling it (this is what MS does). Don't create the
8937         panel until the dialog is run, otherwise the vars (such as
8938         ShowHelp) are not set yet.
8939
8940 2005-10-19  Jackson Harper  <jackson@ximian.com>
8941
8942         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
8943         are reduced when adding nodes.
8944         * TreeNode.cs:
8945         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
8946         tree.
8947         
8948 2005-10-19  Jackson Harper  <jackson@ximian.com>
8949
8950         * FolderBrowserDialog.cs: End editing our treeview so the window
8951         actually gets refreshed.
8952
8953 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
8954
8955         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
8956           Obsoleted handling of WM_ERASEBKGND, now always draws our background
8957           inside of WM_PAINT
8958
8959 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
8960
8961         * MenuAPI.cs: Returns after Hidding window
8962         * XplatUIX11.cs: Added TODO found while debugging menu issues
8963
8964 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
8965
8966         * XplatUIX11.cs: Do not re-map the whole window when it's size
8967           becomes non-zero unless it's supposed to be actually visible
8968
8969 2005-10-18  Jackson Harper  <jackson@ximian.com>
8970
8971         * TreeView.cs: We don't need to keep a count anymore.
8972         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
8973         use the Grow method.
8974
8975 2005-10-18  Jackson Harper  <jackson@ximian.com>
8976
8977         * TreeNodeCollection.cs: Insert is not supported on arrays, so
8978         implement it manually here.
8979
8980 2005-10-18  Jackson Harper  <jackson@ximian.com>
8981
8982         * ImageList.cs: Dont kill the list when the colour depth is
8983         changed, just change the colour depth of all the images.
8984         - Same goes for setting the image size. Just resize them all
8985         instead of killing the list softly.
8986
8987 2005-10-18  Jackson Harper  <jackson@ximian.com>
8988
8989         * Control.cs: Don't invalidate empty rectangles.
8990
8991 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
8992
8993         * ListViewItem.cs:
8994           - Adds checked item to the Checked/Item lists (where empty before)
8995           - Do not add items to the Selected lists if they are already present
8996         * ListView.cs:
8997           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
8998           - When deleting items make sure that we delete them for the Selected
8999           and Checked list also.
9000
9001 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
9002
9003         * Label.cs: Dispose objects no longer used
9004         * ThemeWin32Classic.cs: Dispose objects no longer used
9005
9006 2005-10-18  Jackson Harper  <jackson@ximian.com>
9007
9008         * TabControl.cs: Don't refresh the whole control when the tabs are
9009         scrolled, we just need to refresh the tab area.
9010
9011 2005-10-17  Jackson Harper  <jackson@ximian.com>
9012
9013         * XplatUIX11.cs: Compress code a little bit. Only calculate the
9014         after handle when we need it.
9015
9016 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
9017
9018         * Control.cs: When the parent size changes, recalculate anchor 
9019           positions. Partial fix for #76462
9020
9021 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
9022
9023         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
9024           drawn. Fixes #76462
9025
9026 2005-10-17  Jackson Harper  <jackson@ximian.com>
9027
9028         * MonthCalendar.cs: Don't create the numeric up down until our
9029         handle is created. Otherwise our handle is created in the
9030         constructor and we don't know if we are a WS_CHILD or WS_POPUP
9031         yet.
9032
9033 2005-10-17  Jackson Harper  <jackson@ximian.com>
9034
9035         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
9036         correctly.
9037
9038 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
9039         * TreeNode.cs : small logical fix (was using local var instead of field)
9040         
9041 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
9042
9043         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
9044
9045 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
9046
9047         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
9048
9049 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
9050
9051         * Control.cs: 
9052           - Re-implemented anchoring code. My first version was really broken.
9053             This fixes bug #76033. Unlike the previous implementation we will
9054             no longer have round errors since all numbers are calculated from
9055             scratch every time. Removed various anchor-related obsolete vars.
9056           - InitLayout no longer causes layout event firing and layout to be 
9057             performed
9058
9059 2005-10-16  Jackson Harper  <jackson@ximian.com>
9060
9061         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
9062         which was broken).
9063
9064 2005-10-16  Jackson Harper  <jackson@ximian.com>
9065
9066         * TabControl.cs: Remove debug code.
9067
9068 2005-10-16  Jackson Harper  <jackson@ximian.com>
9069
9070         * XEventQueue.cs: Increase the default queue size (very simple
9071         apps needed to grow the queue).
9072         * Hwnd.cs: No finalizer so we don't need to suppress
9073         finalization. Compute the invalid area manually so a new rectangle
9074         does not newto be created.
9075         * ScrollableControl.cs: Don't set any params (otherwise visibility
9076         isn't set correctly).
9077         * MdiChildContext.cs: New constructor takes the mdi parent so it
9078         doesn't have to be computed and avoids a crash on windows. Draw
9079         the window icon properly, and allow the text to be seen.
9080         * Form.cs: Use new MdiChildContext constructor. Make sure the
9081         child context isn't null in wndproc.
9082         * TabControl.cs: Don't set focus, this is muddling keyboard
9083         behavoir. Expand the tab rows when a window size increase will
9084         allow extra tabs to be seen. Don't allow tabs smaller than the
9085         width of a window to be scrolled out of view.
9086         * TreeNode.cs:
9087         * TreeView.cs: Use measure string to calculate a nodes width, the
9088         width is cached and only updated when the text or the font is
9089         changed. Don't check for expand/collapse clicks on the first level
9090         nodes if root lines are disabled.
9091         
9092 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
9093
9094         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
9095
9096 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
9097
9098         * DataGridBoolColumn.cs: fixes warning
9099
9100 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
9101
9102         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
9103         to match more to match more precisely the MS Net behavior
9104
9105 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
9106
9107         * Hwnd.cs: Added field to track if window is mapped
9108         * XplatUIX11.cs: 
9109           - Unmap windows if they become 0-size, re-map when 
9110             they are >0 again; fixes #76035
9111           - Re-set our error handler after initializing X11Desktop
9112             to override any error handlers Gtk or whatever was called
9113             may have set.
9114
9115 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
9116
9117         * CheckedListBox.cs: Removed unused vars
9118         * ListView.cs: Fixed signatures
9119         * RichTextBox.cs: Removed unused vars
9120         * TextBoxBase.cs: Removed unused vars
9121         * XplatUIWin32.cs: Removed unused vars
9122         * XplatUIX11.cs: Removed unused vars
9123         * XplatUI.cs: Updated version and date to latest published
9124
9125 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
9126
9127         * Cursor.cs: Added private .ctor to work around a bug in
9128           resourceset (Thanks to Geoff Norton for the help on this)
9129         * SplitterEventArgs.cs: Made fields accessible so we don't
9130           waste boatloads of objects and can reuse the same one
9131           in Splitter
9132         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
9133           any captions and borders when generating screen coordinates
9134         * Splitter.cs: Reimplemented control, now fully complete, uses
9135           rubberband drawing, supports and obeys all properties, has
9136           proper cursors
9137
9138 2005-10-13  Miguel de Icaza  <miguel@novell.com>
9139
9140         * Form.cs (Form): Setup default values for autoscale and
9141         autoscale_base_size;  Make these instance variables, not static
9142         variables. 
9143
9144         (OnLoad): on the first load, adjust the size of the form.
9145
9146 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
9147
9148         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
9149           width argument to DrawReversibleRectangle()
9150         * XplatUIWin32.cs, XplatUIX11.cs: 
9151           - Implemented width for DrawReversibleRectangle()
9152           - Added logic to DrawReversibleRectangle that recognizes a zero
9153             width or height and only draws a line in that situation
9154         
9155 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
9156
9157         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
9158         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
9159         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
9160           method (it uses our FosterParent window to get a graphics context)
9161
9162 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
9163
9164         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
9165           and SetWindowBackground methods
9166         * Control.cs:
9167           - Setting proper ControlStyles
9168           - We no longer call XplatUI.SetWindowBackground and XplatUI.
9169             EraseWindowBackground, instead we draw the window background
9170             ourselves in PaintControlBackground. This behaviour is
9171             required to match MS, where, when OnPaintBackground is not
9172             called, the background is not drawn.
9173           - Removed unneeded Refresh() in set_Text
9174         * Hwnd.cs: Dropped the ErasePending support. No longer needed
9175         * XplatUIX11.cs:
9176           - Created DeriveStyles method to translate from CreateParams to
9177             FormBorderStyle and TitleStyle, also handles BorderStyle (which
9178             matches FormBorderStyle enum values)
9179           - Consolidated SetHwndStyles and CalculateWindowRect border/title
9180             style calculations into single DeriveStyles method
9181           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
9182             from redrawing the whole window on any resize or expose.
9183           - Fixed CreateWindow usage of SetWindowValuemask. Before not
9184             all styles were applied to our whole/client window appropriately
9185           - Removed EraseWindowBackground() and SetWindowBackground() methods
9186           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
9187             no longer clear/redraw the background through X
9188           - Removed handling of erase_pending bit, we have no use for it (or
9189             so it seems)
9190         * XplatUIOSX.cs:
9191           - Removed generation and handling of WM_ERASEBKGND message
9192           - Removed EraseWindowBackground() and SetWindowBackground() methods
9193           - Removed handling of hwnd.ErasePending flag
9194         * XplatUIWin32.cs:
9195           - Removed EraseWindowBackground() and SetWindowBackground() methods
9196           - We no longer call EraseWindowBackground on PaintEventStart, we 
9197             ignore the fErase flag, erasing is handled in Control in the
9198             background handler
9199         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
9200           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
9201           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
9202           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
9203           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
9204           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
9205           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
9206
9207 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
9208
9209         * PropertyGrids.cs: Get sub properties
9210         * PropertyGridView.cs: Fix drawing code
9211
9212 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
9213
9214         * ListBox.cs: Fixes 76383
9215
9216 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
9217
9218         * DataGridTextBoxColumn.cs: Sets location and size before attachment
9219         * ThemeWin32Classic.cs: Fixes border drawing and calculations
9220         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
9221
9222
9223 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
9224
9225         * ComboBox.cs: Fixes border drawing
9226
9227 2005-10-10  Miguel de Icaza  <miguel@novell.com>
9228
9229         * MimeIcon.cs: Ignore errors if the file can not be read.
9230
9231 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
9232
9233         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
9234          - Fixed border calculations
9235          - Fixed horizontal scrolling in single column listboxes
9236          - Fixed drawing issues
9237
9238 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
9239
9240         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
9241           FormBorderStyle enum
9242         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
9243           code to determine FormBorderStyles from CreateParams
9244         * Form.cs:
9245           - Fixed bug where we'd set the wrong window styles if we were
9246             not creating an MDI window
9247           - Added call to XplatUI.SetBorderStyle when form borders are set
9248         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
9249         * Hwnd.cs:
9250           - Removed obsolete edge style
9251           - Switched from BorderStyle to FormBorderStyle
9252         
9253 2005-10-10  Jackson Harper  <jackson@ximian.com>
9254
9255         * Form.cs: Use the property to get the window handle instead of
9256         accessing it directly. Prevents a null reference exception.
9257
9258 2005-10-10  Jackson Harper  <jackson@ximian.com>
9259
9260         * TreeView.cs: Don't adjust the rect given to DrawString now that
9261         our libgdiplus draws correctly.
9262
9263 2005-10-08  Jackson Harper  <jackson@ximian.com>
9264
9265         * TreeView.cs: Don't try to find the clicked on node if there are
9266         no nodes in the tree.
9267
9268 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
9269
9270         * RichTextBox.cs:
9271
9272           restore
9273
9274 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
9275
9276         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
9277           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
9278           ErrorProvider.cs:
9279           Use ResPool for brushes and dispose System.Drawing objects that
9280           are not used anymore.
9281
9282 2005-10-07  Jackson Harper  <jackson@ximian.com>
9283
9284         * MdiChildContext.cs: Use the new borders instead of drawing them
9285         ourselves.
9286
9287 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
9288
9289         * Calling UpdateBounds after changing the window's BorderStyle 
9290         since the style can change the ClientSize
9291
9292 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
9293
9294         * Control.cs: Made PaintControlBackground virtual
9295         * Panel.cs: Overriding PaintControlBackground instead of using paint
9296           event; paint event method was interfering with 'real' users of the
9297           event.
9298
9299 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
9300
9301         * ThemeWin32Classic.cs: remove border drawing since it is handled
9302         by the base control class now and was causing double border drawing.
9303
9304 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
9305
9306         * Panel.cs: Redraw our background on paint. Not a pretty solution,
9307           but it does seem to match MS behaviour. This fixes bug #75324
9308
9309 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
9310
9311         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
9312           somewhat hackish looking
9313
9314 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
9315
9316         * TextBoxBase.cs:
9317           - We now accept Enter even if AcceptEnter is false, if the containing
9318             form does not have an AcceptButton configured (fixes bug #76355)
9319           - Calculations are now fixed to no longer use Width/Height, but
9320             ClientSize.Width/Height, since we now support borders (this was
9321             a result of fixing borders and therefore bug #76166)
9322           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
9323             true (fixes bug #76354)
9324         
9325 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
9326
9327         * Control.cs: 
9328           - Defaulting BorderStyle and setting it in XplatUI when our window 
9329             is created
9330           - Added enum check to InternalBorderStyle setter
9331         * XplatUIX11.cs: 
9332           - Added drawing of window borders
9333           - Now properly calculates WM decorations offset for toplevel 
9334             windows (fixes bug #74763)
9335         * XplatUIWin32.cs: 
9336           - Implemented BorderStyles for windows (we're letting win32 draw 
9337             the border for us)
9338           - Fixed the signature for SetWindowLong
9339         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
9340           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
9341           setting borders
9342         * UpDownBase.cs: Remove drawing of borders, this is handled by
9343           the driver, outside the client area
9344         * ListView.cs: Removed bogus border calculations. The control should
9345           be oblivious to borders, since those are not part of the client
9346           area. 
9347         * X11DesktopColors.cs: Commented out (currently) unneeded variables
9348         * ThemeWin32Classic.cs: Removed border calculations from ListView 
9349           drawing code
9350
9351 2005-10-06  Jackson Harper  <jackson@ximian.com>
9352
9353         * MdiChildContext.cs: Clear out the old virtual position remove
9354         all the unneeded calls to CreateGraphics.
9355
9356 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
9357
9358         * TextControl.cs: Use proper color for highlighted text; fixes #76350
9359
9360 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
9361
9362         * Form.cs: 
9363           - Added loading and setting of our new default icon
9364           - Only set icon if window is already created
9365
9366 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
9367
9368         * Label.cs:
9369           - Do not explicitly set the foreground and background colors, to
9370             allow inheriting from parents (fixes #76302)
9371           - Use Control's InternalBorderStyle property to deal with borders
9372
9373 2005-10-06  Jackson Harper  <jackson@ximian.com>
9374
9375         * MdiChildContext.cs: Use the new xplatui function to draw a
9376         reversible rect.
9377
9378 2005-10-06  Jackson Harper  <jackson@ximian.com>
9379
9380         * Form.cs: Add the parent before creating the child context cause
9381         we need the parent when setting up the child.
9382
9383 2005-10-06  Jackson Harper  <jackson@ximian.com>
9384
9385         * FolderBrowserDialog.cs: redo the tree population code so a
9386         second thread isn't used. Should be a lot faster and more stable
9387         now.
9388
9389 2005-10-05  Jackson Harper  <jackson@ximian.com>
9390
9391         * TreeView.cs: There are no expand/collapse boxes if the node has
9392         no children.
9393
9394 2005-10-05  Jackson Harper  <jackson@ximian.com>
9395
9396         * X11DesktopColors.cs: Get menu colours for the gtk theme.
9397
9398 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
9399
9400         * FileDialog.cs: Fix InitialDirectory
9401
9402 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
9403
9404         * ComboBox.cs:
9405                 - Fixes changing between styles
9406                 - Fixes simple mode
9407                 - Fixes last item crashing when navigating with keyboard
9408
9409 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
9410
9411         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
9412
9413 2005-10-05  Jackson Harper  <jackson@ximian.com>
9414
9415         * TreeView.cs: If updating the root node do a full refresh.
9416         * TreeNode.cs: The root node should be expanded by default. Also
9417         added a utility prop to tell if we are the root node.
9418         * TreeNodeCollection.cs: Only refresh if the node we are being
9419         added to is expanded. Also added a comment on a potential
9420         optimization.
9421         
9422 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
9423
9424         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
9425           in dispose method. Fixes #76330
9426
9427 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
9428
9429         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
9430
9431                 - Implements vertical and horizontal scrolling using XplatUI
9432                 - Fixes keyboard navagation
9433                 - Fixes EnsureVisible
9434                 - Drawing fixes
9435                 - Handles and draws focus properly
9436
9437
9438 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
9439
9440         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
9441           Create handle. NET_2_0: Destroy handle when value is null.
9442
9443 2005-10-03  Jackson Harper  <jackson@ximian.com>
9444
9445         * ScrollBar.cs: My last scrollbar patch was broken. This is a
9446         revert and a new patch to prevent the thumb from refreshing so
9447         much.
9448
9449 2005-10-02  Jackson Harper  <jackson@ximian.com>
9450
9451         * ScrollBar.cs: Don't update position if it hasn't actually
9452         changed. This occurs when you hold down the increment/decrement
9453         buttons and the thumb gets to the max/min.
9454
9455 2005-10-01  Jackson Harper  <jackson@ximian.com>
9456
9457         * Form.cs:
9458         * MdiChildContext.cs:
9459         * MdiClient.cs: Implement ActiveMdiChild in Form.
9460
9461 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
9462
9463         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
9464
9465 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
9466
9467         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
9468           be found
9469
9470 2005-09-30  Jackson Harper  <jackson@ximian.com>
9471
9472         * ListBox.cs: Don't do a full refresh unless some data has
9473         actually changed.
9474
9475 2005-09-30  Jackson Harper  <jackson@ximian.com>
9476
9477         * TreeView.cs: Make sure that the checkboxes size is factored in
9478         even when not visible.
9479
9480 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
9481
9482         * FileDialog.cs: Fix Jordi's build break
9483
9484 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
9485
9486         * FileDialog.cs: 
9487                 - Use standard the Windows colours for the combobox as espected
9488                 - Dispose objects that use resouces when no longer need them
9489
9490 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
9491
9492         * X11DesktopColors.cs: Initial incomplete implementation
9493         * XplatUIX11.cs: Added call to initialize X11DesktopColors
9494
9495 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
9496
9497         * Theme.cs: 
9498           - Switched Theme color names to match the names defined in 
9499             System.Drawing.KnownColors. Life's hard enough, no need to make 
9500             it harder.
9501           - Added setters to all theme color properties so themes can set
9502             their color schemes. The setters also propagate the color changes
9503             to System.Drawing.KnownColors via reflection
9504         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
9505           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
9506           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
9507           use the new, more logical theme color names
9508         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
9509           post-NT colors
9510         * ThemeWin32Classic.cs:
9511           - Removed code to set the old classic Windows colors. Instead it
9512             now relies on the colors returned by System.Drawing.KnownColors
9513             which will be either modern static colors (Unix) or colors
9514             read from the user's configuration (Win32)
9515           - Updated to use the new, more logical theme color names
9516           - Switched DataGrid drawing code to use only Theme colors instead of
9517             a mix of System.Drawing.KnownColors and Theme colors
9518           - DrawFrameControl(): Removed code that fills the button area, the
9519             fill would overwrite any previous fill done by a control. This
9520             fixes bug #75338 
9521           - Added DrawReversibleRectangle() stub
9522         * ScrollableControl.cs: Set visible state to false when scrollbars
9523           are removed (pdn fix)
9524         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
9525           DrawReversibleRectangle() method to allow drawing primitive 
9526           'rubber bands'
9527         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
9528
9529 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
9530
9531         * ImageList.cs: Add(Icon): Create handle.
9532
9533 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
9534
9535         * ListView.cs:
9536         * ThemeWin32Classic.cs:
9537                 - Fixes detail mode
9538                 - Sets clippings
9539                 - Issues with drawing
9540
9541 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
9542
9543         * ImageList.cs: Moved RecreateHandle back to ImageList as event
9544           source has to be the ImageList.
9545
9546 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
9547
9548         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
9549
9550 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
9551
9552         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
9553
9554 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
9555
9556         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
9557
9558 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
9559         * GridItem.cs: Fixed TODOs
9560         * GridItemCollection.cs: Added ICollection interface
9561
9562 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
9563
9564         * ImageList.cs: Resize icons when needed.
9565
9566 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
9567
9568         * ListViewItem.cs
9569                 - Fixes GetBounds and returns on screen rects
9570         * ListView.cs:
9571                 - Fixes vertical and horzintal scrolling of items
9572         * ThemeWin32Classic.cs:
9573                 - Fixes drawing
9574                 
9575 2005-09-29  Raja R Harinath  <harinath@gmail.com>
9576
9577         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
9578
9579 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
9580
9581         * ImageList.cs: Added comments about handle creation. Moved Handle,
9582           HandleCreated and OnRecreateHandle implementations to ImageCollection.
9583           Handle is created in Add methods.
9584
9585 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
9586          
9587         * DataGridDrawingLogic.cs: 
9588                 - Takes rows into account on Colum calculations
9589                 - Returns the column when clickig
9590         * DataGrid.cs:
9591                 - Fixes default HitTestInfo values
9592                 - Fixes HitTestInfo.ToString
9593                 - Fixes ResetBackColor          
9594         
9595 2005-09-28  Jackson Harper  <jackson@ximian.com>
9596
9597         * MdiChildContext.cs: Obey rules for fixed sized windows (no
9598         sizing or cursor changes). Also added some temp code to draw the
9599         titlebars text (Makes dev a little easier).
9600
9601 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
9602
9603         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
9604
9605 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
9606          
9607         * ListBox.cs: Fixes bug 76253
9608
9609 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
9610
9611         * ImageList.cs: Added comments about the current implementation. Added
9612           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
9613           Format32bppArgb to preserve transparency and can use Graphics.FromImage
9614           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
9615           with Bitmap.LockBits for better performance. Revised the whole file to
9616           match MS.NET behaviour and provide better performance. Non-public
9617           interface members are calling public members even when they throw
9618           NotSupportedException for better maintainability. Moved ColorDepth,
9619           ImageSize, ImageStream and TransparentColor implementations to
9620           ImageCollection for better performance as these properties are not used
9621           by ImageList.
9622         * ImageListStreamer.cs: Added a new internal constructor that takes an
9623           ImageList.ImageCollection and serializes Images based on
9624           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
9625           match ImageList property name.
9626
9627 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
9628
9629         * ListBox.cs: Fixes IndexFromPoint for last item
9630
9631 2005-09-27  Jackson Harper  <jackson@ximian.com>
9632
9633         * Form.cs: Set the position of new mdi children correctly.
9634
9635 2005-09-27  Jackson Harper  <jackson@ximian.com>
9636
9637         * MdiClient.cs: New mdi children need to be added to the back of
9638         the controls collection so the zorder is set correctly. Also add a
9639         count of all the child windows that have been created.
9640
9641 2005-09-27  Jackson Harper  <jackson@ximian.com>
9642
9643         * Form.cs (CreateParams): Setup MDI forms correctly.
9644
9645 2005-09-27  Jackson Harper  <jackson@ximian.com>
9646
9647         * MdiChildContext.cs:
9648         * MonthCalendar.cs:
9649         * UpDownBase.cs:
9650         * ListBox.cs:
9651         * ListView.cs:
9652         * TextBoxBase.cs:
9653         * TreeView.cs:
9654         * ScrollableControl.cs:
9655         * ComboBox.cs: Add implicit controls using the new implict control
9656         functionality in ControlCollection. Also try to block multiple
9657         control add in a suspend/resume layout to save some cycles.
9658         
9659 2005-09-27  Jackson Harper  <jackson@ximian.com>
9660
9661         * Control.cs: Add functionality to the controls collection to add
9662         'implicit controls' these are controls that are created by the
9663         containing control but should not be exposed to the user. Such as
9664         scrollbars in the treeview.
9665         * Form.cs: The list var of the ControlsCollection is no longer
9666         available because of the potential of implicit controls getting
9667         ignored by someone accessing the list directly.
9668
9669 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
9670
9671         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
9672           loose it's parent. (Fixed bug introduced in r49103 when we added
9673           setting the child parent to null on Remove)
9674
9675 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
9676
9677         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
9678         * Splitter.cs: Added missing attributes for BorderStyle property.
9679         * TextBoxBase.cs: Marked Calculate* methods internal.
9680         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
9681         MS.NET.
9682
9683 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
9684          
9685         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
9686
9687 2005-09-25  Jackson Harper  <jackson@ximian.com>
9688
9689         * TreeView.cs: Update the node bounds correctly regardless of
9690         whether the node is visible.
9691
9692 2005-09-25  Jackson Harper  <jackson@ximian.com>
9693
9694         * ImageList.cs: Don't dispose the image after it is added to the
9695         image list. Only reformat images that need to be resized.
9696
9697 2005-09-25  Jackson Harper  <jackson@ximian.com>
9698
9699         * ImageList.cs: Don't set the format when changing the image.
9700
9701 2005-09-25  Jackson Harper  <jackson@ximian.com>
9702
9703         * TreeView.cs: We can't just assume the node has a font. Use the
9704         treeviews font if no node font is available.
9705
9706 2005-09-25  Jackson Harper  <jackson@ximian.com>
9707
9708         * TreeView.cs: Allow the scrollbars to be reset with negative
9709         values.
9710         - Don't add scrollbars to negative sized windows.
9711
9712 2005-09-23  Jackson Harper  <jackson@ximian.com>
9713
9714         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
9715         old Mono.Posix. Also remove some stray code that shouldn't have
9716         been committed.
9717
9718 2005-09-23  Jackson Harper  <jackson@ximian.com>
9719
9720         * TreeView.cs: Attempt at proper sizing of the horizontal
9721         scrollbar. Also don't resize the scrollbars unless they are
9722         visible.
9723
9724 2005-09-23  Jackson Harper  <jackson@ximian.com>
9725
9726         * TreeView.cs: We don't need to expand the invalid area when the
9727         selection changes, as this is all drawn in the node's bounding
9728         box. The area needs to be expanded (previous typo was contracting
9729         it) when the focus rect moves.
9730
9731 2005-09-23  Jackson Harper  <jackson@ximian.com>
9732
9733         * TreeView.cs: Display the selection box under the correct
9734         circumstances. We were rendering white text with no selection box
9735         before.
9736
9737 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
9738
9739         * TextControl.cs(Split): Now updates selection start/end if it points 
9740           into a line that's being split. Fixes a FIXME and bug #75258
9741
9742 2005-09-23  Jackson Harper  <jackson@ximian.com>
9743
9744         * Binding.cs:
9745         * ListControl.cs: Don't use the path when retrieving binding
9746         managers from the binding context. My bat sense tells me that the
9747         path is only used on insertion.
9748
9749 2005-09-22  Jackson Harper  <jackson@ximian.com>
9750
9751         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
9752
9753 2005-09-22  Jackson Harper  <jackson@ximian.com>
9754
9755         * Splitter.cs: There are special cursors used for splitting.
9756         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
9757
9758 2005-09-22  Jackson Harper  <jackson@ximian.com>
9759
9760         * Splitter.cs: Change the cursor appropriately when the splitter
9761         is moused over, so the user actually knows there is a splitter
9762         there.
9763
9764 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
9765
9766        * Label.cs : Fix ToString method to give same output as MS.NET
9767
9768 2005-09-22  Jackson Harper  <jackson@ximian.com>
9769
9770         * TreeView.cs: Create the scrollbars when the handle is created
9771         and add them right away, just make them invisble. Also account for
9772         the window being shrunk vertically to the point that the vert
9773         scrollbar needs to be added.
9774         - Remove some 0.5 adjustments to get around anti aliasing issues.
9775         
9776 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
9777          
9778         * MainMenu.cs: Fixes default value
9779         * MenuItem.cs: Fixes default value
9780
9781 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
9782
9783         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
9784
9785 2005-09-21  Jackson Harper  <jackson@ximian.com>
9786
9787         * Control.cs: Don't try to set the border style on the window if
9788         it hasn't been created. When the window is created the border
9789         style will be used.
9790
9791 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
9792
9793         * Control.cs (Update): Don't call XplatUI if we don't have a
9794           window handle yet
9795
9796 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
9797
9798         * ContainerControl.cs: Instead of throwing an exception, print
9799           a one-time warning about Validate not being implemented
9800         * XplatUIWin32.cs: Removed debug output
9801
9802 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
9803
9804         * Control.cs: Only set XplatUI background if we expect the windowing
9805           system to handle the background. This stops controls that draw their
9806           own background from flickering
9807
9808         * XplatUIX11.cs: Support custom visuals and colormaps for window 
9809           creation. This allows, amongst other things, using MWF X11 windows 
9810           with OpenGL.
9811
9812 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
9813
9814         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
9815           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
9816           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
9817           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
9818           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
9819           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
9820           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
9821           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
9822           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
9823           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
9824           GridColumnStylesCollection.cs, 
9825           IDataGridColumnStyleEditingNotificationService.cs,
9826           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
9827           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
9828           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
9829           TreeNodeCollection.cs, AmbientProperties.cs, 
9830           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
9831           DataObject.cs, ErrorProvider.cs, Splitter.cs,
9832           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
9833           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
9834           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
9835           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
9836           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
9837           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
9838           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
9839           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
9840           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
9841           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
9842           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
9843           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
9844           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
9845           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
9846           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
9847           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
9848           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
9849           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
9850           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
9851           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
9852           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
9853           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
9854           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
9855           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
9856           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
9857           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
9858           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
9859           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
9860           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
9861           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
9862           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
9863           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
9864           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
9865           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
9866           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
9867
9868 2005-09-21  Jackson Harper  <jackson@ximian.com>
9869
9870         * TreeNode.cs: Call Before/After Expand not Collapse when
9871         expanding.
9872
9873 2005-09-20  Jackson Harper  <jackson@ximian.com>
9874         
9875         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
9876
9877 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
9878          
9879         * ListViewItem.cs:
9880                 - Fixes bug 76120
9881                 - Fixes proper storing of subitems
9882                 - Fixes not updated items
9883
9884 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
9885
9886         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
9887           things if our window handle isn't created yet. Also disabled 
9888           debug for TextBoxBase
9889
9890 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
9891
9892         * MenuAPI.cs: Remove filtering of events to allow menu usage
9893
9894 2005-09-20  Miguel de Icaza  <miguel@novell.com>
9895
9896         * Cursor.cs: Allow null to be passed to Cursor.Current.
9897
9898 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
9899
9900         * ThemeWin32Classic.cs:
9901           - Change some private methods/fields to protected virtual so that 
9902             they can be accessed and overriden in derived classes
9903           - First refactoring of some methods. Derived themes now don't 
9904             need to duplicate the complete code from ThemeWin32Classic
9905         * ThemeNice.cs:
9906           - Added nice StatusBar
9907           - Derive from ThemeWin32Classic and not Theme
9908           - Removed duplicate ThemeWin32Classic code
9909
9910 2005-09-20  Miguel de Icaza  <miguel@novell.com>
9911
9912         * Control.cs (ControlCollection.Add): If the value null is passed
9913         the control is ignored. 
9914
9915         Optimize this loop.
9916
9917 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
9918
9919         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
9920           PostQuitMessage state.
9921         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
9922
9923 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
9924
9925         * Application.cs: Our constructor will never get called, move 
9926           initialization to fields; fixes bug #75933
9927
9928 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
9929
9930         * FileDialog.cs :
9931                 - Allow files to be selected properly using file name
9932                 combo box.
9933                 - Add ability to change diretory (absolute / relative)
9934                 using file name combo box.
9935
9936 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
9937          
9938         * ListBox.cs: 
9939                 - Fixes Multicolumn listboxes item wrong calculations
9940                 - Allows to click when only one item is in the listbox
9941                 - Fixes crash when no items using keyboard navigation
9942
9943 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
9944
9945         * ComboBox.cs: Reverted almost everything from the latest patch which
9946           broke ComboBox
9947
9948 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
9949         
9950         * ToolTip.cs:
9951                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
9952         * ComboBox.cs:
9953                 - When DropDownStyle is Simple, it does not show scrollbar 
9954                 to the last item of the list.
9955                 - When DropDownStyle is Simple, it crashed when the list was 
9956                 scrolled down with the down cursor key.
9957                 - Fixed a bug that when DropDownStyle is DropDownList, the 
9958                 selected item was not shown.
9959                 - The position of the selected item was not preserved when 
9960                 the next dropdown happened.
9961         * ThemeWin32Classic.cs:
9962                 - Items were wrapped at the right end.
9963         * CheckedListBox.cs:
9964                 - Fixed Add method
9965         * ListBox.cs:
9966                 - Items should be fully shown.
9967                 - When resizing and vertical scrollbar disappeared, the item 
9968                 of index 0 should be on the top of the list.
9969                 - GetItemRectangle should consider the size of ver. scrollbar
9970         * StatusBar.cs:
9971                 - SizingGrip area should not be allocated when it is not 
9972                 displayed.
9973                 - Now it reflects MinWidth of the containing panel and 
9974                 fixed a crash that happens when its width becomes so small.
9975
9976 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
9977
9978         * CheckedListBox.cs: Fixes bug 76028
9979         * ListBox.cs: Fixes bug 76028
9980
9981 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
9982
9983         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
9984         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
9985
9986 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
9987
9988         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
9989
9990 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
9991
9992         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
9993
9994 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
9995
9996         * IRootGridEntry.cs: Added
9997         * PropertyGridCommands.cs: Added
9998         * PropertiesTab.cs: Added missing methods and property
9999         * PropertyGridView.cs: Made class internal
10000         * PropertyGridTextBox.cs: Made class internal
10001
10002 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
10003
10004         * MimeIcon.cs: Try to check some other environment variables
10005           if "DESKTOP_SESSION" returns "default"
10006
10007 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
10008
10009         * ThemeNice.cs: Corrected background colors (e.g. menus)
10010         * ColorDialog.cs: Use correct background colors for controls
10011
10012 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
10013
10014         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
10015
10016 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
10017
10018         * RichTextBox.cs: Added initial implementation
10019         * lang.cs: Removed. Was accidentally checked in long time ago
10020         * TODO: Removed. Contents were obsolete
10021
10022 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
10023                                                                                 
10024         * PropertiesTab.cs : Added
10025
10026 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
10027                                                                                 
10028         * PropertyGrid.cs : Update
10029         * PropertyGridView.cs : Update
10030         * System.Windows.Forms.resx : Added images and strings
10031
10032 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
10033
10034         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
10035  
10036 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
10037
10038         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
10039           a busy loop right after the Ungrab the X11 display is otherwise 
10040           blocked
10041
10042 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
10043
10044         * ThemeWin32Classic.cs: Optimise the use of clipping
10045
10046 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
10047
10048         * DataGrid.cs: fixes recursion bug
10049
10050 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
10051
10052         * ThemeNice.cs: 
10053           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
10054           - Cleanup
10055
10056 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
10057
10058         * ThemeNice.cs: Draw nice ProgressBars
10059
10060 2005-09-01  Miguel de Icaza  <miguel@novell.com>
10061
10062         * VScrollBar.cs: Another buglet found by Aaron's tool. 
10063
10064         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
10065         bug finder.
10066
10067 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
10068
10069         * ThemeNice.cs:
10070           - Added nicer menu drawing
10071           - Updated DrawTab
10072           - some refactoring
10073
10074 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
10075
10076         * CreateParams.cs (ToString): Made output match MS
10077         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
10078             handle is already created (to avoid forcing window creation)
10079         * XplatUIX11.cs: Set window text to caption after creating window,
10080           in case Text was set before window was created
10081         * Form.cs: Use this.Text instead of a static string as caption
10082
10083 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
10084
10085         * NotifyIcon.cs: Don't set the window to visible; this screws
10086           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
10087           OnPaint without a bitmap)
10088         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
10089           happen very often anyway; we could add the check to the WM_PAINT 
10090           event generation code
10091
10092 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
10093
10094         * NotifyIcon.cs: Fill the icon area with a background color, to 
10095           avoid 'residue' when transparent icons are drawn
10096         * XplatUIX11.cs:
10097           - Handle whole_window == client_window when destroying windows
10098           - SystrayAdd(): Set client_window to whole_window value to
10099             get mouse and other events passed to NotifyIcon
10100
10101 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
10102
10103         * Form.cs: Set proper default for Opacity property
10104         * NotifyIcon.cs:
10105           - ShowSystray(): Don't bother creating telling the OS
10106             about the systray item if no icon is provided
10107           - Now handles WM_NCPAINT message to deal with whole/client window
10108             split
10109           - Create window as visible to not get caught by Expose optimization
10110         * Hwnd.cs: Removed debug message
10111         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
10112           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
10113             PaintEventStart/End to use new client argument
10114         * TextBoxBase.cs:
10115           - Commented out debug messages
10116           - Switched PaintEventStart/End to use new client argument
10117         * XplatUI.cs: Added client window bool to PaintEventStart()/
10118           PaintEventEnd() calls, to support drawing in non-client areas
10119         * XplatUIDriver.cs: 
10120           - Added client window bool to PaintEventStart()/PaintEventEnd() 
10121             calls, to support drawing in non-client areas
10122           - Added conditional compile to allow using MWF BeginInvoke 
10123             on MS runtime
10124         * XplatUIX11.cs:
10125           - Added some conditional debug output
10126           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
10127             whole/client window split
10128           - Implemented handling of client argument to PaintEventStart()/End()
10129         * Control.cs:
10130           - Throw exception if BeginInvoke() is called and the window handle
10131             or one of the window's parent handles is not created
10132           - Added conditional compile to allow using MWF BeginInvoke on
10133             MS runtime
10134           - get_Parent(): Only sets parent if handle is created. This avoids
10135             forcing window handle creation when parent is set.
10136           - Now fires Layout and Parent changed events in proper order
10137           - Switched to use Handle instead of window.Handle for Z-Order setting,
10138             the get_Parent() patch above causes us to possibly get null for 'window'
10139           - Implemented handling of client argument to PaintEventStart()/End()
10140           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
10141             default handling)
10142           - Now sends a Refresh() to all child windows when Refresh() is called
10143
10144 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
10145
10146         * Form.cs: Added (non-functional) Opacity property
10147         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
10148
10149 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
10150         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
10151           use export MONO_THEME=nice to activate it.
10152           Currently supported controls:
10153           - Button
10154           - ComboBox
10155           - ScrollBar
10156           - TabControl (TabAlignment.Top only, other will follow)
10157         * ThemeEngine.cs: Add theme nice
10158         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
10159           if enabled
10160
10161 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
10162
10163         * Splitter.cs: Resize docked control and its neighbor.
10164
10165 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
10166         -- Making Windows with Menus layout correctly --
10167         * Form.cs : The first leg of the fix
10168                 Menu setter - adjust Client Size as needed to make space for the menu
10169                 SetClientSizeCore - doesn't call base version to be able to pass the 
10170                         menu handle to XplatUI.CalculateWindowRect
10171         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
10172         * XplatUIX11.cs: The critical second leg of the fix
10173                 GetWindowPos needs to use a recalculated client_rect
10174                 so that resizing the window doesn't break layout of child controls. 
10175                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
10176                 Lots of \t\n killed
10177
10178 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
10179
10180         * Label.cs: Now properly recalculates width and height on Font and Text
10181           changes if AutoSize is set
10182
10183 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
10184         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
10185
10186 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
10187
10188         * ImageList.cs: Makes ToString method compatible with MS
10189
10190 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
10191
10192         * MenuAPI.cs: fixes bug 75716
10193
10194 2005-08-11 Umadevi S <sumadevi@novell.com>
10195         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
10196
10197 2005-08-11 Umadevi S <sumadevi@novell.com>
10198         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
10199
10200 2005-08-10  Umadevi S <sumadevi@novell.com>
10201         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
10202
10203 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
10204
10205         * Menu.cs: fixes bug 75700
10206         * MenuAPI.cs: fixes navigation issues
10207
10208 2005-08-09  Umadevi S <sumadevi@novell.com>
10209         * CheckedListBox.cs - simple fix for GetItemChecked.
10210
10211 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
10212
10213         * ComboBox.cs: Serveral fixes
10214         * ListBox.cs: Serveral fixes
10215
10216 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
10217
10218         * ComboBox.cs: Fixes FindString methods and GetItemHeight
10219         * ListBox.cs: Fixes FindString methods
10220
10221 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
10222
10223         * DataGrid.cs: fixes bugs exposed by new tests
10224
10225 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
10226
10227         * Mime.cs: Compile Mono assembly references only if compiling
10228           with Mono (Allows to build with VS.Net again)
10229
10230 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
10231
10232         * Control.cs (PaintControlBackground): Draw background image
10233         corrrectly.
10234         (CheckForIllegalCrossThreadCalls): Stubbed.
10235         
10236         * Form.cs (OnCreateControl): Center when should be centered.
10237         
10238         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
10239
10240 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
10241
10242         * Binding.cs: Binding to properties should be case unsensitive
10243
10244 2005-07-18 vlindos@nucleusys.com
10245
10246         * DataGrid.cs: fixes setmember order
10247
10248 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
10249
10250         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
10251         * FileDialog.cs: FileDialog is now resizable and uses the new
10252           MimeIconEngine
10253
10254 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
10255
10256         * DataGridTextBoxColumn.cs: default value
10257         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
10258         * GridTableStylesCollection.cs: fixes checking MappingName
10259         * DataGridDrawingLogic.cs: fixes drawing logic issues
10260         * DataSourceHelper.cs: rewritten to make compatible with more data sources
10261         * DataGrid.cs: fixes    
10262
10263 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
10264
10265         * MimeGenerated.cs: Use case sensitive comparer for
10266           NameValueCollections
10267
10268 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
10269
10270         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
10271         * ThemeWin32Classic.cs: bug fixes, code refactoring
10272         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
10273         * DataGrid.cs: bug fixes, code refactoring
10274         * DataGridTextBox.cs: bug fixes, code refactoring
10275         * DataGridColumnStyle.cs:  bug fixes, code refactoring
10276         * Theme.cs:  bug fixes, code refactoring
10277
10278 2005-07-01  Peter Bartok  <pbartok@novell.com> 
10279
10280         * TextControl.cs: Quick fix for the reported crash on ColorDialog
10281           and other text box usage
10282
10283 2005-07-01  Jackson Harper  <jackson@ximian.com>
10284
10285         * TabControl.cs: Make sure the bottom of the tab covers the pages
10286         border.
10287
10288 2005-06-30  Peter Bartok  <pbartok@novell.com> 
10289
10290         * Form.cs (ShowDialog): Assign owner of the dialog
10291         * TextBoxBase.cs: Always refresh caret size when deleting, caret
10292           might have been moved to a tag with different height
10293
10294 2005-06-30  Jackson Harper  <jackson@ximian.com>
10295
10296         * Form.cs: Don't create an infinite loop when setting focus
10297         * MenuItem.cs: Don't dirty the parents if we don't have any
10298
10299 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
10300
10301         * LibSupport.cs: Rename
10302
10303 2005-06-29  Peter Bartok  <pbartok@novell.com>
10304
10305         * TextBoxBase.cs: Re-align caret after deleting a character
10306         * TextControl.cs:
10307           - DeleteChars(): Ensure that tag covers the provided position
10308           - StreamLine(): Drop reference for dropped tag
10309
10310 2005-06-29  Peter Bartok  <pbartok@novell.com> 
10311
10312         * TextControl.cs: 
10313           - Selections now work properly, anchoring at the initial location
10314             and properly extending in either direction (SetSelectionToCaret(),
10315             SetSelectionStart() and SetSelectionEnd())
10316           - No longer redraws the whole control on selection change, now
10317             calculates delta between previous and new selection and only
10318             invalidates/redraws that area
10319           - Fixed FindPos() math off-by-one errors
10320           - Changed DeleteChars() to verify the provided tag covers the
10321             provided position, selections may have a tag that doesn't cover
10322             the position if the selection is at a tag border
10323           - Fixed off-by-one errors in DeleteChars()
10324           - Added missing streamlining check in DeleteChars() to remove
10325             zero-length tags
10326           - Implemented Invalidate() method, now properly calculates exposures
10327             between two given lines/positions
10328           - Implemented SetSelection()
10329           - Obsoleted and removed FixupSelection()
10330           - Improved RecalculateDocument() logic, removing code duplication
10331
10332 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10333
10334         * LibSupport.cs: changes to match different input/output arguments.
10335
10336 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10337
10338         * LibSupport.cs: added libsupport.so init routine.
10339
10340 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
10341         
10342         * ControlBindingsCollection.cs
10343                 - Throws an exception on null datasource when adding
10344                 - Checks for duplicated bindings when adding
10345
10346 2005-06-28  Jackson Harper  <jackson@ximian.com>
10347
10348         * TreeView.cs (OnKeyDown): Support left and right properly
10349         (navigates as well as expanding and collapsing.
10350         - Add support for Multiply, this expands all the selected nodes
10351         children.
10352         - Fix some tabbing.
10353
10354 2005-06-28  Jackson Harper  <jackson@ximian.com>
10355
10356         * TreeView.cs: Implement keyboard navigation, currently supports,
10357         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
10358         support for toggling checkboxes with the space bar.
10359
10360 2005-06-28  Jackson Harper  <jackson@ximian.com>
10361
10362         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
10363         tree.
10364
10365 2005-06-28  Jackson Harper  <jackson@ximian.com>
10366
10367         * TreeView.cs: Add missing event.
10368
10369 2005-06-27  Peter Bartok  <pbartok@novell.com> 
10370
10371         * TextControl.cs:
10372           - Made line ending size configurable (now allows for counting 
10373             lineendings as \n or \r\n)
10374           - Added margin to viewport to keep caret visible on right side
10375           - Fixed translation routines for line/pos to documentpos to consider
10376             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
10377           - Fixed some line-endings to be unix style
10378           - Fixed Document.FormatText to perform it's calculations 1-based
10379           - Added descriptions for a few methods that might otherwise get 
10380             used wrong
10381           - Added NOTE section with some basic conventions to remember at 
10382             the top of the file
10383           - Major fixup for RichTextBox selection drawing:
10384             * Fixed crashes when multiple tags on a single line were selected
10385             * fixed selection box drawing not overlaying text
10386             * fixed bogus offset calculation for tags not starting at index 1
10387             * Switched behaviour from using multiple Substrings of a 
10388               StringBuilder.ToString() to using multiple 
10389               StringBuilder.ToString(start, length) statements, hoping this is
10390               faster (kept original version commented out in the code, in case
10391               original version was faster)
10392         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
10393           alignment != Left
10394         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
10395           call it as well
10396
10397 2005-06-27  Jackson Harper  <jackson@ximian.com>
10398
10399         * TabControl.cs: Move to the left and right with the arrow
10400         keys. These keys don't cycle beyond first and last like
10401         tab. Refresh all the tabs when scrolling them to the left or
10402         right.
10403
10404 2005-06-27  Jackson Harper  <jackson@ximian.com>
10405
10406         * TabControl.cs:
10407           - ToString: Added method
10408           - CreateParams: Remove TODO and comment
10409           - OnKeyDown: Cycle through bounds properly.
10410           - SelectedIndex: Scroll to the right or left if we need to
10411           display the newly selected tab.
10412
10413 2005-06-23  Jackson Harper  <jackson@ximian.com>
10414
10415         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
10416         set.
10417
10418 2005-06-23  Jackson Harper  <jackson@ximian.com>
10419
10420         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
10421         CTRL-SHIFT-TAB, and HOME, END are there any others?
10422
10423 2005-06-23  Jackson Harper  <jackson@ximian.com>
10424
10425         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
10426
10427 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
10428         
10429         * DataGridTextBoxColumn.cs: fixes and enhancements
10430         * ThemeWin32Classic.cs: fixes and enhancements
10431         * DataGridBoolColumn.cs:  fixes and enhancements
10432         * DataGridDrawingLogic.cs:  fixes and enhancements
10433         * CurrencyManager.cs: fixes and enhancements
10434         * DataGrid.cs: fixes and enhancements
10435         * DataGridColumnStyle.cs:  fixes and enhancements
10436
10437 2005-06-22  Jackson Harper  <jackson@ximian.com>
10438
10439         * TabControl.cs: Add some missing methods that just call into the
10440         base. Make the TabPageCollection's IList interface behave in the
10441         same manner as the MS implementation.
10442
10443 2005-06-22  Peter Bartok  <pbartok@novell.com> 
10444
10445         * TextControl.cs: Added sanity check
10446         * TextBoxBase.cs: 
10447           - Fixed wrapping behaviour, don't set wrap on single line controls
10448             (this fixes the breakage of colordialog introduced in an earlier
10449              checkin)
10450           - Added rudimentary support for autoscrolling right-aligned controls
10451             (still needs fixing, also, center alignment scroll is missing)
10452
10453 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
10454         
10455         * ScrollBar.cs: Fixes thumbpos on Maximum values
10456
10457 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
10458         
10459         * PropertyGridView.cs: Pass context information to UITypeEditors 
10460
10461 2005-06-21  Peter Bartok  <pbartok@novell.com> 
10462
10463         * TextBoxBase.cs:
10464           - Now calling PositionCaret with absolute space coordinates
10465           - Enabled vertical scrolling
10466           - Better tracking of scrollbar changes, tied into WidthChange
10467             event
10468           - Improved cursor tracking
10469           - Removed debug output
10470         * TextControl.cs:
10471           - PositionCaret coordinates are now works in absolute space, not 
10472             the canvas
10473           - Improved tracking of document size
10474           - Added events for width and height changes
10475
10476 2005-06-21  Peter Bartok  <pbartok@novell.com>
10477
10478         * Form.cs: Set focus to active control when form is activated
10479         * TextControl.cs: 
10480           - Added word-wrap functionality to RecalculateLine() 
10481           - Added some short function descriptions for VS.Net to aid in
10482             writing dependent controls
10483           - Added Caret property, returning the current coords of the caret
10484           - Added ViewPortWidth and ViewPortHeight properties
10485           - Added Wrap property
10486           - Added CaretMoved event
10487           - Removed some old debug code
10488           - Split() can now create soft splits
10489           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
10490           - Added method to format existing text
10491           - Fixed size/alignment calculations to use viewport
10492           - RecalculateDocument now can handle changing line-numbers while
10493             calculating lines
10494
10495         * TextBox.cs:
10496           - Added some wrap logic, we don't wrap if alignment is not left
10497           - Added casts for scrollbar var, base class switched types to
10498             also support RichTextBoxA
10499           - Implemented handling of scrollbar visibility flags
10500
10501         * TextBoxBase.cs:
10502           - Switched scrollbars type to RichTextBoxScrollBars to support
10503             RichTextBox
10504           - Added tracking of canvas width/height
10505           - Switched scrollbars to be not selectable (to keep focus on text)
10506           - Added central CalculateDocument() method to handle all redraw
10507             requirements
10508           - Added ReadOnly support
10509           - Added WordWrap support
10510           - Fixed handling of Enter key (we now treat it as a DialogKey)
10511           - Fixed caret positioning when h or v scroll is not zero
10512           - Fixed placing/generation of vertical scrollbar
10513           - Added CalculateScrollBars() method to allow updating scrollbar
10514             limits and visibility
10515           - Fixed handling of horizontal scroll
10516           - Added handling of vertical scroll
10517           - Implemented auto-'jump' when caret moves to close to a left or
10518             right border and there is text to be scrolled into view (currently
10519             there's the potential for a stack overflow, until a bug in
10520             scrollbar is fixed)
10521
10522 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
10523         
10524         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
10525
10526 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
10527
10528         * Mime.cs:
10529         - added inodes.
10530         - return application/x-zerosize for files with size zero
10531           (if no extension pattern matches).
10532         - check matches collection for strings too.
10533         - return only the first mime type if the name value
10534           collection has more than one mime type.
10535
10536 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
10537         
10538         * PropertyGrid.cs: Cleaned up some TODOs
10539         * PropertyGridView.cs: Added support for UITypeEditors
10540
10541 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
10542         
10543         * DataGrid.cs: clears cached value
10544
10545 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
10546
10547         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
10548         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
10549         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
10550         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
10551         
10552 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
10553
10554         * ThemeWin32Classic.cs: fixes colour
10555
10556 2005-06-15  Peter Bartok  <pbartok@novell.com>
10557
10558         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
10559         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
10560         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
10561         * Control.cs: Added some MWFCategory and MWFDescription attributes
10562         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
10563
10564 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
10565
10566         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
10567         usage
10568
10569 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
10570
10571         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
10572         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
10573         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
10574         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
10575         * DataGrid.cs: default datagrid settings for Default Styles, fixes
10576         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
10577
10578 2005-06-13  Jackson Harper  <jackson@ximian.com>
10579
10580         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
10581         isn't printed when the user enables dropping. (X11 does accept
10582         drops).
10583         
10584 2005-06-13  Jackson Harper  <jackson@ximian.com>
10585
10586         * TreeView.cs: Remove some TODOS.
10587
10588 2005-06-13  Jackson Harper  <jackson@ximian.com>
10589
10590         * Form.cs: Hook into the mdi framework.
10591         * MdiClient.cs: Use the base control collections add method so
10592         parents get setup correctly. Set the default back colour and dock
10593         style.
10594         * MdiChildContext.cs: New class, this bad actor handles an
10595         instance of an MDI window. Right now there is only basic
10596         support. You can drag, close, and resize windows. Minimize and
10597         Maximize are partially implemented.
10598
10599 2005-06-13  Jackson Harper  <jackson@ximian.com>
10600
10601         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
10602         freaky when both vals are negative. NOTE: There are probably other
10603         places in XplatUIX11 that this needs to be done.
10604
10605 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
10606
10607         * DataGrid.cs: implement missing methods, move KeyboardNavigation
10608         * DataGridColumnStyle.cs: fixes signature
10609
10610 2005-06-12  Jackson Harper  <jackson@ximian.com>
10611
10612         * XplatUIX11.cs: Use sizing cursors similar to the ones on
10613         windows.
10614
10615 2005-06-11  Jackson Harper  <jackson@ximian.com>
10616
10617         * StatusBarPanel.cs: Signature cleanups. Implement
10618         BeginInit/EndInit.
10619
10620 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
10621
10622         * DataGridTextBoxColumn.cs: Honors aligment
10623         * GridColumnStylesCollection.cs: Contains is case unsensitive
10624         * GridTableStylesCollection.cs: several fixes
10625         * DataGridTableStyle.cs: default column creation
10626         * DataGridDrawingLogic.cs: fixes
10627         * CurrencyManager.cs: ListName property
10628         * DataGrid.cs: multiple styles support
10629         * DataGridColumnStyle.cs: fixes
10630         
10631
10632 2005-06-10  Peter Bartok  <pbartok@novell.com>
10633
10634         * Control.cs(Select): Moved SetFocus call to avoid potential
10635           loops if controls change the active control when getting focus
10636         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
10637           the up/down buttons
10638
10639 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
10640
10641         * ImageListConverter.cs: Implemented
10642
10643 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
10644
10645         * MonthCalendar.cs: Wired in NumericUpDown control for year
10646
10647 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
10648
10649         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
10650           DoubleClick events, since they are not meant to be fired.
10651
10652 2005-06-09  Peter Bartok  <pbartok@novell.com>
10653
10654         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
10655           Jonathan's standalone controls into MWF, implemented missing
10656           events, attributes and methods; added xxxAccessible classes
10657         * AccessibleObject.cs: Made fields internal so other classes
10658           can change them if needed
10659
10660 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
10661
10662         * UpDownBase.cs: Complete implementation
10663         * NumericUpDown.cs: Complete implementation
10664         * DomainUpDown.cs: Complete implementation
10665
10666 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
10667
10668         * DataGridTextBoxColumn.cs: drawing fixes
10669         * DataGridCell.cs: fixes ToString method to match MSNet
10670         * DataGridTableStyle.cs: fixes
10671         * DataGridBoolColumn.cs: fixes, drawing
10672         * DataGridDrawingLogic.cs: fixes, new methods
10673         * DataGridTextBox.cs: Keyboard and fixes
10674         * DataGrid.cs:
10675                 - Keyboard navigation
10676                 - Scrolling fixes
10677                 - Row selection (single, multiple, deletion, etc)
10678                 - Lots of fixes
10679         
10680 2005-06-07  Jackson Harper  <jackson@ximian.com>
10681
10682         * ThemeWin32Classic.cs: Clear the background area when drawing
10683         buttons.
10684
10685 2005-06-06  Peter Bartok  <pbartok@novell.com>
10686
10687         * ImageListStreamer.cs: Fixed signature for GetData
10688         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
10689         * ComboBox.cs:
10690           - Added missing ChildAccessibleObject class
10691           - Added missing OnXXXFocus overrides, switched to using those
10692             instead of the event handler
10693         * Control.cs:
10694           - Added Parent property for ControlAccessibleObject
10695           - Fixed signatures
10696           - Fixed attributes
10697           - Added ResetBindings()
10698         * ListBindingConverter.cs: Implemented some methods
10699         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
10700         * ImageList.cs: Implemented basic handle scheme, removed TODOs
10701         * ContainerControl.cs: Fixed signature, now subscribing to the
10702           ControlRemoved event instead of overriding the handler, LAMESPEC
10703         * CurrencyManager.cs: Added missing attribute
10704         * MonthCalendar.cs: Added missing properties
10705
10706 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
10707
10708         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
10709         
10710 2005-06-06  Gaurav Vaish and Ankit Jain
10711
10712         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
10713         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
10714         
10715 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
10716
10717         * Control.cs: fixes CreateParams Width / Height.
10718
10719 2005-06-05  Peter Bartok  <pbartok@novell.com>
10720
10721         * Win32DnD.cs: Removed compilation warnings
10722
10723 2005-06-05  Peter Bartok  <pbartok@novell.com>
10724
10725         * Control.cs (CreateParams): Since we don't know if one of the
10726           properties we use is overridden, lets make sure if we fail accessing
10727           we continue with a backup plan
10728
10729 2005-06-05  Peter Bartok  <pbartok@novell.com>
10730
10731         * Win32DnD.cs:
10732           - Removed debug output
10733           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
10734             struct
10735           - Plugged resource leak
10736         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
10737           MS size
10738
10739 2005-06-05  Peter Bartok  <pbartok@novell.com>
10740
10741         * XplatUIWin32.cs: Removed DnD code
10742         * Win32DnD.cs: Implemented drop source and drop target functionality
10743
10744 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10745
10746         * UpDownBase.cs: remove duplicate addition of event, enable some code
10747         that was commented out.
10748         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
10749         Validate input when a key is pressed. It works fine now for every
10750         combination of Hexadecimal. Only missing some drawing love when sharing
10751         space with other controls.
10752
10753 2005-06-04  Peter Bartok  <pbartok@novell.com>
10754
10755         * Control.cs:
10756           - We need to pass a window for DragDrop, so enable callback events
10757           - Added DnD callback events when being a DragSource
10758         * XplatUI.cs (StartDrag): Added window handle argument
10759         * XplatUIDriver.cs (StartDrag): Added window handle argument
10760         * QueryContinueDragEventArgs: Made fields internally accessible so
10761           drivers can set them
10762         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
10763           can set them
10764
10765 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
10766
10767         * DataGridTextBoxColumn.cs: column text editing
10768         * DataGridTableStyle.cs: Respect columns styles created by the user
10769         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
10770         * DataGridBoolColumn.cs: bool column editing
10771         * DataGrid.cs: fixes to scrolling, properties, etc
10772         * DataGridTextBox.cs: handle keyboard
10773         * DataGridColumnStyle.cs: fixes
10774
10775 2005-06-02  Jackson Harper  <jackson@ximian.com>
10776
10777         * ImageListStreamer.cs: Somewhat broken implementation of
10778         GetObjectData. The RLE needs some work to match MS properly.
10779
10780 2005-06-02  Jackson Harper  <jackson@ximian.com>
10781
10782         * X11Dnd.cs: Attempting to keep at least one file in MWF
10783         monostyled.
10784
10785 2005-06-02  Peter Bartok  <pbartok@novell.com>
10786
10787         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
10788           that way
10789
10790 2005-06-02  Peter Bartok  <pbartok@novell.com>
10791
10792         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
10793         * XplatUI.cs: Added DoDragDrop() method
10794         * XplatUIDriver.cs: Added DoDragDrop() method
10795
10796 2005-06-02  Jackson Harper  <jackson@ximian.com>
10797
10798         * Splitter.cs: Implement BorderStyle.
10799
10800 2005-06-02  Jackson Harper  <jackson@ximian.com>
10801
10802         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
10803         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
10804         X11 using XDND.
10805
10806 2005-06-02  Peter Bartok  <pbartok@novell.com>
10807
10808         * DataObject.cs:
10809           - Added Data setter
10810           - Fixed broken insertion code for SetData, now also
10811             overwrites any existing entry of the same format name
10812         * Hwnd.cs: Added list of pointers that automatically gets
10813           freed when the window is disposed
10814         * XplatUI.cs: Call driver initialization method when loading
10815           a driver
10816         * Control.cs:
10817           - OnDragLeave takes EventArgs, not DragEventArgs
10818           - Added setting of WS_EX_ACCEPTFILES style when dropping is
10819             supported
10820           - Forces style update when drop state changes
10821         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
10822           not perfect since we cannot (yet) call the IDataObject.GetData()
10823           method, we keep getting 0x80004005 error, dunno why)
10824
10825 2005-06-02  Peter Bartok  <pbartok@novell.com>
10826
10827         * DragEventArgs.cs: Make fields internal so we can cache the
10828           object and re-set the fields from XplatUI
10829
10830 2005-06-02  Jackson Harper  <jackson@ximian.com>
10831
10832         * Control.cs: Add some internal methods so the DnD subsystem can
10833         raise DnD events. Also call into the driver when AllowDrop is set.
10834         * XplatUI.cs:
10835         * XplatUIDriver.cs: New method for setting whether or not a window
10836         is allowed to accept drag and drop messages.
10837                 
10838 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
10839         
10840         * ScrollBar.cs: Make sure that values sent in Scroll events
10841         are always between Maximum and Minimum.
10842
10843 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
10844
10845         * Menu.cs: Call MenuChanged when menuitem visibility has been
10846         changed.
10847         * MenuItem.cs: Rebuild menu when item is (not) visible.
10848         * MainMenu.cs: MainMenu has special MenuChanged.
10849         * Theme.cs: Caption and FrameBorderSize are not fixed.
10850         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
10851         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
10852         * XplatUIX11.cs,
10853         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
10854         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
10855
10856 2005-05-30  Jackson Harper  <jackson@ximian.com>
10857
10858         * DataFormat.cs: We can't statically initialize this stuff because
10859         it calls into the xplatui and could create a loop. So we lazy init
10860         it.
10861
10862 2005-05-28  Jackson Harper  <jackson@ximian.com>
10863
10864         * Control.cs: Proper implementation of Product(Name/Version).
10865
10866 2005-05-27  Jackson Harper  <jackson@ximian.com>
10867
10868         * DataObject.cs: Dont crash if no data is found.
10869
10870 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
10871         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
10872                 as per status page, guessing it should be set to true
10873
10874 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
10875
10876         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
10877         * DataGridTableStyle.cs: set proper formatting text, def header text
10878         * ThemeWin32Classic.cs: new themable paramaters
10879         * DataGridBoolColumn.cs: paint check box, get data, fixes
10880         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
10881         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
10882         * DataGridColumnStyle.cs: fixes
10883         * Theme.cs: new themable paramaters
10884                 
10885 2005-05-26  Peter Bartok  <pbartok@novell.com>
10886
10887         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
10888
10889 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
10890         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
10891
10892 2005-05-24  Peter Bartok  <pbartok@novell.com>
10893
10894         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
10895           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
10896           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
10897           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
10898           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
10899           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
10900           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
10901           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
10902           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
10903           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
10904           missing attributes, etc
10905         * DataGridPreferredColumnWidthTypeConverter.cs: Added
10906
10907 2005-05-24  Peter Bartok  <pbartok@novell.com>
10908
10909         * Help.cs: Added, implemented trivial functions, throws up MessageBox
10910           when user tries to get help
10911         * DataObject.cs, DataFormats.cs, LinkArea.cs,
10912           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
10913           to suppress warnings
10914         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
10915           avoid unreachable code warning
10916
10917 2005-05-20  Peter Bartok  <pbartok@novell.com>
10918
10919         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
10920
10921 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
10922
10923         * DataGridTextBoxColumn.cs: Basic painting methods
10924         * DataGridTableStyle.cs: Set table style in the column
10925         * ThemeWin32Classic.cs: Use Theme for colors
10926         * DataGridDrawingLogic.cs: Implement more drawing
10927         * DataGrid.cs: drawing, theming, enhacements, fixes
10928         * DataGridColumnStyle.cs: fixes, drawing
10929         * Theme.cs: theming for Datagrid
10930
10931 2005-05-20  Peter Bartok  <pbartok@novell.com>
10932
10933         * Cursor.cs: Implemented GetObjectData() method
10934
10935 2005-05-20  Peter Bartok  <pbartok@novell.com>
10936
10937         * Cursors.cs: Added setting of cursor name
10938         * Cursor.cs:
10939           - Implemented constructors
10940           - Implemented Draw and DrawStretched
10941           - Implemented Current property
10942           - Implemented == and != operators
10943           - Implemented Dispose()
10944           - Implemented ToString
10945           - Added missing attributes
10946         * XplatUIX11.cs:
10947           - Added missing reset for OverrideCursor when DoEvents is called
10948           - Fixed creation of cursor, logic was wrong
10949         * XplatUIWin32.cs:
10950           - Added missing reset for OverrideCursor when DoEvents is called
10951           - Fixed creation of cursor, bit arrays were swapped
10952         * Clipboard.cs: Removed obsolete MonoTODO attribute
10953
10954 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
10955
10956         * ComboBox.cs: fixes OnSelectedItemChanged
10957         * ControlBindingsCollection.cs: fixes item range check
10958
10959 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
10960
10961         * UpDownBase.cs:
10962                 - Calc preferred height properly
10963                 - Implement missing properties
10964                 
10965         * NumericUpDown.cs: Implement missing events
10966
10967 2005-05-19  Jackson Harper  <jackson@ximian.com>
10968
10969         * TabControl.cs: New method that resizes the tab pages before
10970         redrawing them. This as needed as the control is double buffered
10971         and sizing will not be recalculated unless ResizeTabPages is
10972         called.
10973         * TabPage.cs: Set base.Text instead of Text in the constructor so
10974         that UpdateOwner does not get called. Use the new Redraw method of
10975         TabControl instead of Refresh so the sizing is recalculated.
10976         * ThemeWin32Classic.cs: Draw the text for button tabs.
10977
10978 2005-05-19  Jackson Harper  <jackson@ximian.com>
10979
10980         * Control.cs: Paint control background images. Fix typo where
10981         PaintControlBackground was not getting called correctly.
10982
10983 2005-05-19  Peter Bartok  <pbartok@novell.com>
10984
10985         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
10986           I can investigate, apparently I broke FileDialog
10987
10988 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
10989
10990         * AxHost.cs: Some simple properties.
10991         * Control.cs: window must be accessible after ctor.
10992         * Form.cs: Added TransparencyKey property.
10993         * TextBoxBase.cs: Implemented Clear. Text property can be null.
10994         * XplatUIWin32.cs: SetBorderStyle implemented.
10995
10996 2005-05-18  Peter Bartok  <pbartok@novell.com>
10997
10998         * DataObject.cs: Entries are not global but particular to the
10999           DataObject, now it behaves that way
11000         * XplatUIWin32.cs: Implemented Clipboard methods
11001         * Clipboard.cs: Implemented
11002         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
11003         * XplatUIOSX.cs: Updated to final clipboard prototypes
11004         * XplatUIX11.cs: Implemented Clipboard methods
11005         * XplatUIDriver.cs: Updated to final clipboard prototypes
11006         * XplatUIStructs.cs:
11007           - Added BITMAPINFOHEADER struct
11008           - Added ClipboardFormats enum
11009         * X11Structs.cs:
11010           - Added ClipboardStruct
11011           - Added Atom enum items for clipboard types
11012           - Fixed atom types for Selection event structures
11013         * DataFormats.cs:
11014           - Added internal properties and methods for drivers to enumerate
11015             all known formats
11016           - Switched initialization method to allow drivers to assign their
11017             own IDs even for the MS predefined clipboard IDs
11018         * XplatUI.cs: Updated to final clipboard interface
11019
11020 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
11021         * PropertyGridView.cs: Fixed compiler warnings.
11022
11023 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
11024         * PropertyGrid.cs: Added some event calls
11025         * PropertyGridView.cs: Change drawing code to use double buffering
11026         * PropertyGridTextBox.cs: Changed Text property name
11027         * GridItem.cs: Added Bounds property.
11028         * GridEntry.cs: Added Bounds property.
11029
11030 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
11031
11032         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
11033         since GetType() may not return the correct type if the object is
11034         a remoting proxy.
11035
11036 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
11037
11038         * TreeNodeCollection.cs: fixes get/set item ranges
11039         
11040 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
11041
11042         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
11043                 
11044 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
11045
11046         * ComboBox.cs: Fix item range comparation
11047         * ListView.cs: Fix item range comparation
11048
11049 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
11050
11051         * FontDialog.cs:
11052           - Clear example panel when OnPaint is called
11053           - Better solution for displaying the example panel text
11054           - Select default indexes in the ListBoxes
11055
11056 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
11057
11058         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
11059
11060 2005-05-11  Peter Bartok  <pbartok@novell.com>
11061
11062         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
11063         * SelectionRangeConverter.cs: Implemented
11064         * PropertyGrid.cs: Fixed attribute value
11065         * Control.cs:
11066           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
11067           - Added Sebastien Pouliot's CAS Stack Propagation fixes
11068         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
11069           that's common to all drivers. First methods to go there are
11070           Sebastien Pouliot's CAS Stack Propagation helper methods
11071         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
11072           Sebastien Pouliot for CAS Stack Propagation
11073
11074 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
11075
11076         * OSXStructs.cs:
11077           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
11078
11079 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
11080
11081         * DataGridTextBoxColumn.cs: fixed some members
11082         * GridColumnStylesCollection.cs: indexed column is case insensitive
11083         * DataGridTableStyle.cs: fixes
11084         * ThemeWin32Classic.cs: add new theme parameter
11085         * Theme.cs: add new theme parameter
11086         * DataGridDrawingLogic.cs: Datagrid's drawing logic
11087         * DataGrid.cs: fixes, new internal properties, etc.
11088         * DataGridColumnStyle.cs: allows to set grid value
11089         *
11090
11091 2005-05-10  Peter Bartok  <pbartok@novell.com>
11092
11093         * AccessibleObject.cs:
11094           - Removed MonoTODO attribute on help, method is correct
11095           - Fixed Bounds property
11096         * AxHost.cs: Moved MonoTODO
11097         * ButtonBase.cs: Now setting AccessibleObject properties
11098         * RadioButton.cs: Setting proper AccessibleObject role
11099         * CheckBox.cs: Setting proper AccessibleObject role
11100         * ControlBindingsCollection.cs: Added properties, methods and attributes
11101         * DataFormats.cs: Fixed awkward internal API, and changed to enable
11102           userdefined DataFormats.Format items as well
11103         * ListControl.cs: Removed data_member from the public eye
11104         * OpenFileDialog.cs:
11105           - Made class sealed
11106           - Added missing attributes
11107         * SaveFileDialog.cs: Added missing attributes
11108         * ImageListStreamer.cs: Fixed code that caused warnings
11109         * LinkLabel.cs: Removed unreachable code
11110         * TreeView.cs: Fixed code that caused warnings
11111         * PropertyGridView.cs: Fixed code that caused warnings
11112         * GridColumnStylesCollection.cs: Added missing attributes
11113         * GridTableStylesCollection: Added missing attribute
11114         * PropertyManager: Added .ctor
11115         * SecurityIDType: Added
11116         * DataObject.cs: Implemented class
11117         * LinkArea.cs: Added missing attribute
11118
11119 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
11120
11121         * RadioButton.cs: call base method to allow to fire OnClick event
11122         * UpDownBase.cs: OnMouseUp call base method
11123         * CheckedListBox.cs: call base method before returning
11124         * TrackBar.cs: call base method before returning
11125         
11126
11127 2005-05-10  Peter Bartok  <pbartok@novell.com>
11128
11129         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
11130           for messages
11131
11132 2005-05-10  Peter Bartok  <pbartok@novell.com>
11133
11134         * DataFormats.cs: Implemented
11135         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
11136           XplatUIX11.cs: Added Clipboard APIs
11137         * XplatUIWin32.cs: Implemented Clipboard APIs
11138         * FolderBrowserDialog.cs: Added missing event, attributes
11139
11140 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
11141
11142         * CheckBox.cs: call base method to allow to fire OnClick event
11143
11144 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
11145
11146         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
11147
11148 2005-05-06  Peter Bartok  <pbartok@novell.com>
11149
11150         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
11151         * Screen.cs: Implemented
11152         * HelpNavigator.cs: Added
11153         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
11154           property
11155         * HelpProvider.cs: Implemented all we can do until we have a CHM
11156           help library (which means that "What's This" does work now)
11157
11158 2005-05-06  Jackson Harper  <jackson@ximian.com>
11159
11160         * XplatUIX11.cs: Fix waking up the main loop.
11161                 
11162 2005-05-05  Peter Bartok  <pbartok@novell.com>
11163
11164         * XplatUI.cs: Updated revision
11165         * Form.cs: Removed enless loop
11166         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
11167         * Label.cs (OnPaint): Added call to base.OnPaint()
11168         * ToolTip.cs: Made ToolTipWindow reusable for other controls
11169         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
11170         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
11171         * AxHost.cs: Added
11172         * ButtonBase.cs: Moved base.OnPaint() call to end of method
11173         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
11174           to ToolTip.ToolTipWindow for drawing and size methods; this allows
11175           reuse of ToolTipWindow by other controls
11176         * SizeGrip.cs: Moved base.OnPaint() call to end of method
11177         * XplatUIX11.cs: Now clipping drawing area (experimental)
11178         * PictureBox.cs: Moved base.OnPaint() call to end of method
11179         * Theme.cs: Fixed ToolTip abstracts to match new format
11180         * ErrorProvider.cs: Implemented
11181
11182 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
11183
11184         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
11185         * LinkLabel.cs:
11186                 - Adds cursors
11187                 - Handles focus
11188                 - Implements LinkBehavior
11189                 - Fixes many issues
11190
11191 2005-05-03  Jackson Harper  <jackson@ximian.com>
11192
11193         * ListView.cs: Calculate the scrollbar positioning on resize and
11194         paint, so they get put in the correct place.
11195
11196 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
11197
11198         * ColorDialogs.cs: The small color panels are now handled by
11199           SmallColorControl. This fixes drawing of the focus rectangle
11200           and adds a 3D border.
11201
11202 2005-05-03  Peter Bartok  <pbartok@novell.com>
11203
11204         * Control.cs: Modified version of Jonathan Chamber's fix for
11205           double-buffering
11206
11207 2005-05-03  Jackson Harper  <jackson@ximian.com>
11208
11209         * ListView.cs: Remove redraw variable. Control now handles whether
11210         or not a redraw needs to be done, and will only raise the paint
11211         event if redrawing is needed.
11212
11213 2005-05-03  Jackson Harper  <jackson@ximian.com>
11214
11215         * Splitter.cs: No decorations for the splitter form. Cache the
11216         hatch brush.
11217
11218 2005-05-03  Jackson Harper  <jackson@ximian.com>
11219
11220         * TreeView.cs: Use dashed lines to connect nodes. Use the
11221         ControlPaint method for drawing the focus rect instead of doing
11222         that in treeview.
11223
11224 2005-05-02  Peter Bartok  <pbartok@novell.com>
11225
11226         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
11227
11228 2005-04-29  Jackson Harper  <jackson@ximian.com>
11229
11230         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
11231         entire image buffer. Just clear the clipping rectangle.
11232
11233 2005-04-29  Jackson Harper  <jackson@ximian.com>
11234
11235         * ThemeWin32Classic.cs: Don't draw list view items that are
11236         outside the clipping rectangle.
11237
11238 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
11239
11240         * ListBox.cs: added horizontal item scroll
11241
11242 2005-04-29  Jackson Harper  <jackson@ximian.com>
11243
11244         * ThemeWin32Classic.cs: Remove some old debug code that was
11245         causing flicker with the new double buffering code.
11246
11247 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
11248
11249         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
11250         behave like combobox and comboboxlist (still not sure if this is
11251         correct though).
11252
11253 2005-04-28  Jackson Harper  <jackson@ximian.com>
11254
11255         * ThemeWin32Classic.cs: Don't fill the middle of progress
11256         bars. This fills areas outside of the clip bounds that don't need
11257         to be filled.
11258
11259 2005-04-28  Jackson Harper  <jackson@ximian.com>
11260
11261         * Control.cs: Don't expose functionality to touch the image buffers.
11262         * ProgressBar.cs:
11263         * ListView.cs: We do not need to (and no longer can) manipulate
11264         the image buffers directly. All of this is handled by Control.
11265
11266 2005-04-28  Peter Bartok  <pbartok@novell.com>
11267
11268         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
11269           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
11270           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
11271
11272 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
11273
11274         * Combobox:
11275                 - Adjust control's height for non-simple comboboxes (bug fix)
11276                 - Remove dead code
11277         * MenuAPI.cs: remove unused var
11278         * ScrollBar.cs: remove unsed var
11279                  
11280         * ListBox.cs: unselect items when clearing
11281
11282 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
11283
11284         * ListControl.cs: honors OnPositionChanged and default Selected Item
11285         * ListBox.cs: unselect items when clearing
11286
11287 2005-04-27  Jackson Harper  <jackson@ximian.com>
11288
11289         * X11Keyboard.cs: Initialize a default keyboard and give a warning
11290         if a "correct" keyboard is not found. This will make us not crash,
11291         but might give some users bad keyboard layouts...seems to be the
11292         same thing rewind does.
11293
11294 2005-04-27  Jackson Harper  <jackson@ximian.com>
11295
11296         * BindingManagerBase.cs: Attach the current/position changed
11297         handlers to their respective events.
11298
11299 2005-04-27  Jackson Harper  <jackson@ximian.com>
11300
11301         * Control.cs: Make sure that the first WM_PAINT does a full draw,
11302         not just a blit.
11303         * ThemeWin32Classic.cs: Don't fill the background for picture
11304         boxes. This could overright user drawing.
11305         * ComboBox.cs: Just fill the clipping rect not the entire client
11306         rect when drawing the background. This prevents pieces of the
11307         image buffer from getting overwritten and is theoretically faster.
11308
11309 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
11310
11311         * ComboBox.cs: Databinding support fixes, fire missing events
11312         * ListControl.cs: implement missing methods and properties, fixes
11313         * ThemeWin32Classic.cs: Databiding support on Drawing
11314         * CheckedListBox.cs: Databinding support fixes, fire missing events
11315         * ListBox.cs: Databinding support fixes, fire missing events
11316         
11317 2005-04-25  Peter Bartok  <pbartok@novell.com>
11318
11319         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
11320
11321 2005-04-25  Jackson Harper  <jackson@ximian.com>
11322
11323         * TreeView.cs: Use the horizontal scrollbars height not width when
11324         determining how much of the client area is available.
11325
11326 2005-04-25  Jackson Harper  <jackson@ximian.com>
11327
11328         * Control.cs: Double buffering is handled differently now. As per
11329         the spec, the extra buffer is created in the WM_PAINT message and
11330         passed down to the control's drawing code.
11331         * GroupBox.cs:
11332         * Label.cs:
11333         * CheckBox.cs:
11334         * ProgressBar.cs:
11335         * RadioButton.cs:
11336         * ColorDialog.cs:
11337         * ComboBox.cs:
11338         * PropertyGridView.cs:
11339         * UpDownBase.cs:
11340         * MessageBox.cs:
11341         * MenuAPI.cs:
11342         * ListView.cs:
11343         * ButtonBase.cs:
11344         * SizeGrip.cs:
11345         * ScrollBar.cs:
11346         * ListBox.cs:
11347         * TrackBar.cs:
11348         * ToolBar.cs:
11349         * PictureBox.cs:
11350         * DateTimePicker.cs:
11351         * StatusBar.cs:
11352         * TreeView.cs: Update to new double buffering system.
11353         * MonthCalendar.cs: Uncomment block, as Capture is now
11354         working. Update to new double buffering
11355         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
11356         * PaintEventArgs.cs: New internal method allows us to set the
11357         graphics object. This is used for double buffering.
11358         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
11359         rectangle. The internal paint_area var has been removed from
11360         StatusBar. The clipping rect should be used instead.
11361         * Theme.cs: Give the PictureBox drawing method a clipping rect.
11362         * TabPage.cs: The RefreshTabs method was removed, so just call the
11363         tab controls Refresh method now.
11364         * TabControl.cs: Update to new double buffering. Make sure the
11365         handle is created before sizing the tab pages, otherwise we will
11366         get stuck in a loop.
11367
11368 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
11369
11370         * LinkLabel.cs: Fix typo, bug #74719; patch
11371           from Borja Sanchez Zamorano
11372
11373 2005-04-22  Jackson Harper  <jackson@ximian.com>
11374
11375         * TreeNode.cs: Implement Handle stuff.
11376         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
11377
11378 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
11379
11380         * DataGridTextBoxColumn.cs: call base constructors, fixes
11381         * GridColumnStylesCollection.cs: missing events, methods, and functionality
11382         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
11383         * DataGridTableStyle.cs: implements create default column styles
11384         * DataGridBoolColumn.cs: which types can handle
11385         * DataGrid.cs: missing methods, fixes, new functionality
11386         * DataGridColumnStyle.cs: fixes
11387
11388 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
11389         * FolderBrowserDialog.cs:
11390         - Use a thread to fill the TreeView
11391         - Adjusted some sizes
11392
11393 2005-04-19  Peter Bartok  <pbartok@novell.com>
11394
11395         * LinkLabel.cs: (Re-)create the pieces when setting the Text
11396           property. Fixes #74360.
11397
11398 2005-04-19  Jackson Harper  <jackson@ximian.com>
11399
11400         * XEventQueue.cs: Lock when getting the lockqueue size.
11401         * PictureBox.cs: Call base OnPaint
11402         
11403 2005-04-19  Peter Bartok  <pbartok@novell.com>
11404
11405         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
11406           messages were no longer being processed (this broke BeginInvoke)
11407
11408           
11409 2005-04-18  Jackson Harper  <jackson@ximian.com>
11410
11411         * TreeView.cs: buglet that caused node images to get drawn
11412         regardless of whether or not they were in the clipping rectangle.
11413
11414 2005-04-18  Jackson Harper  <jackson@ximian.com>
11415
11416         * CurrencyManager.cs: There are four rules for GetItemProperties:
11417         - If the type is an array use the element type of the array
11418         - If the type is a typed list, use the type
11419         - If the list contains an Item property that is not an object, use
11420         that property
11421         - use the first element of the list if there are any elements in
11422         the list.
11423         
11424 2005-04-17  Jackson Harper  <jackson@ximian.oom>
11425
11426         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
11427         click. This handles offsets for scrolling properly and reduces
11428         memory. Also fixed GetNode to not offset now that TopNode works
11429         properly.
11430         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
11431         
11432 2005-04-17  Jackson Harper  <jackson@ximian.com>
11433
11434         * CursorConverter.cs: Initial implementation.
11435
11436 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
11437
11438         * ListControl.cs: work towards complex data binding support on ListControl
11439         * CurrencyManager.cs: work towards complex data binding support on ListControl
11440         * ListBox.cs: work towards complex data binding support on ListControl
11441
11442
11443 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
11444
11445         * GridTableStylesCollection.cs: fixes name and constructor
11446         * DataGridTableStyle.cs: fixes
11447         * DataGridBoolColumn.cs: fixes names and constructors
11448         * DataGrid.cs: define methods and properties. Some init implementations
11449         * DataGridCell.cs: define methods and properties. Some init implementations
11450         * GridTablesFactory.cs: Define methods and properties
11451
11452 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
11453
11454         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
11455         graphics port changes.  We still want the coordinates in global screen
11456         coordinates.
11457
11458 2005-04-14  Jackson Harper  <jackson@ximian.com>
11459
11460         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
11461         check plus minus or checkbox clicks unless those features are enabled.
11462
11463 2005-04-14  Jackson Harper  <jackson@ximian.com>
11464
11465         * TreeView.cs: Add methods for setting the top and bottom visible
11466         nodes. TreeNode::EnsureVisible uses these methods.
11467         * TreeNode.cs: Implement EnsureVisible
11468
11469 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
11470
11471         * Form.cs: Pospone menu assignation if the window has not been created yet
11472         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
11473         size and position
11474
11475 2005-04-12  Jackson Harper  <jackson@ximian.com>
11476
11477         * TreeView.cs: Set the TopNode properly when scrolling
11478         occurs. This has the added benifit of reducing the amount of
11479         walking that needs to be done when drawing. Also removed an old
11480         misleading TODO.
11481         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
11482         
11483 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
11484
11485         * Timer.cs: fixes interval setting when the timer is already enabled
11486         
11487 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
11488
11489         * FolderBrowserDialog.cs: First approach
11490
11491 2005-04-09  Peter Bartok  <pbartok@novell.com>
11492
11493         * FolderBrowserDialog: Added
11494
11495 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
11496
11497         * LinkLabel.cs: move drawing code into the theme
11498         * ThemeWin32Classic.cs: drawing code and painting background bugfix
11499         * Theme.cs: define DrawLinkLabel method
11500
11501 2005-04-05  Jackson Harper  <jackson@ximian.com>
11502
11503         * BindingContext.cs: Use weak references so these bad actors don't
11504         stay alive longer then they need to.
11505
11506 2005-04-05  Jackson Harper  <jackson@ximian.com>
11507
11508         * ListControl.cs: Basic implementation of complex databinding.
11509         * ComboBox.cs:
11510         * ListBox.cs: Add calls to ListControl databinding methods.
11511
11512 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
11513
11514         * FileDialog.cs:
11515           - Don't change PopupButtonState to Normal when the
11516             PopupButton gets pressed several times.
11517           - Renamed ButtonPanel to PopupButtonPanel
11518
11519 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
11520
11521         * ColorDialog.cs: Use cached objects instead of creating them
11522         * LinkLabel.cs: Use cached objects instead of creating them
11523         * Splitter.cs: Use cached objects instead of creating them
11524         * FontDialog.cs: Use cached objects instead of creating them
11525         * PropertyGridView.cs: Use cached objects instead of creating them
11526         * MessageBox.cs: Use cached objects instead of creating them
11527         * FileDialog.cs: Use cached objects instead of creating them
11528         * ThemeWin32Classic.cs: Use cached objects instead of creating them
11529         * TreeView.cs: Use cached objects instead of creating them
11530         
11531 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
11532
11533         * Control.cs: use Equals to compare the font since no == op
11534         * ScrollBar.cs: use Equals to compare the font since no == op
11535
11536 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
11537
11538         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
11539
11540 2005-04-01  Jackson Harper  <jackson@ximian.com>
11541
11542         * Binding.cs: Implement IsBinding.
11543         * BindingManagerBase.cs:
11544         * PropertyManager.cs:
11545         * CurrencyManager.cs: Add IsSuspended property.
11546
11547 2005-04-01  Jackson Harper  <jackson@ximian.com>
11548
11549         * Binding.cs: Had some IsAssignableFrom calls backwards.
11550
11551 2005-04-01  Jackson Harper  <jackson@ximian.com>
11552
11553         * Binding.cs: Handle null data members when pulling data.
11554         * PropertyManager.cs: Handle the data member being a property that
11555         does not exist.
11556
11557 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
11558
11559         * DataGridTextBoxColumn.cs: fixes signature
11560         * DataGrid.cs: calls right constructor
11561
11562 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
11563
11564         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
11565         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
11566         * GridTableStylesCollection.cs: implements GridTableStylesCollection
11567         * DataGridTableStyle.cs: implements DataGridTableStyle
11568         * DataGridBoolColumn.cs: implements DataGridBoolColumn
11569         * DataGridTextBox.cs: implements DataGridTextBox
11570         * DataGridColumnStyle.cs: implements DataGridColumnStyle
11571
11572 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
11573
11574         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
11575
11576 2005-03-29  Peter Bartok  <pbartok@novell.com>
11577
11578         * Application.cs:
11579           - Properly implemented CompanyName property
11580           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
11581             returns a path that includes CompanyName, ProductName and
11582             Version (fixes bug #70330)
11583
11584 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
11585
11586         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
11587           fixes bug #72588.
11588
11589 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
11590
11591         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
11592         
11593           - Added ReadOnly CheckBox
11594           - Further refactoring: moved some code from Open-/SaveFileDialog
11595             to FileDialog
11596
11597 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
11598
11599         * OpenFileDialog.cs: Fixed CheckFileExists
11600         * FileDialog.cs:
11601           Moved FileView and DirComboBox outside FileDialog class.
11602           They can now be used outside FileDialog
11603
11604 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
11605
11606         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
11607         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
11608
11609 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
11610
11611         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
11612           - Added missing CreatePrompt property in SaveDialog
11613           - Overall SaveDialog handling should be better now
11614           - Added non standard ShowHiddenFiles property
11615           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
11616           - Added InitialDirectory and RestoreDirectory support
11617
11618 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
11619
11620         * FileDialog.cs: Made dirComboBox usable
11621
11622 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
11623
11624         * FileDialog.cs: Added Filter support (case sensitiv)
11625
11626 2005-03-24  Jackson Harper  <jackson@ximian.com>
11627
11628         * TabControl.cs: Need a couple more pixels for the lines.
11629
11630 2005-03-23  Jackson Harper  <jackson@ximian.com>
11631
11632         * TabControl.cs: Give the tab page focus when it is selected.
11633
11634 2005-03-23  Jackson Harper  <jackson@ximian.com>
11635
11636         * TabControl.cs: Account for the drawing of tabs borders when
11637         invalidating. If the slider was clicked dont do click detection on
11638         the tabs.
11639
11640 2005-03-23  Jackson Harper  <jackson@ximian.com>
11641
11642         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
11643
11644 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
11645
11646         * CategoryGridEntry.cs: Added
11647         * GridItem.cs: Added helper properties
11648         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
11649         * GridEntry.cs: Updated code for collection
11650         * PropertyGrid.cs: Cleaned up some formatting
11651         * PropertyGridView.cs: Added drop down functionality for enums.
11652         * GridItemCollection.cs: Added enumerator logic
11653         * PropertyGridEntry.cs: Added
11654
11655 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
11656
11657         * FileDialog.cs:
11658           - Removed unnecessary commented code
11659           - Fixed handling for entering the filename manually in the combobox
11660
11661 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
11662
11663         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
11664
11665 2005-03-18  Peter Bartok  <pbartok@novell.com>
11666
11667         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
11668           them being touching the border
11669
11670 2005-03-18  Peter Bartok  <pbartok@novell.com>
11671
11672         * TextControl.cs: Quick hack to center text better
11673
11674 2005-03-18  Peter Bartok  <pbartok@novell.com>
11675
11676         * ControlPaint.cs:
11677           - Don't throw NotImplemented exceptions, just print a notice once
11678             instead (requested by Miguel). This makes running existing SWF
11679             apps a bit easier
11680         * Control.cs:
11681           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
11682           - Added context menu trigger on right click
11683         * Panel.cs: Trigger invalidate on resize
11684         * StatusBar.cs:
11685           - Removed old double-buffer drawing
11686           - Added ResizeRedraw style to force proper update of statusbar
11687         * ListView.cs:
11688           - Removed debug output
11689         * ThemeWin32Classic.cs:
11690           - Fixed drawing of status bar, now draws Text property if there
11691             are no defined panels
11692
11693 2005-03-18  Jackson Harper  <jackson@ximian.com>
11694
11695         * ImageList.cs: When the image stream is set pull all the images
11696         from it.
11697         * ImageListStreamer.cs: Implement reading image list streams.
11698
11699 2005-03-18  Peter Bartok  <pbartok@novell.com>
11700
11701         * ThemeWin32Classic.cs (DrawPictureBox):
11702           - Fixed calculations for centered drawing
11703           - Fixed drawing for normal mode, not scaling the image on normal
11704
11705 2005-03-18  Peter Bartok  <pbartok@novell.com>
11706
11707         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
11708           textbox
11709         * FileDialog.cs:
11710           - Made Open/Save button the accept button for FileDialog
11711           - Tied the cancel button to the IButtonControl cancel button
11712           - Save/Open now properly builds the pathname
11713           - Now handles user-entered text
11714           - Preventing crash on right-click if no item is selected
11715           - Fixed Text property, now uses contents of textbox
11716           - Fixed SelectedText property, now just returns the text part that
11717             is selected in the text box
11718
11719 2005-03-18  Jackson Harper  <jackson@ximian.com>
11720
11721         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
11722         rect, make sure to de-adjust the interior rect after drawing the
11723         tab text.
11724
11725 2005-03-18  Peter Bartok  <pbartok@novell.com>
11726
11727         * MenuAPI.cs: Remove menu *before* executing selected action to
11728           prevent the menu from 'hanging around'
11729           
11730 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
11731
11732         * XplatUIOSX.cs: Implemented WorkingArea property
11733
11734 2005-03-17  Peter Bartok  <pbartok@novell.com>
11735
11736         * XplatUIX11.cs: Fixed menu coord calculations
11737         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
11738           for calculating offsets
11739
11740 2005-03-17  Peter Bartok  <pbartok@novell.com>
11741
11742         * Hwnd.cs: Do not consider menu presence for default client
11743           rectangle location/size
11744         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
11745           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
11746           translation functions
11747         * FileDialog.cs: Fixed (what I presume is a) typo
11748
11749 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
11750
11751         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
11752           X access (avoids X-Async errors)
11753
11754 2005-03-16  Jackson Harper  <jackson@ximian.com>
11755
11756         * TabControl.cs: Raise the SelectedIndexChanged event.
11757
11758 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
11759
11760         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
11761           - Removed vertical ToolBar and replaced it with a custom panel
11762             (desktop and home button already work)
11763           - Added Help button (some controls get resized or relocated then)
11764           - Draw correct text depending on Open or Save.
11765           - Fixed some typos...
11766
11767 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
11768
11769         * ScrollBar.cs:
11770           - Only change Maximum and Minimum when need it (bug fix)
11771
11772 2005-03-15  Peter Bartok  <pbartok@novell.com>
11773
11774         * Form.cs: Use Handle for icon, to trigger creation if
11775           the window does not yet exist
11776         * Control.cs:
11777           - CanSelect: Slight performance improvement
11778           - Focus(): Preventing possible recursion
11779           - Invalidate(): Removed ControlStyle based clear flag setting
11780           - WM_PAINT: fixed logic for calling OnPaintBackground
11781           - WM_ERASEBKGND: Fixed logic, added call to new driver method
11782             EraseWindowBackground if the control doesn't paint background
11783         * XplatUIWin32.cs:
11784           - Moved EraseWindowBackground() method to internal methods
11785           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
11786             is sent via SendMessage on BeginPaint call on Win32
11787         * XplatUIX11.cs:
11788           - Added EraseWindowBackground() method
11789           - No longer sends WM_ERASEBKGND on .Expose, but on call to
11790             PaintEventStart, which more closely matches Win32 behaviour
11791           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
11792           - Fixed SetFocus() to properly deal with client and whole windows
11793         * Hwnd.cs: Added ErasePending property
11794         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
11795         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
11796
11797 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
11798
11799         * XplatUIOSX.cs:
11800           - Fix hard loop when timers exist.
11801           - Fix bugs with middle and right click for 3 button mice.
11802
11803 2005-03-11  Peter Bartok  <pbartok@novell.com>
11804
11805         * XplatUIX11.cs:
11806           - get_WorkingArea: Need to call X directly, GetWindowPos only
11807             returns cached data now
11808           - Added sanity check to GetWindowPos hwnd usage
11809
11810 2005-03-11  Jackson Harper  <jackson@ximian.com>
11811
11812         * BindingManagerBase.cs: This method isn't used anymore as
11813         PullData now updates the data in the control.
11814
11815 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
11816
11817         * Form.cs: fixes menu drawing on X11
11818         * MenuAPI.cs:  fixes menu drawing on X11
11819
11820 2005-03-11  Peter Bartok  <pbartok@novell.com>
11821
11822         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
11823           from Jonathan Gilbert; should fix bug #73606
11824         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
11825           in Screen coordinates. Thanks, Jordi.
11826         * Form.cs: Added missing attribute
11827
11828 2005-03-11  Peter Bartok  <pbartok@novell.com>
11829
11830         * Form.cs:
11831           - Rudimentary Mdi support
11832           - Removed outdated FormParent code
11833           - Implemented lots of missing properties and methods, still missing
11834             transparency support
11835           - Added missing attributes
11836           - Implemented support for MaximumBounds
11837           - Added firing of various events
11838         * XplatUI.cs: Added SetIcon() method
11839         * XplatUIDriver.cs: Added SetIcon() abstract
11840         * XplatUIOSX.cs: Stubbed out SetIcon() method
11841         * XplatUIX11.cs:
11842           - Implemented SetIcon() support
11843           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
11844           - Switched to unix line endings
11845         * XplatUIWin32.cs:
11846           - Made POINT internal so for can access it as part of MINMAX
11847           - Implemented SetIcon() support
11848           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
11849             native Mdi support again, might have to go managed)
11850         * Control.cs: Now fires the StyleChanged event
11851         * MdiClient.cs: Added; still mostly empty
11852
11853 2005-03-10  Peter Bartok  <pbartok@novell.com>
11854
11855         * SaveFileDialog.cs: Added emtpy file
11856
11857 2005-03-08  Peter Bartok  <pbartok@novell.com>
11858
11859         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
11860           in turn triggers OnCreateContro) when creating a handle for the
11861           first time.
11862         * TextControl.cs: Fixed endless loop in certain cases when
11863           replacing the current selection
11864
11865 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
11866
11867         * ScrollBar.cs:
11868           - Honors NewValue changes in Scroll events allowing apps to change it
11869           - Adds First and Last Scroll events
11870           - Fixes Thumb events
11871
11872 2005-03-07  Peter Bartok  <pbartok@novell.com>
11873
11874         * Hwnd.cs: Added DefaultClientRectangle property
11875         * XplatUI.cs: Now using the X11 driver Where() method, which provides
11876           more detailed debug information
11877         * XplatUIX11.cs:
11878           - Fixed size-change feedback loop, where we would pull an old size
11879             off the queue and mistakenly change our window's size to an
11880             earlier value
11881           - Now compressing ConfigureNotify events, to reduce looping and
11882             redraw issues
11883         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
11884           is called
11885
11886 2005-03-07  Jackson Harper  <jackson@ximian.com>
11887
11888         * Binding.cs: Push data pushes from data -> property. Check if the
11889         property is readonly when attempting to set it.
11890
11891 2005-03-07  Jackson Harper  <jackson@ximian.com>
11892
11893         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
11894         instead of IsSubclassOf. Pulling data now sets the value on the
11895         control.
11896         * PropertyManager.cs:
11897         * CurrencyManager.cs: Just need to pull data when updating now,
11898         because PullData will set the value on the control.
11899
11900 2005-03-04  Jackson Harper  <jackson@ximian.com>
11901
11902         * Binding.cs: Implement data type parsing and converting on pulled
11903         data. TODO: Are there more ways the data can be converted?
11904
11905 2005-03-04  Jackson Harper  <jackson@ximian.com>
11906
11907         * Binding.cs: Support <Property>IsNull checks. Also bind to the
11908         controls Validating method so we can repull the data when the
11909         control loses focus.
11910
11911 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
11912
11913         * ColumnHeader.cs:
11914           - Fixes null string format
11915           
11916         * ListView.cs:
11917           - Adds enum type checks
11918           - Fixes redrawing and recalc need after changing some properties
11919           - Fixes on focus_item set after the event
11920           - Fixes adding columns after the control has been created
11921           
11922         * ThemeWin32Classic.cs:
11923           - Fixes CheckBox focus rectangle
11924           - Fixes ColumnHeader drawing
11925
11926
11927 2005-03-03  Jackson Harper  <jackson@ximian.com>
11928
11929         * Binding.cs: Bind to <Property>Changed events so we can detect
11930         when properties are changed and update the data.
11931
11932 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
11933
11934         * ImageList.cs:
11935           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
11936           - Fixes ImageList constructor with ImageList container
11937           - Fixes image scaling (wrong parameters at DrawImage)
11938
11939 2005-02-02  Jackson Harper  <jackson@ximian.com>
11940
11941         * Binding.cs: Make property searches case-insensitive. Eliminate
11942         some duplicated code.
11943
11944 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
11945
11946         * ComboBox.cs:
11947                 - Handle focus event
11948                 - Fix scrollbar events
11949                 - Discard highlighted item if remove it
11950                 - Fixes SelectedItem with strings
11951
11952 2005-03-01  Peter Bartok  <pbartok@novell.com>
11953
11954         * Control.cs:
11955           - Fixed Visible property, now follows (once again) parent chain
11956             to return false if any control in the chain is visible=false
11957           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
11958           - Fixed several places where is_visible instead of Visible was used
11959           - Implemented FIXME related to focus selection when setting focused
11960             control to be invisible
11961
11962         * XplatUIWin32.cs: Now using proper method to find out if window is
11963           visible. Thanks to Jordi for pointing it out
11964
11965 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
11966
11967         * ComboBox.cs: show/hide scrollbar instead of creating it
11968
11969 2005-02-27  Jackson Harper  <jackson@ximian.com>
11970
11971         * CurrencyManager.cs: Add PositionChanged stuff.
11972
11973 2005-02-27  Peter Bartok  <pbartok@novell.com>
11974
11975         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
11976         * XplatUIOSX.cs: Added GetMenuOrigin() stub
11977         * XplatUIWin32.cs: Implemented GetMenuOrigin()
11978         * XplatUIX11.cs:
11979           - Implemented GetMenuDC()
11980           - Implemented GetMenuOrigin()
11981           - Implemented ReleaseMenuDC()
11982           - Implemented generation of WM_NCPAINT message
11983           - Implemented generation and handling of WM_NCCALCSIZE message
11984         * Form.cs: Added debug helper message for Jordi's menu work
11985         * Hwnd.cs:
11986           - Modified ClientRect property; added setter, fixed getter to handle
11987             setting of ClientRect
11988           - Added MenuOrigin property
11989
11990 2005-02-26  Peter Bartok  <pbartok@novell.com>
11991
11992         * XplatUIX11.cs:
11993           - Destroys the caret if a window that's being destroyed contains it
11994           - Ignores expose events coming from the X11 queue for windows that
11995             already are destroyed
11996           - Now uses the proper variable for handling DestroyNotify, before we
11997             marked the wrong window as destroyed
11998           - Improved/added some debug output
11999
12000 2005-02-26  Peter Bartok  <pbartok@novell.com>
12001
12002         * X11Keyboard.cs: Fixes to work on 64bit systems
12003
12004 2005-02-26  Peter Bartok  <pbartok@novell.com>
12005
12006         * Control.cs:
12007           - Now calling OnHandleDestroyed from DestroyHandle()
12008             instead of Dispose()
12009           - Removed bogus call to controls.Remove() from DestroyHandle()
12010
12011 2005-02-26  Peter Bartok  <pbartok@novell.com>
12012
12013         * Control.cs: Properly destroy child windows when our handle is
12014           destroyed
12015
12016 2005-02-25  Peter Bartok  <pbartok@novell.com>
12017
12018         * XplatUI.cs:
12019           - Added 'DriverDebug' define to allow tracing XplatUI API calls
12020           - Alphabetized Static Methods and Subclasses
12021
12022         * XplatUIX11.cs:
12023           - Added XException class to allow custom handling of X11 exceptions
12024           - Created custom X11 error handler, tied into XException class
12025           - Added support for MONO_XEXCEPTIONS env var to allow the user
12026             to either throw an exception on X errors or continue running
12027             after displaying the error
12028           - Added handling of DestroyNotify message
12029           - Added handler for CreateNotify message (still disabled)
12030           - Improved (tried to at least) Where method to provide file and lineno
12031         * X11Structs.cs:
12032           - Added XErrorHandler delegate
12033           - Added XRequest enumeration (to suppor translation of errors)
12034
12035 2005-02-25  Jackson Harper  <jackson@ximian.com>
12036
12037         * PropertyManager.cs: Implement editing features
12038         * CurrencyManager.cs:
12039         * Binding.cs: First attempt at UpdateIsBinding
12040         * BindingManagerBase.cs: Call UpdateIsBinding before
12041         pushing/pulling data.
12042
12043 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
12044
12045         * MenuAPI.cs: Respect disabled items
12046         * ThemeWin32Classic.cs
12047                 - Caches ImageAttributes creation for DrawImageDisabled
12048                 - Fixes vertical menu line drawing
12049                 - Draws disabled arrows in disable menu items
12050
12051 2005-02-24  Peter Bartok  <pbartok@novell.com>
12052
12053         * Hwnd.cs:
12054           - Added UserData property to allow associating arbitrary objects
12055             with the handle
12056           - Fixed leak; now removing Hwnd references from static windows array
12057         * XplatUIWin32.cs:
12058           - Fixed Graphics leak in PaintEventEnd
12059           - Removed usage of HandleData, switched over to Hwnd class
12060         * HandleData.cs: Removed, obsoleted by Hwnd.cs
12061
12062 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
12063
12064         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
12065         * ScrollBar.cs: Fixes bug
12066         * TrackBar.cs: removes death code, clipping, mimize refreshes,
12067          keyboard navigation enhancements
12068
12069 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
12070
12071         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
12072         * GroupBox.cs: Add control styles
12073         * Label.cs: Add control styles
12074         * UpDownBase.cs: Add control styles
12075         * ListBox.cs: Add control styles
12076         * XplatUIWin32.cs: Fixes wrong parameter order
12077
12078
12079 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
12080
12081         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
12082
12083 2005-02-23  Jackson Harper  <jackson@ximian.com>
12084
12085         * PropertyManager.cs: Implement property binding. This doesn't
12086         seem to work yet though as (I think) there are some bugs in
12087         System.ComponentModel.PropertyDescriptor.
12088         * BindingContext.cs: Use new PropertyManager constructor.
12089
12090 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
12091
12092         * ProgressBar.cs: use clip region in ProgressBar
12093         * ThemeWin32Classic.cs: use clip region in ProgressBar
12094
12095 2004-02-22  Jackson Harper  <jackson@ximian.com>
12096
12097         * BindingsCollection.cs: Remove some debug code.
12098
12099 2005-02-22  Jackson Harper  <jackson@ximian.com>
12100
12101         * BindingContext.cs:
12102         * ControlBindingsCollection.cs:
12103         * CurrencyManager.cs:
12104         * Binding.cs:
12105         * BindingManagerBase.cs: Initial implementation
12106         * BindingsCollection.cs: Add an internal contains method that the
12107         BindingManagerBase uses to ensure bindings aren't added twice to
12108         the collection.
12109         * PropertyManager.cs: Stubbed out.
12110         * Control.cs:
12111         * ContainerControl.cs: Hook up databinding
12112         
12113 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
12114
12115         * XplatUIOSX.cs:
12116           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
12117           Fixed Invalidate/Update chain.
12118           Fixed tons of other minor bugs (this is almost a complete rewrite).
12119
12120 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
12121
12122         * ComboBox.cs: do subcontrol creation when the control is created
12123
12124 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
12125
12126         * Label.cs: fixes image drawing (image and imagelist)
12127         * ThemeWin32Classic.cs: cache brushes
12128         
12129 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
12130
12131         * Form.cs: Move menu drawing code to Theme class
12132         * ComboBox.cs: Move ComboBox drawing code to Theme class
12133         * MenuItem.cs: Move menu drawing code to Theme class
12134         * MenuAPI.cs: Move menu drawing code to Theme class
12135         * ThemeWin32Classic.cs: New methods
12136         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
12137         * ListBox.cs: Move Listbox drawing code to Theme class
12138         * Theme.cs: New methods
12139
12140 2005-02-20  Peter Bartok  <pbartok@novell.com>
12141
12142         * Control.cs:
12143           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
12144             only process mnemonics on those)
12145           - Fixed event sequence for key handling; first calling
12146             ProcessKeyEventArgs now
12147         * TextBoxBase.cs:
12148           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
12149             for processing non-character keys
12150           - Fixed WM_CHAR to generate proper event sequence before processing
12151         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
12152           generation
12153
12154 2005-02-19  Peter Bartok  <pbartok@novell.com>
12155
12156         * UserControl.cs: Added TextChanged event; added attributes
12157         * SizeGrip.cs: Implemented resizing and optional display of grip
12158         * Form.cs: Fixed attribute
12159         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
12160           Changed meaning of ScrollWindow bool argument; instead of the
12161           clear attribute (which will be true usually anyway), it gives the
12162           option of moving child controls as well.
12163         * XplatUIX11.cs:
12164           - Changed to match new ScrollWindow argument
12165           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
12166             now handles the implicit parent window a WM puts around us
12167         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
12168           to work)
12169         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
12170         * TreeView.cs: Adjusted to new ScrollWindow arguments
12171
12172 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
12173
12174         * Form.cs: Menu integration with non-client area
12175         * MenuItem.cs: Menu integration with non-client area
12176         * MenuAPI.cs: Menu integration with non-client area
12177
12178 2005-02-18  Peter Bartok  <pbartok@novell.com>
12179
12180         * MethodInvoker.cs: Added
12181         * MdiLayout.cs: Added
12182         * SendKeys.cs: Started implementation
12183         * ErrorIconAlignment.cs: Added
12184
12185 2005-02-18  Peter Bartok  <pbartok@novell.com>
12186
12187         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
12188         * Form.cs: Added handling for Menu-related Non-client messages
12189
12190 2005-02-17  Peter Bartok  <pbartok@novell.com>
12191
12192         * UpDownBase.cs: Fixed typo, compilation errors
12193         * DomainUpDown.cs: Fixed attribute value
12194
12195 2005-02-16  Miguel de Icaza  <miguel@novell.com>
12196
12197         * UpDownBase.cs: Attach entry events.
12198         Propagate events.
12199         Add ForeColor property, Focused, InterceptArrowKeys (interception
12200         does not work yet).
12201
12202 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
12203
12204         * Form.cs:
12205                 - Redraw non client are on Setmenu
12206                 - Calc proper menu starting point
12207
12208 2005-02-17  Peter Bartok  <pbartok@novell.com>
12209
12210         * Application.cs: Fixed message_filter check
12211
12212 2005-02-17  Peter Bartok  <pbartok@novell.com>
12213
12214         * Application.cs: Now calls registered message filters
12215         * DockStyle.cs: Fixed attribute
12216         * Form.cs: Fixed attribute
12217         * Menu.cs: Fixed attribute
12218         * ToolTip.cs: Fixed attribute
12219         * TreeNode.cs: Added missing attributes and arranged in regions
12220         * PropertyGrid.cs: Fixed signatures
12221         * TreeNodeCollection.cs: Added attributes
12222         * Splitter.cs: Added missing attributes; arranged into regions
12223         * TabPage.cs: Added missing attributes; arranged into regions
12224         * TextBoxBase.cs: Added missing attributes
12225         * TextBox.cs: Added missing attributes
12226         * ArrangeDirection.cs: Added missing attributes
12227         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
12228         * ToolBarButton.cs: Fixed attributes
12229         * AnchorStyles.cs: Fixed attribute
12230         * TrackBar.cs: Fixed attributes
12231         * TabControl.cs: Added missing attributes and arranged into regions
12232         * ToolBar.cs: Fixed attribute
12233         * StatusBar.cs: Fixed signature, organized into regions and added
12234           attributes
12235         * StatusBarPanel.cs: Fixed attributes
12236         * ContentsResizedEventArgs.cs: Implemented
12237         * ContentsResizedEventHandler.cs: Implemented
12238         * DateBoldEventArgs.cs: Implemented
12239         * DateBoldEventHandler.cs: Implemented
12240         * UpDownEventArgs.cs: Implemented
12241         * UpDownEventHandler.cs: Implemented
12242         
12243 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
12244
12245         * Form.cs: first Menu NC refactoring
12246         * MenuAPI.cs: first Menu NC refactoring
12247         
12248 2005-02-16  Peter Bartok  <pbartok@novell.com>
12249
12250         * ImeMode.cs: Added missing attributes
12251         * Menu.cs: Fixed attribute
12252         * GroupBox.cs: Fixed attribute
12253         * Label.cs: Fixed attribute
12254         * ColorDialog.cs (RunDialog): Removed TODO attribute
12255         * ComboBox.cs: Fixed attributes
12256         * ListControl.cs: Added missing attributes
12257         * PropertyGrid.cs: Fixed attributes
12258         * Control.cs: Fixed attributes
12259         * ListViewItem.cs: Added TypeConverter attribute
12260         * NotifyIcon.cs: Fixed attributes
12261         * ListView.cs: Fixed attributes
12262         * ButtonBase.cs: Fixed attribute
12263         * ImageList.cs: Added missing attributes
12264         * ContainerControl.cs: Fixed signature
12265         * CheckedListBox.cs: Fixed attribute; added missing attributes
12266         * Panel.cs: Fixed attributes
12267         * PropertyTabChangedEventArgs.cs: Added missing attribute
12268         * PropertyValueChangedEventArgs.cs: Added missing attribute
12269         * Binding.cs: Fixed attribute
12270         * ListViewItemConverter: Implemented ListViewSubItemConverter class
12271         * ListBox.cs: Fixed attribute; added missing attributes;
12272         * ScrollableControl.cs: Added missing attributes
12273         * PictureBox.cs: Added missing attributes; implemented missing property
12274         * DateTimePicker.cs: Added missing attributes
12275         * Theme.cs (ToolWindowCaptionHeight): Fixed type
12276         * MonthCalendar.cs: Fixed attributes
12277         * StatusBarPanel.cs: Added missing attributes
12278         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
12279
12280 2005-02-16  Peter Bartok  <pbartok@novell.com>
12281
12282         * TextBoxBase.cs: The previous method to enforce height yet remember
12283           the requested high was less than ideal, this is an attempt to do
12284           it better.
12285         * Control.cs: Added comment about possible problem
12286         * Copyright: Updated format
12287         * GridItemType.cs: Fixed swapped values
12288
12289 2005-02-15  Jackson Harper  <jackson@ximian.com>
12290
12291         * BaseCollection.cs: Use property so we never access an
12292         uninitialized list. Also initialize the list in the property.
12293
12294 2005-02-15  Peter Bartok  <pbartok@novell.com>
12295
12296         * GroupBox.cs (ProcessMnemonic): Implemented
12297         * Label.cs (ProcessMnemonic): Implemented
12298         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
12299           hotkeys
12300
12301 2005-02-15  Peter Bartok  <pbartok@novell.com>
12302
12303         * RadioButton.cs (ProcessMnemonic): Implemented
12304         * CheckBox.cs (ProcessMnemonic): Implemented
12305         * Control.cs:
12306           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
12307             handling
12308           - Added internal method to allow calling ProcessMnemonic from other
12309             controls
12310         * ContainerControl.cs:
12311           - Started support for handling validation chain handling
12312           - Implemented ProcessMnemonic support
12313           - Added Select() call to Active, to make sure the active control
12314             receives focus
12315         * Form.cs: Setting toplevel flag for Forms (this was lost in the
12316           FormParent rewrite)
12317         * ThemeWin32Classic.cs:
12318           - DrawCheckBox(): Fixed stringformat to show hotkeys
12319           - DrawRadioButton(): Fixed stringformat to show hotkeys
12320         * CommonDialog.cs: Removed WndProc override, not needed
12321
12322 2005-02-14  Peter Bartok  <pbartok@novell.com>
12323
12324         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
12325           missed those in the rewrite
12326
12327 2005-02-14  Miguel de Icaza  <miguel@novell.com>
12328
12329         * NumericUpDown.cs (Increment, ToString): Add.
12330         (DecimalPlaces): implement.
12331         
12332         Add attributes.
12333         
12334         * UpDownBase.cs: Add the designer attributes.
12335
12336 2005-02-13  Peter Bartok  <pbartok@novell.com>
12337
12338         * Panel.cs: Removed border_style, now in Control
12339         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
12340           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
12341
12342 2005-02-13  Peter Bartok  <pbartok@novell.com>
12343
12344         * MouseButtons.cs: Added missing attributes
12345         * XplatUIStructs.cs: Added enumeration for title styles
12346         * LeftRightAlignment.cs: Added missing attributes
12347         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
12348           it compatible with Graphics.FromHwnd()
12349         * SelectedGridItemChangedEventArgs.cs: Fixed property type
12350         * Keys.cs: Added missing attributes
12351         * SelectionRange.cs: Added missing attributes
12352         * SelectionRangeConverter.cs: Added
12353         * XplatUI.cs:
12354           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
12355             ReleaseMenuDC methods
12356           - Renamed ReleaseWindow to UngrabWindow
12357           - Added proper startup notice to allow version identification
12358         * Form.cs:
12359           - Added missing attributes
12360           - Removed FormParent concept
12361         * Label.cs: Removed border_style field, now in Control
12362         * RadioButton.cs: Now properly selects RadioButton when focus is
12363           received
12364         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
12365         * Control.cs:
12366           - Added missing attributes
12367           - Added borderstyle handling
12368           - Removed FormParent concept support
12369           - Fixed calls to XplatUI to match changed APIs
12370           - Fixed bug that would case us to use disposed Graphics objects
12371           - Removed unneeded internal methods
12372           - PerformLayout(): Fixed to handle DockStyle.Fill properly
12373           - SelectNextControl(): Fixed to properly check common parents
12374         * TextBoxBase.cs: Removed border_style field (now in Control)
12375         * MessageBox.cs:
12376           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
12377             fixed calculations for form size
12378           - Added support for localized strings and icons
12379           - Improved form size calculations, added border
12380         * ListView.cs: Removed border_style field (now in Control)
12381         * X11Structs.cs: Moved several structs from X11 driver here
12382         * X11Keyboard.cs: Changed debug message
12383         * Application.cs: Removed FormParent concept support
12384         * CommonDialog.cs:
12385           - Resetting end_modal flag
12386           - Removed FormParent concept support
12387         * NativeWindow.cs: Removed FormParent concept support
12388         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
12389           Client area and Non-Client whole window to allow support for WM_NC
12390           messages
12391         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
12392           prevent using it until it supports Hwnd as per Geoff Norton's request
12393         * ToolBar.cs: Fixed drawing, was not doing proper drawing
12394         * PictureBox.cs: Removed border_style field, now in Control
12395         * XplatUIWin32.cs: Added new driver methods
12396
12397 2005-02-12  Peter Bartok  <pbartok@novell.com>
12398
12399         * OpacityConverter.cs: Implemented
12400         * Hwnd.cs: Internal class to support drivers that need to emulate
12401           client area/non-client area window behaviour
12402
12403 2005-02-11  Peter Bartok  <pbartok@novell.com>
12404
12405         * KeysConverter.cs: Implemented
12406
12407 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
12408
12409         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
12410         * LinkLabel: Added missing attributes
12411         * MainMenu.cs: fixes ToString
12412         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
12413         * ListBox.cs: fixes event position
12414         * TrackBar.cs: adds missing attributes and events
12415         
12416 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
12417
12418         * MenuItem.cs: Use SystemInformation and bug fixes
12419         * MenuAPI.cs: Use SystemInformation and bug fixes
12420
12421 2005-02-09  Jackson Harper  <jackson@ximian.com>
12422
12423         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
12424         their keystate otherwise things like VK_MENU get stuck "on".
12425
12426 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
12427
12428         * ListBox.cs: Fixes AddRange bug
12429         
12430 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
12431
12432         * ProgressBar.cs
12433                 - Add missing attributes
12434                 - Add missing method
12435                 
12436         * CheckedListBox.cs: Added missing attributes
12437                 - Add missing attributes
12438                 - Remove extra method
12439         
12440         * ComboBox.cs: Added missing attributes
12441         * VScrollBar.cs: Added missing attributes
12442         * ScrollBar.cs:  Added missing attributes
12443         * ListBox.cs: Fixes signature, add missing consts
12444         * LinkArea.cs:   Added missing attributes
12445         
12446
12447 2005-02-08  Peter Bartok  <pbartok@novell.com>
12448
12449         * Menu.cs: Added missing attributes
12450         * MainMenu.cs: Added missing attributes
12451         * GroupBox.cs: Added missing attributes
12452         * Label.cs: Added missing attributes
12453         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
12454         * ColorDialog.cs:
12455           - Added Instance and Options properties
12456           - Added missing attributes
12457         * Cursor.cs: Made Serializable
12458         * NotifyIcon: Added missing attributes
12459         * MenuItem.cs: Added missing attributes
12460         * TextBoxBase.cs: Implemented AppendText() and Select() methods
12461         * Panel.cs: Added Missing attributes
12462         * MonthCalendar.cs: Fixed CreateParams
12463
12464 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
12465         
12466         * LinkLabel.cs:
12467                 - Fixes signature
12468                 - Fixes issues with links
12469                 - Adds the class attributes
12470
12471 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
12472         
12473         * ComboBox.cs:
12474                 - Fixes button when no items available in dropdown
12475                 - Fixes repainting problems
12476                 - Adds the class attributes
12477                 
12478 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
12479
12480         * XplatUIOSX.cs: Detect the menu bar and title bar height from
12481         the current theme.  Cache these on startup.
12482
12483 2005-02-07  Jackson Harper  <jackson@ximian.com>
12484
12485         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
12486         the scrollbar buttons when they are depressed.
12487
12488 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
12489
12490         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
12491         Get the display size from the main displayid.  We currently dont
12492         support multiple display configurations.
12493
12494 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
12495
12496         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
12497
12498 2005-02-07  Miguel de Icaza  <miguel@novell.com>
12499
12500         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
12501
12502 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
12503
12504         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
12505
12506 2005-02-04  Jackson Harper  <jackson@ximian.com>
12507
12508         * ThemeWin32Classic.cs: Respect the clipping rect when
12509         drawing. Only fill the intersection of clips and rects so there
12510         isn't a lot of large fills.
12511         * ScrollBar.cs: Pass the correct clipping rect to the theme
12512         engine. Remove some debug code.
12513
12514 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
12515         
12516         * DateTimePicker.cs:
12517                 - Fixed crash on DateTime.Parse, use Constructor instead
12518
12519 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
12520         
12521         * MenuItem.cs:
12522         * MenuAPI.cs:
12523                 - Owner draw support (MeasureItem and DrawItem)
12524
12525 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
12526         
12527         *  Menu.cs:
12528                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
12529                 - Fixes MenuItems.Add range
12530         * MenuItem.cs:
12531                 - MergeMenu and Clone and CloneMenu functions
12532
12533 2005-02-03  Jackson Harper  <jackson@ximian.com>
12534
12535         * ScrollBar.cs: Make abstract
12536         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
12537         is abstract.
12538
12539 2005-02-03  Jackson Harper  <jackson@ximian.com>
12540
12541         * ScrollBar.cs: First part of my scrollbar fixups. This removes
12542         all the unneeded refreshes and uses invalidates with properly
12543         computed rects.
12544
12545 2005-02-03  Peter Bartok  <pbartok@novell.com>
12546
12547         * ComponentModel.cs: Added
12548         * IDataGridEditingService.cs: Added
12549         * Timer.cs: Added missing attributes
12550         * ToolTip.cs: Added missing attributes
12551
12552 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
12553
12554         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
12555
12556 2005-02-03  Peter Bartok  <pbartok@novell.com>
12557
12558         * ListBox.cs: Added missing attributes
12559
12560 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
12561         
12562         * ListBox.cs:
12563                 - Fixes font height after font change
12564                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
12565                 
12566 2005-02-02  Peter Bartok  <pbartok@novell.com>
12567
12568         * HandleData.cs: Introduced static methods to allow class
12569           to be more self-contained and track it's own HandleData objects
12570         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
12571           HandleData to use new static methods
12572
12573 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
12574
12575         * Combobox.cs:
12576                 - Fixes default size and PreferredHeight
12577                 - Missing events
12578                 - ObjectCollection.Insert implementation
12579                 
12580         * ListControl.cs
12581                 - Fixes signature
12582         * ListBox.cs:
12583                 - Several fixes
12584                 - ObjectCollection.Insert implementation
12585                 - No selection after clean
12586                 - Small fixes
12587
12588 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
12589
12590         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
12591
12592 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
12593
12594         * Combobox.cs:
12595                 - Caches ItemHeight calculation for OwnerDrawVariable
12596                 - Handles dropdown properly
12597                 - Fixes several minor bugs
12598
12599 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
12600
12601         * ListBox.cs:
12602                 - Fixes 71946 and 71950
12603                 - Fixes changing Multicolumn on the fly
12604                 - Fixes keyboard navigation on Multicolumn listboxes
12605
12606 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
12607         
12608         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
12609         crash reporter log.
12610
12611 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
12612
12613         * XplatUIOSX.cs: Allow applications to actually exit.
12614
12615 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
12616
12617         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
12618         their parent at creation time rather than lazily later.  Fixes a major
12619         regression we were experiencing.
12620
12621 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
12622
12623         * ThemeWin32Classic.cs: more date time picker painting fixes
12624         * DateTimePicker.cs: more monthcalendar drop down fixes
12625         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
12626
12627 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
12628
12629         * ScrollBar.cs:
12630                 - When moving the thumb going outside the control should stop the moving
12631                 - Adds the firing of missing events
12632                 - Fixes no button show if Size is not specified
12633                 - End / Home keys for keyboard navigation
12634
12635 2005-01-30  Peter Bartok  <pbartok@novell.com>
12636
12637         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
12638           sanity check to prevent theoretical loop
12639         * XplatUIWin32.cs (SetVisible): Removed debug output
12640         * XplatUIX11.cs (SystrayChange): Added sanity check
12641         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
12642         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
12643           behaviour, valid until the X11 client window rewrite is done
12644         * TextBox.cs (ctor): Setting proper default foreground and background
12645           colors
12646
12647 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
12648
12649         * Theme: Added DrawDateTimePicker to interface
12650         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
12651         * DateTimePicker.cs: Created (still needs keys and painting code)
12652         * DateTimePickerFormat.cs: added
12653         * MonthCalendar.cs: fixed CreateParams for popup window mode
12654           
12655 2005-01-29  Peter Bartok  <pbartok@novell.com>
12656
12657         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
12658           this should also the calculations for ligher/darker
12659         * Theme.cs: Fixed defaults for ScrollBar widths/heights
12660
12661 2005-01-29  Peter Bartok  <pbartok@novell.com>
12662
12663         * ArrangeDirection.cs: Added
12664         * ArrangeStartingPositon.cs: Added
12665         * SystemInformation.cs: Implemented
12666         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12667           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
12668           used by SystemInformation class
12669         * X11Strucs.cs: Added XSizeHints structure
12670         * MenuAPI.cs:
12671           - Fixed CreateParams to make sure the menu window is always visible
12672           - TrackPopupMenu: Added check to make sure we don't draw the
12673             menu offscreen
12674
12675 2005-01-29  Peter Bartok  <pbartok@novell.com>
12676
12677         * HandleData.cs: Added method for altering invalid area
12678         * TextBoxBase.cs: Implemented TextLength
12679
12680 2005-01-28  Peter Bartok  <pbartok@novell.com>
12681
12682         * XplatUIX11.cs: Improvement over last patch, not sending
12683           the WM_PAINT directly anymore, instead we scroll any pending
12684           exposed areas and let the system pick out the WM_PAINT later
12685
12686 2005-01-28  Peter Bartok  <pbartok@novell.com>
12687
12688         * SWF.csproj: Deleted, no longer used. Instead,
12689           Managed.Windows.Forms/SWF.csproj should be used
12690         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
12691           directly, to avoid a potential race condition with the next
12692           scroll
12693
12694 2005-01-28  Peter Bartok  <pbartok@novell.com>
12695
12696         * XplatUI.cs: Made class internal
12697
12698 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
12699
12700         * CheckedListBox.cs:
12701                 - Draw focus
12702                 - Fixed Drawing
12703                 - Missing methods and events
12704
12705 2005-01-27  Peter Bartok  <pbartok@novell.com>
12706
12707         * Application.cs (Run): Don't use form if we don't have one
12708
12709 2005-01-27  Peter Bartok  <pbartok@novell.com>
12710
12711         * TextBoxBase.cs (get_Lines): Fixed index off by one error
12712
12713 2005-01-27  Peter Bartok  <pbartok@novell.com>
12714
12715         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
12716         * GridItem.cs: Added; Patch by Jonathan S. Chambers
12717         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
12718         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
12719         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
12720         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
12721         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12722         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
12723         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12724         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12725         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12726         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
12727
12728 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
12729
12730         * Combobox.cs:
12731                 - Draw focus on Simple Combobox
12732                 - Fixes drawing issues
12733                 - fixes 71834
12734
12735 2005-01-27  Peter Bartok  <pbartok@novell.com>
12736
12737         * Form.cs:
12738           - Place window in default location, instead of hardcoded 0/0
12739           - Send initial LocationChanged event
12740         * Control.cs:
12741           - UpdateBounds after creation to find out where the WM placed us
12742           - Make sure that if the ParentForm changes location the Form
12743             is notified
12744         * XplatUIX11.cs: XGetGeometry will not return the coords relative
12745             to the root, but to whatever the WM placed around us.
12746             Translate to root coordinates before returning toplevel
12747             coordinates
12748         * XplatUIWin32.cs: Removed debug output
12749         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
12750           flag to GetWindowPos, to allow translation of coordinates on X11
12751
12752 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
12753
12754         * ListBox.cs: connect LostFocus Event
12755
12756 2005-01-27  Peter Bartok  <pbartok@novell.com>
12757
12758         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
12759           XplatUIX11.cs: Extended the Systray API
12760         * Form.cs: Removed debug output
12761         * Application.cs: Fixed focus assignment, always need to call
12762           XplatUI.Activate() since Form.Activate() has rules that may
12763           prevent activation
12764         * NotifyIcon.cs: Should be complete now
12765         * ToolTip.cs: Worked around possible timer bug
12766
12767 2005-01-27  Jackson Harper  <jackson@ximian.com>
12768
12769         * TabControl.cs:
12770         - Only invalidate the effected tabs when the
12771         selected index changes. This reduces drawing and gets rid of some
12772         flicker.
12773         - Only refresh if the tabs need to be shifted, otherwise only
12774         invalidate the slider button.
12775         - On windows the tabs are not filled to right if the slider is
12776         visible.
12777         
12778 2005-01-27  Jackson Harper  <jackson@ximian.com>
12779
12780         * TabControl.cs: Only refresh on mouseup if we are showing the
12781         slider. Also only invalidate the button whose state has changed.
12782
12783 2005-01-26  Peter Bartok  <pbartok@novell.com>
12784
12785         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
12786         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
12787           and SystrayRemove() methods
12788         * XplatUIOSX.cs: Stubbed Systray methods
12789         * XplatUIX11.cs:
12790           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
12791             methods
12792           - Fixed broken XChangeProperty calls (marshalling messed up things)
12793         * X11Structs.cs: Added enums and structs required for Size hinting
12794         * NotifyIcon.cs: Added & implemented
12795
12796 2005-01-26  Jackson Harper  <jackson@ximian.com>
12797
12798         * TabControl.cs: Space vertically layed out tabs properly.
12799
12800 2005-01-26  Peter Bartok  <pbartok@novell.com>
12801
12802         * Form.cs (CreateClientParams): Always set the location to 0,0
12803           since we're a child window.
12804
12805         * Control.cs (SetVisibleCore): Always explicitly setting the location
12806           of a toplevel window, apparently X11 doesn't like to move windows
12807           while they're not mapped.
12808
12809 2005-01-26  Jackson Harper  <jackson@ximian.com>
12810
12811         * TabControl.cs: Implement FillToRight size mode with vertically
12812         rendered tabs.
12813
12814 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
12815
12816         * ControlPaint.cs, ThemeWin32Classic.cs
12817                 - Fixes DrawFocusRectangle
12818
12819 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
12820
12821         * MenuAPI.cs:
12822                 - MenuBar tracking only starts when item is first clicked
12823                 - Fixes menu hidding for multiple subitems
12824                 - Unselect item in MenuBar when item Executed
12825                 - Fixes bug 71495
12826
12827 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
12828
12829         * ListControl.cs:
12830                 - IsInputKey for ListBox
12831         * ListBox.cs:
12832                 - Focus item
12833                 - Shift and Control item selection
12834                 - Implement SelectionMode.MultiExtended
12835                 - Fixes RightToLeft
12836         * ComboBox.cs:
12837                 - IsInputKey implemented
12838                 - Do not generate OnTextChangedEdit on internal txt changes
12839                 
12840 2005-01-23  Peter Bartok  <pbartok@novell.com>
12841
12842         * AccessibleObject.cs: Partially implemented Select()
12843         * MonthCalendar.cs: Added missing attributes and events
12844         * Form.cs: Fixed CreateParams behaviour, now controls derived from
12845           form can properly override CreateParams.
12846         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12847           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
12848           Control performs Invalidate & Update
12849         * NativeWindow (CreateHandle): Added special handling for Form
12850           and Form.FormParent classes to allow overriding of From.CreateParams
12851         * Control.cs:
12852           - ControlNativeWindow: Renamed 'control' variable to more intuitive
12853             name 'owner'
12854           - ControlNativeWindow: Added Owner property
12855           - Removed usage of Refresh() on property changes, changed into
12856             Invalidate(), we need to wait until the queue is processed for
12857             updates, direct calls might cause problems if not all vars for
12858             Paint are initialized
12859           - Added call to UpdateStyles() when creating the window, to set any
12860             styles that CreateWindow might have ignored.
12861           - Added support for Form CreateParent overrides to UpdateStyles()
12862         * MessageBox.cs: Removed no longer needed FormParent override stuff,
12863           CreateParams are now properly overridable
12864         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
12865           CreateParams are now properly overridable
12866
12867 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
12868
12869         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
12870         OnTextBoxChanged.
12871
12872         Capture LostFocus and OnTextBoxChanged.  The later introduces a
12873         recursive invocation that I have not figured out yet.
12874
12875         Reset the timer when not using (it was accumulating).
12876
12877
12878         (OnTextBoxChanged): Set UserEdit to true here to track whether the
12879         user has made changes that require validation.
12880
12881         Reset changing to avoid loops.
12882
12883 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
12884
12885         * NumericUpDown.cs: Display value at startup.
12886
12887         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
12888         ValidateEditText.
12889
12890         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
12891         filled in.  Added some basic parsing of text.
12892
12893         Still missing the OnXXX method overrides, and figuring out the
12894         events that must be emitted.
12895
12896         * UpDownBase.cs: Handle UserEdit on the Text property.
12897         
12898 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
12899
12900         * ComboBox.cs:
12901           - Fixes IntegralHeight
12902           - ToString method
12903
12904 2005-01-21  Jackson Harper  <jackson@ximian.com>
12905
12906         * TabControl.cs: Set the SelectedIndex property when SelectedTab
12907         is set so that the page visibility is updated and the tabs are
12908         sized correctly.
12909
12910 2005-01-21  Jackson Harper  <jackson@ximian.com>
12911
12912         * TabControl.cs: Use cliping rectangle for blitting. Give the
12913         theme the clipping rect so we can do clipping while
12914         drawing. Remove some debug code.
12915
12916 2005-01-21  Jackson Harper  <jackson@ximian.com>
12917
12918         * TabPage.cs: Add a new method so tab pages can force the tab
12919         control to recalculate the tab page sizes.
12920         * TabControl.cs: UpdateOwner needs to make the tab control recalc
12921         sizes.
12922
12923 2005-01-20  Jackson Harper  <jackson@ximian.com>
12924
12925         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
12926
12927 2005-01-20  Jackson Harper  <jackson@ximian.com>
12928
12929         * TreeView.cs: Set the bounds for nodes properly. They were
12930         getting screwed up when checkboxes were not enabled, but images
12931         were.
12932
12933 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
12934
12935         * ListBox.cs:
12936                 - Owner draw support
12937                 - Fixes
12938                 
12939 2005-01-20  Jackson Harper  <jackson@ximian.com>
12940
12941         * XplatUIStructs.cs: More misc keys
12942         * X11Keyboard.cs: Ignore some control keys.
12943
12944 2005-01-20  Jackson Harper  <jackson@ximian.com>
12945
12946         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
12947         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
12948
12949 2005-01-19  Peter Bartok  <pbartok@novell.com>
12950
12951         * Control.cs: Un-selecting the control when it is loosing focus
12952
12953 2005-01-19  Jackson Harper  <jackson@ximian.com>
12954
12955         * TreeView.cs: Hook up to the text controls leave event so we can
12956         end editing when the users clicks outside the text box.
12957         
12958 2005-01-19  Jackson Harper  <jackson@ximian.com>
12959
12960         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
12961         get set in the conversion array.
12962
12963 2005-01-19  Peter Bartok  <pbartok@novell.com>
12964
12965         * Application.cs (ModalRun): Added a call to CreateControl to ensure
12966           focus is properly set
12967         * Button.cs:
12968           - Added missing attributes
12969           - removed styles, those are already set in the base class
12970         * ButtonBase.cs:
12971           - Added missing attributes
12972           - Added clip window styles
12973         * CheckBox.cs: Added missing attributes
12974         * CommonDialog.cs:
12975           - FormParentWindow.CreateParams: Added required clip styles
12976         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
12977           also filters modifier keys
12978         * MessageBox.cs:
12979           - Added assignment of Accept and Cancel button to enable Enter
12980             and Esc keys in MessageBox dialogs
12981           - FormParentWindow.CreateParams: Added required clip styles
12982         * RadioButton.cs: Added missing attributes
12983         * TextControl.cs: No longer draws selection if control does not
12984           have focus
12985         * TextBoxBase.cs:
12986           - Now draws simple rectangle around test area to make it obvious
12987             there's a control. This is a hack until we properly support borders
12988           - A few simple fixes to support selections better, now erases selected
12989             text when typing, and resets selection when using movement keys
12990
12991 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
12992
12993         * UpDownBase.cs: Added some new properties.
12994
12995         * DomainUpDown.cs: Implement a lot to get my test working.
12996
12997 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
12998
12999         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
13000
13001 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
13002
13003         * OSXStructs (WindowAttributes): Fixed csc complaints
13004
13005 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
13006
13007         * XplayUIOSX.cs:
13008           OSXStructs.cs: Initial refactor to move enums and consts into
13009           OSXStructs and use them in the driver for greater readability.
13010
13011 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
13012
13013         * XplatUIOSX.cs: Initial support for Standard Cursors.
13014         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
13015
13016 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
13017
13018         * ComboBox.cs: ability to change style when the ctrl is already
13019         created, missing methods and events, bug fixes, signature fixes
13020
13021 2005-01-19  Peter Bartok  <pbartok@novell.com>
13022
13023         * Cursors.cs (ctor): Added ctor to fix signature
13024
13025 2005-01-18  Peter Bartok  <pbartok@novell.com>
13026
13027         * Button.cs: Implemented DoubleClick event
13028         * ButtonBase.cs:
13029           - Fixed keyboard handling to behave like MS, where the press of
13030             Spacebar is equivalent to a mousedown, and the key release is
13031             equivalent to mouseup. Now a spacebar push will give the same
13032             visual feedback like a mouse click.
13033           - Added missing attributes
13034           - Added ImeModeChanged event
13035           - Added support for generating DoubleClick event for derived classes
13036         * CheckBox.cs:
13037           - Implemented DoubleClick event
13038           - Added missing attributes
13039         * CommonDialog.cs: Added missing attribute
13040         * ContextMenu.cs: Added missing attributes
13041         * RadioButton.cs:
13042           - AutoChecked buttons do not allow to be unselected when clicked
13043             (otherwise we might end up with no selected buttons in a group)
13044           - Added missing attributes
13045           - Implemented DoubleClickEvent
13046         * ThreadExceptionDialog.cs: Enabled TextBox code
13047
13048 2005-01-18  Peter Bartok  <pbartok@novell.com>
13049
13050         * Form.cs: Removed debug output
13051         * Button.cs: Added support for DoubleClick method
13052
13053 2005-01-18  Peter Bartok  <pbartok@novell.com>
13054
13055         * Form.cs:
13056           - Added method to parent window that allows triggering size
13057             calculations when a menu is added/removed
13058           - set_Menu: Cleaned up mess from early days of Form and Control,
13059             now properly triggers a recalc when a menu is added/removed
13060           - Added case to select form itself as focused form if no child
13061             controls exist
13062           - Added PerformLayout call when showing dialog, to ensure properly
13063             placed controls
13064         * Control.cs:
13065           - Select(): Made internal so Form can access it
13066           - Focus(): Only call Xplat layer if required (avoids loop), and sets
13067             status
13068         * Application.cs (Run): Removed hack and calls PerformLayout instead
13069           to trigger calculation when Form becomes visible
13070
13071 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
13072
13073         * ComboBox.cs: fixes for ownerdraw
13074
13075 2005-01-18  Peter Bartok  <pbartok@novell.com>
13076
13077         * TextControl.cs:
13078           - Sentinel is no longer static, each Document gets it's own, this
13079             avoids locking or alternatively overwrite problems when more
13080             than one text control is used simultaneously.
13081           - Switched to use Hilight and HilightText brushes for text selection
13082
13083         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
13084
13085 2005-01-18  Peter Bartok  <pbartok@novell.com>
13086
13087         * Control.cs:
13088           - Hooked up the following events:
13089                 o ControlAdded
13090                 o ControlRemoved
13091                 o HandleDestroyed
13092                 o ImeModeChanged
13093                 o ParentChanged
13094                 o TabStopChanged
13095                 o Invalidated
13096                 o SystemColorsChanged
13097                 o ParentFontChanged
13098                 o Move
13099           - Removed debug output
13100           - Added a call to the current theme's ResetDefaults when a color change
13101             is detected
13102         * Form.cs: Now setting the proper ImeMode
13103         * Theme.cs: Defined a method to force recreation of cached resources
13104           and rereading of system defaults (ResetDefaults())
13105         * ThemeWin32Classic.cs: Added ResetDefaults() stub
13106
13107 2005-01-17  Peter Bartok  <pbartok@novell.com>
13108
13109         * Control.cs: Added missing attributes
13110
13111 2005-01-17  Jackson Harper  <jackson@ximian.com>
13112
13113         * TreeNode.cs: Implement editing. Add missing properties selected
13114         and visible.
13115         * TreeView.cs: Implement node editing. Also some fixes to use
13116         Invalidate (invalid area) instead of Refresh when selecting.
13117
13118 2005-01-17  Peter Bartok  <pbartok@novell.com>
13119
13120         * Control.cs:
13121           - Implemented InvokeGotFocus() method
13122           - Implemented InvokeLostFocus() method
13123           - Implemented InvokePaint() method
13124           - Implemented InvokePaintBackground() method
13125           - Implemented InvokeClick() method
13126           - Implemented FindForm() method
13127           - Implemented RectangleToClient() method
13128           - Implemented ClientToRectangle() method
13129           - Implemented ResetBackColor() method
13130           - Implemented ResetCursor() method
13131           - Implemented ResetFont() method
13132           - Implemented ResteForeColor() method
13133           - Implemented ResetImeMode() method
13134           - Implemented ResetLeftToRight() method
13135           - Implemented ResetText() method
13136           - Implemented Scale() methods
13137           - Implemented ScaleCore() method
13138           - Implemented Update() method
13139           - Removed unused variables
13140           - Stubbed AccessibilityNotifyClients and
13141             ControlAccessibleObject.NotifyClients() methods (dunno what to do
13142             with those yet)
13143           - Now setting proper default for RightToLeft property
13144           - Fixed bug in SetClientSizeCore that would cause windows to get
13145             really big
13146           - Now sending Click/DoubleClick events
13147           - Now selecting controls when left mouse button is clicked on
13148             selectable control
13149         * AccessibleEvents.cs: Added
13150         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
13151         * XplatUIOSX.cs: Stubbed UpdateWindow() method
13152         * XplatUIWin32.cs: Implemented UpdateWindow() method
13153         * XplatUIX11.cs: Implemented UpdateWindow() method
13154         * Form.cs: Removed stray semicolon causing CS0162 warning
13155         * ThemeWin32Classic.cs: Fixed unused variable warnings
13156         * ScrollableControl.cs: Now calls base method for ScaleCore
13157         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
13158           style to avoid interference with internal click handler (which is
13159           different than standard Control click handling)
13160         * RadioButton.cs:
13161           - Now unchecks all sibling radio buttons when control is
13162             selected (Fixes #68756)
13163           - Removed internal tabstop variable, using the one inherited from
13164             Control
13165
13166 2005-01-17  Jackson Harper  <jackson@ximian.com>
13167
13168         * NavigateEventArgs.cs: Fix base type.
13169         * LinkLabel.cs: Sig fix
13170         
13171 2005-01-17  Jackson Harper  <jackson@ximian.com>
13172
13173         * TreeView.cs: Only invalidate the effected nodes bounds when
13174         selecting nodes.
13175
13176 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
13177
13178         * XplatUIWin32.cs: fixes Win32 marshaling
13179         * XplatUIX11.cs: fixes method signature
13180
13181 2005-01-17  Peter Bartok  <pbartok@novell.com>
13182
13183         * XplatUIX11.cs: Clean up resources when we no longer need them
13184
13185 2005-01-17  Peter Bartok  <pbartok@novell.com>
13186
13187         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
13188           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
13189           and DestroyCursor() methods.
13190         * Cursor.cs: Partially implemented, now supports standard cursors;
13191           still contains some debug code
13192         * Cursors.cs: Implemented class
13193         * Control.cs:
13194           - WndProc(): Added handling of WM_SETCURSOR message, setting the
13195             appropriate cursor
13196           - Implemented Cursor property
13197           - Replaced break; with return; more straightforwar and possibly
13198             faster
13199           - Now properly setting the result for WM_HELP
13200         * X11Structs.cs: Added CursorFontShape enum
13201         * XplatUIStructs.cs:
13202           - Added StdCursor enum (to support DefineStdCursor() method)
13203           - Added HitTest enum (to support sending WM_SETCURSOR message)
13204         * XplatUIX11.cs:
13205           - Now sends the WM_SETCURSOR message
13206           - Implemented new cursor methods
13207         * XplatUIOSX.cs: Stubbed new cursor methods
13208         * XplatUIWin32.cs:
13209           - Implemented new cursor methods
13210           - Added GetSystemMetrics function and associated enumeration
13211
13212 2005-01-15  Peter Bartok  <pbartok@novell.com>
13213
13214         * Control.cs:
13215           - WndProc(): Now handles EnableNotifyMessage
13216           - SelectNextControl(): Fixed bug where if no child or sibling
13217             controls exist we looped endlessly
13218
13219 2005-01-14  Jackson Harper  <jackson@ximian.com>
13220
13221         * TreeView.cs: Recalculate the tab pages when a new one is added
13222         so that the proper bounding rects are created.
13223
13224 2005-01-14  Jackson Harper  <jackson@ximian.com>
13225
13226         * TreeView.cs: Draw a gray box instead of a grip in the lower
13227         right hand corner when there are both horizontal and vertical
13228         scroll bars.
13229
13230 2005-01-14  Jackson Harper  <jackson@ximian.com>
13231
13232         * Control.cs: When erasing backgrounds use FromHwnd instead of
13233         FromHdc when there is a NULL wparam. This occurs on the X driver.
13234         * XplatUIX11.cs: Set the wparam to NULL.
13235
13236 2005-01-13  Jackson Harper  <jackson@ximian.com>
13237
13238         * PictureBox.cs: Implement missing methods (except ToString, need
13239         to test that on windows) and events. When visibility is changed we
13240         need to redraw the image because the buffers are killed. When size
13241         is changed refresh if the sizemode needs it.
13242
13243 2005-01-13  Peter Bartok  <pbartok@novell.com>
13244
13245         * Control.cs (SelectNextControl): Was using wrong method to select
13246           a control
13247
13248 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
13249
13250         * ComboBox.cs: fixes dropstyle
13251
13252 2005-01-13  Peter Bartok  <pbartok@novell.com>
13253
13254         * Form.cs:
13255           - Implemented Select() override
13256           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
13257           - Now sets keyboard focus on startup
13258         * Control.cs (SelectNextControl): Now properly handles directed=true
13259         * TextBoxBase.cs:
13260           - WndProc: Now passes tab key on to base if AcceptTabChar=false
13261           - Added (really bad) focus rectangle (mostly for testing)
13262         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
13263           to enforce redraw on focus changes
13264         * ContainerControl.cs:
13265           - Fixed detection of Shift-Tab key presses
13266           - Fixed traversal with arrow keys
13267         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
13268           gonna keep this or if it's complete yet
13269         
13270 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
13271
13272         * ComboBox.cs: missing properties, fixes
13273
13274 2005-01-13  Peter Bartok  <pbartok@novell.com>
13275
13276         * Panel.cs (ctor): Setting Selectable window style to off
13277         * Splitter.cs (ctor): Setting Selectable window style to off
13278         * GroupBox.cs (ctor): Setting Selectable window style to off
13279         * Label.cs (ctor): Setting Selectable window style to off
13280
13281 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
13282
13283         * UpDownBase.cs (InitTimer): If the timer has been already
13284         created, enable it.
13285
13286         Use a TextBox instead of a Label.
13287
13288 2005-01-12  Jackson Harper  <jackson@ximian.com>
13289
13290         * TreeView.cs: Refresh the tree after sorting the nodes. Always
13291         draw the connecting node lines (when ShowLines is true).
13292         * TreeNode.cs: The nodes index can now be updated. This is used
13293         when a node collection is sorted.
13294         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
13295         insert or an existing unsorted node collection can be sorted.
13296         
13297 2005-01-12  Peter Bartok  <pbartok@novell.com>
13298
13299         * ContainerControl.cs: Implemented ProcessDialogKeys()
13300
13301 2005-01-12  Peter Bartok  <pbartok@novell.com>
13302
13303         * Control.cs:
13304           - Implemented SelectNextControl() method
13305           - Several focus related bug fixes
13306           - Fixed Docking calculations to match MS documentation and
13307             behaviour
13308
13309 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
13310
13311         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
13312         bug fixes
13313
13314 2005-01-12  Peter Bartok  <pbartok@novell.com>
13315
13316         * Control.cs:
13317           - Fixed broken Contains() method
13318           - Implemented GetNextControl() method. Finally. This is the pre-
13319             requisite for focus handling.
13320
13321 2005-01-12  Peter Bartok  <pbartok@novell.com>
13322
13323         * OSXStrucs.cs: Added
13324
13325 2005-01-12  Peter Bartok  <pbartok@novell.com>
13326
13327         * XplatUIWin32.cs:
13328           - Removed PeekMessageFlags
13329           - Implemented SetWindowStyle() method
13330         * XplatUIStructs.cs: Added PeekMessageFlags
13331         * X11Structs: Added missing border_width field to XWindowChanges struct
13332         * XplatUIX11.cs:
13333           - PeekMessage: Now throws exception if flags which are not yet
13334             supported are passed
13335           - Implemented SetWindowStyle() method
13336           - Fixed SetZOrder to handle AfterHwnd properly
13337         * XplatUI.cs: Added SetWindowStyle() method
13338         * XplatUIDriver.cs: Added SetWindowStyle() abstract
13339         * Control.cs:
13340           - Implemented UpdateStyles() method
13341           - Implemented UpdateZOrder() method
13342         * XplatUIOSX.cs: Added SetWindowStyle() stub
13343
13344 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
13345
13346         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
13347         button mouse).
13348
13349
13350 2005-01-11  Jackson Harper  <jackson@ximian.com>
13351
13352         * TreeView.cs: Still need to draw lines to siblings even if out of
13353         the current node is out of the clip.
13354
13355 2005-01-11  Jackson Harper  <jackson@ximian.com>
13356
13357         * TreeView.cs: When setting the hbar/vbar/grip position use
13358         SetBounds so that perform layout is only called once. Also suspend
13359         and resume layout so layout is only done once for all controls.
13360         - Removed some debug fluff
13361         * SizeGrip.cs: Call base implmentation in overriding methods.
13362         - When visibility is changed the drawing buffers are killed so we
13363         need to redraw.
13364
13365 2005-01-11  Jackson Harper  <jackson@ximian.com>
13366
13367         * TreeView.cs: Calculate the open node count while drawing. This
13368         saves us an entire tree traversal for every paint operation. Use
13369         a member var for the open node count so less vars are passed around.
13370
13371 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
13372
13373         * MonthCalendar.cs:
13374         - fixed selection to use mousemove, not mouse polling on timer
13375         * ThemeWin32Classic.cs
13376         - removed redundant unused variable "no_more_content"
13377         
13378 2005-01-11  Peter Bartok  <pbartok@novell.com>
13379
13380         * XplatUIX11.cs (DoEvents): Needs to return when no more events
13381           are pending, so it now calls PeekMessage instead of GetMessage;
13382           implemented a incomplete version of PeekMessage
13383         
13384 2005-01-11  Peter Bartok  <pbartok@novell.com>
13385
13386         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
13387           I18n issues
13388         * TextBoxBase.cs: Added sending of TextChanged event
13389
13390 2005-01-10  Jackson Harper  <jackson@ximian.com>
13391
13392         * TreeView.cs: Try not to draw outside the clipping rectangle on
13393         each node element.
13394
13395 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
13396
13397         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
13398
13399 2005-01-10  Jackson Harper  <jackson@ximian.com>
13400
13401         * TreeView.cs:
13402         - Implement fast scrolling. Now only the newly
13403         exposed nodes are drawn and the old image is moved using the
13404         XplatUI::ScrollWindow method.
13405         - Factor in height of nodes when calculating whether or not the
13406         node is in the clipping rect.
13407
13408 2005-01-10  Jackson Harper  <jackson@ximian.com>
13409
13410         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
13411
13412 2005-01-10  Peter Bartok  <pbartok@novell.com>
13413
13414         * Application.cs: Added temporary hack to resolve all our resize
13415           required issues on startup. This will get fixed properly at
13416           some point in the future
13417
13418 2005-01-10  Jackson Harper  <jackson@ximian.com>
13419
13420         * SizeGrip.cs: New internal class that is used as a sizing
13421         grip control...hence the name.
13422
13423 2005-01-10  Peter Bartok  <pbartok@novell.com>
13424
13425         * Control.cs: Implemented proper TabIndex handling, now assigning
13426           a tabindex when a control is added to a container
13427         * GroupBox.cs (ctor): Now sets the Container style bit, required
13428           for Control.GetNextControl()
13429
13430 2005-01-09  Jackson Harper  <jackson@ximian.com>
13431
13432         * TextBoxBase.cs: Clear window when scrolling (fixes build).
13433
13434 2005-01-09  Peter Bartok <pbartok@novell.com>
13435
13436         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
13437           XplatUIX11.cs: Added ability to control ScrollWindow expose and
13438           an overload for ScrollWindow to allow only scrolling a rectangle
13439
13440 2005-01-09  Peter Bartok <pbartok@novell.com>
13441
13442         * Form.cs:
13443           - Implemented SetDesktopBounds method
13444           - Implemented SetDesktopLocation method
13445
13446 2005-01-08  Jackson Harper  <jackson@ximian.com>
13447
13448         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
13449         the node count has changed, this removes to VScroll::Refresh calls
13450         when drawing.
13451
13452 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
13453
13454         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
13455
13456 2005-01-07  Jackson Harper  <jackson@ximian.com>
13457
13458         * TreeNode.cs: Just update the single node when it is
13459         checked. Don't refresh after toggling, the Expand/Collapse already
13460         handles this.
13461         * TreeView.cs: Respect clipping a little more when drawing. Try
13462         not to redraw things that don't need to be redrawn. Just hide the
13463         scrollbars when they are no longer needed instead of removing
13464         them, so they don't have to be created again and again.
13465         
13466 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
13467
13468         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
13469         coordinates to window space to place the caret properly, FIXED.
13470         Implement GetWindowState & SetWindowState
13471
13472 2005-01-06  Peter Bartok <pbartok@novell.com>
13473
13474         * Form.cs:
13475           - Implemented ClientSize property
13476           - Implemented DesktopBounds property
13477           - Implemented DesktopLocation property
13478           - Implemented IsRestrictedWindow property
13479           - Implemented Size property
13480           - Implemented TopLevel property
13481           - Implemented FormWindowState property
13482         * Control.cs:
13483           - Implemented GetTopLevel() method
13484           - Implemented SetTopLevel() method
13485         * X11Structs.cs (Atom):
13486           - Added AnyPropertyType definition
13487           - Added MapState definiton and updated XWindowAttribute struct
13488         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
13489         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
13490         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
13491         * XplatUIWin32.cs:
13492           - Implemented GetWindowState() and SetWindowState() methods
13493           - Fixed Win32GetWindowLong return type
13494         * XplatUIX11.cs:
13495           - Introduced central function for sending NET_WM messages
13496           - Implemented GetWindowState() and SetWindowState() methods
13497         * TextBoxBase.cs (set_Lines):
13498           - Now uses Foreground color for text added via Text property (Duh!)
13499           - Added code to remember programmatically requested size (fixes
13500             behaviour when Multiline is set after Size)
13501           - Added AutoSize logic
13502
13503 2005-01-06  Jackson Harper  <jackson@ximian.com>
13504
13505         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
13506
13507 2005-01-06  Jackson Harper  <jackson@ximian.com>
13508
13509         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
13510         set to less then 0.
13511
13512 2005-01-06  Jackson Harper  <jackson@ximian.com>
13513
13514         * ScrollableControl.cs: Lazy init the scrollbars.
13515         
13516 2005-01-06  Jackson Harper  <jackson@ximian.com>
13517
13518         * Theme.cs: Speed up getting pens and solid brushes, by using
13519         their ARGB as a hash instead of tostring and not calling Contains.
13520
13521 2005-01-06  Peter Bartok <pbartok@novell.com>
13522
13523         * Form.cs:
13524           - Implemented OnActivated and OnDeactivate event trigger
13525           - Implemented Activate() method
13526           - Fixed ShowDialog() to activate the form that was active before
13527             the dialog was shown
13528         * XplatUIX11.cs:
13529           - Added global active_window var that tracks the currently active
13530             X11 window
13531           - Now always grabs Property changes from the root window to always
13532             catch changes on the active window property
13533           - Added code to PropertyNotify handler to send Active/Inactive
13534             messages when state changes. This puts X11 and Win32 en par on
13535             WM_ACTIVATE notifications (except for double notifications when
13536             the user clicks away from our modal window to another one of our
13537             windows)
13538
13539 2005-01-05  Jackson Harper  <jackson@ximian.com>
13540
13541         * ImageList.cs: Implment ctor
13542
13543 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
13544
13545         * XplatUIOSX.cs: Implement Activate/SetTopmost
13546
13547 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
13548
13549         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
13550
13551 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
13552
13553         * XplatUIOSX.cs: Implement GetActive/SetFocus.
13554
13555 2005-01-05  Peter Bartok <pbartok@novell.com>
13556
13557         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
13558           XplatUIOSX.cs: Added GetActive method to return the currently
13559           active window for the application (or null, if none is active)
13560         * Form.cs:
13561           - Implemented ActiveForm
13562           - Commented out owner assignment for modal dialogs (causes problems
13563             on Win32, since the owner will be disabled)
13564           - Reworked some Active/Focus handling (still incomplete)
13565         * CommonDialog.cs: Commented out owner assignment for modal dialogs
13566           (causes problems on Win32, since the owner will be disabled)
13567         * IWin32Window: Added ComVisible attribute
13568
13569 2005-01-05  Peter Bartok <pbartok@novell.com>
13570
13571         * ToolTip.cs (WndProc): Enable setting focus now that we have the
13572           required XplatUI functions.
13573
13574 2005-01-05  Peter Bartok <pbartok@novell.com>
13575
13576         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
13577           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
13578           to implement focus and activation handling; still incomplete and
13579           with debug output
13580
13581 2005-01-04  Peter Bartok <pbartok@novell.com>
13582
13583         * TextBoxBase.cs: Changed access level for Document property to
13584           match switch to internal for TextControl
13585
13586 2005-01-04  Peter Bartok <pbartok@novell.com>
13587
13588         * AccessibleObject: Added ComVisible attribute
13589
13590 2005-01-04  Jackson Harper  <jackson@ximian.com>
13591
13592         * X11Keyboard.cs: Remove unneeded var.
13593
13594 2005-01-04  Jackson Harper  <jackson@ximian.com>
13595
13596         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
13597         but PAINT.
13598         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
13599         ClientMessage. This makes apps exit cleanly (more often).
13600         
13601 2005-01-04  Jackson Harper  <jackson@ximian.com>
13602
13603         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
13604         handling focus, return correct colors and fonts,
13605         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
13606         handle selection, horizontal scrolling, and mouse interaction.
13607
13608 2005-01-04  Peter Bartok <pbartok@novell.com>
13609
13610         * ICommandExecutor.cs: Added
13611         * IDataGridColumnStyleEditingNotificationService.cs: Added
13612         * IFeatureSupport.cs: Added
13613         * IFileReaderService.cs: Added
13614         * IDataObject.cs: Added ComVisible attribute
13615         * AmbientProperties.cs: Added
13616         * BaseCollection.cs: Added missing attributes
13617         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
13618         * BaseCollection.cs: Added missing attributes
13619         * Binding.cs: Added TypeConverter attribute
13620         * BindingContext.cs: Added DefaultEvent attribute
13621         * BindingsCollection.cs: Added DefaultEvent attribute
13622         * Button.cs: Added DefaultValue attribute
13623         * DragEventArgs.cs: Added ComVisible attribute
13624         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
13625         * KeyEventArgs.cs: Added ComVisible attribute
13626         * KeyPressEventArgs.cs: Added ComVisible attribute
13627         * MouseEventArgs.cs: Added ComVisible attribute
13628         * NavigateEventArgs.cs: Added
13629         * NavigateEventHandler.cs: Added
13630         * FeatureSupport.cs: Added
13631         * OSFeature.cs: Added
13632         * Theme.cs: Added abstract Version property to support OSFeature
13633         * ThemeWin32Classic.cs: Added Version property to
13634           support OSFeature.Themes
13635         * ProgressBar.cs: Removed OnPaintBackground override, not required since
13636           the proper styles to avoid background drawing are set, also doesn't
13637           match MS signature
13638         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
13639         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
13640         * ScrollEventArgs.cs: Added ComVisible attribute
13641         * SplitterEventArgs.cs: Added ComVisible attribute
13642         * AccessibleSelection.cs: Added Flags attribute
13643         * Appearance.cs: Added ComVisible attribute
13644         * Border3DSide.cs: Added ComVisible attribute
13645         * Border3DStyle.cs: Added ComVisible attribute
13646         * BorderStyle.cs: Added ComVisible attribute
13647         * DragAction.cs: Added ComVisible attribute
13648         * ErrorBlinkStyle.cs: Added
13649         * ScrollEventType.cs: Added ComVisible attribute
13650         * AnchorStyles.cs: Added Editor attribute
13651         * DockStyle.cs: Added Editor attribute
13652         * HorizontalAlignment.cs: Added ComVisible attribute
13653         * HelpEventArgs.cs: Added ComVisible attribute
13654         * PaintEventArgs.cs: Added IDisposable
13655
13656 2005-01-04  Peter Bartok <pbartok@novell.com>
13657
13658         * TextControl.cs: Switched Line, LineTag and Document classes to
13659           internal
13660
13661 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
13662
13663         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
13664         Simple mode, fixes, IntegralHeight, etc.
13665
13666 2005-01-04  Peter Bartok <pbartok@novell.com>
13667
13668         * TextBoxBase.cs: Using proper font variable now
13669
13670 2005-01-04  Peter Bartok <pbartok@novell.com>
13671
13672         * Form.cs (ShowDialog): Set parent to owner, if provided
13673         * GroupBox.cs: Removed unused vars
13674         * TextControl.cs:
13675           - Added GetHashCode() for Document and LineTag classes
13676           - Removed unused variables
13677           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
13678             to allow translation between continuous char position and line/pos
13679         * CheckBox.cs: Removed vars that are provided by base class
13680         * RadioButton.cs: Removed vars that are provided by base class, added
13681           new keyword where required
13682         * LinkLabel.cs: Added new keyword where required
13683         * Control.cs (WndProc): Removed unused variable
13684         * TextBoxBase.cs:
13685           - Finished SelectionLength property
13686           - Implemented SelectionStart property
13687           - Implemented Text property
13688           - Removed unused vars
13689         * MessageBox.cs: Added new keyword where required
13690         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
13691           WndProc signature
13692         * MenuAPI.cs: Added new keyword where required
13693         * ButtonBase.cs: Removed vars that are provided by base class, added
13694           new keyword where required
13695         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
13696           argument to double, to allow compiling with csc 2.0 (Atsushi ran
13697           into this)
13698         * Application.cs (Run): Now triggers the ThreadExit event
13699         * CommonDialog.cs: Added new keyword where required; now properly sets
13700           parent (owner) for dialog
13701         * XplatUIX11.cs: Commented out unused vars
13702         * StatusBar.cs: Fixed signature for Text property
13703         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
13704
13705 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
13706
13707         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
13708         TrackBar.cs, MonthCalendar.cs: remove unused vars
13709
13710 2005-01-03  Jackson Harper  <jackson@ximian.com>
13711
13712         * ThemeWin32Classic.cs:
13713         * X11Keyboard.cs: Remove unused vars.
13714
13715 2005-01-03  Peter Bartok  <pbartok@novell.com>
13716
13717         * TextBox.cs:
13718           - set_Text: Tied into TextControl
13719           - set_TextAlignment: Tied into TextControl
13720         * TextControl.cs:
13721           - Added alignment properties and implemented alignment handling
13722             and drawing (still has a bug, not generating proper expose events)
13723           - Added new Line() constructor to allow passing the line alignment
13724           - Fixed selection setting, properly handling end<start now
13725           - Added aligment considerations to RecalculateDocument()
13726         * TextBoxBase.cs:
13727           - Now properly enforces control height for single line controls
13728           - Added support for CharacterCasing
13729           - Added IsInputKey override
13730           - Fixed Keys.Enter logic
13731           - Added SetBoundsCore override
13732           - Fixed mouse selection handling
13733
13734 2005-01-03  Jackson Harper  <jackson@ximian.com>
13735
13736         * TreeView.cs:
13737           - Collapse and uncheck all nodes when CheckBoxes is disabled.
13738           - Checkboxes are always aligned to the bottom of the node,
13739           regardless of item height.
13740           - Use the node bounds to draw the text so we can center it when
13741           the item height is greater then the font height.
13742           - Node::Bounds are only the text part of the node.
13743         * TreeNode.cs: New method to combine collapsing and unchecking all
13744           nodes recursively.
13745
13746 2005-01-02  Jackson Harper  <jackson@ximian.com>
13747
13748         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
13749         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
13750         tree when a check is changed. TODO: Only refresh the checked node.
13751
13752 2004-12-30  Jackson Harper  <jackson@ximian.com>
13753
13754         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
13755         * TreeNode.cs: When collapsing make sure to never collapse the
13756         root node.
13757
13758 2004-12-29  Jackson Harper  <jackson@ximian.com>
13759
13760         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
13761         
13762 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
13763
13764         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
13765
13766 2004-12-28  Peter Bartok  <pbartok@novell.com>
13767
13768         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
13769           not yet assigned
13770
13771 2004-12-28  Peter Bartok  <pbartok@novell.com>
13772
13773         * Control.cs (WndProc): Added WM_HELP handler, now generates
13774           HelpRequested event
13775         * Form.cs: Added HelpButton property and required support code
13776         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
13777
13778 2004-12-28  Peter Bartok  <pbartok@novell.com>
13779
13780         * CommonDialog.cs:
13781           - Made DialogForm.owner variable internal
13782           - Added check to ensure owner form is set before setting
13783             owner properties in CreateParams
13784
13785 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
13786
13787         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
13788           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
13789           GetCursorPos.  Fix major visibility issues.  Rework the windowing
13790           system to support borderless/titleless windows (implements menus).
13791           Fix GetWindowPos.  Implement initial background color support for
13792           views.
13793
13794 2004-12-28  Peter Bartok  <pbartok@novell.com>
13795
13796         * Form.cs (get_CreateParams): Make sure we have an owner before using
13797           the owner variable. Implement proper default if no owner exists
13798
13799 2004-12-28  Peter Bartok  <pbartok@novell.com>
13800
13801         * In preparation for making Managed.Windows.Forms the default build target
13802           for System.Windows.Forms, the following stubbed files were added.
13803           Dialogs are currently being implemented by contributors and are only
13804           short-term place holders.
13805         * ColorDialog.cs: Initial check-in (minmal stub)
13806         * DataGrid.cs: Initial check-in (minimal stub)
13807         * DataGridLineStyle.cs: Initial check-in (minimal stub)
13808         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
13809         * DataGridTableStyle.cs: Initial check-in (minimal stub)
13810         * FontDialog.cs: Initial check-in (minimal stub)
13811         * FileDialog.cs: Initial check-in (minimal stub)
13812         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
13813         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
13814         * OpenFileDialog: Initial check-in (minimal stub)
13815         * IComponentEditorPageSite.cs: Initial check-in
13816         * Splitter.cs: Initial check-in (for Jackson)
13817         * SplitterEventArgs.cs: Initial check-in (for Jackson)
13818         * SplitterEventHandler.cs: Initial check-in (for Jackson)
13819         * TextBox.cs: Initial check-in; still needs some wiring to
13820           TextControl backend
13821         * Form.cs: Implemented ControlBox property
13822         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
13823         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
13824         * TextControl.cs: Added selection functionality; added todo header
13825         * TextBoxBase.cs:
13826           - Implemented Lines property
13827           - Implemented TextHeight property
13828           - Implemented SelectedText property
13829           - Implemented SelectionLength property
13830           - Implemented SelectAll method
13831           - Implemented ToString method
13832           - Removed and cleaned up some debug code
13833           - Implemented (still buggy) mouse text selection
13834
13835 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
13836
13837         * ComboBox.cs: Complete DropDownList implementation, fixes.
13838
13839 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
13840
13841         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
13842         * ComboBoxStyle.cs: ComboBoxStyle enum
13843         * ComboBox.cs: Initial work on ComboBox control
13844
13845 2004-12-21  Peter Bartok  <pbartok@novell.com>
13846
13847         * Control.cs (ctor, CreateParams): Moved setting of is_visible
13848           forward so that anything that creates a window gets the default,
13849           also no longer uses Visible property in CreateParams to avoid
13850           walking up the parent chain and possibly get the wrong visible
13851           status. Fixed IsVisible to no longer walk up to the parent.
13852
13853 2004-12-21  Peter Bartok  <pbartok@novell.com>
13854
13855         * Form.cs (ShowDialog): Unset modality for the proper window
13856  
13857 2004-12-20  Peter Bartok  <pbartok@novell.com>
13858
13859         * CommonDialog.cs: Initial check-in
13860
13861 2004-12-20  Peter Bartok  <pbartok@novell.com>
13862
13863         * Control.cs (Visible): Now uses the parent window instead of the
13864           client area window for the property
13865
13866         * Form.cs
13867           - ShowDialog(): Now uses the proper window for modality
13868           - The default visibility state for the form parent is now false. This
13869             will prevent the user from seeing all the changes to the form and
13870             its controls before the application hits Application.Run()
13871           - Removed some stale commented out code
13872
13873         * NativeWindow.cs:
13874           - Added FindWindow() method to have a method to check for existence
13875             of a window handle
13876           - Added ability to override default exception handling (for example
13877             when debugging with VS.Net; to do this the ExternalExceptionHandler
13878             define must be set
13879           - Removed some useless debug output
13880
13881         * XplatUIX11.cs:
13882           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
13883             not working as expected
13884           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
13885             property to allow switching back to the modal window if focus is
13886             given to another one of our windows (Application Modal)
13887           - Now only sets override_redirect if we create a window
13888             without WS_CAPTION
13889           - Moved EventMask selection before mapping of newly created window
13890             so we can catch the map event as well
13891           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
13892           - Added various Atom related DllImports
13893           - Implemented Exit() method
13894           - .ctor() : No longer shows window if WS_VISIBLE is not defined
13895             in the CreateParams
13896
13897         * MessageBox.cs: Now properly deals with the FormParent window by
13898           providing an override the FormParent CreateParams property to
13899           set as POPUP instead of OVERLAPPED window.
13900
13901 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
13902
13903         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
13904         Minor code cleanup.
13905
13906 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
13907         
13908         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
13909
13910 2004-12-18  Peter Bartok  <pbartok@novell.com>
13911
13912         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
13913           implementing SetModal() method
13914
13915 2004-12-18  Peter Bartok  <pbartok@novell.com>
13916
13917         * X11Structs.cs (XGCValues): Fixed type of function element
13918         * XplatUI.cs: Added ScrollWindow() method
13919         * XplatUIDriver.cs: Added ScrollWindow() abstract
13920         * XplatUIWin32.cs: Implemented ScrollWindow() method
13921         * XplatUIX11.cs: Implemented ScrollWindow() method
13922         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
13923
13924 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
13925
13926         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
13927         Some more keyboard support (INCOMPLETE)
13928
13929 2004-12-17  Peter Bartok  <pbartok@novell.com>
13930
13931         * TextControl.cs:
13932         - Added color attribute to line tags.
13933         - Added color argument to all functions dealing with tags
13934         - Added color argument support to various functions
13935         - Fixed miss-calculation of baseline/shift in certain circumstances
13936
13937         * TextBoxBase.cs: Added new color option to test code
13938
13939 2004-12-17  Jackson Harper  <jackson@ximian.com>
13940
13941         * TreeNode.cs:
13942         * MonthCalendar.cs: Signature fixes
13943
13944 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
13945
13946         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
13947         keyboard event moved it.  Create a new graphics context for each paint resolves this
13948
13949 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
13950
13951         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
13952         Make caret exist and go blink blink.  Initial keyboard support.
13953         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
13954         works.
13955
13956 2004-12-17  Jackson Harper  <jackson@ximian.com>
13957
13958         * XplatUIStructs.cs: Updated set of virtual keycodes.
13959         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
13960
13961 2004-12-17  Jackson Harper  <jackson@ximian.com>
13962
13963         * XplatUIX11.cs: Prune old keyboard code.
13964
13965 2004-12-17  Jackson Harper  <jackson@ximian.com>
13966
13967         * XplatUIX11.cs: When generating mouse wparams get the modifier
13968         keys from the ModifierKeys property.
13969
13970 2004-12-17  Jackson Harper  <jackson@ximian.com>
13971
13972         * X11Keyboard.cs: Send up/down input when generating
13973         messages. Remove some unused vars.
13974
13975 2004-12-17  Jackson Harper  <jackson@ximian.com>
13976
13977         * TabControl.cs:
13978         * TreeView.cs: get rid of warnings.
13979
13980 2004-12-17  Jackson Harper  <jackson@ximian.com>
13981
13982         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
13983
13984 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
13985
13986         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
13987           CheckedListBox.cs: Implementation
13988
13989 2004-12-17  Peter Bartok  <pbartok@novell.com>
13990
13991         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
13992
13993 2004-12-16  Peter Bartok  <pbartok@novell.com>
13994
13995         * TextControl.cs:
13996           - InsertCharAtCaret(): Fixed start pos fixup
13997           - CaretLine_get: No longer derives the line from the tag, the tag
13998             could be stale if lines in the document have been added or deleted
13999           - RebalanceAfterDelete(): Fixed bug in balancing code
14000           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
14001           - Line.Streamline(): Now can also elminate leading empty tags
14002           - DumpTree(): Added a few more tests and prevented exception on
14003             uninitialized data
14004           - Added Debug section for Combining lines
14005           - Delete(): Now copies all remaining properties of a line
14006           
14007         * TextBoxBase.cs:
14008           - Left mousebutton now sets the caret (and middle button still acts
14009             as formatting tester, which must go away soon)
14010           - Added Debug section for Deleting/Combining lines
14011           - Fixed calculations for UpdateView after Combining lines
14012
14013 2004-12-16  Peter Bartok  <pbartok@novell.com>
14014
14015         * TextControl.cs: Now properly aligns text on a baseline, using the
14016           new XplatUI.GetFontMetrics() method. Simplified several calculations
14017         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
14018           defined
14019
14020 2004-12-16  Peter Bartok  <pbartok@novell.com>
14021
14022         * XplatUI.cs: Added GetFontMetrics() method
14023         * XplatUIDriver.cs: Added GetFontMetrics() abstract
14024         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
14025           into libgdiplus, our private GetFontMetrics function
14026         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
14027         * XplatUIWin32.cs: Implemented GetFontMetrics() method
14028
14029 2004-12-16  Jackson Harper  <jackson@ximain.com>
14030
14031         * XplatUIStruct.cs: Add enum for dead keys
14032         * X11Keyboard.cs: Map and unmap dead keys.
14033
14034 2004-12-16  Jackson Harper  <jackson@ximian.com>
14035
14036         * X11Keyboard.cs: Detect and use the num lock mask.
14037
14038 2004-12-16  Peter Bartok  <pbartok@novell.com>
14039
14040         * Control.cs (CreateGraphics): Added check to make sure the
14041           handle of the window exists before calling Graphics.FromHwnd()
14042
14043 2004-12-16  Peter Bartok  <pbartok@novell.com>
14044
14045         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
14046           contains a lot of code that's not supposed to be there for the
14047           real thing, but required for developing/testing the textbox
14048           backend.
14049
14050 2004-12-16  Peter Bartok  <pbartok@novell.com>
14051
14052         * TextControl.cs:
14053         - Fixed Streamline method
14054         - Added FindTag method to Line
14055         - Added DumpTree method for debugging
14056         - Added DecrementLines() method for deleting lines
14057         - Fixed UpdateView to update the cursor to end-of-line on single-line
14058           updates
14059         - Added PositionCaret() method
14060         - Fixed MoveCaret(LineDown) to move into the last line, too
14061         - Added InsertChar overload
14062         - Fixed InsertChar tag offset calculations
14063         - Added DeleteChar() method
14064         - Added Combine() method for folding lines
14065         - Fixed Delete() method, no longer allocates wasted Line object and
14066           now copies all properties when swapping nodes
14067         - Delete() method now updates document line counter
14068
14069 2004-12-15  Jackson Harper  <jackson@ximian.com>
14070
14071         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
14072         * X11Keyboard.cs: Expose the currently selected modifier keys
14073         through a property.
14074
14075 2004-12-15  Peter Bartok  <pbartok@novell.com>
14076
14077         * TextControl.cs: Initial check-in. Still incomplete
14078
14079 2004-12-15  Jackson Harper  <jackson@ximian.com>
14080
14081         * TreeNode.cs:
14082         * TreeView.cs: Fix build on csc (second time today ;-))
14083
14084 2004-12-15  Jackson Harper  <jackson@ximian.com>
14085
14086         * TreeView.cs: Store the treenodes plus/minus box bounds when it
14087         is calculated and use this for click testing.
14088         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
14089
14090 2004-12-15  Jackson Harper  <jackson@ximian.com>
14091
14092         * TreeView.cs: Pass the nodes image index to the image list when
14093         drawing that image.
14094
14095 2004-12-15  Jackson Harper  <jackson@ximian.com>
14096
14097         * X11Keyboard.cs: Set messages hwnd.
14098         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
14099         post_message calls.
14100
14101 2004-12-15  Jackson Harper  <jackson@ximian.com>
14102
14103         * X11Keyboard.cs: Fix to compile with csc.
14104         
14105 2004-12-15  Jackson Harper  <jackson@ximian.com>
14106
14107         * X11Structs.cs: Add key mask values
14108         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
14109         * X11Keyboard.cs: New file - Extrapolates and interpolates key
14110         down/up foo into WM_CHAR foo
14111         * KeyboardLayouts.cs: Common keyboard layouts
14112         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
14113         post messages into the main queue.
14114
14115 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
14116
14117         * Button.cs: implement ProcessMnemonic
14118         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
14119           brushes everytime
14120         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
14121         * ButtonBase.cs: Show HotkeyPrefix (not the &)
14122
14123 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
14124         
14125         * MonthCalendar.cs: Implemented click-hold for next/previous month
14126           and date selection
14127           
14128 2004-12-11  Peter Bartok  <pbartok@novell.com>
14129
14130         * X11Structs.cs:
14131           - Added XKeyboardState (moved from XplatUIX11.cs)
14132           - Added XCreateGC related enums and structures
14133           - Added GXFunction for XSetFunction
14134
14135         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
14136
14137         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
14138           CaretVisible() calls
14139
14140         * ToolTip.cs: Added code to prevent stealing focus from app windows
14141
14142         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
14143           DestroyCaret, SetCaretPos and CaretVisible)
14144
14145         * XplatUIX11.cs:
14146           - Added implementation for caret functions
14147           - Moved hover variables into a struct, to make it a bit easier
14148             on the eyes and to debug
14149           - Removed XKeyboardState (moved to XplatUIX11.cs)
14150           - Moved Keyboard properties into the properties region
14151
14152         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
14153           call to get a graphics context for our control
14154
14155         * XplatUIOSX.cs: Added empty overrides for the new caret functions
14156
14157         * TreeView.cs: Fixed bug. No matter what color was set it would always
14158           return SystemColors.Window
14159
14160         * XplatUIWin32.cs: Implemented caret overrides
14161
14162 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
14163
14164         * ListBox.cs: fire events, implement missing methods and properties,
14165         sorting.
14166
14167 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
14168
14169         * MonthCalendar.cs: invalidation bug fixing
14170         * ThemeWin32Classic.cs: paint fixing
14171
14172 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
14173
14174         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
14175         prepare the CGContextRef there now.
14176
14177 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
14178
14179         * MonthCalendar.cs:
14180           - optimisationL only invalidate areas that have changed
14181         * ThemeWin32Classic.cs:
14182           - only paint parts that intersect with clip_area
14183
14184 2004-12-09  Peter Bartok  <pbartok@novell.com>
14185
14186         * Application.cs: Undid changes from r37004 which cause problems
14187         on X11
14188
14189 2004-12-09  Ravindra  <rkumar@novell.com>
14190
14191         * ToolBar.cs: Added support for displaying ContextMenu
14192         attached to a button on ToolBar.
14193         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
14194         property.
14195
14196 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
14197
14198         * Label.cs: autosize works in text change and removes unnecessary
14199         invalidate
14200
14201 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
14202
14203         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
14204         remove warnings
14205
14206 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
14207
14208         * XplatUIOSX.cs: Added mouse move/click/grab support
14209         Remove some debugging WriteLines not needed anymore.
14210         Add window resizing/positioning.
14211         Fix visibility on reparenting.
14212
14213 2004-12-08  Peter Bartok  <pbartok@novell.com>
14214
14215         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
14216
14217 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
14218
14219         * XplatUIOSX.cs: Initial checkin
14220         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
14221
14222 2004-12-03  Ravindra <rkumar@novell.com>
14223
14224         * ListView.cs: Added some keybindings and fixed scrolling.
14225         ScrollBars listen to ValueChanged event instead of Scroll
14226         Event. This would let us take care of all changes being
14227         done in the scrollbars' values programmatically or manually.
14228         * ListView.cs (CanMultiselect): Added a check for shift key.
14229         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
14230         * ListViewItem.cs (Clone): Fixed. We need to make a copy
14231         of ListViewSubItemCollection as well.
14232
14233 2004-12-06  Peter Bartok <pbartok@novell.com>
14234
14235         * Control.cs (Parent): Added check and exception to prevent
14236         circular parenting
14237
14238 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
14239
14240         * ListBox.cs: implemented clipping, selection single and multiple,
14241         bug fixing
14242
14243 2004-12-03  Ravindra <rkumar@novell.com>
14244
14245         * ListView.cs (ListView_KeyDown):
14246         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
14247         when CTRL key is pressed.
14248         * ListViewItem.cs (Selected): Fixed setting the property.
14249
14250 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
14251
14252         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
14253
14254         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
14255         MinimizeBox, ShowInTaskbar, TopMost properties.
14256
14257         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
14258         will be implemented).
14259
14260 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
14261
14262         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
14263
14264         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
14265         tests.
14266         
14267         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
14268         
14269         * TreeView.cs: BackColor is Colors.Window.
14270
14271 2004-12-01  Jackson Harper  <jackson@ximian.com>
14272
14273         * TreeView.cs: When resizing the tree if the user is making it
14274         smaller we don't get expose events, so we need to handle adding
14275         the horizontal scrollbar in the size changed handler as well as
14276         the expose handler.
14277
14278 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
14279
14280         * DrawItemState.cs: fixes wrong enum values
14281
14282 2004-12-01  Jackson Harper  <jackson@ximian.com>
14283
14284         * TreeView.cs: Resize the hbar as well as the vbar on resize.
14285
14286 2004-12-01  Jackson Harper  <jackson@ximian.com>
14287
14288         * NodeLabelEditEventArgs.cs:
14289         * NodeLabelEditEventHandler.cs:
14290         * OpenTreeNodeEnumerator.cs:
14291         * TreeNode.cs:
14292         * TreeNodeCollection.cs:
14293         * TreeView.cs:
14294         * TreeViewAction.cs:
14295         * TreeViewCancelEventArgs.cs:
14296         * TreeViewCancelEventHandler.cs:
14297         * TreeViewEventArgs.cs:
14298         * TreeViewEventHandler.cs: Initial implementation.
14299
14300 2004-12-01  Ravindra <rkumar@novell.com>
14301
14302         * ListView.cs (CalculateListView): Fixed scrolling related
14303         calculations. Also, removed some debug statements from other
14304         places.
14305         * ListViewItem.cs: Changed access to 'selected' instance variable
14306         from private to internal.
14307         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
14308
14309 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
14310
14311         * ThemeWin32Classic.cs: remove cache of brush and pens for
14312         specific controls and use the global system, fixes scrollbutton
14313         bugs (for small sizes, disabled, etc)
14314         
14315         * ScrollBar.cs: does not show the thumb for very small controls
14316         (as MS) and allow smaller buttons that the regular size
14317
14318 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
14319
14320         * UpDownBase.cs: Add abstract methods for the interface.
14321         Add new virtual methods (need to be hooked up to TextEntry when it
14322         exists).
14323         Add override methods for most features.
14324         Computes the size, forces the height of the text entry.
14325
14326         * NumericUpDown.cs: Put here the current testing code.
14327
14328         * Set eol-style property on all files that do not have mixed line
14329         endings, to minimize the future problems.  There are still a few
14330         files with mixed endings, and someone should choose whether they
14331         want to move it or not.
14332
14333 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
14334
14335         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
14336         System.Colors
14337         
14338 2004-11-30  Ravindra <rkumar@novell.com>
14339
14340         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
14341         drawing and replaced use of SystemColors by theme colors.
14342         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
14343         * ListView.cs (ListViewItemCollection.Add): Throw exception when
14344         same ListViewItem is being added more than once.
14345
14346 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
14347
14348         * MonthCalendar.cs:
14349           - ControlStyles love to make the control not flicker
14350           
14351 2004-11-30  Peter Bartok  <pbartok@novell.com>
14352
14353         * CharacterCasing.cs: Added
14354
14355 2004-11-29  Peter Bartok  <pbartok@novell.com>
14356
14357         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
14358           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
14359           I am removing these files as they conflict with already completed
14360           work. While it is fantastic to get contributions to MWF, I
14361           respectfully ask that everyone please coordinate their contributions
14362           through mono-winforms-list or #mono-winforms at this time. We're
14363           explicitly avoiding stubbing and don't want controls that don't have
14364           their basic functionality implemented in svn. Please also see
14365           http://www.mono-project.com/contributing/winforms.html
14366
14367
14368 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
14369
14370         * Application.cs (ModalRun): Don't hang after exit.
14371
14372         * Theme.cs: New TreeViewDefaultSize property.
14373
14374         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
14375         with less hardcoded SystemColors constant.
14376         Implemented TreeViewDefaultSize.
14377
14378         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
14379         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
14380
14381
14382 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
14383
14384         * MonthCalendar.cs:
14385           - Fix NextMonthDate and PrevMonthDate click moving calendar
14386
14387 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
14388
14389         * MonthCalendar.cs:
14390           - Fix usage of ScrollChange Property when scrolling months
14391
14392 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
14393
14394         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
14395          - Fixes menu destroying
14396          - Support adding and removing items on already created menus
14397
14398 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
14399
14400         * MonthCalendar.cs:
14401           - Re-worked all bolded dates handling to match win32
14402         * ThemeWin32Classic.cs:
14403           - Fixed rendering with bolded dates
14404
14405 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
14406
14407         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
14408         - Horizontal scroolbar
14409         - Multicolumn
14410         - Fixes
14411
14412
14413 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
14414
14415         * MonthCalendar.cs:
14416           - Fix Usage of MaxSelectionCount from SelectionRange
14417           - Fixed Shift + Cursor Selection
14418           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
14419           - Fixed normal cursor selection to be compat with win32
14420           - Fixed Shift + Mouse Click selection
14421
14422 2004-11-24  Peter Bartok <pbartok@novell.com>
14423
14424         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
14425         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
14426         * XplatUIX11.cs:
14427           - CreatedKeyBoardMsg now updates keystate with Alt key
14428           - Added workaround for timer crash to CheckTimers, Jackson will
14429             develop a proper fix and check in later
14430           - Implemented DispatchMessage
14431           - Removed calling the native window proc from GetMessage (call
14432             now moved to DispatchMessage)
14433
14434         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
14435           the keydata (Fixes bug #69831)
14436
14437         * XplatUIWin32.cs:
14438           - (DispatchMessage): Switched to return IntPtr
14439           - Added DllImport for SetFocus
14440
14441 2004-11-24  Ravindra <rkumar@novell.com>
14442
14443         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
14444         background drawing.
14445         * ListViewItem.cs: Fixed various properties, calculations
14446         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
14447         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
14448         and some internal properties. Fixed MouseDown handler and Paint
14449         method.
14450
14451 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
14452
14453         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
14454
14455 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
14456
14457         * ContainerControl.cs: correct accidental check in of local changes
14458
14459 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
14460
14461         * ThemeWin32Classic.cs:
14462                 - Fixed Drawing Last month in grid (sometimes not showing)
14463         * MonthCalendar.cs:
14464                 - Fixed title width calculation bug (makeing title small)
14465
14466 2004-11-23  Peter Bartok <pbartok@novell.com>
14467
14468         * XplatUIX11.cs:
14469           - Added generation of WM_MOUSEHOVER event
14470           - Added missing assignment of async_method atom
14471           - Fixed WM_ERASEBKGND; now only redraws the exposed area
14472
14473 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
14474
14475         * ThemeWin32Classic.cs:
14476                 - Fixed Drawing of today circle when showtodaycircle not set
14477                 - fixed drawing of first and last month in the grid (gay dates)
14478         * MonthCalendar.cs:
14479                 - Fixed Drawing of today circle
14480                 - Fixed drawing of grady dates
14481                 - Fixed HitTest for today link when ShowToday set to false
14482                 - Fixed DefaultSize to obey ShowToday
14483
14484 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
14485
14486         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
14487         * System.Windows.Forms/Theme.cs
14488         * MonthCalendar.cs: added for MonthCalendar
14489         * SelectionRange.cs: added for MonthCalendar
14490         * Day.cs: added for MonthCalendar: added for MonthCalendar
14491         * DateRangeEventArgs.cs: added for MonthCalendar
14492         * DateRangeEventHandler.cs: added for MonthCalendar
14493
14494 2004-11-22  Ravindra <rkumar@novell.com>
14495
14496         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
14497         property.
14498
14499 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
14500
14501         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
14502         event handler.
14503         
14504         * NumericUpDown.cs: Added new implementation.
14505         * UpDownBase.cs: Added new implementation.
14506
14507         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
14508         implementations.
14509         
14510         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
14511         implementations.
14512
14513         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
14514         methods.
14515
14516 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
14517
14518         * Timer.cs  (Dispose): Should call the base dispose when
14519         overriding.
14520
14521 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
14522
14523         * ScrollBar.cs: updates thumb position when max, min or increment
14524         is changed
14525
14526 2004-11-21  Ravindra <rkumar@novell.com>
14527
14528         * ListView.cs: Implemented item selection, activation and
14529         column header style. Fixed properties to do a redraw, if
14530         required. Added support for MouseHover, DoubleClick, KeyDown
14531         and KeyUp event handling and some minor fixes.
14532         * ListViewItem.cs: Fixed constructor.
14533         * ThemeWin32Classic.cs: Improved drawing for ListView.
14534
14535 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
14536
14537         * ThemeWin32Classic.cs: initial listbox drawing code
14538         * DrawMode.cs: new enumerator
14539         * ListControl.cs: stubbed class
14540         * ListBox.cs: initial implementation
14541         * Theme.cs: new methods definitions
14542         * SelectionMode.cs: new enumerator
14543
14544 2004-11-17  Peter Bartok  <pbartok@novell.com>
14545
14546         * XplatUIWin32.cs: Added double-click events to the class style
14547         * Control.cs (WndProc):
14548           - Added handling of click-count to MouseDown/ MouseUp events.
14549           - Added handling of middle and right mouse buttons
14550           - Removed old debug code
14551
14552 2004-11-17  Jackson Harper  <jackson@ximian.com>
14553
14554         * XplatUIX11.cs: Use the new Mono.Unix namespace.
14555
14556 2004-11-17  Ravindra <rkumar@novell.com>
14557
14558         * ListView.cs: Added event handling for MouseMove/Up/Down.
14559         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
14560         * ThemeWin32Classic.cs: We need to clear the graphics context and
14561         draw column header in a proper state.
14562
14563
14564 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
14565
14566         *  Menu.cs: fixes signature
14567
14568 2004-11-16  Peter Bartok  <pbartok@novell.com>
14569
14570         * XplatUIX11.cs (GetMessage): Implemented generation of
14571           double click mouse messages
14572
14573 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
14574
14575         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
14576         not by menu
14577
14578 2004-11-11  Peter Bartok  <pbartok@novell.com>
14579
14580         * HandleData.cs: Added Visible property
14581         * XplatUIX11.cs (IsVisible): Now uses Visible property from
14582           HandleData
14583         * XplatUIX11.cs: Removed old debug leftovers
14584         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
14585         * Control.cs (WndProc): Removed old debug leftovers,
14586           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
14587           needed WM_SIZE handling
14588
14589 2004-11-11  Jackson Harper  <jackson@ximian.com>
14590
14591         * OwnerDrawPropertyBag.cs:
14592         * TreeViewImageIndexConverter.cs: Initial implementation
14593
14594 2004-11-10  Jackson Harper  <jackson@ximian.com>
14595
14596         * ThemeWin32Classic.cs:
14597         * TabControl.cs: instead of moving tabs by the slider pos just
14598         start drawing at the tab that is offset by the slider. This way
14599         scrolling always moves by exactly one tab.
14600
14601 2004-11-10  Jackson Harper  <jackson@ximian.com>
14602
14603         * TabControl.cs: You can only scroll left when the slider has
14604         already ben moved right.
14605         
14606 2004-11-10  Jackson Harper  <jackson@ximian.com>
14607
14608         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
14609         the clip area.
14610         
14611 2004-11-10  Jackson Harper  <jackson@ximian.com>
14612
14613         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
14614         clip area.
14615         
14616 2004-11-09  Jackson Harper  <jackson@ximian.com>
14617
14618         * TabControl.cs (CalcXPos): New helper method so we can determine
14619         the proper place to start drawing vertical tabs.
14620         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
14621         
14622 2004-11-09  Jackson Harper  <jackson@ximian.com>
14623
14624         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
14625         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
14626         and Bottom, left and right are illegal values for this and
14627         multiline is enabled when the alignment is set to left or right.
14628         (DrawTab): Each alignment block should draw the text itself now
14629         because Left requires special love. Also add rendering for Left
14630         aligned tabs.
14631         
14632 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
14633
14634         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
14635         does not destroy the windows, removes debugging messages
14636
14637 2004-11-09  jba  <jba-mono@optusnet.com.au>
14638
14639         * ThemeWin32Classic.cs
14640         (DrawButtonBase): Fix verticle text rect clipping in windows
14641         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
14642         rendering and incorrect text rect clipping
14643         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
14644         rendering and incorrect text rect clipping
14645         
14646 2004-11-08  Jackson Harper  <jackson@ximian.com>
14647
14648         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
14649         bottom when they are bottom aligned so the bottoms of the tabs get
14650         displayed.
14651         * TabControl.cs (DropRow): Move rows up instead of down when the
14652         tab control is bottom aligned.
14653
14654 2004-11-08 13:59  pbartok
14655
14656         * XplatUIX11.cs:
14657           - Added handling for various window styles
14658           - Added handling for popup windows
14659           - Added SetTopmost handling
14660
14661 2004-11-08 13:55  pbartok
14662
14663         * XplatUIWin32.cs:
14664           - Added argument to SetTopmost method
14665           - Fixed broken ClientToScreen function
14666
14667 2004-11-08 13:53  pbartok
14668
14669         * XplatUIStructs.cs:
14670           - Added missing WS_EX styles
14671
14672 2004-11-08 13:53  pbartok
14673
14674         * XplatUI.cs, XplatUIDriver.cs:
14675           - Added argument to SetTopmost
14676
14677 2004-11-08 13:52  pbartok
14678
14679         * X11Structs.cs:
14680           - Added XSetWindowAttributes structure
14681           - Improved XWindowAttributes structure
14682           - Added SetWindowValuemask enum
14683           - Added window creation arguments enum
14684           - Added gravity enum
14685           - Added Motif hints structure
14686           - Added various Motif flags and enums
14687           - Added PropertyMode enum for property functions
14688
14689 2004-11-08 13:50  pbartok
14690
14691         * Form.cs:
14692           - Fixed arguments for updated SetTopmost method
14693
14694 2004-11-08 13:49  pbartok
14695
14696         * ToolTip.cs:
14697           - Fixed arguments for updated SetTopmost function
14698           - Fixed usage of PointToClient
14699
14700 2004-11-08 13:44  pbartok
14701
14702         * MenuAPI.cs:
14703           - Added Clipping of children and siblings
14704
14705 2004-11-08 13:41  pbartok
14706
14707         * MainMenu.cs:
14708           - Removed SetMenuBarWindow call. We do this in Form.cs
14709
14710 2004-11-08 13:40  jackson
14711
14712         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
14713           scrolling jimmi in the correct location with bottom aligned tabs
14714
14715 2004-11-08 13:36  pbartok
14716
14717         * ContainerControl.cs:
14718           - Implemented BindingContext
14719           - Implemented ParentForm
14720
14721 2004-11-08 12:46  jackson
14722
14723         * TabControl.cs: Put bottom rendered tabs in the right location
14724
14725 2004-11-08 07:15  jordi
14726
14727         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
14728           removes dead code
14729
14730 2004-11-05 17:30  jackson
14731
14732         * TabControl.cs: When selected tabs are expanded make sure they
14733           don't go beyond the edges of the tab control
14734
14735 2004-11-05 14:57  jackson
14736
14737         * TabControl.cs: Reset show_slider so if the control is resized to
14738           a size where it is no longer needed it's not displayed anymore
14739
14740 2004-11-05 13:16  jackson
14741
14742         * TabControl.cs: Make tab pages non visible when added to the
14743           control
14744
14745 2004-11-05 12:42  jackson
14746
14747         * TabControl.cs: Implement SizeMode.FillToRight
14748
14749 2004-11-05 12:16  jackson
14750
14751         * Control.cs: Do not call CreateHandle if the handle is already
14752           created
14753
14754 2004-11-05 11:46  jackson
14755
14756         * TabControl.cs: Remove superflous call to CalcTabRows
14757
14758 2004-11-05 09:07  jackson
14759
14760         * XplatUIX11.cs: Update for Mono.Posix changes
14761
14762 2004-11-05 07:00  ravindra
14763
14764         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
14765           scrolling.
14766
14767 2004-11-04 22:47  jba
14768
14769         * ThemeWin32Classic.cs:
14770           - Fix Button rendering for FlatStyle = Flat or Popup
14771           - Fix RadioButton and CheckBox rendering when Appearance = Button
14772             (normal and flatstyle).
14773           - Correct outer rectangle color when drawing focus rectangle
14774           - Adjust button bounds to be 1 px smaller when focused
14775           - Make button not draw sunken 3d border when pushed (windows compat)
14776           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
14777           - Offset the text in RadioButton and Checkbox when being rendered as
14778           a button.
14779           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
14780           radiobuttons
14781           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
14782           - Fixed disabled text rendering for normally rendered radiobuttons
14783
14784 2004-11-04 10:26  jackson
14785
14786         * TabControl.cs: Recalculate tab rows when resizing
14787
14788 2004-11-04 07:47  jordi
14789
14790         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
14791           collection completion, drawing issues, missing features
14792
14793 2004-11-04 05:03  ravindra
14794
14795         * ScrollBar.cs:
14796                 - We need to recalculate the Thumb area when
14797                 LargeChange/maximum/minimum values are changed.
14798           - We set the 'pos' in UpdatePos() method to minimum, if it's less
14799                 than minimum. This is required to handle the case if large_change is
14800                 more than max, and use LargeChange property instead of large_change
14801                 variable.
14802           - We return max+1 when large_change is more than max, like MS does.
14803
14804 2004-11-04 04:29  ravindra
14805
14806         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
14807                 - Changed default value signatures (prefixed all with ListView).
14808                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
14809                 ListView.
14810           - Fixed calculations for ListViewItem and implemented Clone()
14811           method.
14812
14813 2004-11-04 04:26  ravindra
14814
14815         * Theme.cs, ThemeWin32Classic.cs:
14816                 - Changed default ListView values signatures (prefixed all with
14817                 ListView).
14818           - Fixed default size values for VScrollBar and HScrollBar.
14819                 - Fixed DrawListViewItem method.
14820
14821 2004-11-04 04:05  ravindra
14822
14823         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
14824
14825 2004-11-04 04:04  ravindra
14826
14827         * ImageList.cs: Implemented the missing overload for Draw method.
14828
14829 2004-11-03 19:29  jackson
14830
14831         * TabControl.cs: Handle dropping rows on selection properly
14832
14833 2004-11-03 11:59  jackson
14834
14835         * TabControl.cs: remove debug code
14836
14837 2004-11-03 11:52  jackson
14838
14839         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
14840           the scrolly widgerywoo
14841
14842 2004-11-02 13:52  jackson
14843
14844         * TabControl.cs: Resize the tab pages and tabs when the tab control
14845           is resized
14846
14847 2004-11-02 13:40  jackson
14848
14849         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
14850           selected tab to the bottom
14851
14852 2004-11-02 13:39  jackson
14853
14854         * TabPage.cs: Store the tab pages row
14855
14856 2004-11-02 12:33  jordi
14857
14858         * MenuItem.cs: fixes handle creation
14859
14860 2004-11-02 11:42  jackson
14861
14862         * TabControl.cs: signature fix
14863
14864 2004-11-02 08:56  jackson
14865
14866         * TabControl.cs: Calculate whether the tab is on an edge properly.
14867           Remove top secret debugging code
14868
14869 2004-11-01 19:57  jackson
14870
14871         * TabControl.cs: Add click handling, and proper sizing
14872
14873 2004-11-01 19:47  jackson
14874
14875         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
14876           tab controls
14877
14878 2004-11-01 19:39  jackson
14879
14880         * TabPage.cs: add internal property to store the bounds of a tab
14881           page
14882
14883 2004-10-30 04:23  ravindra
14884
14885         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
14886           values.
14887
14888 2004-10-30 04:21  ravindra
14889
14890         * ListView.cs, ListViewItem.cs: Added support for scrolling and
14891           fixed calculations.
14892
14893 2004-10-30 03:06  pbartok
14894
14895         * XplatUIX11.cs:
14896           - Removed extension of DllImported libs
14897
14898 2004-10-29 09:55  jordi
14899
14900         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
14901           navigation, itemcollection completion, menu fixes
14902
14903 2004-10-27 22:58  pbartok
14904
14905         * XplatUIX11.cs:
14906           - Now throws a nice error message when no X display could be opened
14907
14908 2004-10-26 13:51  jordi
14909
14910         * ListView.cs: removes warning
14911
14912 2004-10-26 03:55  ravindra
14913
14914         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
14915           ThemeWin32Classic.cs: Some formatting for my last checkins.
14916
14917 2004-10-26 03:36  ravindra
14918
14919         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
14920           control and default values.
14921
14922 2004-10-26 03:35  ravindra
14923
14924         * Theme.cs: Added some default values for ListView control.
14925
14926 2004-10-26 03:33  ravindra
14927
14928         * ToolBar.cs: ToolBar should use the user specified button size, if
14929           there is any. Added a size_specified flag for the same.
14930
14931 2004-10-26 03:33  ravindra
14932
14933         * ColumnHeader.cs: Added some internal members and calculations for
14934           ColumnHeader.
14935
14936 2004-10-26 03:32  ravindra
14937
14938         * ListViewItem.cs: Calculations for ListViewItem.
14939
14940 2004-10-26 03:31  ravindra
14941
14942         * ListView.cs: Added some internal members and calculations for
14943           ListView.
14944
14945 2004-10-22 13:31  jordi
14946
14947         * MenuAPI.cs: speedup menus drawing
14948
14949 2004-10-22 13:16  jackson
14950
14951         * XplatUIX11.cs: Make sure to update exposed regions when adding an
14952           expose event
14953
14954 2004-10-22 11:49  jackson
14955
14956         * Control.cs: oops
14957
14958 2004-10-22 11:41  jackson
14959
14960         * Control.cs: Check to see if the window should have its background
14961           repainted by X when drawing.
14962
14963 2004-10-22 11:31  jackson
14964
14965         * XplatUIX11.cs: When invalidating areas only use XClearArea if
14966           clear is true, this way we do not get flicker from X repainting the
14967           background
14968
14969 2004-10-22 11:28  jackson
14970
14971         * XEventQueue.cs: Queue properly
14972
14973 2004-10-21 09:38  jackson
14974
14975         * XEventQueue.cs: Fix access modifier
14976
14977 2004-10-21 09:36  jackson
14978
14979         * XEventQueue.cs: Don't loose messages
14980
14981 2004-10-21 09:22  jackson
14982
14983         * XEventQueue.cs: Don't loose messages
14984
14985 2004-10-20 04:15  jordi
14986
14987         * BootMode.cs: enum need it by SystemInfo
14988
14989 2004-10-19 21:58  pbartok
14990
14991         * XplatUIWin32.cs:
14992           - Small sanity check
14993
14994 2004-10-19 21:56  pbartok
14995
14996         * Form.cs:
14997           - Added private FormParentWindow class which acts as the container
14998             for our form and as the non-client area where menus are drawn
14999           - Added/Moved required tie-ins to Jordi's menus
15000           - Fixed/Implemented the FormStartPosition functionality
15001
15002 2004-10-19 21:52  pbartok
15003
15004         * Control.cs:
15005           - Removed unneeded locals
15006           - Added code to all size and location properties to understand and
15007             deal with the parent container of Form
15008
15009 2004-10-19 21:33  pbartok
15010
15011         * Application.cs:
15012           - Fixed to deal with new Form subclasses for menus
15013
15014 2004-10-19 17:48  jackson
15015
15016         * XEventQueue.cs: commit correct version of file
15017
15018 2004-10-19 16:50  jackson
15019
15020         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
15021
15022 2004-10-19 16:15  jordi
15023
15024         * MenuAPI.cs: MenuBarCalcSize returns the height
15025
15026 2004-10-19 08:31  pbartok
15027
15028         * Control.cs:
15029           - Added missing call to PreProcessMessage before calling OnXXXKey
15030           methods
15031
15032 2004-10-19 00:04  ravindra
15033
15034         * ToolTip.cs: Fixed constructor.
15035
15036 2004-10-18 09:31  jordi
15037
15038         * MenuAPI.cs: menuitems in menubars do not have shortcuts
15039
15040 2004-10-18 09:26  jordi
15041
15042         * MenuItem.cs: fixes MenuItem class signature
15043
15044 2004-10-18 08:56  jordi
15045
15046         * MenuAPI.cs: prevents windows from showing in the taskbar
15047
15048 2004-10-18 00:28  ravindra
15049
15050         * ToolTip.cs: Suppressed a warning message.
15051
15052 2004-10-18 00:27  ravindra
15053
15054         * Control.cs: Default value of visible property must be true.
15055
15056 2004-10-17 23:19  pbartok
15057
15058         * ToolTip.cs:
15059           - Complete implementation
15060
15061 2004-10-17 23:19  pbartok
15062
15063         * XplatUIX11.cs:
15064           - Added EnableWindow method
15065           - Added SetModal stub
15066           - Added generation of WM_ACTIVATE message (still needs testing)
15067           - Added SetTopMost stub
15068           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
15069
15070 2004-10-17 23:17  pbartok
15071
15072         * XplatUIWin32.cs:
15073           - Removed VirtualKeys to XplatUIStructs
15074           - Implemented SetTopMost method
15075           - Implemented EnableWindow method
15076           - Bugfix in ScreenToClient()
15077           - Bugfixes in ClientToScreen()
15078
15079 2004-10-17 22:51  pbartok
15080
15081         * XplatUIStructs.cs:
15082           - Added WS_EX styles to WindowStyles enumeration
15083
15084 2004-10-17 22:50  pbartok
15085
15086         * XplatUI.cs, XplatUIDriver.cs:
15087           - Added method for enabling/disabling windows
15088           - Added method for setting window modality
15089           - Added method for setting topmost window
15090
15091 2004-10-17 22:49  pbartok
15092
15093         * ThemeWin32Classic.cs:
15094           - Added ToolTip drawing code
15095
15096 2004-10-17 22:49  pbartok
15097
15098         * Theme.cs:
15099           - Added ToolTip abstracts
15100
15101 2004-10-17 22:47  pbartok
15102
15103         * Form.cs:
15104           - Fixed Form.ControlCollection to handle owner relations
15105           - Added Owner/OwnedForms handling
15106           - Implemented Z-Ordering for owned forms
15107           - Removed unneeded private overload of ShowDialog
15108           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
15109             so I hope)
15110           - Fixed Close(), had wrong default
15111           - Added firing of OnLoad event
15112           - Added some commented out debug code for Ownership handling
15113
15114 2004-10-17 22:16  pbartok
15115
15116         * Control.cs:
15117           - Fixed/implemented flat list of controls
15118
15119 2004-10-17 22:14  pbartok
15120
15121         * Application.cs:
15122           - Added code to simulate modal dialogs on Win32
15123
15124 2004-10-17 16:11  jordi
15125
15126         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
15127           mouse event
15128
15129 2004-10-17 13:39  jordi
15130
15131         * MenuAPI.cs: menu drawing fixes
15132
15133 2004-10-15 09:10  ravindra
15134
15135         * StructFormat.cs: General Enum.
15136
15137 2004-10-15 09:09  ravindra
15138
15139         * SizeGripStyle.cs: Enum for Form.
15140
15141 2004-10-15 09:08  ravindra
15142
15143         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
15144           in Theme for ListView.
15145
15146 2004-10-15 09:06  ravindra
15147
15148         * ColumnHeader.cs: Flushing some formatting changes.
15149
15150 2004-10-15 09:05  ravindra
15151
15152         * ListViewItem.cs: Implemented GetBounds method and fixed coding
15153           style.
15154
15155 2004-10-15 09:03  ravindra
15156
15157         * ListView.cs: Implemented Paint method and fixed coding style.
15158
15159 2004-10-15 07:34  jordi
15160
15161         * MenuAPI.cs: fix for X11
15162
15163 2004-10-15 07:32  ravindra
15164
15165         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
15166                 - Renamed Paint() method to Draw() for clarity. Also, moved
15167                 DrawImage() to OnPaint().
15168
15169 2004-10-15 07:25  ravindra
15170
15171         * CheckBox.cs, RadioButton.cs:
15172                 - Removed Redraw (), we get it from ButtonBase.
15173                 - Implemented Paint (), to do class specific painting.
15174
15175 2004-10-15 07:16  ravindra
15176
15177         * ButtonBase.cs:
15178                 - Redraw () is not virtual now.
15179                 - Added an internal virtual method Paint (), so that
15180                 derived classes can do their painting on their own.
15181                 - Modified OnPaint () to call Paint ().
15182
15183 2004-10-15 06:43  jordi
15184
15185         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
15186           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
15187
15188 2004-10-15 00:30  ravindra
15189
15190         * MessageBox.cs:
15191                 - MessageBox on windows does not have min/max buttons.
15192                 This change in CreateParams fixes this on Windows. We
15193                 still need to implement this windowstyle behavior in
15194                 our X11 driver.
15195
15196 2004-10-14 05:14  ravindra
15197
15198         * ToolBar.cs:
15199                 - Changed Redraw () to do a Refresh () always.
15200                 - Fixed the MouseMove event handling when mouse is pressed,
15201                 ie drag event handling.
15202                 - Replaced the usage of ToolBarButton.Pressed property to
15203                 ToolBarButton.pressed internal variable.
15204
15205 2004-10-14 05:10  ravindra
15206
15207         * ToolBarButton.cs:
15208                 - Added an internal member 'inside' to handle mouse move
15209                 with mouse pressed ie mouse drag event.
15210                 - Changed 'Pressed' property to return true only when
15211                 'inside' and 'pressed' are both true.
15212                 - Some coding style love.
15213
15214 2004-10-14 00:17  ravindra
15215
15216         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
15217           public method.
15218
15219 2004-10-14 00:15  ravindra
15220
15221         * ButtonBase.cs: Redraw () related improvements.
15222
15223 2004-10-14 00:14  ravindra
15224
15225         * MessageBox.cs: Moved InitFormSize () out of Paint method and
15226           removed unnecessary calls to Button.Show () method.
15227
15228 2004-10-13 17:50  pbartok
15229
15230         * XplatUIX11.cs:
15231           - Formatting fix
15232           - Removed destroying of window until we solve the problem of X
15233             destroying the window before us on shutdown
15234
15235 2004-10-13 16:32  pbartok
15236
15237         * ButtonBase.cs:
15238           - Now Redraws on MouseUp for FlatStyle Flat and Popup
15239
15240 2004-10-13 14:18  pbartok
15241
15242         * XplatUIX11.cs:
15243           - Added code to destroy the X window
15244
15245 2004-10-13 14:18  pbartok
15246
15247         * XplatUIWin32.cs:
15248           - Added code to destroy a window
15249
15250 2004-10-13 14:12  pbartok
15251
15252         * ButtonBase.cs:
15253           - Added the Redraw on Resize that got dropped in the last rev
15254
15255 2004-10-13 09:06  pbartok
15256
15257         * ThemeWin32Classic.cs:
15258           - Path from John BouAntoun:
15259             * Fix check rendering (centre correctly for normal style, offset
15260               correctly for FlatStyle).
15261             * Fix border color usage (use backcolor) for FlatStyle.Popup
15262             * Use checkbox.Capture instead of checkbox.is_pressed when
15263               rendering flatstyle states.
15264
15265 2004-10-12 21:48  pbartok
15266
15267         * ThemeWin32Classic.cs:
15268           - Removed all occurences of SystemColors and replaced them with the
15269             matching theme color
15270
15271 2004-10-12 21:41  pbartok
15272
15273         * ThemeWin32Classic.cs:
15274           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
15275             him using the function for flatstyle drawing
15276           - Changed functions to use the new version of CPDrawBorder3D
15277
15278 2004-10-12 21:15  pbartok
15279
15280         * ControlPaint.cs:
15281           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
15282             match MS documentation. They need to return defined colors if the
15283             passed color matches the configured control color. Thanks to John
15284             BouAntoun for pointing this out.
15285
15286 2004-10-12 20:57  pbartok
15287
15288         * Control.cs:
15289           - Fix from John BouAntoun: Raise ForeColorChanged event when text
15290             color is changed
15291
15292 2004-10-12 20:46  pbartok
15293
15294         * CheckBox.cs:
15295           - Fix from John BouAntoun: Now properly sets the Appearance property
15296
15297 2004-10-12 20:45  pbartok
15298
15299         * ThemeWin32Classic.cs:
15300           - Fixes from John BouAntoun: now handles forecolors and backcolors
15301             for flatstyle rendered controls much better; It also fixes normal
15302             checkbox rendering when pushed or disabled.
15303
15304 2004-10-08 02:50  jordi
15305
15306         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
15307           work
15308
15309 2004-10-07 08:56  jordi
15310
15311         * ThemeWin32Classic.cs: Removes deletion of cached brushes
15312
15313 2004-10-06 03:59  jordi
15314
15315         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
15316           XplatUIWin32.cs: removes warnings from compilation
15317
15318 2004-10-05 12:23  jackson
15319
15320         * RadioButton.cs: Fix ctor
15321
15322 2004-10-05 11:10  pbartok
15323
15324         * MessageBox.cs:
15325           - Partial implementation by Benjamin Dasnois
15326
15327 2004-10-05 10:15  jackson
15328
15329         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
15330           by John BouAntoun
15331
15332 2004-10-05 03:07  ravindra
15333
15334         * ToolBar.cs:
15335                 - Removed a private method, Draw ().
15336                 - Fixed the ButtonDropDown event handling.
15337                 - Fixed MouseMove event handling.
15338
15339 2004-10-05 03:04  ravindra
15340
15341         * ThemeWin32Classic.cs:
15342                 - Added DrawListView method and ListViewDefaultSize property.
15343                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
15344                 - Changed DOS style CRLF to Unix format (dos2unix).
15345
15346 2004-10-05 03:03  ravindra
15347
15348         * Theme.cs:
15349                 - Added DrawListView method and ListViewDefaultSize property.
15350
15351 2004-10-05 02:42  ravindra
15352
15353         * ToolBarButton.cs: Added an internal member dd_pressed to handle
15354           clicks on DropDown arrow.
15355
15356 2004-10-04 22:56  jackson
15357
15358         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
15359           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
15360           Control handle the buffers, derived classes should not have to
15361           CreateBuffers themselves.
15362
15363 2004-10-04 21:20  jackson
15364
15365         * StatusBar.cs: The control handles resizing the buffers now.
15366
15367 2004-10-04 21:18  jackson
15368
15369         * Control.cs: When resizing the buffers should be invalidated. This
15370           should be handled in Control not in derived classes.
15371
15372 2004-10-04 14:45  jackson
15373
15374         * TabPage.cs: oops
15375
15376 2004-10-04 02:14  pbartok
15377
15378         * LeftRightAlignment.cs:
15379           - Initial check-in
15380
15381 2004-10-04 01:09  jordi
15382
15383         * ThemeWin32Classic.cs: fixes right button position causing right
15384           button not showing on horizontal scrollbars
15385
15386 2004-10-02 13:12  pbartok
15387
15388         * XplatUIX11.cs:
15389           - Simplified the Invalidate method by using an X call instead of
15390             generating the expose ourselves
15391           - Added an expose when the window background is changed
15392           - Implemented ClientToScreen method
15393
15394 2004-10-02 13:08  pbartok
15395
15396         * XplatUIWin32.cs:
15397           - Added Win32EnableWindow method (test for implementing modal
15398           dialogs)
15399           - Added ClientToScreen method and imports
15400
15401 2004-10-02 13:07  pbartok
15402
15403         * XplatUI.cs, XplatUIDriver.cs:
15404           - Added ClientToScreen coordinate translation method
15405
15406 2004-10-02 13:06  pbartok
15407
15408         * KeyPressEventArgs.cs:
15409           - Fixed access level for constructor
15410
15411 2004-10-02 13:06  pbartok
15412
15413         * NativeWindow.cs:
15414           - Changed access level for the window_collection hash table
15415
15416 2004-10-02 13:05  pbartok
15417
15418         * Form.cs:
15419           - Added KeyPreview property
15420           - Added Menu property (still incomplete, pending Jordi's menu work)
15421           - Implemented ProcessCmdKey
15422           - Implemented ProcessDialogKey
15423           - Implemented ProcessKeyPreview
15424
15425 2004-10-02 13:02  pbartok
15426
15427         * Control.cs:
15428           - Added private method to get the Control object from the window
15429           handle
15430           - Implemented ContextMenu property
15431           - Implemented PointToScreen
15432           - Implemented PreProcessMessage
15433           - Implemented IsInputChar
15434           - Implemented IsInputKey
15435           - Implemented ProcessCmdKey
15436           - Completed ProcessKeyEventArgs
15437           - Fixed message loop to call the proper chain of functions on key
15438           events
15439           - Implemented ProcessDialogChar
15440           - Implemented ProcessDialogKey
15441           - Implemented ProcessKeyMessage
15442           - Implemented ProcessKeyPreview
15443           - Added RaiseDragEvent stub (MS internal method)
15444           - Added RaiseKeyEvent stub (MS internal method)
15445           - Added RaiseMouseEvent stub (MS Internal method)
15446           - Added RaisePaintEvent stub (MS Internal method)
15447           - Added ResetMouseEventArgs stub (MS Internal method)
15448           - Implemented RtlTranslateAlignment
15449           - Implemented RtlTranslateContent
15450           - Implemented RtlTranslateHorizontal
15451           - Implemented RtlTranslateLeftRight
15452           - Added generation of KeyPress event
15453
15454 2004-10-02 05:57  ravindra
15455
15456         * ListViewItem.cs: Added attributes.
15457
15458 2004-10-02 05:32  ravindra
15459
15460         * ListView.cs: Added attributes.
15461
15462 2004-10-01 11:53  jackson
15463
15464         * Form.cs: Implement the Close method so work on MessageBox can
15465           continue.
15466
15467 2004-09-30 14:06  pbartok
15468
15469         * XplatUIX11.cs:
15470           - Bug fixes
15471
15472 2004-09-30 11:34  jackson
15473
15474         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
15475
15476 2004-09-30 07:26  ravindra
15477
15478         * ListViewItemConverter.cs: Converter for ListViewItem.
15479
15480 2004-09-30 07:26  ravindra
15481
15482         * SortOrder.cs: Enum for ListView control.
15483
15484 2004-09-30 07:25  ravindra
15485
15486         * ColumnHeader.cs: Supporting class for ListView control.
15487
15488 2004-09-30 07:24  ravindra
15489
15490         * ListView.cs, ListViewItem.cs: Initial implementation.
15491
15492 2004-09-30 07:20  ravindra
15493
15494         * ItemActivation.cs: Enum for ListView Control.
15495
15496 2004-09-29 20:29  pbartok
15497
15498         * XplatUIX11.cs:
15499           - Added lookup of pixel value for background color; tries to get a
15500             color 'close' to the requested color, it avoids having to create a
15501             colormap.  Depending on the display this could mean the used color
15502             is slightly off the desired color. Might have to change it to a more
15503             resource intensive colormap approach, but it will work as a
15504           workaround to avoid red screens.
15505
15506 2004-09-29 14:27  jackson
15507
15508         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
15509
15510 2004-09-28 12:44  pbartok
15511
15512         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
15513           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
15514           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
15515           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
15516           TrackBar.cs, VScrollBar.cs:
15517           - Streamlined Theme interfaces:
15518             * Each DrawXXX method for a control now is passed the object for
15519               the control to be drawn in order to allow accessing any state the
15520               theme might require
15521
15522             * ControlPaint methods for the theme now have a CP prefix to avoid
15523               name clashes with the Draw methods for controls
15524
15525             * Every control now retrieves it's DefaultSize from the current
15526             theme
15527
15528 2004-09-28 12:17  jackson
15529
15530         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
15531           drawing
15532
15533 2004-09-24 14:57  jackson
15534
15535         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
15536           Gives us a nice little performance boost.
15537
15538 2004-09-24 12:02  jackson
15539
15540         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
15541           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
15542           Control and supporting classes. Initial checkin
15543
15544 2004-09-23 13:08  jackson
15545
15546         * Form.cs: Temp build fixage
15547
15548 2004-09-23 01:39  ravindra
15549
15550         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
15551           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
15552           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
15553           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
15554           EventHandlers needed by ListView Control.
15555
15556 2004-09-22 14:12  pbartok
15557
15558         * ScrollableControl.cs:
15559           - Implemented DockPadding property
15560           - Implemented AutoScroll property
15561           - Implemented AutoScrollMargin property
15562           - Implemented AutoScrollMinSize property
15563           - Implemented AutoScrollPosition property
15564           - Implemented DisplayRectangle property (still incomplete)
15565           - Implemented CreateParams property
15566           - Implemented HScroll property
15567           - Implemented VScroll property
15568           - Implemented OnVisibleChanged property
15569
15570 2004-09-22 14:09  pbartok
15571
15572         * Form.cs:
15573           - Added Form.ControllCollection class
15574           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
15575             RemoveOwnedForm (still incomplete, missing on-top and common
15576             minimize/maximize behaviour)
15577           - Added StartPosition property (still incomplete, does not use when
15578             creating the form)
15579           - Added ShowDialog() methods (still incomplete, missing forcing the
15580             dialog modal)
15581
15582 2004-09-22 14:05  pbartok
15583
15584         * Application.cs:
15585           - Added message loop for modal dialogs
15586
15587 2004-09-22 14:02  pbartok
15588
15589         * GroupBox.cs:
15590           - Fixed wrong types for events
15591
15592 2004-09-22 14:00  pbartok
15593
15594         * Shortcut.cs, FormWindowState.cs:
15595           - Fixed wrong values
15596
15597 2004-09-22 12:01  jackson
15598
15599         * Control.cs: Text is never null
15600
15601 2004-09-20 22:14  pbartok
15602
15603         * XplatUIWin32.cs:
15604           - Fixed accessibility level for Idle handler
15605
15606 2004-09-20 18:54  jackson
15607
15608         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
15609           XplatUIX11.cs: New message loop that uses poll so we don't get a
15610           busy loop
15611
15612 2004-09-17 10:43  pbartok
15613
15614         * ScrollBar.cs:
15615           - Fixed behaviour of arrow buttons. Now properly behaves like
15616             Buttons (and like Microsoft's scrollbar arrow buttons)
15617
15618 2004-09-17 10:14  pbartok
15619
15620         * ScrollBar.cs:
15621           - Added missing release of keyboard/mouse capture
15622
15623 2004-09-17 06:18  jordi
15624
15625         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
15626           Theme.cs: Very early menu support
15627
15628 2004-09-16 17:45  pbartok
15629
15630         * XplatUIWin32.cs:
15631           - Fixed sending a window to the front
15632           - Added overload for SetWindowPos to avoid casting
15633
15634 2004-09-16 17:44  pbartok
15635
15636         * Control.cs:
15637           - Added SendToBack and BringToFront methods
15638
15639 2004-09-16 07:00  ravindra
15640
15641         * Copyright: Added Novell URL.
15642
15643 2004-09-16 07:00  ravindra
15644
15645         * ToolBar.cs: Invalidate should be done before redrawing.
15646
15647 2004-09-15 21:19  ravindra
15648
15649         * ColumnHeaderStyle.cs: Enum for ListView Control.
15650
15651 2004-09-15 21:18  ravindra
15652
15653         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
15654           ListView Control.
15655
15656 2004-09-13 18:26  jackson
15657
15658         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
15659           properly
15660
15661 2004-09-13 18:13  jackson
15662
15663         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
15664           a second thread and post messages into the main threads message
15665           queue. This makes timing much more consistent. Both win2K and XP
15666           have a minimum timer value of 15 milliseconds, so we now do this
15667           too.
15668
15669 2004-09-13 15:18  pbartok
15670
15671         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
15672           XplatUIX11.cs:
15673           - Added Z-Ordering methods
15674
15675 2004-09-13 10:56  pbartok
15676
15677         * Form.cs:
15678           - Fixed #region names
15679           - Moved properties and methods into their proper #regions
15680
15681 2004-09-13 10:51  pbartok
15682
15683         * Form.cs:
15684           - Added Accept and CancelButton properties
15685           - Added ProcessDialogKey() method
15686
15687 2004-09-13 08:18  pbartok
15688
15689         * IWindowTarget.cs:
15690           - Initial check-in
15691
15692 2004-09-10 21:50  pbartok
15693
15694         * Control.cs:
15695           - Added DoDragDrop() [incomplete]
15696           - Properly implemented 'Visible' handling
15697           - Added SetVisibleCore()
15698           - Implemented FindChildAtPoint()
15699           - Implemented GetContainerControl()
15700           - Implemented Hide()
15701
15702 2004-09-10 19:28  pbartok
15703
15704         * Control.cs:
15705           - Moved methods into their appropriate #regions
15706           - Reordered methods within regions alphabetically
15707
15708 2004-09-10 18:57  pbartok
15709
15710         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
15711           - Added method to retrieve text from window
15712
15713 2004-09-10 18:56  pbartok
15714
15715         * Control.cs:
15716           - Moved some internal functions into the internal region
15717           - Implemented FontHeight
15718           - Implemented RenderRightToLeft
15719           - Implemented ResizeRedraw
15720           - Implemented ShowFocusCues
15721           - Implemented ShowKeyboardCues
15722           - Implemented FromChildHandle
15723           - Implemented FromHandle
15724           - Implemented IsMnemonic
15725           - Implemented ReflectMessage
15726           - All public and protected Static Methods are now complete
15727
15728 2004-09-10 16:54  pbartok
15729
15730         * Control.cs:
15731           - Implemented remaining missing public instance properties
15732           - Alphabetized some out of order properties
15733
15734 2004-09-10 05:51  ravindra
15735
15736         * PictureBox.cs: Added a check for null image.
15737
15738 2004-09-10 00:59  jordi
15739
15740         * GroupBox.cs: remove cvs tag
15741
15742 2004-09-09 05:25  ravindra
15743
15744         * ToolBar.cs: Make redraw accessible from ToolBarButton.
15745
15746 2004-09-09 05:23  ravindra
15747
15748         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
15749           parent redraw.
15750
15751 2004-09-09 02:28  pbartok
15752
15753         * ThemeWin32Classic.cs:
15754           - Improve disabled string look
15755
15756 2004-09-09 01:15  jordi
15757
15758         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
15759           args and handler
15760
15761 2004-09-08 23:56  ravindra
15762
15763         * ItemBoundsPortion.cs: It's enum, not a class!
15764
15765 2004-09-08 23:47  ravindra
15766
15767         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
15768           Enums for Form.
15769
15770 2004-09-08 21:13  ravindra
15771
15772         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
15773           ListView control.
15774
15775 2004-09-08 21:03  ravindra
15776
15777         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
15778           avoid crash.
15779
15780 2004-09-08 21:01  ravindra
15781
15782         * ScrollableControl.cs: Removed unreachable code.
15783
15784 2004-09-08 06:45  jordi
15785
15786         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
15787
15788 2004-09-08 01:00  jackson
15789
15790         * XplatUIX11.cs: Only run the timers when updating the message
15791           queue. This effectively gives X messages a higher priority then
15792           timer messages. Timers still need love though
15793
15794 2004-09-07 14:01  jackson
15795
15796         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
15797           this for us and the handle is no longer valid.
15798
15799 2004-09-07 13:59  jackson
15800
15801         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
15802           loop that manages to not crash. TODO: Add poll and cleanup timers
15803
15804 2004-09-07 11:12  jordi
15805
15806         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
15807
15808 2004-09-07 03:40  jordi
15809
15810         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
15811           fixes, methods, multiple links
15812
15813 2004-09-06 06:55  jordi
15814
15815         * Control.cs: Caches ClientRectangle rectangle value
15816
15817 2004-09-05 02:03  jordi
15818
15819         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
15820           certain situations
15821
15822 2004-09-04 11:10  jordi
15823
15824         * Label.cs: Refresh when font changed
15825
15826 2004-09-02 16:24  pbartok
15827
15828         * Control.cs:
15829           - Added sanity check to creation of double buffer bitmap
15830
15831 2004-09-02 16:24  pbartok
15832
15833         * ButtonBase.cs:
15834           - Fixed selection of text color
15835           - Fixed handling of resize event; now properly recreates double
15836             buffering bitmap
15837           - Added missing assignment of TextAlignment
15838           - Added proper default for TextAlignment
15839
15840 2004-09-02 14:26  pbartok
15841
15842         * RadioButton.cs:
15843           - Added missing RadioButton.RadioButtonAccessibleObject class
15844
15845 2004-09-02 14:26  pbartok
15846
15847         * Control.cs:
15848           - Added missing Control.ControlAccessibleObject class
15849           - Started to implement Select()ion mechanisms, still very incomplete
15850
15851 2004-09-02 14:25  pbartok
15852
15853         * AccessibleObject.cs:
15854           - Added missing methods
15855
15856 2004-09-02 14:23  pbartok
15857
15858         * AccessibleNavigation.cs, AccessibleSelection.cs:
15859           - Initial check-in
15860
15861 2004-09-02 10:32  jordi
15862
15863         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
15864           pool for pens, brushes, and hatchbruses
15865
15866 2004-09-01 15:30  jackson
15867
15868         * StatusBar.cs: Fix typo
15869
15870 2004-09-01 14:44  pbartok
15871
15872         * RadioButton.cs:
15873           - Fixed state
15874
15875 2004-09-01 14:39  pbartok
15876
15877         * Button.cs, RadioButton.cs:
15878           - Functional initial check-in
15879
15880 2004-09-01 14:01  pbartok
15881
15882         * CheckBox.cs:
15883           - Added missing default
15884           - Added missing region mark
15885
15886 2004-09-01 09:10  jordi
15887
15888         * Label.cs: fixes method signatures, new methods, events, fixes
15889           autosize
15890
15891 2004-09-01 07:19  jordi
15892
15893         * Control.cs: Init string variables with an empty object
15894
15895 2004-09-01 04:20  jordi
15896
15897         * Control.cs: fires OnFontChanged event
15898
15899 2004-08-31 20:07  pbartok
15900
15901         * ButtonBase.cs:
15902           - Enabled display of strings
15903
15904 2004-08-31 20:05  pbartok
15905
15906         * Form.cs:
15907           - Added (partial) implementation of DialogResult; rest needs to be
15908             implemented when the modal loop code is done
15909
15910 2004-08-31 19:55  pbartok
15911
15912         * CheckBox.cs:
15913           - Fixed to match the removal of the needs_redraw concept
15914
15915 2004-08-31 19:55  pbartok
15916
15917         * ButtonBase.cs:
15918           - Removed the rather odd split between 'needs redraw' and redrawing
15919           - Now handles the events that require regeneration (ambient
15920             properties and size)
15921
15922 2004-08-31 19:41  pbartok
15923
15924         * Control.cs:
15925           - Added firing of BackColorChanged event
15926           - Added TopLevelControl property
15927           - Fixed handling of WM_ERASEBKGRND message
15928
15929 2004-08-31 12:49  pbartok
15930
15931         * ButtonBase.cs:
15932           - Removed debug
15933           - Minor fixes
15934
15935 2004-08-31 12:48  pbartok
15936
15937         * CheckBox.cs:
15938           - Finished (famous last words)
15939
15940 2004-08-31 04:35  jordi
15941
15942         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
15943           scrolling bugs, adds new methods
15944
15945 2004-08-30 14:42  pbartok
15946
15947         * CheckBox.cs:
15948           - Implemented CheckBox drawing code
15949
15950 2004-08-30 14:42  pbartok
15951
15952         * ButtonBase.cs:
15953           - Made Redraw() and CheckRedraw() virtual
15954           - Improved mouse up/down/move logic to properly track buttons
15955
15956 2004-08-30 09:44  pbartok
15957
15958         * CheckBox.cs:
15959           - Updated to fix broken build. Not complete yet.
15960
15961 2004-08-30 09:28  pbartok
15962
15963         * CheckState.cs:
15964           - Initial checkin
15965
15966 2004-08-30 09:17  pbartok
15967
15968         * Appearance.cs:
15969           - Initial check-in
15970
15971 2004-08-27 16:12  ravindra
15972
15973         * ToolBarButton.cs: Added TypeConverter attribute.
15974
15975 2004-08-27 16:07  ravindra
15976
15977         * ImageIndexConverter.cs: Implemented.
15978
15979 2004-08-27 14:17  pbartok
15980
15981         * Control.cs:
15982           - Removed unneeded stack vars
15983           - First attempt to fix sizing issues when layout is suspended
15984
15985 2004-08-25 15:35  jordi
15986
15987         * ScrollBar.cs: more fixes to scrollbar
15988
15989 2004-08-25 14:04  ravindra
15990
15991         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
15992           Added the missing divider code and grip for ToolBar Control.
15993
15994 2004-08-25 13:20  pbartok
15995
15996         * Control.cs:
15997           - Control now properly passes the ambient background color to child
15998             controls
15999
16000 2004-08-25 13:20  jordi
16001
16002         * ScrollBar.cs: small bug fix regarding bar position
16003
16004 2004-08-25 12:33  pbartok
16005
16006         * Timer.cs:
16007           - Now only calls SetTimer or KillTimer if the enabled state has
16008           changed
16009
16010 2004-08-25 12:33  pbartok
16011
16012         * XplatUIWin32.cs:
16013           - Fixed timer handling, now seems to work
16014           - Improved error message for window creation
16015
16016 2004-08-25 12:32  pbartok
16017
16018         * Control.cs:
16019           - Fixed generation of MouseUp message
16020
16021 2004-08-25 12:29  jordi
16022
16023         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
16024           and fixes for progressbar
16025
16026 2004-08-24 18:43  ravindra
16027
16028         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
16029           in ToolBar control.
16030
16031 2004-08-24 17:15  pbartok
16032
16033         * Panel.cs:
16034           - Added #region
16035           - Added missing events
16036           - Alphabetized
16037
16038 2004-08-24 17:14  pbartok
16039
16040         * StatusBar.cs, PictureBox.cs:
16041           - Now uses Control's CreateParams
16042
16043 2004-08-24 16:36  pbartok
16044
16045         * XplatUIX11.cs:
16046           - Fixed background color handling
16047           - Fixed sending of enter/leave events on a grab
16048
16049 2004-08-24 16:35  pbartok
16050
16051         * X11Structs.cs:
16052           - Refined definitions for CrossingEvent
16053
16054 2004-08-24 12:37  jordi
16055
16056         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
16057           formmating, methods signature, and adds missing events
16058
16059 2004-08-24 12:24  jordi
16060
16061         * Control.cs: fire OnEnabledChanged event
16062
16063 2004-08-24 11:17  pbartok
16064
16065         * XplatUIWin32.cs:
16066           - Implemented SetTimer() and KillTimer()
16067
16068 2004-08-24 11:16  pbartok
16069
16070         * XplatUIX11.cs:
16071           - Now uses Remove instead of Add to kill the timer
16072
16073 2004-08-24 10:16  jackson
16074
16075         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
16076           picture boxes in the theme now. Draw picture box borders and obey
16077           sizing modes
16078
16079 2004-08-24 05:49  jackson
16080
16081         * Timer.cs: Remove top secret debugging code
16082
16083 2004-08-24 05:34  jackson
16084
16085         * PictureBox.cs: Temp hack to make picture boxes draw their full
16086           image
16087
16088 2004-08-24 05:29  jackson
16089
16090         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16091           XplatUIX11.cs: Move timers to the driver level. On X they are
16092           queued by the driver and checked on idle.
16093
16094 2004-08-24 01:07  jackson
16095
16096         * XplatUIX11.cs: Use a queue for async messages instead of passing
16097           them as ClientMessages since that was totally broken. Also simply
16098           check for events and return an idle message if none are found. This
16099           gives us an idle handler, and prevents deadlocking when no messages
16100           are in the queue.
16101
16102 2004-08-23 18:19  ravindra
16103
16104         * XplatUIWin32.cs: Removed the unwanted destructor.
16105
16106 2004-08-23 17:27  pbartok
16107
16108         * ButtonBase.cs:
16109           - Finishing touches. Works now, just needs some optimizations.
16110
16111 2004-08-23 16:53  jordi
16112
16113         * ScrollBar.cs: small fix
16114
16115 2004-08-23 16:45  pbartok
16116
16117         * Application.cs:
16118           - Removed debug output
16119           - Simplifications
16120
16121 2004-08-23 16:43  jordi
16122
16123         * ScrollBar.cs: [no log message]
16124
16125 2004-08-23 16:10  pbartok
16126
16127         * Form.cs:
16128           - Fixed handling of WM_CLOSE message
16129           - Removed debug output
16130
16131 2004-08-23 16:09  pbartok
16132
16133         * Application.cs:
16134           - Added handling of Idle event
16135           - Added handling of form closing
16136           - Fixed reporting of MessageLoop property
16137           - Removed some unneeded code, should provide a bit of a speedup
16138
16139 2004-08-23 15:22  pbartok
16140
16141         * Control.cs:
16142           - Added InitLayout() method
16143           - Added code to properly perform layout when Anchor or Dock property
16144             is changed
16145           - Changed 'interpretation' of ResumeLayout. MS seems to have a
16146             LAMESPEC, tried to do it in a way that makes sense
16147
16148 2004-08-23 14:10  jordi
16149
16150         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
16151           properties and methods
16152
16153 2004-08-23 13:55  pbartok
16154
16155         * Control.cs:
16156           - Properly fixed Jordi's last fix
16157           - Now uses Cursor's Position property instead of calling XplatUI
16158           directly
16159
16160 2004-08-23 13:44  jordi
16161
16162         * PaintEventHandler.cs: Adding missing attribute
16163
16164 2004-08-23 13:39  pbartok
16165
16166         * Cursor.cs:
16167           - Implemented Position property
16168
16169 2004-08-23 13:39  pbartok
16170
16171         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
16172           - Added method to move mouse cursor
16173
16174 2004-08-23 13:39  pbartok
16175
16176         * XplatUIX11.cs:
16177           - Fixed setting of background color
16178           - Added method to move mouse cursor
16179
16180 2004-08-23 13:16  jordi
16181
16182         * Control.cs: avoids null exception
16183
16184 2004-08-22 17:46  jackson
16185
16186         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
16187           PictureBox
16188
16189 2004-08-22 17:40  jackson
16190
16191         * XplatUIX11.cs: Add some missing locks
16192
16193 2004-08-22 15:10  pbartok
16194
16195         * Control.cs, Form.cs:
16196           - Removed OverlappedWindow style from Control, instead it's default
16197             now is child
16198           - Made form windows OverlappedWindow by default
16199
16200 2004-08-22 13:34  jackson
16201
16202         * ScrollBar.cs: Update the position through the Value property so
16203           the OnValueChanged event is raised.
16204
16205 2004-08-22 12:04  pbartok
16206
16207         * SWF.csproj:
16208           - Added Cursor.cs and UserControl.cs
16209
16210 2004-08-22 12:03  pbartok
16211
16212         * Cursor.cs:
16213           - Started implementation, not usable yet
16214
16215 2004-08-22 12:00  pbartok
16216
16217         * UserControl.cs:
16218           - Implemented UserControl (complete)
16219
16220 2004-08-21 19:20  ravindra
16221
16222         * ToolBar.cs: Correcting the formatting mess of VS.NET.
16223
16224 2004-08-21 18:49  ravindra
16225
16226         * ToolBar.cs: Probably this completes the missing attributes in
16227           toolbar control.
16228
16229 2004-08-21 18:03  ravindra
16230
16231         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
16232           Fixed toolbar control signatures.
16233
16234 2004-08-21 16:32  pbartok
16235
16236         * LinkLabel.cs:
16237           - Signature Fixes
16238
16239 2004-08-21 16:30  pbartok
16240
16241         * Label.cs:
16242           - Signature fixes
16243
16244 2004-08-21 16:19  pbartok
16245
16246         * Control.cs, Label.cs:
16247           - Signature fixes
16248
16249 2004-08-21 15:57  pbartok
16250
16251         * ButtonBase.cs:
16252           - Added loads of debug output for development
16253           - Fixed typo in method name
16254
16255 2004-08-21 15:52  pbartok
16256
16257         * ToolBarButtonClickEventArgs.cs:
16258           - Added missing base class
16259
16260 2004-08-21 14:53  pbartok
16261
16262         * Control.cs:
16263           - Updated to match new GrabWindow signature
16264
16265 2004-08-21 14:51  pbartok
16266
16267         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16268           - Added method to get default display size
16269
16270 2004-08-21 14:23  pbartok
16271
16272         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16273           - Added method to query current grab state
16274           - Added argument to allow confining a grab to a window
16275
16276 2004-08-21 14:22  pbartok
16277
16278         * Keys.cs:
16279           - Added [Flags] attribute so that modifiers can be used in bitwise
16280           ops
16281
16282 2004-08-21 14:21  pbartok
16283
16284         * TrackBar.cs, ScrollBar.cs:
16285           - Replaced direct XplatUI calls with their Control counterpart
16286
16287 2004-08-21 13:32  pbartok
16288
16289         * Control.cs:
16290           - Implemented Created property
16291
16292 2004-08-21 13:28  pbartok
16293
16294         * Control.cs:
16295           - Implemented ContainsFocus
16296
16297 2004-08-21 13:26  pbartok
16298
16299         * Control.cs:
16300           - Implemented CausesValidation
16301
16302 2004-08-21 13:21  pbartok
16303
16304         * Control.cs:
16305           - Implemented CanFocus
16306           - Implemented CanSelect
16307           - Implemented Capture
16308
16309 2004-08-21 12:35  pbartok
16310
16311         * XplatUIWin32.cs:
16312           - Fixed bug with Async message handling
16313           - Implemented getting the ModifierKeys
16314
16315 2004-08-21 12:32  jackson
16316
16317         * AsyncMethodResult.cs: Make sure we have the mutex before we
16318           release it. Fixes BeginInvoke on windows
16319
16320 2004-08-21 11:31  pbartok
16321
16322         * XplatUIWin32.cs, XplatUIX11.cs:
16323           - Drivers now return proper mouse state
16324
16325 2004-08-21 10:54  jackson
16326
16327         * Control.cs: Implement EndInvoke
16328
16329 2004-08-21 10:48  jackson
16330
16331         * Timer.cs: Remove unneeded finalizer
16332
16333 2004-08-20 19:52  ravindra
16334
16335         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
16336           in mouse event handling in the ToolBar control.
16337
16338 2004-08-20 19:50  ravindra
16339
16340         * ImageList.cs: Changed draw method to use the arguments passed in
16341           to draw the image.
16342
16343 2004-08-20 18:58  pbartok
16344
16345         * XplatUIStructs.cs:
16346           - Added private message for async communication
16347
16348 2004-08-20 17:38  ravindra
16349
16350         * Control.cs: Made RightToLeft property virtual and removed a
16351           Console.WriteLine.
16352
16353 2004-08-20 14:39  jordi
16354
16355         * ThemeGtk.cs: use style_attach
16356
16357 2004-08-20 14:39  pbartok
16358
16359         * XplatUIWin32.cs:
16360           - Added jackson's Async code from X11 to Win32
16361
16362 2004-08-20 14:09  pbartok
16363
16364         * SWF.csproj:
16365           - Added all new files
16366
16367 2004-08-20 14:09  pbartok
16368
16369         * Control.cs:
16370           - Added call to set window background color
16371
16372 2004-08-20 14:03  pbartok
16373
16374         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
16375           - Added method for setting the window background
16376
16377 2004-08-20 14:02  pbartok
16378
16379         * XplatUIWin32.cs:
16380           - Added method for setting the background color
16381           - Added handling for erasing the window background
16382
16383 2004-08-20 13:45  jordi
16384
16385         * TrackBar.cs: fixes timer, new properties and methods
16386
16387 2004-08-20 13:34  jackson
16388
16389         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
16390           correct thread
16391
16392 2004-08-20 13:22  jackson
16393
16394         * Timer.cs: Timer Tick events are now handed through Controls Async
16395           mechanism so the callbacks are executed in the same thread as X
16396
16397 2004-08-20 13:19  jackson
16398
16399         * XplatUIDriver.cs: Expose functionality to send async messages
16400           through the driver
16401
16402 2004-08-20 13:18  jackson
16403
16404         * Control.cs: Implement Begininvoke
16405
16406 2004-08-20 13:14  jackson
16407
16408         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
16409           messages through the driver
16410
16411 2004-08-20 13:12  jackson
16412
16413         * XplatUIX11.cs: Lock before all X operations. Also added Async
16414           method functionality through XSendEvent
16415
16416 2004-08-20 13:11  jackson
16417
16418         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
16419           This will screw up on 64 bit systems)
16420
16421 2004-08-20 13:10  jackson
16422
16423         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
16424           Async messages through X/Win32
16425
16426 2004-08-19 19:39  pbartok
16427
16428         * XplatUIX11.cs:
16429           - Updated code to match new HandleData.DeviceContext type
16430
16431 2004-08-19 19:38  pbartok
16432
16433         * HandleData.cs:
16434           - Made DeviceContext a generic object to allow usage from various
16435           drivers
16436           - Added support for queueing Windows messages
16437
16438 2004-08-19 19:37  pbartok
16439
16440         * XplatUIWin32.cs:
16441           - Added generation of MouseEnter, MouseLeave and MouseHover events
16442           - Added cleanup on EndPaint
16443
16444 2004-08-19 19:17  pbartok
16445
16446         * Control.cs:
16447           - Added handling of WM_MOUSEHOVER
16448           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
16449           code
16450
16451 2004-08-19 18:55  jordi
16452
16453         * ThemeGtk.cs: fixes button order
16454
16455 2004-08-19 18:12  jordi
16456
16457         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
16458
16459 2004-08-19 17:09  pbartok
16460
16461         * Control.cs:
16462           - Added Right property
16463           - Added RightToLeft property
16464
16465 2004-08-19 16:27  jordi
16466
16467         * ThemeGtk.cs: experimental GTK theme support
16468
16469 2004-08-19 16:26  jordi
16470
16471         * ITheme.cs, Theme.cs: move themes from an interface to a class
16472
16473 2004-08-19 16:25  jordi
16474
16475         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
16476           theme enhancaments
16477
16478 2004-08-19 16:04  pbartok
16479
16480         * XplatUIX11.cs:
16481           - Added colormap basics
16482           - Added a way to re-initialize with a different display handle
16483           - Fixed setting of the window background color
16484           - Added various X11 imports related to colors and colormaps
16485
16486 2004-08-19 15:51  pbartok
16487
16488         * X11Structs.cs:
16489           - Removed packing hints (Paolo suggested this a while back)
16490           - fixed colormap type
16491           - Added default Atom types
16492           - Added Screen and color structs and enums
16493
16494 2004-08-19 15:39  pbartok
16495
16496         * ImageList.cs:
16497           - Added missing Draw() method
16498           - Added missing RecreateHandle event
16499
16500 2004-08-19 15:30  pbartok
16501
16502         * Form.cs:
16503           - Added handling of WM_CLOSE
16504
16505 2004-08-18 13:16  jordi
16506
16507         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
16508           a table
16509
16510 2004-08-18 09:56  jordi
16511
16512         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
16513
16514 2004-08-17 15:31  ravindra
16515
16516         * SWF.csproj: Updated project.
16517
16518 2004-08-17 15:25  pbartok
16519
16520         * Control.cs:
16521           - Drawing improvement; don't call UpdateBounds if we are not visible
16522             (or have been minimized)
16523
16524 2004-08-17 15:24  pbartok
16525
16526         * XplatUIWin32.cs:
16527           - Finished IsVisible
16528           - Added Win32GetWindowPlacement
16529
16530 2004-08-17 15:08  jackson
16531
16532         * Panel.cs: Initial checkin of the Panel
16533
16534 2004-08-17 14:25  pbartok
16535
16536         * Control.cs:
16537           - Fixed broken handling of default window sizes
16538
16539 2004-08-17 13:29  jackson
16540
16541         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
16542           has a large startup time.
16543
16544 2004-08-17 10:25  jackson
16545
16546         * HandleData.cs: union areas properly
16547
16548 2004-08-17 10:12  jackson
16549
16550         * HandleData.cs: union areas properly
16551
16552 2004-08-16 20:00  ravindra
16553
16554         * ToolBar.cs, ToolBarButton.cs: Added attributes.
16555
16556 2004-08-16 18:48  ravindra
16557
16558         * ToolBar.cs: Added attributes.
16559
16560 2004-08-16 17:17  ravindra
16561
16562         * SWF.csproj: Updated project.
16563
16564 2004-08-16 17:16  jackson
16565
16566         * XplatUIX11.cs: Check for more expose events before sending a
16567           WM_PAINT so they can all be grouped together. This makes dragging a
16568           window across another window redraw in a sane way.
16569
16570 2004-08-16 15:47  pbartok
16571
16572         * Control.cs:
16573           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
16574             support OnMouseEnter/Leave()
16575           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
16576             exposure handling
16577
16578 2004-08-16 15:46  pbartok
16579
16580         * XplatUIStructs.cs, XplatUIX11.cs:
16581           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
16582           OnMouseEnter/Leave()
16583
16584 2004-08-16 15:34  jackson
16585
16586         * XplatUIX11.cs: Group multiple expose events in HandleData, make
16587           sure messages get the message field set to WM_NULL if they are not
16588           handled.
16589
16590 2004-08-16 15:24  jackson
16591
16592         * HandleData.cs: HandleData is used for storing message information
16593           for window handles
16594
16595 2004-08-15 17:23  ravindra
16596
16597         * ColorDepth.cs: Added attribute.
16598
16599 2004-08-15 17:23  ravindra
16600
16601         * SWF.csproj: Updated project for ToolBar Control.
16602
16603 2004-08-15 17:20  ravindra
16604
16605         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
16606           control and also dos2unix format.
16607
16608 2004-08-15 17:13  ravindra
16609
16610         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
16611           ToolBarButtonClickEventArgs.cs,
16612           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
16613           ToolBarTextAlign.cs: First Implementation of ToolBar control.
16614
16615 2004-08-15 15:31  pbartok
16616
16617         * ButtonBase.cs:
16618           - First (mostly) working version
16619
16620 2004-08-13 16:15  pbartok
16621
16622         * Control.cs:
16623           - Fixed Anchor default
16624
16625 2004-08-13 15:43  pbartok
16626
16627         * Control.cs:
16628           - Changed GetCursorPos signature
16629
16630 2004-08-13 15:42  pbartok
16631
16632         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
16633           - Changed signature for GetCursorPos
16634
16635 2004-08-13 15:25  pbartok
16636
16637         * XplatUIX11.cs:
16638           - Cleanup
16639           - Fixed resizing/exposure handling
16640
16641 2004-08-13 15:22  jordi
16642
16643         * ThemeWin32Classic.cs: removes redundant code and fixes issues
16644           with tickposition
16645
16646 2004-08-13 14:55  jordi
16647
16648         * TrackBar.cs: change from wndproc to events
16649
16650 2004-08-13 13:00  jordi
16651
16652         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16653           XplatUIX11.cs: implements PointToClient (ScreenToClient)
16654
16655 2004-08-13 12:53  pbartok
16656
16657         * XplatUIWin32.cs:
16658           - Changed GetWindowPos to also provide client area size
16659           - Fixed broken prototypes for several win32 functions
16660
16661 2004-08-13 12:53  pbartok
16662
16663         * XplatUI.cs, XplatUIDriver.cs:
16664           - Changed GetWindowPos to also provide client area size
16665
16666 2004-08-13 12:52  pbartok
16667
16668         * XplatUIX11.cs:
16669           - Added generation of WM_POSCHANGED
16670           - Changed GetWindowPos to also provide client area size
16671
16672 2004-08-13 12:52  pbartok
16673
16674         * Control.cs:
16675           - Added Dispose() and destructor
16676           - Fixed resizing and bounds calculation
16677           - Fixed Layout
16678           - Added memory savings for invisible windows
16679
16680 2004-08-13 12:46  jordi
16681
16682         * TrackBar.cs: adds timer and grap window
16683
16684 2004-08-13 10:25  jackson
16685
16686         * Timer.cs: SWF Timer
16687
16688 2004-08-12 16:59  pbartok
16689
16690         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16691           - Implemented method to get current mouse position
16692
16693 2004-08-12 14:29  jordi
16694
16695         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
16696           enhancement, fix mouse problems, highli thumb, etc
16697
16698 2004-08-12 13:31  pbartok
16699
16700         * Control.cs:
16701           - Fixed Anchoring bugs
16702
16703 2004-08-12 13:01  jackson
16704
16705         * StatusBar.cs: Don't forget things
16706
16707 2004-08-12 12:54  jackson
16708
16709         * ThemeWin32Classic.cs: Handle owner draw status bars
16710
16711 2004-08-12 12:54  jackson
16712
16713         * StatusBar.cs: Implement missing properties, events, and methods.
16714           Handle mouse clicking
16715
16716 2004-08-12 10:19  jackson
16717
16718         * StatusBarPanelClickEventArgs.cs,
16719           StatusBarPanelClickEventHandler.cs: Classes for handling status
16720           bar panel click events
16721
16722 2004-08-12 10:10  jackson
16723
16724         * Control.cs: Add missing properties
16725
16726 2004-08-12 09:46  pbartok
16727
16728         * BindingsManagerBase.cs:
16729           - Name changed to BindingManagerBase.cs
16730
16731 2004-08-12 09:25  jordi
16732
16733         * ScrollableControl.cs: calls ctrlbase instead of exeception
16734
16735 2004-08-11 16:28  pbartok
16736
16737         * InputLanguageChangingEventArgs.cs:
16738           - Never check in before compiling. Fixes the last check-in
16739
16740 2004-08-11 16:26  pbartok
16741
16742         * InputLanguageChangingEventArgs.cs:
16743           - More signature fixes
16744
16745 2004-08-11 16:20  pbartok
16746
16747         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
16748           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
16749           ImageListStreamer.cs, InputLanguage.cs,
16750           InputLanguageChangedEventArgs.cs,
16751           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
16752           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
16753           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
16754           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16755           - Signature fixes
16756
16757 2004-08-11 16:16  pbartok
16758
16759         * Application.cs:
16760           - Fixed Signature
16761           - Added .Net 1.1 method
16762
16763 2004-08-11 15:25  pbartok
16764
16765         * SWF.csproj:
16766           - Fixed BindingManagerBase.cs filename
16767
16768 2004-08-11 15:22  pbartok
16769
16770         * BindingManagerBase.cs:
16771           - Was checked in with wrong filename
16772
16773 2004-08-11 14:50  pbartok
16774
16775         * SWF.csproj:
16776           - Updated
16777
16778 2004-08-11 13:41  jordi
16779
16780         * XplatUIWin32.cs: Fixes ClientRect
16781
16782 2004-08-11 13:19  pbartok
16783
16784         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16785           XplatUIX11.cs:
16786           - We had SetWindowPos and MoveWindow to set window positions and
16787             size, removed MoveWindow. We have GetWindowPos, so it made sense to
16788             keep SetWindowPos as matching counterpart
16789           - Added some X11 sanity checking
16790
16791 2004-08-11 12:59  pbartok
16792
16793         * Control.cs:
16794           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
16795             (It seems that SetBounds is just a front for SetBoundsCore and
16796              SetBoundsCore updates the underlying window system and
16797              UpdateBounds is responsible for updating the variables associated
16798              with the Control and sending the events)
16799           - Major cleanup of Size handling; we now have two sizes, client_size
16800             and bounds. Bounds defines the window with decorations, client_size
16801             without them.
16802
16803 2004-08-11 12:55  pbartok
16804
16805         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16806           - Added method to calculate difference between decorated window and
16807             raw client area
16808
16809 2004-08-11 12:54  pbartok
16810
16811         * Label.cs:
16812           - Forcing redraw on resize
16813
16814 2004-08-11 11:43  pbartok
16815
16816         * ImageList.cs:
16817           - Removed disposing of the actual images when the list is disposed
16818
16819 2004-08-11 09:13  pbartok
16820
16821         * Control.cs:
16822           - Now properly reparents windows
16823
16824 2004-08-11 08:37  pbartok
16825
16826         * Control.cs:
16827           - Duh!
16828
16829 2004-08-11 07:47  pbartok
16830
16831         * Control.cs:
16832           - Rewrote the collection stuff. Might not be as fast now, not
16833             keeping the number of children around and accessible directly, but
16834             it's more straightforward
16835
16836 2004-08-11 07:44  pbartok
16837
16838         * AccessibleObject.cs:
16839           - Fixed to match ControlCollection rewrite
16840
16841 2004-08-11 07:43  pbartok
16842
16843         * ImageList.cs:
16844           - Added missing creation of the collection list
16845
16846 2004-08-10 20:08  jackson
16847
16848         * StatusBar.cs: Get the paint message from WndProc
16849
16850 2004-08-10 19:31  jackson
16851
16852         * ThemeWin32Classic.cs: Create Brushes as little as possible
16853
16854 2004-08-10 19:20  jackson
16855
16856         * UICues.cs: Add Flags attribute
16857
16858 2004-08-10 19:19  jackson
16859
16860         * StatusBarPanel.cs: Signature cleanup
16861
16862 2004-08-10 19:10  jackson
16863
16864         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
16865           Initial implementation of status bar item drawing
16866
16867 2004-08-10 17:27  jordi
16868
16869         * TrackBar.cs: add missing methods, properties, and restructure to
16870           hide extra ones
16871
16872 2004-08-10 16:24  jackson
16873
16874         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
16875           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
16876           attribute
16877
16878 2004-08-10 13:21  jordi
16879
16880         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
16881           enhancements and standarize on win colors defaults
16882
16883 2004-08-10 12:52  jackson
16884
16885         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
16886           ThemeWin32Classic.cs: Implement DrawItem functionality
16887
16888 2004-08-10 12:47  jordi
16889
16890         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
16891
16892 2004-08-10 12:32  jordi
16893
16894         * Control.cs: throw ontextchange event
16895
16896 2004-08-10 11:43  pbartok
16897
16898         * Control.cs:
16899           - Added more to the still unfinished Dock/Anchor layout code
16900
16901 2004-08-10 11:39  pbartok
16902
16903         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
16904           - Added GetWindowPos method
16905
16906 2004-08-10 11:36  pbartok
16907
16908         * XplatUIWin32.cs:
16909           - Implemented several methods
16910
16911 2004-08-10 09:47  jackson
16912
16913         * TrackBar.cs: Allow control to handle buffering
16914
16915 2004-08-10 09:41  jackson
16916
16917         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
16918
16919 2004-08-10 09:24  jackson
16920
16921         * Label.cs, LinkLabel.cs: Let Control handle buffering.
16922
16923 2004-08-10 09:09  jackson
16924
16925         * StatusBar.cs: Let Control handle all the buffering.
16926
16927 2004-08-10 09:08  jackson
16928
16929         * Control.cs: Control will now handle the buffering code, so each
16930           control does not have to implement this.
16931
16932 2004-08-10 08:34  jackson
16933
16934         * XplatUIDriver.cs: Use default colors from the theme
16935
16936 2004-08-09 17:12  pbartok
16937
16938         * ImageList.cs:
16939           - Fixed several bugs Ravindra pointed out
16940
16941 2004-08-09 16:11  pbartok
16942
16943         * Control.cs:
16944           - Added incomplete dock layout code
16945           - Added support for mouse wheel
16946
16947 2004-08-09 16:09  pbartok
16948
16949         * XplatUIX11.cs:
16950           - Added handling for middle and right mousebutton
16951           - Added handling for mouse wheel
16952           - Added handling for key state and mouse state and position
16953           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
16954           messages
16955
16956 2004-08-09 15:40  jackson
16957
16958         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
16959           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
16960           checkin
16961
16962 2004-08-09 15:37  jackson
16963
16964         * StatusBar.cs: Initial implementation of StatusBar
16965
16966 2004-08-09 15:36  jackson
16967
16968         * ITheme.cs: Add support for drawing status bar and getting status
16969           bar item sizes
16970
16971 2004-08-09 15:35  pbartok
16972
16973         * MouseButtons.cs:
16974           - Fixed values
16975
16976 2004-08-09 15:34  jackson
16977
16978         * ThemeWin32Classic.cs: Add support for drawing status bar and get
16979           status bar item sizes
16980
16981 2004-08-09 15:21  jackson
16982
16983         * ThemeWin32Classic.cs: Use known colors for default control
16984           colours
16985
16986 2004-08-09 15:12  jackson
16987
16988         * ThemeWin32Classic.cs: Make the default font static, it is static
16989           in control so this doesn't change functionality and creating fonts
16990           is sloooooow.
16991
16992 2004-08-09 14:56  pbartok
16993
16994         * X11Structs.cs:
16995           - Added GrabMode enum
16996
16997 2004-08-09 14:55  pbartok
16998
16999         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
17000           - Removed Run method, was only required for initial development
17001
17002 2004-08-09 14:51  pbartok
17003
17004         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
17005           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
17006           capture
17007
17008 2004-08-09 13:48  pbartok
17009
17010         * XplatUIX11.cs:
17011           - Fixed default sizing for child windows
17012
17013 2004-08-09 12:56  pbartok
17014
17015         * XplatUIX11.cs:
17016           - Added generation of WM_DESTROY message
17017           - Added handling of window manager induced shutdown
17018
17019 2004-08-09 11:31  jackson
17020
17021         * ThemeWin32Classic.cs: New names for control properties
17022
17023 2004-08-09 11:25  jackson
17024
17025         * Control.cs: Use new color names
17026
17027 2004-08-09 11:02  jackson
17028
17029         * XplatUI.cs: Get default window properties from the theme
17030
17031 2004-08-09 11:01  jackson
17032
17033         * ITheme.cs: The theme engine now controls default window
17034           properties
17035
17036 2004-08-09 11:00  jackson
17037
17038         * ThemeWin32Classic.cs: Add default window color properties
17039
17040 2004-08-09 10:17  jackson
17041
17042         * ThemeWin32Classic.cs: Use correct default back color
17043
17044 2004-08-09 10:05  jackson
17045
17046         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
17047           the theme now.
17048
17049 2004-08-09 09:56  jackson
17050
17051         * XplatUI.cs: Remove defaults, these are handled by the theme now.
17052
17053 2004-08-09 09:54  jackson
17054
17055         * Control.cs: Get default properties from the theme.
17056
17057 2004-08-09 09:53  jackson
17058
17059         * ITheme.cs: Themes now handle default control properties
17060
17061 2004-08-09 09:53  jackson
17062
17063         * ThemeWin32Classic.cs: Themes now handle default control
17064           properties so coloring will be consistent
17065
17066 2004-08-08 16:54  jordi
17067
17068         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
17069
17070 2004-08-08 15:08  jordi
17071
17072         * XplatUIX11.cs: fixes keyboard crash
17073
17074 2004-08-08 13:47  jordi
17075
17076         * Label.cs: add cvs header info
17077
17078 2004-08-08 12:09  jackson
17079
17080         * ThemeWin32Classic.cs: Add pen_buttonface
17081
17082 2004-08-08 11:52  jordi
17083
17084         * Label.cs, LinkLabel.cs: [no log message]
17085
17086 2004-08-08 11:34  jordi
17087
17088         * ThemeWin32Classic.cs: Use Windows Standard Colours
17089
17090 2004-08-07 17:32  jordi
17091
17092         * TrackBar.cs: throw exceptions of invalid enums values
17093
17094 2004-08-07 17:31  jordi
17095
17096         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
17097           draw method name
17098
17099 2004-08-07 16:56  jackson
17100
17101         * HorizontalAlignment.cs: Initial checkin
17102
17103 2004-08-07 13:16  jordi
17104
17105         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
17106           methods
17107
17108 2004-08-07 13:05  jordi
17109
17110         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
17111           GetSysColor defines
17112
17113 2004-08-06 18:01  pbartok
17114
17115         * ThemeWin32Classic.cs:
17116           - Fixed some rounding issues with float/int
17117
17118 2004-08-06 18:00  jackson
17119
17120         * DockStyle.cs, AnchorStyles.cs:
17121
17122                   Add flags and serializable attributes.
17123
17124 2004-08-06 17:46  pbartok
17125
17126         * XplatUIX11.cs:
17127           - Implemented GetParent
17128
17129 2004-08-06 17:18  pbartok
17130
17131         * TrackBar.cs:
17132           - Fixed some rounding issues with float/int
17133
17134 2004-08-06 17:17  pbartok
17135
17136         * X11Structs.cs, XplatUIX11.cs:
17137           - Fixed Refresh and Invalidate
17138
17139 2004-08-06 15:30  pbartok
17140
17141         * Control.cs, X11Structs.cs, XplatUIX11.cs:
17142           - Fixed recursive loop when resizing
17143           - Improved/fixed redrawing on expose messages
17144
17145 2004-08-06 09:53  jordi
17146
17147         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
17148           keyboard navigation
17149
17150 2004-08-06 08:02  pbartok
17151
17152         * X11Structs.cs, XplatUIX11.cs:
17153           - Fixed reparenting
17154           - Fixed window border creation
17155
17156 2004-08-05 15:38  pbartok
17157
17158         * XplatUIX11.cs:
17159           - Attempted fix for reparenting problems
17160
17161 2004-08-04 15:14  pbartok
17162
17163         * Control.cs:
17164           - Fixed Invalidation bug (calculated wrong client area)
17165           - Added ClientSize setter
17166
17167 2004-08-04 15:13  pbartok
17168
17169         * Form.cs:
17170           - Added AutoScale properties
17171
17172 2004-08-04 15:13  pbartok
17173
17174         * SWF.csproj:
17175           - Added latest files
17176
17177 2004-08-04 14:11  pbartok
17178
17179         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
17180           XplatUIX11.cs:
17181           - Added Invalidate handling
17182
17183 2004-08-03 17:09  jordi
17184
17185         * XplatUIDriver.cs: fixes spelling mistake
17186
17187 2004-07-27 09:53  jordi
17188
17189         * TrackBar.cs: fixes trackbar events, def classname, methods
17190           signature
17191
17192 2004-07-27 09:29  jordi
17193
17194         * ScrollBar.cs: fixes scrollbar events
17195
17196 2004-07-27 04:38  jordi
17197
17198         * Control.cs: changes to be able to run winforms samples
17199
17200 2004-07-26 11:42  jordi
17201
17202         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
17203           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
17204
17205 2004-07-26 05:41  jordi
17206
17207         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
17208           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
17209           implementation
17210
17211 2004-07-22 09:22  jordi
17212
17213         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
17214           check link overlapping, implement events, and fixes
17215
17216 2004-07-21 10:28  jordi
17217
17218         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
17219
17220 2004-07-21 10:19  jordi
17221
17222         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
17223           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
17224           LinkLabelLinkClickedEventArgs.cs,
17225           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
17226           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
17227           implementation
17228
17229 2004-07-19 13:09  jordi
17230
17231         * Control.cs, Label.cs: label control re-written: added missing
17232           functionlity, events, and properties
17233
17234 2004-07-19 10:49  jordi
17235
17236         * Control.cs: fixes SetBounds logic
17237
17238 2004-07-19 01:29  jordi
17239
17240         * Control.cs: Call RefreshWindow only if the window has created
17241
17242 2004-07-15 14:05  pbartok
17243
17244         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
17245           - Implemented ImageList and ImageList.ImageCollection classes
17246           - Added ColorDepth enumeration
17247           - Updated SWF VS.Net project
17248
17249 2004-07-15 11:06  jordi
17250
17251         * XplatUIStructs.cs: added MsgButons enum
17252
17253 2004-07-15 11:03  jordi
17254
17255         * Control.cs: added basic mouse handeling events
17256
17257 2004-07-15 03:38  jordi
17258
17259         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
17260           Vertical TrackBar control implementation
17261
17262 2004-07-13 09:33  jordi
17263
17264         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
17265
17266 2004-07-13 09:31  jordi
17267
17268         * Control.cs, Form.cs: commit: new properties and fixes form size
17269           problems
17270
17271 2004-07-09 14:13  miguel
17272
17273         * ProgressBar.cs: Spelling
17274
17275 2004-07-09 11:25  pbartok
17276
17277         * ProgressBar.cs:
17278           - Removed usage of Rectangle for drawing. Miguel pointed out it's
17279           faster
17280
17281 2004-07-09 11:17  miguel
17282
17283         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
17284
17285                 * ProgressBar.cs: Fixed spelling for `block'
17286
17287                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
17288                 style guidelines.
17289
17290                 Avoid using the += on rect.X, that exposed a bug in the compiler.
17291
17292 2004-07-08 23:21  pbartok
17293
17294         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
17295           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
17296           BaseCollection.cs, Binding.cs, BindingContext.cs,
17297           BindingMemberInfo.cs, BindingsCollection.cs,
17298           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
17299           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
17300           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
17301           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
17302           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
17303           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
17304           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
17305           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
17306           FrameStyle.cs, GiveFeedbackEventArgs.cs,
17307           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
17308           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
17309           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
17310           InputLanguageChangedEventArgs.cs,
17311           InputLanguageChangedEventHandler.cs,
17312           InputLanguageChangingEventArgs.cs,
17313           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
17314           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
17315           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
17316           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
17317           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
17318           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
17319           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
17320           QueryAccessibilityHelpEventArgs.cs,
17321           QueryAccessibilityHelpEventHandler.cs,
17322           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
17323           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
17324           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
17325           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
17326           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
17327           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
17328           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
17329           XplatUIX11.cs, lang.cs:
17330           - Initial check-in
17331