1 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
3 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
4 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
5 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
6 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
8 2007-03-15 Chris Toshok <toshok@ximian.com>
12 * Control.cs: add Ivan's fix for 81101, with a slight modification
13 - you can set control.Target to null.
15 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
17 * ToolStripItem.cs: If our OwnerItem is null, we can't use
18 HideDropDown, use Hide instead to prevent an NRE.
21 2007-03-14 Jackson Harper <jackson@ximian.com>
23 * TextBoxBase.cs: Mess with the creation stuff a little. We need
24 to calculate the document before the handle is created, in some
25 cases. (Actually just one case).
27 2007-03-14 Jackson Harper <jackson@ximian.com>
29 * TextBoxBase.cs: Need to display the caret after letting the base
30 wndproc handle the focus methods, because the caret display
31 methods check the focus state.
32 - Try to display the caret after updating it's position with SelectWord.
33 - Don't need to do an immediate update on this recalc, since there
34 will be an invalidate anyways.
36 2007-03-14 Jackson Harper <jackson@ximian.com>
38 * TreeView.cs: Some workarounds so that we can match event order a
41 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
43 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
44 #80803. Avoid NullReferenceException when Control does not have
45 parent. Fixed different blinkstyle issues. Only subscribe to Tick
46 event a single time. Only draw error icon when control is created and
47 visible. Fixes failing unit tests.
49 2007-03-14 Andreia Gaita <avidigal@novell.com>
51 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
52 Selecting events. Fire Leave and Enter events when changing tabs.
54 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
56 * TreeView.cs: Add TreeViewNodeSorter.
57 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
59 2007-03-14 Chris Toshok <toshok@ximian.com>
61 * Form.cs: go ahead and remove the RecreateHandles that jpobst
62 removed earlier and I had him add back it. It turns out metacity
63 *does* in fact handle the MOTIF_WM_HINTS property changing, it
64 just doesn't redraw the window titlebar until you resize the
65 window. This also means we aren't recreating the entire window
66 hierarchy on X when you change this property. And it looks better
69 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
72 * ListView.cs: Collecting selection information
73 is now done in SelectedIndexCollection rather than in
74 SelectedListViewItemCollection. This is done so we can
75 have the selection information code in one single place
76 (virtual mode selection information entirely depends on
77 SelectedIndexCollection).
79 2007-03-13 Miguel de Icaza <miguel@novell.com>
81 * ErrorProvider.cs: Add stubs for ISupportInitialize
83 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
85 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
86 in the right order with the right values, from the Checked property,
87 just as MS does (instead of triggering them from ListView).
89 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
91 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
93 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
94 the correct handler in OnItemCheck method (ItemCheckEventHandler
95 instead of EventHandler). This used to throw an InvalidCastException.
97 2007-03-13 Jackson Harper <jackson@ximian.com>
99 * TextBoxBase.cs: Calculate the document before the handle is
100 created, so there isn't an extra invalidate called.
102 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
104 * Form.cs: Don't set owner in ShowDialog until we are sure
105 that we aren't going to throw an exception. [Fixes bug #80773]
107 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
109 * TreeView.cs: Make it compile.
111 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
113 * Control.cs: Another place we don't call SizeFromClientSize.
114 * Form.cs: Another place we don't call SizeFromClientSize.
117 2007-03-12 Jackson Harper <jackson@ximian.com>
119 * TreeView.cs: Basically emulating some strangness here with
120 exanding nodes and setting node positions when windows aren't
122 - Also attempting to walk the node tree less than previously, and
123 just use visible order calculations for determining offsets.
124 - oops made scrolling backwards.
125 * TreeNode.cs: We need to start nodes with a zero visible order,
126 because the order calcs are based on the first nodes order.
128 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
130 * Form.cs: Don't exit the program if RecreateHandle is called on
133 2007-03-12 Chris Toshok <toshok@ximian.com>
135 * XEventQueue.cs: remove the use of PostQuitState.
137 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
138 WM_QUIT message in GetMessage, return false (and if we're in the
139 nested WaitForHwndMessage, repost the WM_QUIT message).
141 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
143 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
144 or the MaximizeBox properties. [Part of bug #80640]
146 2007-03-12 Everaldo Canuto <everaldo@simios.org>
148 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
151 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
153 * ToolStripItem.cs: Fix some tests I broke by checking Visible
156 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
158 * FileDialog.cs: Use text of File name combobox to determine what
159 files the user selected. Added tokenizer to parse the file names.
162 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
164 * Control.cs: We can't call SizeFromClientSize in the constructor,
165 but we still need to do the same work, so make an internal version.
168 2007-03-12 Jackson Harper <jackson@ximian.com>
172 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
175 2007-03-12 Jackson Harper <jackson@ximian.com>
177 * TextBoxBase.cs: Now that the handles are being created a little
178 later, we need to make sure that the document is recalculated when
179 the handle is created.
181 2007-03-11 Everaldo Canuto <everaldo@simios.org>
183 * Theme.cs: GetLinkFont abstract method added.
186 - Remove CalcTrimRectangle, no longer needed.
187 - Factor also remove, position issues must be fixed in libgdiplus.
188 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
189 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
190 care about font used to draw links.
191 - Set TabStop to true when control is "Selectable", control is selectable
192 when have one or more links. Fixes #80501 (test case is also added).
193 - Set the LinkArea values after links change, LinkArea values must be
194 based in first link position and size, a test case was created.
195 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
196 the attribute must be true LinkArea.Length > 0. The same was applied to
199 * ThemeWin32Classic.cs:
200 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
202 - Use CPDrawStringDisabled to draw disabled text instead of hard code
204 - Draw focus rectangle for every parts focused, including parts that
205 is on another line, its because regions returns various rectangles
206 and not only one. Needed to mimic W32 look.
207 - Uses Graphics.Clip to delimite region painted, it mean that now
208 complete text is passed to DrawString, with this we solve layout
209 issues without create another text renderer.
210 - Uses Region.Intersect to fix some flickers problems, now only needed
212 - This changes fixes #79614 and some other unreported issues, on Linux
213 some layout problems still remain, the problem is under
214 MeasureCharacterRanges but it is an libgdiplus bug.
216 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
218 * TextBox.cs: Set for foreground color.
219 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
220 this is already done in Control.
222 2007-03-10 Jackson Harper <jackson@ximian.com>
224 * TextBox.cs: Set the background color, but reset the
225 backcolor_set flag which is just for the user setting the
228 2007-03-09 Chris Toshok <toshok@ximian.com>
230 * Control.cs: really remove the call to XplatUI.SetVisible from
231 CreateHandle(), like I said I did when I merged the branch.
233 * BindingSource.cs: implement some more of this stuff.
235 2007-03-09 Jackson Harper <jackson@ximian.com>
237 * TextBox.cs: Don't explicitly set our background colors.
239 * TextBoxBase.cs: Draw readonly text.
240 - Need to invalidate when backcolor or readonly are changed.
242 2007-03-09 Jackson Harper <jackson@ximian.com>
244 * TextBoxBase.cs: Don't set the forecolor until the handle is
246 - Do not raise OnPaint, and removed some old debug code.
248 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
250 * ScrollableControl.cs: Fix mouse wheel scrolling.
252 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
254 * Control.cs: Wire up MouseDoubleClick event.
256 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
258 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
260 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
261 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
262 item is added. This logic was moved to ToolStrip.OnItemAdded.
265 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
267 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
269 2007-03-08 Jackson Harper <jackson@ximian.com>
271 * TreeView.cs: Show the correct image for selected node (this used
272 to work, not sure how the code got deleted). Also implemented 2.0 feature
275 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
278 * ListViewItem.cs: Cache index in items when retrieving them
281 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
283 * ToolStripItem.cs: Don't return the explicit_size if we are using
284 AutoSize. Fixes invalidation issue when user has explicitly set a
285 size and has AutoSize = true.
287 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
289 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
291 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
293 * DataGridView.cs: Remove event handler from DataView when a
294 DataTable is used as DataSource.
296 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
298 * Control.cs: Create internal setter for client_size to allow it to be
299 set without triggering resizing code.
300 * Form.cs: Calculate client_size in constructor, only change client_size
301 in FormBorderStyle property if Handle has been created.
302 [Fixes #80574, #80791]
304 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
306 * SystemInformation.cs: Add TerminalServerSession.
308 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
310 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
313 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
315 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
316 Handle before we were supposed to. Now checks ActivateOnShow property
318 * Control.cs: Add internal ActivateOnShow property.
319 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
321 * Hwnd.cs Remove no longer needed no_activate field.
323 2007-03-07 Jackson Harper <jackson@ximian.com>
325 * TreeView.cs: Implement owner draw tree nodes. And a couple more
327 * DrawTreeNodeEventHandler.cs: Add
328 * DrawTreeNodeEventArgs.cs: Correct default value.
330 2007-03-07 Chris Toshok <toshok@ximian.com>
332 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
333 to be called before NativeWindow.WndProc. Put the HwndCreating
334 magic there to hook up our Hwnd's to handles.
336 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
338 * DataGridView.cs: Comment out debug code.
340 2007-03-07 Chris Toshok <toshok@ximian.com>
342 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
343 to make the rest of the world happy]
345 * Control.cs (CreateHandle): there's no need to call
346 XplatUI.SetVisible here, it's effectively done by
347 XplatUI.CreateWindow on X now, and always was on windows.
349 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
350 shortcircuit out of the loop if we have a message loop running on
353 [Changelog from merge]
355 2007-03-05 Chris Toshok <toshok@ximian.com>
357 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
358 causes handle creation.
360 2007-02-28 Chris Toshok <toshok@ximian.com>
362 * ApplicationContext.cs: Add a flag to make sure we only raise the
363 ThreadExit event once (ExitThreadCore can be indirectly called
364 from a few places.) I don't like the additional flag, but it
365 makes the event ordering/count correct.
367 * Application.cs (MWFThread.LoopCount): don't use an enumerator
368 without locking the collection. An enumerator doesn't give us any
369 protection from modification anyway. Lock the thread hash and
370 replace the complicated enumerator loop with a foreach.
371 (Application.CloseForms): make internal so it can be called from
372 ApplicationContext. This should probably be moved to MWFThread.
373 (Application.ExitThread): don't call MWFThread.Current.Exit()
374 here. just call XplatUI.PostQuitMessage. We'll exit the thread
375 when the runloop exits (in response to WM_QUIT.)
376 (Application.RunLoop): add a comment (and check) for
377 context.MainForm being null after setting context.MainForm.Visible
378 = true. This is because you're perfectly free to dispose of a
379 form in VisibilityChanged. Chalk this up to another case where we
380 need to synchronously generate WM_ACTIVATE from Control.Show.
381 Also, add handling for WM_QUIT here so we'll exit the loop.
383 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
384 fact that we don't wait if we're only unmapping the whole_window
385 makes me a bit nervous, but it doesn't seem to cause any problems
388 also, add a comment about the stupid, broken and wrong resetting
389 of PostQuitState to false in GetMessage().
391 In PostQuitMessage, we need to add a WM_QUIT message to the
392 thread's queue. We use the FosterParent to get the right
395 Lastly, in SetVisible, we need to unmap both windows, since the
396 waiting only happens when we're unmapping the client window. So
397 now, the *only* time we unmap just the whole_window is in the hack
398 for resizing a control to 0,0.
400 2007-02-21 Chris Toshok <toshok@ximian.com>
402 * Application.cs (CloseForms): rewrite this so that we don't
403 modify the list while we're traversing it.
405 2007-02-20 Chris Toshok <toshok@ximian.com>
407 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
409 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
410 handle is created. otherwise we'll create it here.
411 (VerticalScrollEvent): same here.
413 * Application.cs (CloseForms): call Form.Dispose, don't post
416 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
417 here. Application should Dispose() of the Form's.
419 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
421 (MapWindow,UnmapWindow): only actually do the waiting for
422 SHOWWINDOW if the control we're dealing with is a Form.
423 (CreateWindow): if the control isn't a form, SendMessage
424 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
426 * Control.cs (SetVisibleCore): always use is_visible here, not
427 value. If we use value, we can end up re-setting something
428 visible if, for instance, you do Control.Hide() in a delegate
429 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
431 2007-02-20 Chris Toshok <toshok@ximian.com>
433 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
434 the message we need. PeekMessage returning false should not be a
435 condition under which we exit the loop.
437 2007-02-15 Chris Toshok <toshok@ximian.com>
439 * Control.cs (Refresh): only refresh if we've got a handle and are
441 (CreateAccessibilityInstance): CreateControl() here.
442 (UpdateChildrenZOrder): complicate the code loop even more by
443 taking into account controls that haven't had their handle
444 created, and those that aren't visible. But on the flip side,
445 simplify the code by splitting it into two loops. one which
446 builds up the list of child controls we're interested in, and the
447 other that sets the z order of those children.
449 2007-02-14 Chris Toshok <toshok@ximian.com>
451 * Control.cs: Control.AccessibilityObject causes the control to be
452 created, not just the handle.
454 2007-02-14 Chris Toshok <toshok@ximian.com>
456 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
457 problem on X where a window might have its handle created (and be
458 visible) while the window is unmapped. calling XConfigureWindow
459 on an unmapped window is bad, and generates X errors.
461 2007-02-13 Chris Toshok <toshok@ximian.com>
463 * Control.cs (CreateHandle): don't loop over our children setting
464 their parent here. do it when in WndProc when we're shown.
465 (UpdateChildrenZOrder): make this internal so we can call it from
467 (WndProc): for WM_SHOWWINDOW, reparent the child control after
468 creating its handle. Also, remove the calls to PerformLayout from
469 here. they're done in ScrollableControl.OnVisibleChanged. Also,
470 OnVisibleChanged only seems to be called directly here for the
471 toplevel control. It's propagated down the window hierarchy by
472 calls to child.OnParentVisibleChanged.
473 (OnVisibleChanged): don't do layout here - it's done (oddly
474 enough, according to a glance at stack traces on ms.net..) in
477 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
478 z order of our children before calling PerformLayout.
480 2007-02-12 Chris Toshok <toshok@ximian.com>
482 [big change, fixes #80020]
484 * AccessibleObject.cs: we need to make owner internal again to fix
485 some of ControlAccessibleObject.
487 * Control.cs: lots of changes here. add support for WM_CREATE,
488 for which we generate OnHandleCreated. Remove the OnHandleCreated
489 call from CreateHandle. Also add support for WM_SHOWWINDOW where
490 we create child controls. leave the MonoTODO's for the
491 accessibility calls, but fix the exceptions so the tests pass.
493 Add the InvalidOperationExceptions to Invoke methods, and remove a
494 couple of InvokeInternal methods we aren't using.
496 Also, add a couple of CreateHandle calls in places where we know
497 the handles are being created but our code doesn't reference
500 Make SetVisibleCore call OnVisibleChange if the handle isn't
501 created. If the handle is created, we rely on XplatUI.SetVisible
502 generating the event synchronously.
504 Lastly, make sure we don't use this.Handle inside CreateHandle,
505 because we can call back into client (and that code can dispose of
508 * XplatUIStructs.cs: misc/cleanup.
510 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
511 although we don't populate the wParam properly.
512 (CreateWindow): generate WM_CREATE.
513 (MapWindow,UnmapWindow): make these calls synchronous, at great
514 performance expense (particularly in the unmap case), to match
517 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
519 (set_MdiParent): don't recreate the handle unless it's been
522 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
525 * NativeWindow.cs: this is probably the weirdest part of the
526 patch. We need a way to link up the window being created to the
527 WM_CREATE message. Since we can only be creating one window at a
528 time on a given thread, we keep track of a per-thread reference so
529 we can dispatch it properly. We also need to keep track of the
530 Hwnd currently being created so that the win32 backend doesn't
533 * XplatUIWin32.cs: a similar change to the one we made in
536 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
538 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
539 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
540 to draw the menu shortcut string.
542 2007-03-07 Jackson Harper <jackson@ximian.com>
544 * TreeNode.cs: Add the 2.0 collapse method.
546 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
548 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
550 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
552 * DataGridView.cs: Change DataSource will clear column and row
553 lists. Call Invalidate() to reflect DataSource change.
555 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
557 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
558 and a new row is added to it.
560 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
562 * DataGridView.cs: Add columns when DataSource is en empty list but
563 is a System.Data.DataView (from a System.Data.DataTable).
565 2007-03-06 Andreia Gaita <avidigal@novell.com>
567 * Label.cs: Implement AutoEllipsis (2.0)
569 2007-03-06 Jackson Harper <jackson@ximian.com>
571 * TreeView.cs: Implement 2.0 TopNode setter property.
572 - Use a local var instead of the skipped_nodes field for computing
573 how many nodes to skip. Otherwise we won't scroll because the
574 valuechanged handler checks if skipped_nodes is equal to the new
576 - Implement 2.0 Sort method.
577 - Add useless 2.0 DoubleBuffer property
578 - Implement 2.0 LineColors property. Lets you change the color of
579 the lines in the tree. Terribly useful for creating non cohesive
581 - Implement 2.0 image key feature.
583 2007-03-06 Jackson Harper <jackson@ximian.com>
585 * TreeView.cs: We can't get the bounds of the nodes before raising
586 the AfterSelect event, because that event could change the node's
587 bounds (scrolling, font change, etc).
589 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
591 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
592 * Form.cs: Don't recreate handle when creating FormWindowManager, just
593 update window styles. In CreateParams us VisibleInternal instead of
594 VIsible to get the actual visible flag set for this form.
595 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
596 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
597 handle the case when the form is already maximized, in which case
598 it should be restored. Fixes #81043.
600 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
602 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
604 2007-03-05 Jackson Harper <jackson@ximian.com>
606 * TreeViewHitTestInfo.cs: implement.
608 2007-03-05 Jackson Harper <jackson@ximian.com>
610 * InternalWindowManager.cs: class status fix.
612 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
614 * InternalWindowManager.cs: All windows that have a parent
615 are confined to their parent when they're being moved.
618 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
620 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
621 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
623 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
625 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
626 buttons invisible before deciding which ones should be visible
627 (fixes minimize/maximize buttons showing up in toolwindows). Remove
629 * InternalWindowManager.cs: Remove warning.
631 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
633 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
634 to throw an InvalidOperationException is virtual mode is being used.
636 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
638 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
639 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
640 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
641 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
642 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
643 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
645 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
647 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
648 driver.KeyboardDelay from XplatUI.KeyboardDelay
649 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
650 (patch by Sergey Volk)
652 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
654 * ToolWindowManager.cs: Added, contains logic for
656 * CreateParams.cs: Add a few helper methods and an
657 internal variable to know which control the CreateParams belongs
659 * Control.cs: Call Form.ChangingParent when the
660 parent is about to be changed.
661 * XplatUIX11.cs: DeriveStyles (): Set
662 caption_height for all windows that have captions and are children.
663 Update to use ToolWindowManager instead of InternalWindowManager
665 * XplatUIWin32.cs: Set fake window styles for all
666 windows that have window managers.
667 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
668 now duplicated for mdi windows when they are
669 maximized, first for the buttons the window itself has, then for
670 the buttons that appear in the menu bar. Makes things a little
671 easier). Updated UpdateWindowDecorations, SetWindowState and the
672 mouse eventhandlers accordingly.
673 * Form.cs: Add ChangingParent (), contains the
674 logic of what should happen when the parent changes. In MdiParent
675 don't set things that ChangingParent () is doing. When handling
676 WM_CLOSE, we can close the form if there are any other modal forms
677 and the current form is a descendent of the modal form.
678 * InternalWindowManager.cs: A lot of refactoring,
679 the title buttons are now extracted to a separate container class
680 that takes care of all button code (clicks, tooltips, etc). Moved
681 Iconic|Maximized|Normal Bounds properties to this class from
682 MdiWindowManager, so that the window state logic can succeed for
683 other than mdi wm's. Implemented general window state change logic.
684 Moved CreateButtons to ThemeWin32Classic, since the theme might
685 override which buttons are available when as well as the exact
687 * FormWindowManager.cs: Added, contains logic for
689 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
690 which buttons go where (and if they are at all visible).
691 Removed special handling of maximized windows, since they aren't special.
692 In DrawManagedWindowDecorations don't try to draw the text if it is
694 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
695 use whatever the wm gives us.
697 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
699 * ButtonBase.cs: Add 2.0 properties.
700 * Button.cs: Override Draw for 2.0.
701 * Control.cs: Add Entered and Selected properties.
702 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
703 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
704 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
706 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
708 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
710 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
712 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
714 * XplatUIWin32.cs: Register a new class with Windows each time we get
715 a new ClassStyle. [Fixes bugs #79432, #80817]
716 * Controls.cs: Set the correct ClassStyle in CreateParams.
717 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
719 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
721 * ListView.cs: Add fireEvent argument to ReorderColumn since the
722 ColumnReordered event must not be signaled when modifying DisplayIndex
723 of a ColumnHeader. Added internal ReorderColumns method which takes
724 care of drawing, and updating the internal DisplayIndex of the
725 ColumnHeader. Added AddColumn method which is invoked from
726 ColumnHeaderCollection when adding or inserting columns, and which
727 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
728 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
729 Recalculated dispay indices after removing a ColumnHeader.
730 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
731 match MS. Allows last display index to be returned after ListView
732 is disposed. Update actual location of ColumnHeader when DisplayIndex
735 2007-03-01 Everaldo Canuto <everaldo@simios.org>
737 * LinkLabel.cs: Improve CalcTrimRectangle.
739 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
741 2007-02-28 Everaldo Canuto <everaldo@simios.org>
743 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
744 get rectangle as a result value.
746 2007-02-28 Everaldo Canuto <everaldo@simios.org>
748 * LinkLabel.cs: Theres some diferences between rectangle return from
749 MeasureCharacterRanges and the area used for DrawString to fix this
750 CalcMeasurementFactor method was created, it calcules the diferences
751 to be use later to adjust rectangle in draw operations. Fixes #80473.
753 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
754 to adjust draw rectangle.
756 2007-02-27 Everaldo Canuto <everaldo@simios.org>
758 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
759 text and some other changes to reduce and optimize source code.
761 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
763 * RadioButton.cs: Implement 2.0 event.
764 * RelatedImageListAttribute.cs: Implement new class.
766 2007-02-27 Everaldo Canuto <everaldo@simios.org>
768 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
770 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
772 * CheckBox.cs: Implement 2.0 functionality.
774 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
776 * ListView.cs: Refactor Add and AddRange methods of
777 ListViewItemCollection, to not update the ListView
778 everytime an item is added in AddRange. Also move the update
779 code to a new CollectionChanged method, and call it
780 from other methods that need it as well (this should also fix some
781 bugs when Sorting is used).
783 2007-02-27 Jackson Harper <jackson@ximian.com>
785 * TextControl.cs: Try to never let the caret stay in a non-text
787 * TextBoxBase.cs: Update the caret.
789 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
791 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
792 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
793 delete POINT structure, duplicate of one in XplatUIStructs.
794 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
796 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
798 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
799 edit box since otherwise the Label would immediately be set (even if
800 the user did not modify the label). In OnKeyDown set Handled to true
801 if Return or Escape was pressed. In ColumnHeaderCollection unlink
802 columns that are to be removed. In ListViewItemCollection unlink items
803 that are to be removed.
805 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
807 * TextRenderer.cs: If we set a GDI clip region, we need to clear
808 it when we are done. [Fixes bug #80949]
810 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
812 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
814 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
816 * ListView.cs: I forgot to commit the changes for ListView
817 in my previous patch.
819 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
821 * Clipboard.cs: Partially implement an overload of SetDataObject.
822 * Form.cs: Implement ShowWithoutActivation.
823 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
825 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
827 This is a first set of changes to make the Virtual mode works,
828 by avoiding the retrieval of ListViewItem instances until
831 * ListView.cs: Store item position in the ListView instead of the
832 ListViewItem, this way we don't request the Bounds property of
833 ListViewItem inside the ListView calculations, as well as cache the item
834 size in item_size field. Store indexes instead of ListViewItem
835 instances in the matrix used by icon view. Add a ItemMatrixLocation
836 struct to hold the row and col info of the matrix info.
838 * ListViewItem.cs: Don't store the location anymore, and only cache
839 the rectangles for GetBounds. Use the ListView.GetItemLocation
840 method to retrieve the actual location.
842 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
844 * TextRenderer.cs: Add clipping support, thanks to George.
847 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
849 * ListViewItem.cs: Cancel label edit when item is removed from
851 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
852 event before the edit textbox is displayed. Added CancelEdit method
853 which is used end to editing while ignoring the value set by the
854 user. In EndEdit, set focus to ListView to avoid losing focus to
855 other controls. In ListViewItemCollection.Clear, cancel editing of
856 any of the items. In Remove, cancel editing of item being removed.
857 Avoid udplicate code by modifing RemoveAt to invoke Remove.
859 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
861 * FileDialog.cs: Update FSEntry when move is successful. Fixes
864 2007-02-23 Everaldo Canuto <everaldo@simios.org>
866 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
867 compatible with non X11 systems. Fixes #80901.
869 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
871 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
872 whether the item should be unselected and reselect. We do no want this
873 when we're starting to edit the label. Do not fire the
874 SelectedIndexChanged event from ListView when its already been fired
875 by modifying ListViewItem.Selected. Fixes bug #80943.
877 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
879 * TextRenderer.cs: Previos commit logic was backwards.
881 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
883 * TextRenderer.cs: Don't add padding on MeasureText if we were
884 sent the NoPadding flag.
886 2007-02-23 Everaldo Canuto <everaldo@simios.org>
888 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
889 after DrawButton. To prevent image overlaps button borders SetClip and
890 ResetClip added before and after draw image. Fixes #79129.
892 2007-02-23 Everaldo Canuto <everaldo@simios.org>
894 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
895 window size, it fix problem when you run under win32 that theres
896 Size diferent than ClientSize. Also fix controls size and positions
897 to mimic Win32. Fixes #80837.
899 2007-02-22 Everaldo Canuto <everaldo@simios.org>
901 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
902 menu area to fix some problems for non X11 systems. Fixes #80613.
904 2007-02-22 Jackson Harper <jackson@ximian.com>
906 * TreeNode.cs: When a node is expanded, set its is_expanded flag
907 even if it doesn't have any children.
909 2007-02-22 Jackson Harper <jackson@ximian.com>
911 * TreeView.cs: Calculate the top node 'on the fly', this
912 eliminates issues where you need to click on the tree before
913 scrolling it to get the top node computed correctly.
914 * TreeNodeCollection.cs: We don't need to mess with the top node
917 2007-02-22 Jackson Harper <jackson@ximian.com>
919 * DataGridViewRow.cs: Fix typo so height can actually be set.
920 Patch by Peter Grimm.
922 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
924 * FileDialog.cs: Fixed support for renaming files and directories.
925 * ListView.cs: Do not lose focus when edit is canceled. Process
926 Escape as regular key (to prevent closing of dialogs).
928 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
930 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
931 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
933 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
935 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
936 did not modify label.
937 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
938 modified the text. Reset Label when user presses Escape in edit mode.
939 Move focus to ListView after having cancelled or finished editing the
942 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
944 * ComboBox.cs: Removed unnecessary initializations. Marked items field
945 private. Clear textbox when Text is set to null and SelectedIndex is
947 * FileDialog.cs: Removed unnecessary initializations. Removed
948 workarounds for ComboBox bugs that are now fixed. Modified
949 DefaultExt, InitialDirectory and Title property to change null to
950 zero-length string in getters. Avoid directly accessing fields.
952 2007-02-20 Jackson Harper <jackson@ximian.com>
954 * TextControl.cs: Remove RecalAlignments call, that was some
956 - Don't use the line indent when we shouldn't.
957 * RichTextBox.cs: Add support for paragraph left indents.
959 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
961 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
962 Seems like the class status pages doesn't catch params differences.
964 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
966 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
968 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
970 * ComboBox.cs: Setting Text should have no effect if item text of
971 selected item exactly matches value. First lookup text using
972 case-sensitive comparison, and fallback to case-insensitive comparison.
973 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
974 allow startIndex to be last index. Changed ArgumentOutOfRangeException
975 paramname to match MS. Restart from first item if string is not found
976 after startIndex. Fixed paramname of ArgumentNullException that is
977 thrown for null value in ObjectCollection.Contains.
979 2007-02-19 Everaldo Canuto <everaldo@simios.org>
981 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
983 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
985 * ListControl.cs: In SelectedValue use value.Equals to compare for
986 equality instead of ==, otherwise it will fail for strings.
989 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
991 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
992 since the caret won't show up unless ShowSelection is true.
995 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
997 * Application.cs: When disabling all forms but the main form, do not
998 disable any descendants of the main form (such as mdi children or
999 other parented forms). Fixes #80822 on Windows.
1000 * Form.cs: If we have a parent, set the WS_CHILD style.
1001 * Control.cs: Update the window styles if the control whose parent has
1002 changed is a form (the WS_CHILD style has to be switched).
1004 2007-02-19 Everaldo Canuto <everaldo@simios.org>
1006 * XplatUIStructs.cs: MsgUIState structure added.
1008 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
1010 * FileDialog.cs: Removed need for separate fileName field. On 2.0
1011 profile, do not check filename(s) for illegal character if filename(s)
1012 were set non-interactively but always check on 1.0 profile. Fixed NRE
1013 in DefaultExt and only strip off first leading dot. Improve exception
1014 message when invalid Filter is set. Do not ignore InitialDirectory if
1015 it does no exist. Store specified Title, and if empty use default
1016 title (depending on type of dialog). Added an internal DialogTitle
1017 property for retrieving dialog title. Fixed logic of displayed dir to
1018 more closely match MS. Avoid setting ComboBox.Text to a zero-length
1019 string as its buggy.
1020 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
1021 FileName is a zero-length string (it can never be null). Override
1022 DialogTitle property to set default title of dialog box.
1023 * SaveFileDialog.cs: Override DialogTitle property to set default
1024 title of dialog box.
1026 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
1028 * FileDialog.cs: Modify default text of filename and filetype labels
1029 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
1030 after we've updated the SelectedIndex. Fixes part of bug #80887.
1031 * SaveFileDialog.cs: Set text of filetype label.
1033 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1035 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
1036 label field. Needed by latest Jackson's fixes for ListView.
1038 2007-02-16 Andreia Gaita <avidigal@novell.com>
1040 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
1041 print preview images.
1043 2007-02-16 Jackson Harper <jackson@ximian.com>
1045 * ListView.cs: Make AfterLabelEdit work correctly.
1046 * FileDialog.cs: After changing the name of the folder, we have to
1047 make sure that it is created, or that we pop up an error because
1050 2007-02-16 Jackson Harper <jackson@ximian.com>
1052 * X11Dnd.cs: Implement aliases on mime handlers, so things like
1053 System.String are mapped to text.
1054 - Handle dataobjects, getting all the possible formats out of them
1055 - We dont need the drag event args before we give feedback. This
1056 allows feedback cursors to be immediate before selections have
1059 2007-02-16 Jackson Harper <jackson@ximian.com>
1061 * TextBoxBase.cs: Modified the method for inserting images to
1062 taking a line and position instead of tag and position.
1063 * RichTextBox.cs: Handle PngBlip data by inserting the png image
1065 * TextControl.cs: Allow images to be inserted as the first tag of
1067 - Fix some off by one issues when we assume the first tag is a
1068 text tag, not an image tag.
1070 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1072 * ListView.cs: Set focus to ListView when ItemControl gets a
1073 WM_RBUTTONDOWN message, to mimic .Net behaviour.
1074 Fixes part of #80467.
1076 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
1078 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
1079 validate Text input (if null or empty string reset Value to default
1080 value). Fixes #80830.
1082 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1084 * ListView.cs: Set owner as null for columns and items when
1085 Dispose is invoked. Fixes #80607.
1087 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
1089 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
1090 showing DropDowns, don't show a Grip when doing Flow layout.
1091 [This fixes the toolbox in PDN 2.72.]
1092 * ToolStripItem.cs: Add Anchor property and some internal properties to
1093 reduces needed changes to FlowLayout.
1094 * ToolStripOverflow.cs: Remove unused variable.
1095 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
1096 use it in the layout calculations.
1098 2007-02-13 Everaldo Canuto <everaldo@simios.org>
1100 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
1103 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
1106 2007-02-13 Everaldo Canuto <everaldo@simios.org>
1108 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
1109 MeasureString format, it can make button very large in some cases, it is
1110 strange but is what win32 do.
1112 2007-02-13 Everaldo Canuto <everaldo@simios.org>
1114 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
1117 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
1118 rendering, the value is based on MenuAccessKeysUnderlined.
1120 2007-02-13 Everaldo Canuto <everaldo@simios.org>
1122 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
1125 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
1127 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
1128 and use MenuAccessKeysUnderlined instead.
1130 2007-02-13 Andreia Gaita <avidigal@novell.com>
1132 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
1133 A selected control would not get a Focus call if:
1134 - the default active control of the container is the same as
1135 the one that was selected
1136 - we are switching from one container to another
1137 Under these conditions, the container being selected already has
1138 an active_control, which is the same as the one being activated,
1139 so set_ActiveControl would always return and not send the Focus
1140 call. Fix to check if the currently active control of the container
1141 is actually focused.
1143 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
1145 * StatusStrip.cs: Implement the spring layout.
1146 * ToolStripControlHost.cs: Make sure the hosted control's visibility
1147 always matches the host.
1148 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
1151 2007-02-13 Andreia Gaita <avidigal@novell.com>
1153 * Control.cs: Code reorganization only.
1154 - Reorganize the WndProc cases so that each case has it's own handling method,
1155 to help with the no-line-numbering stack traces.
1156 - Formatting changes (it's vstudio's fault, really :p)
1158 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
1160 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
1161 Thread.CurrentUICulture to match DateTimePicker's (and MS)
1164 2007-02-12 Jackson Harper <jackson@ximian.com>
1167 * TextBox.cs: By default we have a non multiline document
1168 - use the multiline property instead of the internal variable
1169 * TextBoxBase.cs: Treat multiline and non multiline the same in
1171 - Use the documents multiline flag instead of tracking it ourself
1172 * TextControl.cs: Attempt at getting multiline to match MS
1173 behavior. Lines now track an offset, which is either their X or Y
1174 offset depending on whether or not we are in multiline mode.
1175 - Update all the methods to understand that lines have an X value.
1176 - Fix crash in Undo::Duplicate when empty lines are deleted.
1178 2007-02-12 Everaldo Canuto <everaldo@simios.org>
1180 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
1181 code moved to properties PreferredHeight and PreferredWidth. It solve the
1182 all problems when preferred sizes must be recalculated. Fixes #80801.
1184 2007-02-12 Everaldo Canuto <everaldo@simios.org>
1186 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
1187 font height when compatible_text_rendering is false. Partially fix #80801.
1189 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
1191 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
1193 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
1195 * Form.cs: Improved exception messages in ShowDialog.
1197 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
1199 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
1200 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
1201 if not set. Fixes bug #80764. Avoid accessing current_settings field
1204 2007-02-08 Everaldo Canuto <everaldo@simios.org>
1206 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
1209 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
1210 public in 2.0 and for easy maintenance and dont break compatibility it is
1213 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
1215 * ToolStripItem.cs: Implement using images from ImageList.
1217 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
1219 * DateTimePicker.cs: Change default date-formatting culture from
1220 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
1221 seems to be the way MS does it.
1223 2007-02-08 Andreia Gaita <avidigal@novell.com>
1225 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
1226 (the 6 was cut off on the right side)
1228 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
1230 * Form.cs: Tell MenuStrips to close when the form is clicked.
1231 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
1232 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
1233 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
1234 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
1235 support for Overflow, where items that do not fit are automatically
1236 reparented to a drop down menu.
1237 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
1238 Also: fixes bug #80747.
1240 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
1242 * ComboBox.cs: Remove warning (unused code).
1243 * ScrollableControl.cs: Remove warning for 1.1 profile.
1245 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
1247 * Form.cs: Remove a warning.
1249 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
1251 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
1252 'g' specifier, not documented anywhere, but seems to always show up
1253 as a single space (might have something to do with the DateTime 'g'
1254 specifier, which is the era format, but since DateTimePicker can't
1255 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
1256 won't crash if the format has an unmatched quote. Now shows
1257 single-character formats correctly. Fixes #80744.
1259 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
1261 * StatusStrip.cs: Stretch property needs to call base.Stretch,
1262 not this.Stretch to fix stack overflow. [Fixes bug #80760]
1264 2007-02-07 Chris Toshok <toshok@ximian.com>
1266 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
1267 background color. it overwrites the background image we've
1268 already painted. Fixes #80599.
1270 2007-02-07 Chris Toshok <toshok@ximian.com>
1272 * DataGrid.cs: return immediately from Edit() when there are no
1273 columns. Fixes #80662.
1275 2007-02-07 Chris Toshok <toshok@ximian.com>
1277 * MessageBox.cs: fix #80625. don't always show the Help button in
1278 2.0. use the displayHelpButton parameter to determine if we
1279 should show it. Also, make the internal show_help field private.
1281 2007-02-07 Chris Toshok <toshok@ximian.com>
1283 * Control.cs (SetVisibleCore): check in the proposed patch for
1284 80604, and set is_visible before calling CreateControl.
1286 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
1288 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
1289 MonoInternalNote. This is added automagically by VS2005, so let's not crash
1292 2007-02-06 Everaldo Canuto <everaldo@simios.org>
1294 * MenuAPI.cs: hotkey_active internal field added, it is required because
1295 we need to know when hotkeys must be draw, before this change a keystate
1296 Navigating was used but we can have menu in navigating state without
1297 hotkeys. Fixes #80694.
1299 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
1301 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
1303 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
1304 corresponding events and methods to be internal for 1.1 profile and
1305 public for 2.0 profile (required by SizeGrip).
1306 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
1307 implicit control list). Don't set the size nor the location of the
1308 SizeGrip anymore as it's not needed.
1309 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
1310 draw directly on the captured control (fixes #80656). Removed
1311 ShowGrip (it wasn't used anywhere), redraw (always true), added
1312 GetDefaultSize and GetDefaultRectangle to calculate defaults.
1313 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
1314 be called from SizeGrip.
1316 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
1318 * Timer.cs: Throw ArgumentException if Interval <= 0.
1320 2007-02-05 Jackson Harper <jackson@ximian.com>
1322 * TreeView.cs: We need to check scrollbar visibility when window
1323 visibility is updated, because non visible trees don't ever add
1325 * Cursor.cs: We want the override cursor to be reset to NULL when
1326 we set current cursor to the default cursor.
1328 2007-02-05 Jackson Harper <jackson@ximian.com>
1330 * TextControl.cs: Don't have crlfs when we are non multiline.
1331 - Consolidate the line position.
1333 2007-02-05 Jackson Harper <jackson@ximian.com>
1335 * X11Keyboard.cs: BACK+CTRL gets a special char code.
1337 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
1339 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
1340 handling LeaveNotify->NotifyUngrab in order to send
1341 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
1342 after calling XUngrabPointer, so we call WindowUngrabbed directly
1343 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
1344 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
1345 MouseCaptureChanged correctly. Also create handles if changing
1346 Capture (matches MS behaviour).
1348 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1350 * SizeGrip.cs: Make the last change 2.0 only.
1352 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1354 * SizeGrip.cs: If resizing and the capture is lost, revert any size
1355 changes to initial size (fixes #80597).
1357 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1359 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
1361 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1363 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
1364 background) and only allow dragging if enabled. This way the
1365 sizegrip can be used to fill the open square that otherwise would
1366 have been shown in the bottom right corner of ScrollableControl
1367 when ScrollableControl is not suppose to support sizing.
1368 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
1369 sizegrip is shown and enabled, and hook up with necessary events.
1371 2007-02-01 Chris Toshok <toshok@ximian.com>
1373 * DataGridTextBoxColumn.cs: clean up the
1374 GetFormattedString/GetColumnValueAtRow combination of functions.
1375 Also fix UpdateUI, and the initial state of
1376 IsInEditOrNavigateMode.
1378 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
1379 aren't supposed to scroll the textbox here, we're supposed to
1380 scroll the datagrid.
1382 2007-02-01 Chris Toshok <toshok@ximian.com>
1384 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
1385 setting the position.
1387 2007-02-01 Chris Toshok <toshok@ximian.com>
1389 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
1390 here, since the most recent focus fixes keep us from generating
1391 the Leave event when our textbox gets focus.
1392 (Edit): we should be passing null for the column style's
1393 instantText parameter.
1395 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
1397 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
1398 raised. Fixes menu text/icons not showing up in PDN.
1400 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
1402 * Control.cs: Remove code in constructor that makes every
1403 control with WS_CHILD set have initial location -1, -1.
1405 2007-01-31 Jackson Harper <jackson@ximian.com>
1407 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
1409 * XplatUIX11.cs: Give teh keyboard to teh dnd.
1411 2007-01-31 Jackson Harper <jackson@ximian.com>
1413 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
1414 - Remove some debug code.
1416 2007-01-31 Jackson Harper <jackson@ximian.com>
1418 * XplatUIX11.cs: If you set the override cursor during a grab, it
1419 should actually override the grab cursor. This comes into play
1420 when you are setting custom cursors in a DND feedback method.
1422 2007-01-31 Jackson Harper <jackson@ximian.com>
1424 * X11Dnd.cs: Add support for handling the QueryContinue and
1425 GiveFeedback events.
1426 - Cancel drag and drop actions when the escape key is clicked.
1427 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
1428 can handle the ESCAPE key.
1429 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
1430 done when dnd events are continued after the button is released.
1431 - Add a new helper method so that dnd can translate key events.
1433 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
1435 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
1436 make it more obvious what is happening.
1438 2007-01-30 Jackson Harper <jackson@ximian.com>
1440 * XplatUIX11.cs: Don't break when handling button release in drag
1441 and drop operations. We need that BUTTONUP message to get through
1442 so capture is released.
1443 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
1444 this is handled automatically when the mouse is down.
1446 2007-01-30 Jackson Harper <jackson@ximian.com>
1448 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
1449 is closed, so we need to make sure that we aren't changing the
1450 dialog result when the OK (Open or Save) button has been clicked
1451 and we are closing the window ourselves. Note we don't need to
1452 worry about the cache being written in this case, because it was
1453 already done in the previous FilOk call.
1455 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
1457 * DateTimePicker.cs: Remove a warning.
1458 * ComboBox.cs: Remove a couple of warnings.
1460 2007-01-29 Chris Toshok <toshok@ximian.com>
1462 * XplatUIX11.cs: don't crash, and remove the icon if the user has
1463 set one, if SetIcon is passed a null icon.
1465 2007-01-29 Andreia Gaita <avidigal@novell.com>
1467 * TextBox.cs: Redraw when the password characters changes
1468 * TextControl.cs: Check if textbox has a password char and draw
1469 a line of password chars instead of the text in the line. LineTag gets
1470 an extra Draw() method which allows document.Draw to override the text
1471 that will be drawn. Removes 1024 char limitation on length of passworded
1474 2007-01-29 Jackson Harper <jackson@ximian.com>
1476 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
1477 single chars is not.
1479 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
1481 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
1482 one pixel. Fix a StackOverflowException caused by an overload wrongly
1485 2007-01-26 Everaldo Canuto <everaldo@simios.org>
1487 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
1488 also remove ProcessArrowKey and put the code inside ProcessKeys.
1490 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
1492 * PaddingConverter.cs: Added.
1494 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
1496 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
1497 ShowPanels is false (fixes #80600). Only draw up to 127 characters
1498 of text (fixes #80601). For panels clip the text to draw to the
1499 panel (fixes #80603).
1501 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
1503 * ComboBox.cs: Fixed implementation of ResetText.
1505 2007-01-25 Jackson Harper <jackson@ximian.com>
1507 * TextControl.cs: For the last char of a line we need to use the
1508 line size, not that chars width, since it won't actually be
1509 computed since the right side of a char is based on the start of
1510 the left side of the next char, and the next char does not exist.
1512 2007-01-25 Chris Toshok <toshok@ximian.com>
1514 * Splitter.cs: fix the new unit tests, and reindent some switch
1517 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
1519 * ComboBox.cs: Implemented 2.0 methods and events.
1520 * TextBoxBase.cs: Added OnTextUpdate, so that
1521 ComboBox.ComboTextBox can inform ComboBox of it.
1523 2007-01-25 Jackson Harper <jackson@ximian.com>
1525 * TextControl.cs: Respect ShowSelection when deciding whether or
1526 not to display the caret, this allows comboboxes to have carets
1527 when the combotextbox does not have focus.
1529 2007-01-25 Jackson Harper <jackson@ximian.com>
1531 * TextControl.cs: Add a Suspend/Resume for updating, basically the
1532 same as the Suspend/Resume for recalc, except this will do actual
1534 - New Undo manager, works much like the MS version.
1536 * TextBoxBase.cs: The Cut operation is undoable.
1538 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
1540 * TextBoxBase.cs: Don't antialias text. Makes it look way better
1541 on Windows (no difference on Linux).
1543 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
1545 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
1546 we don't want to activate any windows. Fixes #79433.
1548 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
1550 - ButtonBase.cs: Fix capitalization of parameter: disposing.
1553 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
1556 - Move to using System.ComponentModel.EventHandlerList
1557 - Replace Refresh with Invalidate
1558 - Clear the mime filecache on closing
1559 - Some other memory reducing work. After beeing closed FD now uses
1560 only about 300 KB for the fdo mime stuff plus the memory of the
1562 * Mime.cs: Changed coding style and removed unnecessary commented
1563 code. Some more memory memory reducing work.
1565 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
1567 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
1568 a few other missing 2.0 properties.
1569 * Theme.cs: Added DrawFlatStyleComboBox.
1570 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
1572 2007-01-24 Chris Toshok <toshok@ximian.com>
1574 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
1575 wake_waiting flag, not just when there's data to be read. if we
1576 don't, then future wakeup's won't reach us and we'll be doomed to
1577 wait for the entire 1 second timeout forever (unless there are X
1580 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
1582 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
1583 until you pass Items.Count, not Items.Count - 1 like 1.1.
1585 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
1587 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
1589 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
1591 * ToolStripContainer.cs: The recent Dock fix exposed that I was
1592 adding the panels in the wrong order.
1594 2007-01-24 Jackson Harper <jackson@ximian.com>
1596 * TextBoxBase.cs: When we move the caret we also need to move the
1597 selection, this fixes some random crashing after doing select
1598 text, unselect, delete a char, paste.
1600 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
1602 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
1604 2007-01-23 Everaldo Canuto <everaldo@simios.org>
1606 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
1607 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
1608 * ToolBar.cs: Force redraw in BackgroundImageChanged.
1610 2007-01-23 Everaldo Canuto <everaldo@simios.org>
1613 - Implement support for vertical toolbars. Fixes #80539;
1614 - Call LayoutToolBar when resize, it fix some other problems in layout.
1615 - Rename requested_height to requested_size, as we can have width on it
1616 when toolbar is vertical.
1617 - Create a private property "Vertical" that uses Dock to verify when
1618 toolbar is vertical or not.
1619 - Set ControlStyles when change Dock property.
1620 - Refactory in LayoutToolBar to have better variables names and to support
1622 - Fixes default value for ButtonSize when button count is equal zero, size
1623 must be (39, 36) test case writed.
1625 2007-01-23 Chris Toshok <toshok@ximian.com>
1627 * Control.cs: fix the checks so that they work correctly for mdi
1630 2007-01-23 Chris Toshok <toshok@ximian.com>
1632 * Control.cs: ControlCollection seems to have super-secret
1633 abstraction breaking knowledge of Mdi containers. allow MdiClient
1634 to add toplevel controls.
1636 2007-01-23 Chris Toshok <toshok@ximian.com>
1638 * Control.cs: throw an ArgumentException if a toplevel control is
1639 added to our control collection from ControlCollection.Add, as
1640 well as from ControlCollection.IList.Add. This fixes the
1641 ControlSetTopLevelTest.TestTopLevelAdd unit test.
1643 Also, in ControlCollection.IList.Add, don't through an
1644 ArgumentNullException, throw an ArgumentException, when value ==
1645 null. This matches MS.
1647 2007-01-23 Chris Toshok <toshok@ximian.com>
1649 * BindingSource.cs: initial, incomplete, implementation of
1652 2007-01-23 Jackson Harper <jackson@ximian.com>
1655 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
1656 that I can fix a broken unit test (TextBoxTest::ClearUndo)
1658 2007-01-23 Everaldo Canuto <everaldo@simios.org>
1660 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
1662 2007-01-23 Andreia Gaita <avidigal@novell.com>
1664 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
1665 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
1666 IndexOfKey() for 2.0
1668 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
1670 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
1671 to prevent it from changing z-order.
1672 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
1673 leave UI updates in MdiWindowManager.
1674 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
1675 1 sized (NC handling goes weird on Linux otherwise).
1676 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
1677 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
1678 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
1679 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
1680 and SetWindowState(s) to allow for changing the size of an activated child
1681 before activating it (reduces a lot of flicker).
1683 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
1685 * Form.cs: Changing FormBorderStyle has different semantics based
1686 on whether the Form is visible or not. If not visible, don't change
1687 the Size. But InvalidateNC needs to be called to force the window
1688 to pick up the changes and redraw itself. [Fixes bug #80574]
1690 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
1693 * ContainerControl.cs: ProcessCmdKey.
1694 * ErrorProvider.cs: new constructor.
1695 * Form.cs: fix AutoValidateEvent compiler warning.
1696 * Label.cs: fix OnAutoSizeChanged compiler warning.
1697 * MenuStrip.cs: fix CanOverflow compiler warning.
1698 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
1699 * TextBox.cs: Dispose.
1700 * ToolStrip.cs: CanOverflow, re-enable double buffering.
1701 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
1702 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
1703 * ToolStripItem.cs: Overflow, RightToLeft properties.
1705 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
1707 * Form.cs: Move the layout of the main form to MdiWindowManager.
1708 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
1709 do a layout of the main window to update MdiClient's client area to
1710 the right area. Fixes #80533. Remove the calculation of nc size,
1711 it was just wrong and the correct one is the same as for
1712 InternalWindowManager.
1714 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
1716 * Control.cs: Setting Anchor or Dock needs to reset the other
1717 to its default. [Fixes bug #80556]
1719 2007-01-20 Chris Toshok <toshok@ximian.com>
1721 * CheckedListBox.cs: class status changes.
1723 * ScrollableControl.cs: same.
1725 * RichTextBox.cs: same.
1727 * ContainerControl.cs: same.
1729 * ListView.cs: same.
1731 * NotifyIcon.cs: same.
1733 * MenuStrip.cs: same.
1735 * RadioButton.cs: same.
1737 * CheckBox.cs: same.
1739 * PrintPreviewDialog.cs: same.
1743 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
1745 * TreeNode.cs: Apply Alan's patch for Name property.
1747 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
1749 * Form.cs: Implemented SizeGripStyle.
1750 * SizeGrip.cs: Check for minimum and maximum size for the
1751 control being resized and only resize if size has actually
1754 2007-01-19 Chris Toshok <toshok@ximian.com>
1756 * DataGridColumnStyle.cs: stop setting _readonly in the
1757 PropertyDescriptor setter. fixes a unit test failure.
1759 also, rename ParentReadOnly to TableStyleReadOnly, and have it
1760 just consult our table style (if we have one). We don't need to
1761 consult the datagrid readonly attribute because that's passed in
1762 as the _ro arg to Edit. this simplifies things a little.
1764 * DataGrid.cs: use CurrentColumn instead of
1765 current_cell.ColumnNumber just to simplify some of the code.
1767 switch the order of some things in the CurrentCell setter to keep
1768 the previous cell from getting a textbox again -
1769 EnsureCellVisibility causes scrolling to happen, which calls Edit.
1770 So we need to set the new cell before calling it.
1772 call Edit in OnEnter, as does Microsoft.
1774 also, make sure the current table style isn't the one we create
1775 initially when checking to see if it's different than the one
1776 we're setting it to in BindColumns (this fixes #80421).
1778 * GridTableStylesCollection.cs: table styles can have "" for a
1779 mapping name. part of the fix for #80421.
1781 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
1784 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
1786 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
1787 and less GDI object leaky-er.
1789 2007-01-18 Andreia Gaita <avidigal@novell.com>
1791 * LinkLabel.cs: Add opaque control style
1793 2007-01-18 Jackson Harper <jackson@ximian.com>
1795 * TextControl.cs: Calculate width properly.
1796 - Don't store the tag's X offset, this can be figured out very
1798 - When getting the caret tag make sure to get the last empty tag.
1800 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
1802 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
1805 * Control.cs: Color.Empty shouldn't count for previous transparent
1808 2007-01-18 Jackson Harper <jackson@ximian.com>
1812 * TextControl.cs: Starting to merge in some pieces of my older
1813 undo work. Basically just some slight cleanup of the undo API.
1815 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
1817 * TrackBar.cs: Fix signature of RightToLeftLayout.
1818 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
1819 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
1820 * Application.cs: Implemented UseWaitCursor.
1822 2007-01-18 Jackson Harper <jackson@ximian.com>
1824 * TextControl.cs: We can't skip tags if any part of the tag is
1827 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
1829 * ContainerControl.cs: Override OnLayout.
1831 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
1833 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
1835 * ContextMenuStrip.cs: Make sure context menu is shown on top of
1838 2007-01-18 Chris Toshok <toshok@ximian.com>
1840 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
1841 (leftover from the container_selected days, I'd wager). fixes bug
1844 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
1846 * Control.cs: Apply patch from George to fix the new testcase on
1847 bug #80451. We can't just check for Color.Transparent, we need
1848 to check if the back color's alpha channel is < 255.
1850 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
1852 * Form.cs: Move setting show_icon = true to before the constructor
1853 so that the base constructor has that information when it calculates
1854 the form's size. Was causing forms to be (6, 6) bigger than they
1855 were supposed to be. Thanks for catching this Rolf!
1857 2007-01-18 Jackson Harper <jackson@ximian.com>
1859 * TextControl.cs: When replacing a selection we need to invalidate
1860 from the initial selection start, because selection start is moved
1861 to the end of the replacement.
1863 2007-01-18 Andreia Gaita <avidigal@novell.com>
1865 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
1867 2007-01-18 Chris Toshok <toshok@ximian.com>
1869 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
1872 2007-01-17 Everaldo Canuto <everaldo@simios.org>
1874 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
1875 layout methods and properties from ToolBarButton must be available
1876 into ToolBarButtonInfo.
1878 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
1880 * Control.cs: If the control has a transparent background, we
1881 need to refresh it when it moves and when it's parent's background
1882 image changes. [Fixes bug #80451]
1884 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
1886 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
1888 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
1890 * XplatUIWin32.cs: Implement proper double buffering for Windows.
1891 [Fixes bug #80447, and probably speeds up things as well]
1893 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
1895 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
1896 * XplatUIWin32.cs: We need to recalculate NC size after changing
1897 window style to toolwindow (otherwise the client rectangle will be
1898 3 pixels to small for some reason).
1899 * MdiWindowManager.cs: Revert NC size calculations to match how
1900 they are calculated only based on window styles (to match
1901 Win32AdjustWindowRectEx, since otherwise when setting size or
1902 location, Control will call Win32AdjustWindowRectEx to update client
1903 size, which would provoke a paint, then we'd get a NCCALCSIZE and
1904 calculate a different value of client size causing another paint
1906 * InternalWindowManager.cs: When moving or resizing a window only
1907 update size or location if they actually changed.
1908 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
1909 (seems to match Windows behaviour better). Cleaned up
1910 ManagedWindowDecorations to draw what's needed and nothing else
1911 (was drawing borders and lines where they shouldn't be)
1912 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
1913 (style = 0xFFFF) and takes into account caption height when
1914 calculating window rectangle.
1916 2007-01-16 Everaldo Canuto <everaldo@simios.org>
1918 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
1919 can be added to toolbar multiple times, we need to maintain a list of
1920 button information for each positions.
1922 2007-01-16 Everaldo Canuto <everaldo@simios.org>
1924 * ToolBar.cs: Some small stetic changes.
1926 2007-01-16 Jackson Harper <jackson@ximian.com>
1928 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
1929 that allow us to have nested recalc = false blocks.
1930 - Add paste support for images in the RichTextBox
1931 * RichTextBox.cs: flush the text after the color is changed, so
1932 the change takes effect.
1934 - Some extra debugging info
1935 * TextControl.cs: Tags no longer track their length, it is just
1936 computed from the next tags length, this makes things a little
1937 simpler and reduces places that we have to track length changes.
1938 - Refactored the linetag class a little so we could make it
1939 a base class for different kinds of tags
1940 - Created a image tag, a tag that can have a single image inserted
1942 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
1943 that we can call suspend multiple times.
1944 - Add some debugging methods
1946 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
1948 * MdiClient.cs: Add ActivatePreviousChild for
1949 mdi child window navigation.
1950 * Form.cs: Use MdiClient.ActivateNextChild/
1951 ActivatePreviousChild instead of Form.SelectNextControl
1952 to select the next/previous child since
1953 SelectNextControl doesn't do it in the same order
1954 as mdi children should do it.
1956 2007-01-16 Chris Toshok <toshok@ximian.com>
1958 * Control.cs: remove container_selected field.
1960 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
1962 * MdiClient.cs: Update main form's ActiveChild when
1963 updating keyboard focus for the mdi child.
1965 2007-01-16 Jonathan Pobst <jpobst@novell.com>
1967 * Control.cs: PreferredSize fix.
1969 * Form.cs: Add several 2.0 events, properties, and methods.
1971 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
1973 * Form.cs: Provide meaningful message when MdiParent is assigned a
1974 Form that is not an MdiContainer.
1976 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
1978 * MdiClient.cs: Update main form's ActiveChild when
1979 activating a mdi child.
1981 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
1983 * MdiWindowManager.cs: Fix NRE when merging menus and main form
1984 doesn't have a menu.
1986 * Form.cs: Request NCRecalc after creating a mdi child window.
1987 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
1988 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
1990 * MdiClient.cs: Add new method SendFocusToActiveChild that either
1991 sends keyboard focus to the active child, or to the MdiClient
1992 if there are no child forms.
1994 2007-01-15 Chris Toshok <toshok@ximian.com>
1996 * ListView.cs: drop the *Internal overrides, just do our work in
1997 ItemControl's WndProc instead.
1999 * UpDownBase.cs: a few large changes. Fix up the Selectable state
2000 of the various controls, and forward the events properly (in the
2001 same manner as MS) from the textbox to the UpDown. Also the
2002 ActiveControl of the UpDownBase gets set properly now. Finally,
2003 we don't call UpdateEditText from the ctor. Fixes bug #79957.
2005 * NumericUpDown.cs: set Text in the ctor.
2007 * DomainUpDown.cs: call UpdateEditText in the ctor.
2009 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
2010 so even a Selectable = false textbox can be focused if you click
2013 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
2014 just add their handling in their respective WndProc's. Also add
2015 an explicit FocusInternal method that doesn't consult CanFocus
2016 before calling Select(this).
2018 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
2019 do our work in WndProc instead.
2021 * TabControl.cs: same.
2023 * ComboBox.cs: same.
2025 2007-01-15 Everaldo Canuto <everaldo@simios.org>
2027 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
2030 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2033 * ThemeWin32Classic.cs: Don't draw the item text outside
2034 item bounds in Details view, as well as use trimming.
2037 2007-01-15 Jonathan Pobst <jpobst@novell.com>
2039 * Form.cs: Implement Form.ShowIcon.
2041 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
2042 null, which when combined with the DlgModalFrame window style removes
2043 the icon from the title bar.
2045 2007-01-15 Jonathan Pobst <jpobst@novell.com>
2047 * Control.cs: Call OnMouseClick after OnClick. (2.0)
2049 2007-01-15 Everaldo Canuto <everaldo@simios.org>
2051 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
2052 menu when mdi child windows theres a menu, uses insert to get icon
2053 at first position. Partially fix #80006.
2055 2007-01-15 Jonathan Pobst <jpobst@novell.com>
2057 * Clipboard.cs: Implement 2.0 methods.
2059 2007-01-15 Everaldo Canuto <everaldo@simios.org>
2061 * Menu.cs: Implement Insert method of MenuItemCollection class
2064 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2066 * ListView.cs: Implement 2.0 FindItemWithText method.
2068 2007-01-11 Everaldo Canuto <everaldo@simios.org>
2070 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
2071 to calculate menu bar size. Fixes #80290.
2073 2007-01-11 Everaldo Canuto <everaldo@simios.org>
2075 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
2077 2007-01-11 Chris Toshok <toshok@ximian.com>
2079 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
2082 2007-01-11 Chris Toshok <toshok@ximian.com>
2084 * LinkLabel.cs: make sure to call base.Select in our Select method
2085 if it turns out we're going to be selected (i.e. if we have a link
2086 that is going to receive focus). That way our container's
2087 ActiveControl is updated properly.
2089 2007-01-11 Chris Toshok <toshok@ximian.com>
2091 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
2092 they have 1 or more links. this fixes the crash gert reported.
2094 2007-01-11 Andreia Gaita <avidigal@novell.com>
2096 * ContainerControl.cs: Remove ContainerSelected flag, not needed
2099 * Control.cs (Controls.Add): Check if control to be added to the collection
2100 is a top level control, and throw an ArgumentException if it is.
2101 Remove ContainerSelectedFlag, not needed anymore.
2103 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
2104 top most control doesn't activate the form. This fixes a problem in the
2105 MessageBox, where the default button wouldn't get focus because the form
2106 was activated before being Loaded - when the Owner is set, SetTopMost is
2107 called, and it would activate it.
2109 2007-01-11 Jonathan Pobst <jpobst@novell.com>
2111 * Button.cs: When clicked and setting the parent form's DialogResult,
2112 use FindForm instead of Parent, since parent could be a container
2113 control and not the Form. Fixes bug #80495.
2115 2007-01-10 Chris Toshok <toshok@ximian.com>
2117 * Form.cs: move the call to SendControlFocus into the same
2120 2007-01-10 Chris Toshok <toshok@ximian.com>
2122 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
2123 It breaks in the face of the new ActiveControl stuff, and should
2126 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
2127 activecontrol's focus if it's not already set, after we set
2128 ActiveControl, but before we call OnActivated. Re-fixes #79667
2129 after the previous focus/active control fixes regressed it.
2131 * Control.cs: reindent some code.
2133 2007-01-10 Chris Toshok <toshok@ximian.com>
2135 * Splitter.cs: clearing some outstanding changes from my tree.
2136 Replace all accesses (not writes) to the internal dock_style field
2137 with the Dock property.
2139 2007-01-10 Chris Toshok <toshok@ximian.com>
2141 * Control.cs: make FireEnter, FireLeave, FireValidating, and
2142 FireValidated virtual.
2144 * Form.cs: override and don't chain up calls to FireEnter and
2147 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2149 * ListView.cs: Add more text padding space when using
2150 auto resize for columns (the previous value didn't work fine).
2152 * ThemeWin32Classic.cs: Update text position inside columns,
2153 to match the appeareance of .Net.
2155 * ColumnHeader.cs: When using auto resize, only the Width should
2156 depend on the sub items, not the Height. Also, set width after
2157 auto resizing (the value of Width should never remain as -1 or -2).
2159 2007-01-10 Chris Toshok <toshok@ximian.com>
2161 * Application.cs: fix compilation errors when debug is enabled.
2163 2007-01-10 Chris Toshok <toshok@ximian.com>
2165 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
2166 add some nice ascii art pictures and explanation of the process).
2167 (GetMostDeeplyNestedActiveControl): new utility function we need
2168 because our ActiveControl can refer to a child container with its
2171 * Form.cs (OnActivated): remove the call to SelectActiveControl
2172 from here, since you can override this method and not chain up,
2173 and winforms still sets the active control.
2174 (OnCreateControl): also remove the unnecessary SelectActiveControl
2176 (WndProc): it's actually called from the WM_ACTIVATE block, just
2177 before calling OnActivated.
2179 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
2180 inside the else. the ActiveControl setter will end up setting
2181 focus on @control. This keeps us from setting it again (and
2182 generating an extra LostFocus/GotFocus pair).
2183 (Select (bool, bool)): reindent.
2185 2007-01-10 Jonathan Pobst <jpobst@novell.com>
2187 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
2188 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
2189 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
2190 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
2191 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
2192 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
2193 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
2194 ToolStripTextBox.cs: Another wave of corcompare work.
2196 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2198 * ColumnHeader.cs: Implement 2.0 AutoResize method using
2201 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
2202 methods by callling Column.AutoResize method on columns.
2204 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
2206 * Control.cs: Provide proper implementations of PreferredSize
2207 and GetPreferredSize (2.0).
2209 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
2211 * Form.cs: Remove one character (!) to make my previous OnClosing
2212 stuff work for modal windows like MessageBox.
2214 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2217 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
2218 ListView.Columns to get the last displayed column. Fixes #80452.
2220 2007-01-09 Everaldo Canuto <everaldo@simios.org>
2222 * Label.cs, LinkLabel.cs: Source code identation fixes.
2224 2007-01-08 Everaldo Canuto <everaldo@simios.org>
2226 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
2227 we dont need to invalidate only borders because when we invalidate four
2228 border lines the invalidate's generates a complete redraw of button,
2229 because it now invalidate a complete rect some other redraws operations
2230 are fixed. Fixes #80196.
2232 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
2233 Remove ToolBarInvalidateEntireButton as it is not used.
2235 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
2237 * Form.cs: Make sure that both OnClosing and OnFormClosing are
2238 called for 2.0 profile.
2239 * CloseReason.cs: Make class internal for 1.1.
2241 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
2243 * ToolStripManager.cs: Implement FindToolStrip functionality.
2244 * ToolStrip.cs: Register and unregister with ToolStripManager.
2246 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
2248 * Control.cs: This was messy. 2.0 moves much of ControlCollection
2249 to ArrangedElementCollection. Implemented this with as few #if's as
2250 possible (which is still too many).
2252 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
2254 * Control.cs: Implement SizeFromClientSize() [2.0].
2256 2007-01-07 Everaldo Canuto <everaldo@simios.org>
2258 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
2259 use Theme.BorderSize to calculate area instead of static value 1,
2260 by the way use new BorderStaticSize instead Border3DSize when
2261 border_static is true. Fixes #79537.
2263 * XplatUIOSX.cs: Fix call to GetClientRectangle.
2265 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
2268 2007-01-06 Everaldo Canuto <everaldo@simios.org>
2270 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
2272 2007-01-06 Everaldo Canuto <everaldo@simios.org>
2274 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
2275 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
2278 - border_static field added, it will used to define when a control
2279 theres 3D border but it must be static (thin).
2280 - In GetWindowRectangle use Theme.BorderSize to calculate area
2281 instead of static value 1, by the way use new BorderStaticSize instead
2282 Border3DSize when border_static is true.
2284 * XplatUIX11.cs, XplatUIOSX.cs:
2285 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
2287 * Theme.cs: BorderStaticSize field added.
2289 2007-01-05 Everaldo Canuto <everaldo@simios.org>
2291 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
2293 2007-01-05 Everaldo Canuto <everaldo@simios.org>
2295 * Control.cs: Under InternalBorderStyle call RecreateHangle to
2296 mimic same behavior than win32 that set border only in CreateParams,
2297 it fix problems under CreateParams overrides. Fix #79442 and partial
2300 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
2301 of thi control you must call recreate handle.
2303 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
2304 need to do anything as RecreateHangle will take care about borders.
2306 2007-01-05 Mike Kestner <mkestner@novell.com>
2308 * ListView.cs: hack to eliminate Lost/Got focus notifications on
2309 cycles between the ItemControl and parent. Fixes #80388.
2311 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
2313 * Control.cs: Lazy init layout engine. Do not directly use
2314 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
2316 2007-01-05 Chris Toshok <toshok@ximian.com>
2318 * DataGrid.cs: don't forceably rebind columns in SetDataSource
2319 unless our list manager has changed (i.e. unless we have reason to
2320 believe our columns have changed). Fixes #80422.
2322 also, disable the call do BindColumns in
2323 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
2324 1.1 the event isn't raised in response to a column addition on a
2327 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
2329 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
2330 that inheritors can not call it if they choose. Fixes bug #80456.
2332 2007-01-05 Andreia Gaita <avidigal@novell.com>
2334 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
2335 doesn't blow up with a null exception on marshalling.
2337 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
2339 * Control.cs: Implement several 2.0 protected properties and methods.
2340 Ensure that all necessary events are being called when properties
2343 2007-01-05 Mike Kestner <mkestner@novell.com>
2345 * ListView.cs: implement PgUp/PgDn for Details view. Also
2346 fixes First/LastVisibleIndex to use the item_control.ClientRect
2347 instead of the parent control. Fixes #80378.
2349 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
2351 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
2352 determine whether to use yard-pound or not (bug #78399).
2354 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
2356 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
2357 problems. So it is time to bring back the old popupbutton colors.
2359 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2362 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
2363 property by using the internal information of the
2364 columns order in ListView.
2366 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
2368 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
2369 Add 2.0 Tag properties.
2371 * LinkArea.cs: Add 2.0 ToString method.
2373 2007-01-03 Chris Toshok <toshok@ximian.com>
2375 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
2376 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
2377 when we're editing, which fixes #80047.
2379 2007-01-03 Chris Toshok <toshok@ximian.com>
2381 * Form.cs: apply patch contributed by Dominik Seichter. fixes
2384 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
2386 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
2387 property and implementation.
2389 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
2390 for MdiWindowListItem property.
2392 * ToolStripDropDown.cs: Don't consider hidden menu items while
2393 laying out the menu.
2395 2007-01-03 Andreia Gaita <avidigal@novell.com>
2397 * SendKeys.cs: window handle is not needed in win32, so just
2398 get the active window for X after parsing keys and don't use
2399 it when building the message; it is passed by parameter to the
2400 Xplat method and used there to build the message instead. Also,
2401 wait for events to be processed on SendWait, as opposed to Send,
2402 which doesn't wait :) Playing with threads and Send() completely
2403 hangs on ms.net, only SendWait() works.
2406 X11Display.cs: Check for valid window handle.
2408 2007-01-03 Jackson Harper <jackson@ximian.com>
2410 * TextControl.cs: Need to prevent wrap calculations when replacing
2411 text (this was there before i removed it accidently).
2412 - Don't update the cursor during the positioning, just set it to
2413 selection_start at the end of the operaion.
2415 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
2418 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
2420 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
2422 * MonthCalendar.cs: Added Click and DoubleClick events again,
2423 but this time they only hide Control's Click and DoubleClick.
2425 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
2427 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
2428 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
2430 2007-01-02 Jackson Harper <jackson@ximian.com>
2432 * TextBoxBase.cs: We move the caret with the split now, so we
2433 don't need to explicitly move the caret after splitting. This
2434 fixes the caret bumping down an extra line on Enter.
2436 2007-01-02 Miguel de Icaza <miguel@novell.com>
2438 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
2441 * ScrollableControl.cs: Add Scroll event.
2443 2007-01-02 Mike Kestner <mkestner@novell.com>
2445 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
2446 to fix all hdr height padding codepaths. Fixes #80207.
2448 2007-01-02 Chris Toshok <toshok@ximian.com>
2450 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
2451 setting it to the Control defaults anyway, and it being after the
2452 Dock set was screwing up layout.
2453 (set_Dock): don't short circuit out of setting base.Dock. Also,
2454 no need to call UpdateStatusBar here, as it'll be re-layed out if
2457 2007-01-02 Mike Kestner <mkestner@novell.com>
2459 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
2460 to header height for width == -1. Fixes the rest of #80207.
2462 2007-01-02 Mike Kestner <mkestner@novell.com>
2464 * ListView.cs: rework the mouse event forwarding everaldo added
2465 to translate the coordinates to the parent control not
2466 raise the parent events until after we've done our work. Hover
2467 needs more work, in the case where HoverSelection is on, because
2468 the item control receives more than one MouseHover per Enter
2469 event, so we need to ensure only the "first" hover gets forwarded.
2470 Opening a minor bug for that.
2472 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
2474 * CheckedListBox.cs: Fixed SelectionMode to match MS.
2475 * ListControl.cs: Implemented AllowSelection property. Removed extra
2477 * ListBox.cs: Implemented AllowSelection property.
2479 2007-01-02 Everaldo Canuto <everaldo@simios.org>
2481 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
2482 SelectedItem, it prevent for errors when you must disable item
2483 before perform click. Fixes #80409.
2485 2007-01-02 Everaldo Canuto <everaldo@simios.org>
2487 * MenuAPI.cs: Prevent second level and beyond submenus to close
2488 until first level when move out side of popup.
2490 2007-01-02 Everaldo Canuto <everaldo@simios.org>
2493 - Down submenu positin in three pixels.
2494 - Closes sub menu when mouse leaves from menu. Fixes #80402.
2496 2007-01-02 Everaldo Canuto <everaldo@simios.org>
2498 * ThemeWin32Classic.cs:
2499 - Fix popup menu size adding one pixel on the top.
2500 - Down menu item border from two to one to mimic Win32.
2501 - Some source identation fixes.
2503 2007-01-01 Everaldo Canuto <everaldo@simios.org>
2505 * ThemeWin32Classic.cs: Use float numbers to calculate size and
2506 position of menu arrows, it fix wrong arrow size.
2508 2007-01-01 Everaldo Canuto <everaldo@simios.org>
2510 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
2511 instead of line, it simplify draw operation and fix it using 3D
2512 borders to mimic Win32.
2514 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
2516 * StatusStrip.cs: Add implementation of the sizing grip.
2518 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
2519 StatusStrip rendering.
2521 2006-12-31 Chris Toshok <toshok@ximian.com>
2523 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
2524 override the layout style (anchor/dock) of the control. assign to
2525 Dock instead. Fixes bug #80416.
2527 * ToolStrip.cs: same.
2529 2006-12-31 Andreia Gaita <avidigal@novell.com>
2531 * ContainerControl.cs: Use ContainerSelected flag to check if
2532 a Container is directly selected, or if Select is called on a
2533 non-container. If a container is directly selected, focus events
2534 should not be raised.
2535 Apply #80411 patch to throw exception on set_ActiveControl if
2536 control is the same as the current one.
2538 * Control.cs: Use ContainerSelected flag (see above).
2539 Add invalidation check to raise event but not invalidate if
2544 2006-12-31 Everaldo Canuto <everaldo@simios.org>
2546 * MenuAPI.cs: After click, dont close popup menu when menu is
2547 ContextMenu. Fixes #80399.
2549 2006-12-30 Chris Toshok <toshok@ximian.com>
2551 * ContainerControl.cs: make sure we throw the exception if the
2552 container control doesn't contain the control we're setting
2555 2006-12-30 Chris Toshok <toshok@ximian.com>
2557 * Control.cs (SetTopLevel): fix the exception raised by
2558 SetTopLevel for child controls.
2559 (set_Anchor): call UpdateDistances when setting the anchor type.
2560 This fixes bug #80336.
2562 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
2564 * Theme.cs: For now, revert back to 8pt font.
2566 2006-12-29 Everaldo Canuto <everaldo@simios.org>
2568 * MenuAPI.cs: Set popup as active when open a ContextMenu.
2571 2006-12-29 Chris Toshok <toshok@ximian.com>
2573 * Control.cs: reorder the code in OnResize to give the same event
2576 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
2578 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
2579 TileHorizontally and TileVertically.
2581 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
2583 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
2584 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
2585 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
2586 Corrected copyright and email adress.
2588 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
2590 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
2591 of Exception in FullPath property if no TreeView is associated with
2594 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
2596 * Theme.cs: Marked default_font as private, and initialize it in ctor
2597 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
2599 * ThemeGtk.cs: Removed default_font intialization.
2600 * ThemeWin32Classic.cs: Removed default_font initialization.
2602 2006-12-28 Chris Toshok <toshok@ximian.com>
2604 * Control.cs: fix a couple of place where we were creating handles
2605 more aggressively than we should be. Fixes ControlRefresh unit
2608 2006-12-28 Chris Toshok <toshok@ximian.com>
2610 * Control.cs: contrary to what the comment said, Control.Dock does
2611 not supercede Control.Anchor - the last one you assign to decides
2612 the layout behavior. so we need to keep track of which was the
2613 last set. Also, fix some of the affected property arguments in
2614 PerformLayout calls, and remove an redundant parent.PerformLayout
2617 Add a VisibleInternal property, which returns is_visible. We
2618 can/should get rid of all the usage of this field elsewhere.
2620 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2622 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
2623 control style, not DoubleBuffer. Added UseDoubleBuffering property
2624 that indicates whether doublebuffering is enabled and supported.
2625 (comment from and code based on Gert Driesen's patch in #80324).
2628 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2630 * Control.cs: Fixed a NRE.
2632 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2634 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
2637 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2639 * Control.cs: Rewrote double buffering, now a seperate
2640 class handles all the buffering, no Graphics is disposed of
2641 until the painting is finished (earlier implementation
2642 would crash if the control was resized in the OnPaint,
2643 since it would cause the double buffer to be recreated
2644 and the old one disposed), a separate Graphics is
2645 created for every paint (MS behaviour and anyways the state
2646 of the Graphics would have to be saved and restored otherwise)
2650 * XplatUI.cs: Added and implemented GetOffscreenGraphics
2651 so that we can get the graphics for the back buffer without
2652 having to create a new one and remove the offscreen_dc parameter
2653 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
2655 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2657 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
2658 Also make virtual all the key-related methods.
2660 * ListViewItem.cs: Make virtual the key related methods for
2661 ListViewSubItemCollection.
2663 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2667 * ThemeWin32Classic.cs:
2668 * Theme.cs: Initial support for Tile view in ListView,
2669 as well as the implementation of the required bits for it (Item
2672 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
2674 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
2675 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
2676 Provide useful exception messages.
2678 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
2680 * TrackBar.cs: Remove a warning.
2681 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
2682 when used by DateTimePicker, fixes #80287. This also requires that
2683 MonthCalendar implements it's own drawing for the yearly updown control,
2684 otherwise the Capture tracking would be too complicated. Removed the Click
2685 and DoubleClick events (according to comments they were hiding the base class
2686 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
2687 raise these events, not that they cannot be raised. It is possible to raise
2688 them by calling OnClick and OnDoubleClick). Added two internal fields in
2689 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
2690 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
2691 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
2692 event, no longer needed.
2694 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
2696 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
2697 true if new value differs from current value.
2699 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
2701 * Control.cs: ControlCollection.Count must be public. Fixed build of
2704 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
2706 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
2708 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
2710 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
2712 2006-12-26 Everaldo Canuto <everaldo@simios.org>
2714 * Control.cs: Invalidates control including when Width and Height is
2715 equal zero or is not visible, only Paint event must be care about
2718 2006-12-26 Chris Toshok <toshok@ximian.com>
2720 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
2721 more corcompare work.
2723 * DataGridView.cs: fix compiler warning.
2725 * ColumnHeader.cs: some corcompare work, and also take the
2726 opportunity to make the internal fields private.
2728 * ListView.cs: fix the fallout from the above field change.
2730 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
2732 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
2733 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
2734 ToolStripTextBox.cs: Fixes to events and corcompare.
2736 2006-12-26 Everaldo Canuto <everaldo@simios.org>
2738 * ListView.cs: Call owner.OnMousexx event to propagate events from
2739 item to ListView. Fixes #80367.
2741 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
2743 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
2744 if value is less than one. ItemHeight should not be set to a value
2745 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
2748 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
2750 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
2751 * ToolStripStatusLabel.cs: Add Spring for Moma.
2753 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
2755 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
2756 Fixed code formatting. Removed debug code.
2757 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
2759 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
2761 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
2762 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
2763 ArgumentOutOfRangeException if ColumnCount is negative. In
2764 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
2765 less than 4 or higher than 32768.
2766 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
2767 Fixed FormatProvider to return CurrentCulture unless explicitly set.
2768 Fixed IsFormatProviderDefault to return true if FormatProvider has
2769 not been explicitly set.
2771 2006-12-25 Chris Toshok <toshok@ximian.com>
2773 * Application.cs: add a couple of 2.0 events.
2775 2006-12-25 Chris Toshok <toshok@ximian.com>
2777 * Control.cs: fix compiler warning.
2779 * AxHost.cs: corcompare fixes.
2781 * ApplicationContext.cs: corcompare fixes.
2783 2006-12-25 Chris Toshok <toshok@ximian.com>
2785 * Control.cs: only update dist_right/dist_bottom if the
2786 width/height is > 0. this fixes anchored controls being resized
2787 smaller until they disappear and then resized larger again.
2789 2006-12-25 Chris Toshok <toshok@ximian.com>
2791 * Control.cs: a couple of changes. Remove dist_left and dist_top,
2792 since they're nothing more than X/Left and Y/Top, respectively.
2794 Also, move back to a per-control Bitmap/Graphics for
2795 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
2796 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
2799 2006-12-25 Miguel de Icaza <miguel@novell.com>
2801 * MessageBox.cs: Implemented overload that takes a new "bool
2802 displayHelpButton" by adding a new internal field "show_help".
2803 When clicked this will raise the HelpRequested on the owner or the
2806 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
2807 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
2809 * ListView.cs: Add support ColumnWidthChanged and
2810 ColumnWidthChanging.
2812 Add support for ColumnReordered event.
2813 (ReorderColumn): Add NET_2_0 specific support for cancelling the
2818 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
2820 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
2822 2006-12-24 Chris Toshok <toshok@ximian.com>
2824 * GridTablesFactory.cs: 2.0 corcompare work.
2826 * ToolStripContainer.cs: add "override" to
2827 ContextMenuStripChanged, and remove the local event object.
2829 * ToolStripDropDown.cs: same with a couple properties.
2831 * ToolStripPanel.cs: same with AutoSizeChanged event.
2833 * TextBoxBase.cs: add "override" to AutoSizeChanged.
2835 * Form.cs: add the remaining 2.0 events, and do some corcompare
2838 * DateTimePicker.cs: add "new" to padding.
2840 * ButtonBase.cs: use Control's use_compatible_text_rendering.
2842 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
2844 * DataGridView.cs: PaddingChanged is overridden.
2846 2006-12-24 Chris Toshok <toshok@ximian.com>
2848 * Control.cs: corecompare work here too.
2850 * DataGridViewElement.cs, DataGridView.cs,
2851 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
2852 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
2853 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
2854 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
2857 2006-12-24 Miguel de Icaza <miguel@novell.com>
2859 * Control.cs: Switched the error message on the console for a
2860 todo. A review of the code will have to cope with this anyways
2861 (since its a large feature, it is in our radar) and it was
2862 producing too much output when running PDN.
2864 * ToolStripComboBox.cs: Set the text when the SelectedIndex
2865 changes. Applications depend on this (PDN 2.72)
2867 2006-12-23 Chris Toshok <toshok@ximian.com>
2869 * TableLayoutSettings.cs: finish up the corcompare work for this
2872 2006-12-23 Chris Toshok <toshok@ximian.com>
2874 * Control.cs: make SetImplicitBounds internal, do some futzing
2875 with LayoutEngine so that it's available in 1.1, and remove the
2876 entire duplicated code mess from PerformLayout. Use
2877 System.Windows.Forms.Layout.DefaultLayout instead.
2879 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
2881 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
2883 * Form.cs: Add MainMenuStrip property.
2885 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
2887 * Control.cs: Add ContextMenuStrip property and implementation.
2888 Fix ContextMenu implementation to show menu centered on control when
2889 activated using the keyboard instead of showing at screen (0,0).
2891 * ToolStripDropDown.cs: Fix needed overload of Show ().
2893 2006-12-23 Everaldo Canuto <everaldo@simios.org>
2895 * Menu.cs: Name property added for 2.0 profile.
2897 2006-12-23 Everaldo Canuto <everaldo@simios.org>
2899 * Menu.cs: Update information about FindMenuItem, method to be
2902 2006-12-23 Everaldo Canuto <everaldo@simios.org>
2904 * MenuAPI.cs: When deselect items deselect also selected subitems.
2906 2006-12-23 Everaldo Canuto <everaldo@simios.org>
2908 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
2909 FindSubItemByCoord to found itens that is not active, also an
2910 cheking added to FindSubItemByCoord to search for items only
2911 in visible popup windows. Fixes #80274.
2913 2006-12-22 Everaldo Canuto <everaldo@simios.org>
2915 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
2916 internal property, it be care about change ExStyle.
2918 2006-12-22 Andreia Gaita <avidigal@novell.com>
2920 * ContainerControl.cs: set activeControl for parent forms up the
2921 tree when the new activecontrol is a container.
2922 When validating the active control, if it is a container, also
2923 raise up the validation for it's active control. Fixes #80280
2925 * Control.cs: Add internal property flag and check to prevent
2926 Focus events from getting raised when Select() is called for
2927 a ContainerControl. There are still too many focus events being
2928 raised at the moment though.
2929 Cleaned up the code a bit.
2931 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
2933 * Control.cs: Added all missing 2.0 events.and
2934 fixed a couple of corcompare issues.
2935 * TrackBar.cs: Implemented missing 2.0 bits.
2937 * DateTimePicker.cs,
2938 * MdiClient.cs: Fixed some corcompare issues.
2940 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
2942 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
2943 SplitterPanel.cs: corecompare work.
2945 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
2947 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
2948 Clean up warnings for BackgroundImageChanged and PaddingChanged
2949 events now that they are implemented in Control.cs.
2951 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
2953 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
2955 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
2956 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
2957 of TableLayoutPanel and supporting cast.
2959 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
2962 - GrabWindow now confines the mouse pointer to the confine window.
2963 - Added Win32ClipCursor and Win32GetClipCursor.
2966 - Added CaptureWithConfine to be able to capture and confine
2969 * InternalWindowManager.cs:
2970 - Call CaptureWithConfine instead of Capture if we're an
2971 MdiChild (fixes #79982).
2973 2006-12-21 Chris Toshok <toshok@ximian.com>
2975 * DataGrid.cs: guard against the initial state of selection, where
2976 selection_start == -1. make sure we only select from index >= 0.
2979 2006-12-21 Chris Toshok <toshok@ximian.com>
2981 * Control.cs: we don't need to be so draconian with
2982 UpdateDistances, and we thusly don't need to call it before
2983 calling PerformLayout in ResumeLayout. Fixes bug #80289.
2985 2006-12-21 Daniel Nauck <dna@mono-project.de>
2988 TextBox.cs: Implemented AutoComplete properties.
2990 2006-12-20 Chris Toshok <toshok@ximian.com>
2992 * DataGridView*.cs: some corecompare work.
2994 2006-12-20 Jackson Harper <jackson@ximian.com>
2996 * XplatUIX11.cs: We need to hide the caret when deleting it,
2997 otherwise you get carets left lying around everywhere.
2998 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
2999 prevents getting some weird half drawn caret tracers when
3001 * TextControl.cs: Attempt to reduce the number of times we need to
3004 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
3006 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
3008 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
3010 * DateTimePicker.cs:
3011 - Implemented missing 2.0 bits.
3012 - Changed some default values to match MS.
3014 2006-12-20 Jackson Harper <jackson@ximian.com>
3016 * TextBoxBase.cs: When changing the font across the document we
3017 can't recalculate after changing each line, since that will cahnge
3019 - PreferredHeight is a little different than i thought.
3020 - When backspacing, move the caret before we do the actual char
3021 delete, because when that delete crosses a wrap boundary the
3022 positional information will change.
3024 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
3026 * Control.cs: Added some missing 2.0 bits:
3027 BackgroundImageLayout, BackgroundImageLayoutChanged,
3028 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
3029 add IBindableComponent and IDropTarget implementation.
3032 - Added all missing 2.0 features:
3033 BackgroundImageLayout, RightToLeftLayout,
3034 OnHandleDestroyed, RightToLeftLayoutChanged,
3035 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
3037 - Rewrote all the BoldDate code, it was completely broken.
3038 - Fixed all the tests (the tests can now be re-enabled, the
3039 problems were not with the tests, but with the control, it was
3042 * DateTimePicker.cs: Changed the location where the
3043 MonthCalendar is shown.
3045 2006-12-19 Chris Toshok <toshok@ximian.com>
3047 * DataGridView.cs: add IDropTarget implementation.
3049 * ToolStripPanel.cs: add IDropTarget implementation.
3051 2006-12-19 Jackson Harper <jackson@ximian.com>
3053 * TextControl.cs: soft now means something different than what it
3054 used to mean, we want to move the caret regardless of whether or
3055 not this break was soft (would we really have wanted the caret
3056 to not move with the break in the old context?)
3057 * TreeView.cs: Make sure we factor in the vert scrollbar when
3058 calculating the horizontal scrollbar's maximum.
3060 2006-12-19 Andreia Gaita <avidigal@novell.org>
3062 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
3063 check for keywords in alternate casing, close bug #80049.
3065 2006-12-19 Chris Toshok <toshok@ximian.com>
3067 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
3068 methods (which all do nothing).
3070 * IDropTarget.cs: add the 4 missing methods.
3072 2006-12-19 Chris Toshok <toshok@ximian.com>
3074 * TableLayoutRowStyleCollection.cs: corcompare work.
3076 * TableLayoutSettings.cs: same.
3078 * TableLayoutStyle.cs: same.
3080 * TableLayoutColumnStyleCollection.cs: same.
3082 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
3084 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
3085 TableLayoutPanel I've had in my local tree for way too long.
3087 2006-12-19 Miguel de Icaza <miguel@novell.com>
3089 * TableLayoutSettings.cs: Finish the public API (still needs all
3090 the logic to update on changes).
3092 * TableLayoutPanelCellPosition.cs: new file.
3094 * TableLayoutRowStyleCollection.cs,
3095 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
3096 TableLayoutSettings.cs: Track the final 2.0 table api.
3098 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3100 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
3101 and Image List 2.0 members for ColummnHeader.
3102 * ListView.cs: Add key-related 2.0 methods for
3103 ColumnHeaderCollection.
3105 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
3107 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
3108 ArgumentNullException if items argument is null. Ignore null item in
3109 arrays. Removed extra tabs.
3111 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
3113 * MonthCalendar.cs: Fixed InvalidCastException.
3115 2006-12-19 Jackson Harper <jackson@ximian.com>
3117 * TextControl.cs: Don't increment the position here.
3118 - When calculating char positions only add in the line break size
3119 for hard line breaks.
3121 2006-12-19 Andreia Gaita <avidigal@novell.org>
3123 * SendKeys.cs: Changed some things to match ms.net behaviour
3124 when parsing shifted capital letters.
3126 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
3127 Add window handle as parameter to SendInput. X11 needs the
3128 window handle, and the handle being passed to it in the keys
3129 queue is the active control handle (which windows needs), not
3132 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
3133 to support SendKeys on X.
3135 * X11Keyboard: Implement helper method to lookup a linux keycode
3136 given the virtual keycode. Added table of keycode-2-virtualkey
3137 values to support this.
3139 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3141 * ListView.cs: Add support for SelectedIndexCollection
3142 and SelectedItemCollection 2.0 methods. Implement support
3144 * ListViewItem.cs: Add support for ListViewSubItemCollection
3145 2.0 methods. Also, fix an incorrect behavior of AddRange method
3146 (it shouldn't call Clear).
3147 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
3149 2006-12-19 Jackson Harper <jackson@ximian.com>
3152 * TextBoxBase.cs: New args for FormatText
3153 * TextControl.cs: Rewrote the main drawing method, this version
3154 feels a little easier to understand and debug to me. Hopefully it
3156 - Fix FormatText to OR in the new formating values. Added
3157 FormatSpecified param, basically this works in the same way as
3158 BoundsSpecified in Control.
3159 - Set the caret properties when the caret is positioned.
3160 - When wrapping text make sure that we calculate the width of the
3162 - when calculating alignments we might have wrapped down to the
3163 next line, so don't search for an individual tag, search for the
3165 - We need to invalidate the selection area when we replace the
3168 2006-12-19 Daniel Nauck <dna@mono-project.de>
3170 * Application.cs: add Restart () 2.0 support
3172 2006-12-18 Everaldo Canuto <everaldo@simios.org>
3174 * MenuItem.cs: Invalidate menu item rectangle after change Enable
3175 property. Fixes #80268.
3177 2006-12-18 Everaldo Canuto <everaldo@simios.org>
3179 * MenuAPI.cs: Dont trigger select event when closes top menu
3182 2006-12-18 Everaldo Canuto <everaldo@simios.org>
3184 * MenuAPI.cs: When you click on menuitem only trigger onselect
3185 event for top menu itens. Fixes #80271.
3187 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
3189 * MdiWindowManager.cs: Make IconicBounds depend on
3190 the bottom of MdiClient, not the top (fixes #80267)
3192 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
3194 * MdiClient.cs: Added missing 2.0 attribute
3196 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3198 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
3199 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
3201 2006-12-18 Everaldo Canuto <everaldo@simios.org>
3203 * MenuAPI.cs: Fix click when menuitem is not popup,
3204 this regression was caused by last commit (#80272).
3206 2006-12-17 Everaldo Canuto <everaldo@simios.org>
3208 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
3209 fire click event or close menu. Fixes #80272.
3211 2006-12-17 Daniel Nauck <dna@mono-project.de>
3213 * ListViewHitTestInfo.cs: add
3215 2006-12-17 Daniel Nauck <dna@mono-project.de>
3217 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
3218 * FlatButtonAppearance.cs: add
3219 * DockingAttribute.cs: add
3221 2006-12-17 Chris Toshok <toshok@ximian.com>
3223 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
3224 and rebind our columns when it does - this way, if you make
3225 changes to the DataTable (or set the Table attribute on a DataView
3226 after setting it as the DataGrid's DataSource, the changes are
3227 made visible.) Fixes bug #80107.
3229 2006-12-17 Daniel Nauck <dna@mono-project.de>
3231 * ListViewGroup.cs: add internal Location property for layouting.
3232 * Theme.cs: add abstract ListViewGroupHeight function.
3233 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
3235 2006-12-16 Andreia Gaita <avidigal@novell.com>
3237 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
3238 Added reset of selected index to 0 when adding first tab page.
3241 * NumericUpDown.cs: Fix NET_2_0 check
3243 2006-12-16 Daniel Nauck <dna@mono-project.de>
3245 * ListViewGroup.cs: fixed DefaultValueAttribute value
3247 2006-12-16 Daniel Nauck <dna@mono-project.de>
3249 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
3251 2006-12-15 Miguel de Icaza <miguel@novell.com>
3253 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
3254 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
3255 ScrollableControl.cs: Add a handful of methods that are
3258 2006-12-15 Chris Toshok <toshok@ximian.com>
3260 * XplatUIWin32.cs: initial implementation of the Reversible
3261 drawing functions. there are some problems. DrawReversibleFrame
3262 doesn't seem to work at all for Dashed FrameStyle, and in the
3263 Thick case there are drawing errors at the corners (we probably
3264 need to bind Rectangle instead of doing moveto/lineto's.)
3266 2006-12-16 Andreia Gaita <avidigal@novell.com>
3268 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
3269 to send blocks of key messages. Send accumulates keys to send with Flush,
3270 while SendWait sends all keys immediately.
3272 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
3273 XplatUIX11.cs, XplatUIX11-new.cs:
3274 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
3276 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
3278 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
3279 testing for ms.net on this class is very tricky, as the tests run too fast
3280 to allow the hook to release, essentially freezing the keyboard and the
3281 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
3284 2006-12-16 Daniel Nauck <dna@mono-project.de>
3286 * Padding.cs: fixed serialization compability to MS ("_var" field names),
3287 added missing attributes.
3289 2006-12-15 Daniel Nauck <dna@mono-project.de>
3291 * ListViewGroup.cs: Added missing attributes.
3292 * ListViewGroupCollection.cs: Added missing attributes.
3294 2006-12-15 Daniel Nauck <dna@mono-project.de>
3296 * ListViewItem.cs: fixed ListViewSubItem text property.
3298 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
3300 * Control.cs: Added missing 2.0 attributes
3302 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
3304 * MdiClient.cs: Added missing 2.0 attribute.
3305 * MonthCalendar.cs: Added some missing 2.0 attributes
3308 2006-12-15 Daniel Nauck <dna@mono-project.de>
3310 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
3312 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
3314 * MainMenu.cs: Add the new 2.0 constructor to help out people
3315 using the MainMenu in VS2005.
3317 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
3319 * MdiChildContext.cs: Removed it, no longer used.
3320 * MdiClient.cs: Added missing 2.0 attributes.
3322 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
3324 * InternalWindowManager.cs: Fix a NullRef with previous
3325 changes for toolwindows.
3327 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
3330 - Added AfterTopMostControl to allow for certain controls
3331 to always stay on top when normal controls are brought to
3335 - (DrawInversibleRectangle): Get window rectangle from Win32
3336 in stead of from control, since Win32 doesn't calculate
3337 screen coords correctly from control's Location if it
3338 have docked siblings.
3340 * MdiWindowManager.cs:
3341 - Correct the control menu popup location when clicked on
3342 the maximized form icon. (fixes #80223.1)
3343 - Don't show moving rectangle if mouse hasn't moved from
3344 the original clicked point.
3345 - Removed FormGotFocus handler (not used).
3346 - Calculate the control buttons location from the main
3347 window's size and not client size (fixes #79770).
3348 - Form is now closed when the form icon is double-clicked
3350 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
3352 * InternalWindowManager.cs:
3353 - Moved some MDI-only methods to MdiWindowManager.
3354 - Removed unused properties and methods.
3355 - Unified method naming for methods handling wm messages.
3356 - Moved all message handling to seperate methods for
3359 * ThemeWin32Classic.cs:
3360 - DrawManagedWindowDecorations now draws the title bar
3361 with a gradient brush.
3362 - Add a CPDrawButtonInternal that allows us to specify
3363 light, normal and dark colors for the buttons (control
3364 buttons for MDI children were drawn with the same light
3365 color as the background, therefore loosing the 3D effect).
3368 - Add a CapturedControl property that is used to
3369 determine the control to resize (defaults to parent).
3370 Needed for MdiClient, since its SizeGrip's parent is
3371 MdiClient, but the control to resize is the main form.
3374 - Set SizeGrip's CapturedControl to the main form in order
3375 to resize the main form and not the MdiClient.
3376 - Override AfterTopMostControl to leave the scrollbars
3379 2006-12-15 Daniel Nauck <dna@mono-project.de>
3381 * ListView.cs: fixed ListViewItemCollection AddRange and
3382 implemented ListViewItemCollection AddRange 2.0 support.
3384 2006-12-15 Daniel Nauck <dna@mono-project.de>
3386 * ListViewGroup.cs: Add.
3387 * ListViewGroupCollection.cs: Add
3388 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
3389 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
3390 stub for ImageKey 2.0 support.
3392 2006-12-14 Mike Kestner <mkestner@novell.com>
3394 * ListView.cs: add text padding to the autocalculation for columns
3395 of width -2. Fixes #80207.
3397 2006-12-14 Mike Kestner <mkestner@novell.com>
3399 * ListView.cs: add some index guarding for partial row navigation
3400 logic. Fixes #80250.
3402 2006-12-14 Mike Kestner <mkestner@novell.com>
3404 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
3405 are added or inserted to the collection. Fixes #81099.
3407 2006-12-13 Everaldo Canuto <everaldo@simios.org>
3409 * MenuAPI.cs: Closes menu when right click out side of popup
3410 it fix problem in ContextMenu and MainMenu. Fixes #80252.
3412 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3414 * ListViewItem.cs: Fix dumb error.
3416 * ListView.cs: Add Find and ContainsKey methods in
3417 ListViewItemCollection, and also return true for IsReadOnly
3418 and IsFixedSize (changes for 2.0).
3420 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
3422 * Control.cs: Allow Region to be set to null.
3424 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
3426 * MdiWindowManager.cs: Remove unused (commented out) code.
3427 * Form.cs: When the MdiChild is maximized, the form needs
3428 WM_NCMOUSELEAVE, so request it.
3429 * InternalWindowManager.cs:
3430 - Added tooltips to control buttons.
3431 - Removed duplicated control button handling code.
3432 - Removed unused (commented out) code.
3434 2006-12-12 Everaldo Canuto <everaldo@simios.org>
3436 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
3437 was used because we must set cursor without trigger ChangeCursor event
3438 and without change Cursor control property. Fixes #79963.
3440 2006-12-12 Andreia Gaita <avidigal@novell.com>
3442 * Control.cs: Check if Region setter value is null, and ignore
3444 2006-12-12 Jackson Harper <jackson@ximian.com>
3446 * TextControl.cs: We were almost always drawing one more line then
3447 needed, since the GetLineByPixel will return the last line found
3448 at that pixel. In most cases though, we were invalidating up to
3449 the junction between two lines.
3450 - Improve debug code.
3452 2006-12-12 Chris Toshok <toshok@ximian.com>
3454 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
3455 and FillReversibleRectangle.
3457 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
3458 and FillReversibleRectangle.
3460 * XplatUIWin32.cs: add stubs which do nothing for
3461 DrawReversibleFrame, DrawReversibleLine, and
3462 FillReversibleRectangle.
3464 * XplatUIOSX.cs: add stubs which raise NIE for
3465 DrawReversibleFrame, DrawReversibleLine, and
3466 FillReversibleRectangle.
3468 * XplatUIX11.cs: add working implementation for
3469 DrawReversibleFrame, DrawReversibleLine, and
3470 FillReversibleRectangle.
3472 * ControlPaint.cs: implement DrawReversibleFrame,
3473 DrawReversibleLine, and FillReversibleRectangle, by calling into
3474 the appropriate XplatUI method.
3476 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
3478 * Form.cs: Make MdiClient have the focus even if it's
3479 not selectable, since it should receive WM_KEY* and WM_MOUSE
3480 messages. Fixes #79907.
3482 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
3484 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
3485 queried after the window is created.
3487 * XplatUIX11.cs: Added SendParentNotify to implement
3488 WM_PARENTNOTIFY logic. Fixes #79965.
3490 * Control.cs: Added MakeParam.
3492 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
3494 * MdiClient.cs: Resume Layout before setting window
3495 states (fixes #80201).
3497 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
3499 * MenuAPI.cs: Deselect a menu item after performing
3500 the click (fixes #80197).
3502 2006-12-11 Jackson Harper <jackson@ximian.com>
3504 * TextBoxBase.cs: We need to cap this value, since Maximum -
3505 ViewPortHeight can be less than zero.
3506 - Only do selection with the left mouse button.
3507 * TextBox.cs: Don't tell the world that we have a context menu.
3508 * Control.cs: New method so that we can control whether or not the
3509 context menu is visible outside MWF.
3511 2006-12-11 Everaldo Canuto <everaldo@simios.org>
3513 * ToolBarButton.cs: Fix text positon.
3515 2006-12-11 Miguel de Icaza <miguel@novell.com>
3517 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
3519 * Control.cs (DoubleBuffered): Add implementation.
3521 * Application.cs (OpenForms): Add.
3523 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
3525 * Form.cs: Use opacity instead of Opactiy to determine if we need
3526 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
3528 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
3530 * Control.cs: Fix NRE if Control.Site was set to null.
3532 2006-12-11 Chris Toshok <toshok@ximian.com>
3534 * Control.cs: ControlCollection.Remove should return if the arg is
3535 null, and ControlCollection.SetChildIndex should raise a ANE.
3537 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
3539 * Control.cs: Verify value set for Dock property. Code formatting
3542 2006-12-11 Jackson Harper <jackson@ximian.com>
3544 * TextControl.cs: Draw the caret and the selection when a flag is
3546 * TextBoxBase.cs: We want to draw the caret and the selection for
3547 TextBox but not for TextBoxBase.
3548 - If the window is resized and scrolling is no longer needed (the
3549 whole doc is visible) set the scroll position to zero.
3550 - The default SelectWord (the one TextBox uses) should move the
3551 caret to the end of the word.
3552 - SelectAll moves the caret to the end of the selection.
3553 * TextBox.cs: We don't selectall on focus, we just do it when the
3556 2006-12-11 Mike Kestner <mkestner@novell.com>
3558 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
3560 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3562 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
3564 * ListViewItem.cs: Add Name 2.0 property.
3566 2006-12-11 Andreia Gaita <avidigal@novell.com>
3568 * TabControl.cs: Set visibility on selected or default tab
3569 when tabcontrol handle is created, so that it's contents
3570 actually show up (duh). Fixes #80193
3571 Don't redraw the control if there is no handle created, as
3572 the selected index might be completely invalid. Added some tests
3575 2006-12-11 Everaldo Canuto <everaldo@simios.org>
3577 * ToolBar.cs: Uses maximun width and height of all buttons as
3578 button rectangle when ButtonSize specified, it looks strange but
3579 is what happens in Win32. Fixes #80189.
3581 2006-12-11 Jackson Harper <jackson@ximian.com>
3583 * TextControl.cs: Need to track undo levels ourself, since
3584 compound actions will mess them up.
3586 2006-12-10 Andreia Gaita <avidigal@novell.com>
3588 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
3589 SelectedIndex value is changed (even if it's not valid).
3590 Reset SelectedIndex to 0 when the handle is created and if
3591 the current index is invalid.
3592 Fixes SelectdeIndex unit tests and #80128
3594 2006-12-08 Chris Toshok <toshok@ximian.com>
3596 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
3597 calls EndEdit, it needs to be called before we set current_cell to
3598 its new value. Otherwise, we end up committing the value in the
3599 textbox to the new cell as well. Fixes bug #80160.
3601 2006-12-08 Chris Toshok <toshok@ximian.com>
3603 * Form.cs (set_CancelButton): if the button's DialogResult is
3604 None, set it to Cancel. Fixes bug 80180.
3606 2006-12-08 Jackson Harper <jackson@ximian.com>
3608 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
3609 to watch ourselves when setting the canvas size and setting the
3612 2006-12-08 Chris Toshok <toshok@ximian.com>
3614 * DataGrid.cs: comment out the two MakeTransparent calls for the
3615 time being so people using trunk (and not 1.2.2) on windows can
3616 actually use the datagrid. This deals with bug #80151.
3618 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
3620 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
3621 Graphics.DrawImage (image, int, int, int, int) overload instead
3622 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
3623 the dpi difference and was blurring images it drew.
3626 2006-12-08 Chris Toshok <toshok@ximian.com>
3628 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
3629 rowcnt is 0 (such as with an empty datasource), and make sure we
3630 initialize not_usedarea.Y to cells.Y, so we don't draw over the
3631 other areas (caption, parent row, etc, etc). Fixes bug #80095.
3633 2006-12-08 Chris Toshok <toshok@ximian.com>
3635 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
3638 2006-12-08 Chris Toshok <toshok@ximian.com>
3640 [ Fixes bug #80167 ]
3642 * ThemeWin32Classic.cs: don't draw the image if the button's flat
3643 style is FlatStyle.System.
3645 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
3646 ButtonBase.flat_style private, and switch uses of it to the public
3649 2006-12-08 Chris Toshok <toshok@ximian.com>
3651 [ Fixes bug #80121 ]
3653 * ThemeWin32Classic.cs: center the caption text in the datagrid
3656 * DataGrid.cs: lessen the amount we add to the caption height from
3657 6 to 2. 6 was making it huge.
3659 2006-12-08 Andreia Gaita <avidigal@novell.com>
3661 * UpDownBase: Handle MouseWheel call directly instead of capturing
3662 the inner textbox's OnMouseWheel. Fixes #80166
3664 2006-12-08 Jackson Harper <jackson@ximian.com>
3666 * TextControl.cs: We need to invalidate the textbox when we empty
3667 it (how had this not been discovered before?)
3669 2006-12-08 Jackson Harper <jackson@ximian.com>
3671 * TextBoxBase.cs: Reworked the mouse down code so I could get it
3672 to behave like MS, we now ignore the eventargs.Click and just
3673 track state ourself, which we were already doing anyways.
3674 - Constrain the double click handler to the double click size.
3676 2006-12-08 Chris Toshok <toshok@ximian.com>
3678 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
3679 direction if that scrollbar isn't shown. fixes bug #80158.
3681 2006-12-08 Andreia Gaita <avidigal@novell.com>
3683 * NumericUpDown.cs: Update value on getter. Fixes #79950
3685 2006-12-08 Chris Toshok <toshok@ximian.com>
3687 * MenuItem.cs: add back in the event cloning code. I didn't know
3688 how to do it in the face of the EventHandlerList work i'd done
3689 last week. Fixes bug #80183.
3691 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
3693 * Control.cs: Add an invalidate to the BackgroundImage setter.
3696 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
3698 * ToolStrip*: Add some small properties reported by MoMA, fix event
3699 firing and default properties based off of unit tests, and add some
3700 attributes based off of the class status page.
3702 2006-12-07 Jackson Harper <jackson@ximian.com>
3704 * TextBoxBase.cs: Take HideSelection into account when determining
3705 whether or not to show the selection.
3706 * RichTextBox.cs: After inserting the RTF into the document move
3707 the cursor to the beginning of the document.
3709 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
3711 * Control.cs: Remove static ArrayList "controls" which maintained
3712 a reference to every control created.
3713 * Application.cs: Create a static FormCollection to maintain a reference
3714 to every form created. Use it in places that formerly enumerated through
3715 the controls one looking for forms.
3716 * Form.cs: Add and remove self from above FormCollection.
3718 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
3720 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
3721 not libgdk (though it makes me wonder why I didn't have any
3724 2006-12-07 Chris Toshok <toshok@ximian.com>
3726 [ you had to know this was coming after that last commit...]
3728 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
3729 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
3730 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
3733 2006-12-07 Chris Toshok <toshok@ximian.com>
3735 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
3736 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
3737 all the behavior we need for double buffering.
3739 * XplatUIDriver.cs: implement the 3 double buffer methods using a
3740 client side Bitmap, just like the old Control-based double buffer
3741 code did. The methods are virtual, so each XplatUI driver
3742 subclass can replace the implementation to use a faster, platform
3745 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
3746 double buffer code, and clean things up a bit in the process.
3748 2006-12-06 Chris Toshok <toshok@ximian.com>
3750 * Control.cs: reindent WndProc.
3752 2006-12-06 Chris Toshok <toshok@ximian.com>
3754 [ I wanna be like BenM when I grow up ]
3756 * Hwnd.cs: create a single static Graphics object on the static
3757 Bitmap we create. use this for our text measurements.
3759 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
3760 This was causing us to allocate a backbuffer for every control,
3761 even when it wasn't flagged as double buffered. Instead use the
3762 single graphics instance. This might have implications for
3763 multithreaded applications. If we run into problems we can switch
3764 to creating 1 Graphics per control, on the static Hwnd bitmap.
3766 this change nets us a 7M savings in private dirty mappings when
3767 running FormsTest.exe.
3769 2006-12-06 Chris Toshok <toshok@ximian.com>
3771 * ListView.cs: the BackgroundImage override is just to set
3772 attributes. chain up to base.BackgroundImage.
3774 * RichTextBox.cs: same.
3776 * ToolBar.cs: same, but we need to also redraw the toolbar when it
3777 changes, so instead a handler for BackgroundImageChanged.
3779 * Control.cs: make background_image private.
3781 2006-12-06 Chris Toshok <toshok@ximian.com>
3783 * ScrollBar.cs: change the assignment of cursor to Cursor. not
3784 sure we even need this assignment, but roll with it for now.
3786 * Control.cs: make the cursor field private.
3788 2006-12-06 Chris Toshok <toshok@ximian.com>
3790 * Form.cs: we don't need to explicitly set ImeMode to
3791 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
3792 behavior in the face of ImeMode.Inherit.
3794 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
3795 change the ctor's assignment to use ImeMode instead of ime_mode.
3797 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
3798 ImeModeInherit. Only check for the parent's imemode (and return
3799 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
3800 This fixes the button unit test, which sets both ImeMode and
3801 DefaultImeMode to ImeMode.Disable.
3803 also make the ime_mode field private.
3805 2006-12-06 Chris Toshok <toshok@ximian.com>
3807 * Control.cs: make control_style private.
3809 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
3810 setting the styles to true, then setting them to false instead of
3811 reverting to their previous values.
3813 also, call SetStyle on the scrollbars instead of using
3814 control_style directly.
3816 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
3818 * FormCollection.cs: Implement. [2.0]
3820 2006-12-06 Chris Toshok <toshok@ximian.com>
3822 * Control.cs: make tab_stop private.
3824 * Label.cs: set TabStop, not tab_stop. reformat some event
3825 add/remove methods to make them more compact.
3827 2006-12-06 Chris Toshok <toshok@ximian.com>
3829 * RadioButton.cs: fix TabStop handling.
3831 2006-12-06 Chris Toshok <toshok@ximian.com>
3833 * TextBox.cs: remove the explicit assignments to has_focus.
3836 * ButtonBase.cs: remove the assignment to has_focus. Control will
3839 2006-12-06 Chris Toshok <toshok@ximian.com>
3841 * ButtonBase.cs: remove all uses of is_enabled from this code.
3842 it's always true when any of the code containing the checks is
3845 2006-12-06 Chris Toshok <toshok@ximian.com>
3847 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
3848 with different semantics (some are present in both 1.1 and 2.0
3849 profiles) so that we match MS's behavior in our unit tests.
3851 2006-12-06 Jackson Harper <jackson@ximian.com>
3853 * TextControl.cs: Make this operation undoable.
3854 * TextBoxBase.cs: Factor the border width into the preferred
3856 - implement Modified as per the spec.
3858 2006-12-06 Chris Toshok <toshok@ximian.com>
3860 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
3862 2006-12-06 Chris Toshok <toshok@ximian.com>
3864 * Control.cs: make right_to_left and context_menu fields private.
3866 2006-12-06 Chris Toshok <toshok@ximian.com>
3868 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
3869 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
3870 Control.child_controls private. switch all uses over to
3873 2006-12-06 Chris Toshok <toshok@ximian.com>
3875 * System.Windows.Forms/GroupBox.cs,
3876 System.Windows.Forms/AccessibleObject.cs,
3877 System.Windows.Forms/ErrorProvider.cs,
3878 System.Windows.Forms/Control.cs,
3879 System.Windows.Forms/UpDownBase.cs,
3880 System.Windows.Forms/ScrollBar.cs,
3881 System.Windows.Forms/DateTimePicker.cs,
3882 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
3883 System.Windows.Forms/ToolTip.cs,
3884 System.Windows.Forms/RadioButton.cs,
3885 System.Windows.Forms/LinkLabel.cs,
3886 System.Windows.Forms/Splitter.cs,
3887 System.Windows.Forms/TextBoxBase.cs,
3888 System.Windows.Forms/ToolStripTextBox.cs,
3889 System.Windows.Forms/ContainerControl.cs,
3890 System.Windows.Forms/ThemeWin32Classic.cs,
3891 System.Windows.Forms/SizeGrip.cs,
3892 System.Windows.Forms/ToolStripDropDown.cs,
3893 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
3894 private. switch all uses over to Control.Parent.
3896 2006-12-06 Chris Toshok <toshok@ximian.com>
3898 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
3899 Control does this before calling emitting these events.
3901 * TabControl.cs: same.
3903 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
3904 Control.client_rect.
3906 * ButtonBase.cs: use the ClientSize property instead of the
3909 * ScrollableControl.cs: same.
3911 * Control.cs: another pass at making properties private. also,
3912 move the initialization of tab_stop to the ctor.
3914 2006-12-05 Andreia Gaita <avidigal@novell.com>
3916 * TabControl.cs: Let the selected index be set freely if the
3917 control handle is not yet created.
3919 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
3921 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
3922 internal until I can rewrite DefaultLayout.
3923 * ToolStrip.cs: Fix build error and some general cleaning.
3924 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
3925 Fix build errors caused by making some of Control's fields private.
3927 2006-12-05 Jackson Harper <jackson@ximian.com>
3929 * TextControl.cs: Redo Insert a little so that it use IndexOf
3930 instead of Split, this prevents it from messing up on things like
3931 \n\n\n. Also more effecient since the split array doesn't need to
3933 * TextBoxBase.cs: AppendText doesnt handle multiline and non
3934 multiline text differently, this is the first of many fixes that
3935 will make multiline/non-multiline the same thing as far as the
3936 TextBoxBase is concerned.
3937 - Don't split the text and insert lines, this can lose some line
3938 endings (like is the last line a soft or hard break). Instead use
3940 - Fix an off by one when combining all the lines in the Text
3942 - Remove separate multiline handling from the Text getter/setter.
3944 2006-12-05 Chris Toshok <toshok@ximian.com>
3946 * ButtonBase.cs: a few changes:
3948 - don't reinitialize internal Control fields in the ctor when they
3949 have the same values as Control sets them.
3951 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
3952 this before calling those methods.
3954 - we don't need to call Refresh for anything. use Invalidate
3957 - OnEnabledChanged doesn't need to redraw at all - Control.cs
3958 calls Refresh in its OnEnabledChanged.
3960 - several of the events we were registered for in the ctor to
3961 redraw ourselves already include calls to Invalidate in the
3962 property setters that raise the events. remove the extra
3965 - reformat a switch statement that was 83274658 columns wide.
3967 2006-12-05 Mike Kestner <mkestner@novell.com>
3969 * ComboBox.cs: fix a unit test regression from a TextBox
3970 SelectionLength return of -1 when there's no selection.
3972 2006-12-05 Chris Toshok <toshok@ximian.com>
3974 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
3975 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
3976 cleaning up some of the internal Control fields being used by
3979 2006-12-05 Mike Kestner <mkestner@novell.com>
3981 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
3982 listbox after AddImplicit calls since it defaults to hidden. Add a
3983 hack to preserve requested heights across DropDownStyle changes.
3985 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
3987 * PropertyGrid.cs: Hide FindFirstItem method from public API.
3989 2006-12-05 Chris Toshok <toshok@ximian.com>
3991 * DataGridView.cs: fix compiler warnings.
3993 * PrintControllerWithStatusDialog.cs: same.
3997 * FolderBrowserDialog.cs: same.
3999 * Splitter.cs: same.
4001 * DataGridViewComboBoxCell.cs: same.
4003 * XplatUIWin32.cs: same.
4005 * PictureBox.cs: same.
4007 * Win32DnD.cs: same.
4009 * PageSetupDialog.cs: same.
4011 * FileDialog.cs: same.
4013 * PrintDialog.cs: same.
4015 * DataGridTextBoxColumn.cs: same.
4017 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
4019 2006-12-05 Chris Toshok <toshok@ximian.com>
4021 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
4022 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
4023 System.ComponentModel.EventHandlerList work.
4025 2006-12-05 Jonathan Chambers <joncham@gmail.com>
4027 * DrawTreeNodeEventArgs.cs: Added.
4029 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
4031 * InternalWindowManager.cs: Remove an unused field.
4033 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
4035 * InternalWindowManager.cs:
4036 - Save the point where the title bar is clicked.
4038 * MdiWindowManager.cs:
4039 - Only allow moving of the window as long as the
4040 clicked point on the title bar does not get out of
4041 MdiClient's rectangle. Fixes #79982.
4044 - Added Horizontal/VerticalScrollbarVisible.
4045 - Simplified the scrollbar sizing algorithm.
4046 - Cache the difference in scrolled value in
4047 H/VBarValueChanged and move the calculation out
4050 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
4052 * Control.cs: Make the Console.WriteLine in WndProc
4055 2006-12-05 Chris Toshok <toshok@ximian.com>
4057 * ToolStripManager.cs, ToolStripButton.cs,
4058 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
4059 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
4060 ToolStripSplitButton.cs, ToolStripSeparator.cs,
4061 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
4062 ToolStripProgressBar.cs, ToolStripContainer.cs,
4063 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
4064 to using System.ComponentModel.EventHandlerList.
4066 2006-12-04 Chris Toshok <toshok@ximian.com>
4068 * LinkLabel.cs: fix up compiler warnings.
4070 * TableLayoutSettings.cs: same.
4072 * TreeView.cs: same.
4076 * TabControl.cs: same.
4078 * RichTextBox.cs: same.
4080 * ListViewItem.cs: same.
4082 * PropertyGrid.cs: same.
4084 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
4088 * TextRenderer.cs: fix up compiler warnings.
4092 * Form.cs: corcompare fixes.
4094 * PictureBox.cs: fix up compiler warnings.
4096 * ImageListStreamer.cs: same.
4098 * TrackBar.cs: corcompare fix.
4100 * Control.cs: fix up compiler warnings.
4102 * SplitterPanel.cs: same.
4104 * NumericTextBox.cs: same.
4106 * ImageList.cs: same.
4108 * StatusStrip.cs: same.
4110 * ProgressBar.cs: corcompare fix.
4112 * ToolStripButton.cs: fix up compiler warnings.
4114 * ToolStripStatusLabel.cs: same.
4116 * ToolStripSplitButton.cs: same.
4118 * ToolStripSeparator.cs: same.
4120 * ToolStripProgressBar.cs: same.
4122 * ToolStripDropDownMenu.cs: same
4124 * ToolStripDropDown.cs: same.
4126 * ToolStripDropDownButton.cs: same.
4128 * ToolStrip.cs: same.
4130 * ToolStripControlHost.cs: same.
4132 * ToolStripContentPanel.cs: same.
4134 * ToolStripDropDown.cs: same.
4136 * ToolStripContainer.cs: same.
4138 * ToolStripPanel.cs: same, and add "new" where we need it to work
4139 with the new ArrangedElementCollection.
4141 * ToolStripItemCollection.cs: add "new" where we need it to work
4142 with the new ArrangedElementCollection.
4144 2006-12-04 Andreia Gaita <avidigal@novell.com>
4146 * TabControl.cs: Fix default tab selection to after TabControl
4147 gets focus and not before. Fixes #80128
4149 2006-12-04 Chris Toshok <toshok@ximian.com>
4151 * DataGridTableStyle.cs: remove the gross calling of
4152 datagrid.Refresh from here. It's a broken idea and it doesn't
4155 * DataGrid.cs: instead, just register/unregister from the
4156 DataGridTableStyle events in CurrentTableStyle. we play it
4157 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
4158 even though some would most likely not require it. Fixes bug
4159 #80115 (and one portion of #80117 as a side effect).
4161 2006-12-04 Chris Toshok <toshok@ximian.com>
4163 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
4164 so the textbox (if any) goes away. Fixes bug #80117.
4166 2006-12-04 Chris Toshok <toshok@ximian.com>
4168 * DataGridColumnStyle.cs: set the column's readonly property
4169 initially based on the property descriptor's IsReadOnly. Fixes
4172 2006-12-04 Chris Toshok <toshok@ximian.com>
4174 * ComboBox.cs: wrap the dropdown style changing work in
4175 SuspendLayout/ResumeLayout. Fixes bug #79968.
4177 2006-12-04 Jackson Harper <jackson@ximian.com>
4179 * TextBoxBase.cs: Fix off by one, since these are one-based.
4180 * TextBox.cs: Select all the text when we get focus. The TextBox
4181 does this but the RTB does not.
4183 2006-12-04 Chris Toshok <toshok@ximian.com>
4185 * DataGridTextBoxColumn.cs: remove some spew.
4187 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
4188 but some part of me is saying "it shouldn't be here.." At any
4189 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
4192 2006-12-04 Chris Toshok <toshok@ximian.com>
4194 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
4195 to reassign the propertydescriptor.
4197 2006-12-04 Jackson Harper <jackson@ximian.com>
4200 * TextControl.cs: Remove some unused variables. Maybe this will
4201 patch things up between mike and I.
4202 - don't split lines less then one char wide, if the viewport is
4203 that small text won't be visible anyways.
4205 2006-12-04 Jackson Harper <jackson@ximian.com>
4207 * TextBoxBase.cs: Default selection length is -1, need to do some
4208 more testing on windows to see when this is used for the property.
4209 - Redid the Lines [] property to that we properly remove soft line
4211 - added support for preserving carriage returns
4212 - CanUndo is not a variable like 'is undo enabled' it just returns
4213 true if there is undo operations available.
4214 - AppendText doesn't need to grab the last tag itself anymore,
4215 this happens automatically when we move the cursor.
4216 * TextControl.cs: Add CompoundActions to the undo class. This
4217 allows combining the other operations into one big option. ie a
4218 paste will combine { delete old, insert new, move cursor }
4219 - Add InsertString undo operation
4220 - New method for deleting multiline text
4221 - Add carriage returns to lines. So we can preserve carriage
4222 returns when text is 'roundtripped'
4224 2006-12-04 Chris Toshok <toshok@ximian.com>
4226 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
4227 minimum 0. Fixes the scrollbar exception in bug #80136.
4229 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
4232 * MdiWindowManager: Removed unused fields and methods.
4234 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
4236 * StatusBar.cs: Update all panels when a AutoSize=Contents
4237 panel needs updating.
4239 * StatusBarPanel.cs: Remove twidth and only use initialize.
4242 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
4244 * Form.cs: When a form's MdiParent is set add it directly
4245 on top of the z-order in stead of relying on MdiClient's
4246 ActivateChild to do it. Fixes #80135.
4249 - Remove original_order, mdi_child_list is already doing
4251 - Create mdi_child_list on construction in
4252 stead of first use (avoids a few null checks).
4254 * MenuItem.cs: Use an already existing list of mdi children
4255 to get the correct order of children and remove the other
4258 2006-12-04 Chris Toshok <toshok@ximian.com>
4260 * PropertyGridView.cs: cached_splitter_location is only used in
4263 * PropertyGrid.cs: implement the ComComponentNameChanged event
4264 using Events, hoping that would fix the warning. Looks like a
4265 compiler bug instead (#80144).
4267 * PropertyManager.cs: remove unused method.
4269 2006-11-04 Everaldo Canuto <everaldo@simios.org>
4271 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
4272 include parentesis to fix expression evaluation. Fixes #79634.
4274 2006-11-02 Everaldo Canuto <everaldo@simios.org>
4277 - Changes to fix behavior in Menu control, some reported in #80097
4278 and other detected during behavior refactory like a select event
4280 - Remove unneded "if's" conditions.
4281 - Created an internal to flag when popup is active in control, we need
4282 it because in .NET you can have menu active but without popup active
4283 when you active menu using popup without visible items.
4284 - Mimic win32 behavior for Select and Popup events.
4285 - Dont open popup menu when you dont have visible subitems.
4286 - Do nothing when click on disabled menu item.
4287 - Some small changes to follow the coding style guidelines.
4288 - Unselect menu only when another control gives focus. Fixes #80097.
4289 - Remove unused code.
4291 * MenuItem.cs: internal VisibleItems method to check if menu
4292 theres visible subitems, it will be usefull to fix some
4293 behavior in Menu control.
4295 2006-11-01 Everaldo Canuto <everaldo@simios.org>
4297 * Timer.cs: Tag property for 2.0 profile.
4299 2006-12-01 Chris Toshok <toshok@ximian.com>
4301 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
4303 * Win32DnD.cs: comment out some unused fields.
4305 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
4306 some unused properties/methods.
4308 * XplatUIX11.cs: fix MousePosition so we override the base class's
4309 property instead of conflicting with it.
4311 * PictureBox.cs: comment out some unused fields
4313 * OSXStructs.cs: make some struct fields public.
4315 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
4316 MousePosition so we override the base class's property instead of
4317 conflicting with it.
4319 * X11Dnd.cs: comment out some unused fields
4321 * X11DesktopColors.cs: fix some struct field visibility to quiet
4324 * X11Dnd.cs: remove some debug code.
4326 * ThemeClearlooks.cs: comment out unused field.
4328 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
4330 * ThemeGtk.cs: comment out some unused pinvokes.
4332 * Timer.cs: remove some unused fields.
4334 * ThemeClearlooks.cs: comment out unused field.
4336 * UpDownBase.cs: comment out unused field.
4338 * DataObject.cs: comment out unused field.
4340 * DataGridBoolColumn.cs: reomve unused field.
4342 * DataGrid.cs: remove unused field.
4344 * Cursor.cs: remove old ToBitmap code.
4346 * ControlPaint.cs: remove unused method.
4348 * ScrollBar.cs: remove unused fields.
4350 * ComboBox.cs: remove unused field, and chain up to
4351 AccessibleObject ctor.
4353 * ListBox.cs: remove unused field.
4355 * ButtonBase.cs: wrap a couple fields in NET_2_0.
4357 * GridEntry.cs: remove unused fields.
4359 * Binding.cs: remove unused fields.
4361 * AxHost.cs: remove unused method.
4363 * ContainerControl.cs: remove unused field.
4365 * ScrollableControl.cs: remove unused fields.
4367 2006-12-01 Chris Toshok <toshok@ximian.com>
4369 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
4370 the Where/WhereString stuff. it's easy enough to CWL
4371 Environment.StackTrace.
4373 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
4374 unused private fields.
4376 2006-12-01 Jackson Harper <jackson@ximian.com>
4378 * TextControl.cs: Do not update the view while inserting multiline
4379 text. If we update the view we might wrap lines, before entering
4380 the new lines, which causes the new line insertion calculations to
4382 - Remove an old TODO
4383 - Make debug output a little nicer
4385 2006-12-01 Chris Toshok <toshok@ximian.com>
4387 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
4389 2006-12-01 Chris Toshok <toshok@ximian.com>
4391 [ fix the majority of the CS0108 warnings we've been suppressing ]
4393 * TreeView.cs: mark BackgroundImageChanged as 'new'.
4395 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
4396 to "LayoutToolBar" to quiet mcs.
4398 * TabControl.cs: mark our ControlCollection class as 'new'.
4400 * TextBoxBase.cs: mark some events as 'new'.
4402 * Splitter.cs: TabStop is 'new'.
4404 * ControlBindingsCollection.cs: mark a few methods as new since
4405 they change the visibility from protected to public.
4407 * RadioButton.cs: DoubleClick -> base class, and remove unused
4410 * MonthCalendar.cs: ImeMode property -> base class, and mark many
4413 * NumericUpDown.cs: TextChanged -> base class.
4415 * CheckedListBox.cs: mark our ObjectCollection class as new to
4418 * FolderBrowserDialog.cs: make HelpRequest event new and have it
4419 muck with the base class.
4421 * StatusBar.cs: fix some mcs warnings about Update being the same
4422 name as a base class method.
4424 * RichTextBox.cs: mark some events as new, and make them do things
4425 to the base class impl.
4427 * UserControl.cs: mark TextChanged as new, and have it manipulate
4430 * UpDownBase.cs: mark some things new.
4432 * CheckBox.cs: mark DoubleClick "new", and add some text about
4433 what we need to look at.
4435 * Panel.cs: make the events "new", and manipulate the base
4436 version. these are just here for attributes.
4438 * AccessibleObject.cs: make owner private.
4440 * Control.cs: deal with AccessibleObject.owner being private.
4441 cache our own copy if we need it.
4443 * Button.cs: add "new" to the DoubleClickEvent.
4445 * ListBox.cs: no need to track our own has_focus here. let
4446 Control.has_focus do it for us. Also some other work to clear up
4447 warnings about not overriding base class methods of the same name.
4449 * ComboBox.cs: clear up some warnings about not override base
4450 class methods of the same name.
4452 2006-12-01 Chris Toshok <toshok@ximian.com>
4454 * Form.cs: flag a few things as "new" to quiet some of the mcs
4459 * PrintPreviewDialog.cs: same.
4461 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
4462 now DGV isn't so horrible on the class status page. also, move
4463 all events to using System.ComponentModel.EventHandlerList. my
4466 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
4468 * MdiWindowManager.cs:
4469 - Set form to active mdi child if shown,
4470 and update the active mdi child to the next
4471 remaining child in the z-order if the form is hidden.
4474 - Track if the form has been visible and if its
4475 visibility is beeing changed, so that the MdiClient
4476 can properly decide the ActiveMdiChild. The MdiClient
4477 cannot track this since the form can change visibility
4478 before MdiClient is created.
4481 - Don't activate anything of the parent form is changing
4483 - Rework ActiveMdiChild to only return visible mdi
4484 children and take into account several other corner
4487 2006-12-01 Chris Toshok <toshok@ximian.com>
4489 * IBindableComponent.cs: new 2.0 interface.
4491 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
4493 * DataGrid.cs: Font for caption area is bold by default.
4495 2006-12-01 Everaldo Canuto <everaldo@simios.org>
4497 * Menu.cs: Tag property for 2.0.
4499 2006-11-01 Everaldo Canuto <everaldo@simios.org>
4501 * ThemeWin32Classic.cs: Adjust menu separator drawing.
4503 2006-12-01 Chris Toshok <toshok@ximian.com>
4505 * TreeView.cs: doh, the Begin* events should be
4506 TreeViewCancelEventHandler.
4508 2006-12-01 Chris Toshok <toshok@ximian.com>
4510 * Form.cs: Form.ControlCollection already stores off the
4511 form_owner field. don't access the base class's internal "owner"
4514 * Control.cs: make all the fields in Control.ControlCollection
4515 private. there's no need for any internal fields here.
4517 2006-12-01 Chris Toshok <toshok@ximian.com>
4519 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
4520 OnHandleCreated. Fixes bug #80109.
4522 2006-12-01 Chris Toshok <toshok@ximian.com>
4524 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
4525 SplitContainer.cs, Control.cs, StatusStrip.cs,
4526 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
4527 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
4528 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
4529 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
4530 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
4531 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
4532 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
4533 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
4534 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
4535 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
4537 do most of the work to convert our code over to use
4538 System.ComponentModel.Component.Events for
4539 adding/removing/dispatching events.
4542 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
4544 * DataGridView.cs: Fix an ArgumentNullException reported
4547 2006-11-30 Mike Kestner <mkestner@novell.com>
4549 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
4550 grabbed listbox. Fixes #80036 and #80101.
4552 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
4554 * Message.cs: Changed ToString() to match MS.
4556 2006-11-30 Jackson Harper <jackson@ximian.com>
4558 * TextBoxBase.cs: You can still change the selected text on a read
4560 * TextControl.cs: Lower magic number for wrap calculations. This
4561 lets text get closer to the right (far) edge.
4563 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
4565 * Control.cs: Tweak 2.0 layout properties.
4566 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
4567 * TextRenderer.cs: Add a new overload.
4568 * ToolStrip*: Huge amount of changes and new features.
4570 2006-11-30 Mike Kestner <mkestner@novell.com>
4572 * ComboBox.cs: fixes for LargeChange and Maximum to get the
4573 scroll range correct. Fixes #79994.
4575 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
4577 * MdiWindowManager.cs: Update main form's text when
4578 a form is closed. (fixes #80038)
4580 2006-11-30 Everaldo Canuto <everaldo@simios.org>
4583 - Fix an regression in ButtonSize.
4584 - Get ImeMode default value change to "Disable".
4585 - Get ShowTooltips default value change to true, default value is
4586 "false" but after make a test in .NET we get "true" result as default.
4588 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
4590 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
4592 2006-11-29 Chris Toshok <toshok@ximian.com>
4594 * XplatUIWin32.cs (GetWindowTransparency): check return value of
4595 GetLayeredWindowAttributes. if it's 0, return 1.0, as
4596 SetWindowTransparency hasn't been called.
4598 2006-11-29 Chris Toshok <toshok@ximian.com>
4600 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
4602 (set_AllowTransparency): reorder things a little so that the
4603 WS_EX_LAYERED style is removed properly.
4605 2006-11-29 Chris Toshok <toshok@ximian.com>
4607 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
4609 * Form.cs: only call the XplatUI transparency method (get/set) if
4610 SupportsTransparency says it's supported. Otherwise fallback to
4611 doing nothing (in the set case) or returning the instance field we
4612 cache (in the get case).
4614 * XplatUIStructs.cs: add TransparencySupport flag enum.
4616 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
4617 change to SupportsTransparency.
4619 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
4620 TransparencySupport.None from SupportsTransparency.
4622 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
4623 TransparencySupport.Set from SupportsTransparency.
4625 * XplatUIWin32.cs: implement GetWindowTransparency calling
4626 GetLayeredWindowAttributes, and implement SupportsTransparency by
4627 checking whether or not both
4628 GetWindowTransparency/SetWindowTransparency are available
4629 entrypoints. We need to do this since SetWindowTransparency is
4630 available as of win2k, but GetWindowTransparency requires winxp.
4633 * XplatUI.cs: Add GetWindowTransparency, and change
4634 SupportsTransparency to allow for either/both Get/Set.
4636 2006-11-29 Chris Toshok <toshok@ximian.com>
4638 * DataGrid.cs: keep from going into an infinite loop redrawing a
4639 datagrid that has no datasource. Fixes bug #80033.
4641 2006-11-29 Chris Toshok <toshok@ximian.com>
4643 * MenuItem.cs: fix the NRE when we assign text (and therefore call
4644 Invalidate) before the mainmenu has been assigned to a control.
4646 2006-11-29 Chris Toshok <toshok@ximian.com>
4648 * DataGrid.cs: detect when we should be double the double click
4649 row/column autosize stuff, although that codepath has yet to be
4650 written. part of the work for bug #79891.
4652 2006-11-29 Chris Toshok <toshok@ximian.com>
4654 * Binding.cs (SetControl): fix unit test.
4656 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4658 * PageSetupDialog.cs: Validate the margins and set them in
4660 * NumericTextBox.cs: New class to mimic the behavior of the
4661 textboxes used in the printing dialogs.
4663 2006-11-29 Andreia Gaita <avidigal@novell.com>
4665 * Form.cs: Revert previous change (remove call UpdateBounds
4666 from form constructor), because it messes with the handle creation
4667 order, and that one needs lots and lots of love.
4668 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
4669 for valid printer and throw InvalidPrinterException if document
4670 is set but printer not valid), adding a MonoTODO. Once
4671 handle creation is done properly, we can put this back in.
4673 2006-11-28 Everaldo Canuto <everaldo@simios.org>
4675 * MenuItem.cs: Create a invalidate method for menu item, to be
4676 calling from set text, it make text changes to imadiate update
4677 on screen. Fixes #80013.
4679 2006-11-28 Everaldo Canuto <everaldo@simios.org>
4681 * ToolBar.cs: Fixes and simplify toolbar button layout, it
4682 fixes bug #80070 and some other problem on toolbar buttons
4685 2006-11-28 Everaldo Canuto <everaldo@simios.org>
4687 * ThemeWin32Classic.cs: Paint toolbar toggle button background
4688 with dotted brush. Fixes #79564
4690 2006-11-28 Andreia Gaita <avidigal@novell.com>
4692 * Form.cs: Removed call to UpdateBounds on Form
4693 constructor, it was causing a call to CreateHandle
4694 before it was supposed to.
4695 * PrintControllerWithStatusDialog: Applied patch
4696 by Chris Toshok to hide controller when there are
4697 no printers available.
4698 PrintDialog.cs: initialize printer settings to
4699 null - correct DefaultValues test #5
4700 * PrintPreviewControl.cs: Move PrintController
4701 initialization to GeneratePreview
4702 * PrintPreviewDialog.cs:
4703 - Remove Preview generation from Document_set(). It is
4705 - Throw InvalidPrinterException on CreateHandle if
4706 a Document is set but there are no printers or
4707 printer is not valid.
4708 * ThemeWin32Classic: don't paint PrintPreviewControl
4709 if there is nothing to paint
4711 2006-11-28 Miguel de Icaza <miguel@novell.com>
4713 * Form.cs: Add another popular method.
4715 * TabPage.cs: ditto.
4717 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
4719 * MenuItem.cs: Fixed a warning.
4720 * InternalWindowManager: Fixed a warning.
4722 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
4725 - When cloning a menu also clone MdiList and clone the
4726 window menu items properly (as the forms and menuitems
4727 are kept in an internal hashtable, these need updating
4729 - Rewrote the window menu code, menu items are added in the
4730 order the forms were added to their parent, and they are
4731 updated every time the window menu is shown (before the
4732 list was only generated once, in the current order of the
4733 forms, and would never be updated). A checkmark is shown
4734 next to the item corresponding to the active mdi child.
4736 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
4738 * XplatUIStructs.cs:
4739 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
4742 - Added TME_NONCLIENT to TMEFlags.
4743 - Handles WM_NCMOUSEMOVE in GetMessage to
4744 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
4747 - Now merges mdi child menu to parent menu when maximized.
4748 - Recalculate NC areas of both mdi child and mdi parent.
4750 on window state and size changes.Fixes #79844 (3).
4751 - Handle WM_NCCALCSIZE to properly calculate borders.
4754 - Add/remove to the mdi containers list of mdi children
4755 in the order they are added.
4756 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
4757 to the maximized mdi child.
4759 * InternalWindowManager.cs:
4760 - Only execute a click on the control buttons on the mouse up,
4761 not on the mouse down. Show the state of the button
4762 (was only showing Normal state, never Pressed state). The
4763 pressed button now follows the mouse (if you click the Close
4764 button and move the mouse over the Maximize button, the
4765 Maximize button will be shown as pressed). Since Win32 does
4766 not generate WM_NCLBUTTONUP if you release the button outside
4767 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
4770 * ThemeWin32Classic.cs:
4771 - Draw a missing border around mdi child forms. Fixes #79844 (2).
4774 - Added a list of forms which contains the order the forms are
4775 added to the mdi parent.
4776 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
4777 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
4778 - If the active form changes set the scrollbars to the top
4779 of the Z order, otherwise the form could hide them.
4780 - Scrollbars are now sized according to ClientSize, not
4781 to Size, and they take into account the other scrollbar
4782 to determine maximum.
4784 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
4791 - Added RequestAdditionalWM_NCMessages for windows to
4792 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
4793 Currently only implemented in XplatUIWin32.
4795 2006-11-27 Chris Toshok <toshok@ximian.com>
4797 * Hwnd.cs: only add the hwnd to the windows hash in
4798 set_WholeWindow and set_ClientWindow if whole_window/client_window
4799 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
4801 2006-11-27 Mike Kestner <mkestner@novell.com>
4803 * ComboBox.cs: remove redundant OnDropDown call. It is called
4804 from the ComboListBox.ShowWindow code. Fixes #79969.
4806 2006-11-27 Chris Toshok <toshok@ximian.com>
4808 * Hwnd.cs: remove the setters for ExposePending and
4809 NCExposePending - noone uses them.
4811 2006-11-27 Jackson Harper <jackson@ximian.com>
4813 * TextControl.cs: new param for ReplaceSelection which determines
4814 whether we select the new selection, or set the cursor to the end
4815 of the new selection.
4816 * TextBoxBase.cs: Use new param for ReplaceSelection. When
4817 pasting, select the new text.
4818 * RichTextBox.cs: Use new param for ReplaceSelection.
4820 2006-11-27 Jackson Harper <jackson@ximian.com>
4822 * TextBoxBase.cs: Set the selection to the caret after the caret
4823 is moved, otherwise they get out of sync.
4825 2006-11-26 Everaldo Canuto <everaldo@simios.org>
4827 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
4830 2006-11-26 Everaldo Canuto <everaldo@simios.org>
4832 * ThemeWin32Classic.cs:
4833 - Fix toolbar drop down arrow position.
4834 - Fix drop down appearance when ToolBar.Appearance is normal,
4837 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
4839 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
4841 * UpDownBase.cs: Same.
4842 * ButtonBase.cs: Same.
4843 * ScrollBar.cs: Same.
4844 * TrackBar.cs: Same.
4845 * PictureBox.cs: Same.
4846 * UserControl.cs: Same.
4848 * ListControl.cs: Same.
4849 * TextBoxBase.cs: Same.
4850 * ListView.cs: Same.
4851 * RichTextBox.cs: Same.
4852 * TreeView.cs: Same.
4854 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
4857 - Text label for where
4858 - Text label comment was not shown
4860 2006-11-23 Everaldo Canuto <everaldo@simios.org>
4862 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
4864 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
4866 * InternalWindowManager.cs:
4867 - Handle WM_PARENTNOTIFY to activate the form
4868 if any child control is clicked.
4869 - The form is only sizable if not minimized.
4871 * MdiWindowManager.cs:
4872 - Save the IconicBounds if the form is moved.
4873 - Rework SetWindowState, now the window bounds
4874 are stored only if the old window state is Normal.
4877 - In SetWindowStates store the old window state if
4878 the window is maximized and restore window state if
4879 the window looses focus.
4880 - Don't handle any scrollbar value changes if
4881 initializing the scroll bars. Fixes #79771.
4882 - Reworked ArrangeIconicWindows. Current algorithm
4883 tests bounds agains all other minimized windows, if
4884 any intersections create new bounds (going left to
4885 right, bottom to top) and then test again. When
4886 successful the bounds are saved and never computed
4887 again. Fixes #79774.
4889 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
4891 * InternalWindowManager.cs: Added HandleTitleBarUp.
4893 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
4895 * NumericUpDown.cs: In .NET 1.1, user entered text is still
4896 hexadecimal in ParseUserEdit.
4899 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
4901 * MdiWindowManager.cs:
4902 - Handle a click on the form's icon to show the
4903 system menu (when maximized). Fixes #79775.
4904 - Change the existing click handler for the form's
4905 icon when not maximized to show on MouseUp.
4908 * Form.cs: In OnResize only layout the mdi child's
4909 parent if it actually has a parent. Might not if
4910 the window is closing.
4913 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
4915 * MdiClient.cs: Ignore active MDI client for text of parent, if
4916 child has no text set.
4918 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
4920 * ToolBar.cs: Fixed ToString to match MS.
4922 2006-11-22 Andreia Gaita <avidigal@novell.com>
4925 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
4926 update inner values on set. Fixes #79966.
4927 - Override OnLostFocus to update value on NET 2. Fixes #79950.
4928 - Fix hexadecimal parsing.
4930 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
4931 parent. Fixes #79957
4933 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
4935 * Control.cs: After calling SetWindowsPos in SetBoundsCore
4936 the actual size has to be queried, since if height /
4937 width is negative Win32 changes it to 0.
4938 Fixes #79999 on Windows.
4940 * XplatUIX11.cs: Set height / width to 0 if negative
4941 in SetWindowPos. Fixes #79999 on Linux.
4943 2006-11-22 Everaldo Canuto <everaldo@simios.org>
4945 * ThemeWin32Classic.cs: Fix text redenring when button is
4948 2006-11-22 Everaldo Canuto <everaldo@simios.org>
4950 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
4951 and later navigate by mouse. Fixes #79528.
4953 2006-11-21 Everaldo Canuto <everaldo@simios.org>
4955 * ToolBar.cs: Set default value for TabStop to false in
4956 constructor, it fixes remaining behavior of bug #79863.
4958 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
4960 * MdiWindowManager.cs:
4961 * InternalWindowManager.cs:
4962 - Moved a few methods specific to Mdi from
4963 InternalWindowManager to MdiWindowManager.
4966 2006-11-21 Chris Toshok <toshok@ximian.com>
4968 * XplatUIOSX.cs: stub out InvalidateNC.
4970 * XplatUIWin32.cs: implement InvalidateNC using the call I found
4971 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
4973 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
4975 * XplatUIDriver.cs: add InvalidateNC abstract method.
4977 * XplatUI.cs: add InvalidateNC.
4979 2006-11-21 Everaldo Canuto <everaldo@simios.org>
4981 * ToolBar.cs: Invalidate complete button area when pressed status
4983 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
4984 * ThemeWin32Classic.cs: Increase vertical and horizontal position
4985 by 1 when button is pressed.
4987 2006-11-20 Everaldo Canuto <everaldo@simios.org>
4989 * ToolButton.cs: Invalidate middle of DropDown button when
4990 ToolBar theres DropDownArrows.
4991 * ThemeWin32Classic.cs: Change position of DropDown arrow and
4992 fix DropDown drawing operations.
4994 2006-11-20 Chris Toshok <toshok@ximian.com>
4996 * NativeWindow.cs: fix the formatting of functions ('{' on the
4997 following line), and enable the thread exception dialog.
4999 * Application.cs: remove the duplicate exception catching from
5002 2006-11-20 Everaldo Canuto <everaldo@simios.org>
5004 * Toolbar.cs: Triggers button click event when click on icon
5005 of dropdown ToolBarButton. Fixes #79912.
5007 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5010 * ThemeWin32Classic.cs:
5011 - Added a property WindowBorderFont to enable themeing
5012 of mdi child windows' Text.
5014 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5016 * InternalWindowManager.cs:
5019 * MdiWindowManager.cs:
5020 - If mdi child is maximized, set mdi parent's
5021 text to "Parent - [Child]". Fixes #79770.
5022 - If there is any maximized mdi child windows, only the active
5023 window (and any new windows) is maximized, the rest are normal.
5024 - On a WindowState change only save mdi child's window bounds
5025 if the old window state was normal. Fixes #79774.
5026 - The scroll bars are now calculated on hopefully all
5027 necessary events. Fixed #79771 / #79844->6 / #79906.
5028 - MdiClient.SizeScrollBars() now takes into account docked
5029 controls in the parent when calculating available space.
5030 - InternalWindowManager now always repaints the entire title
5031 area. Fixes #79844->1/4/5.
5032 - Added RequestNCRecalc on mdi child windowstate changes.
5035 2006-11-20 Mike Kestner <mkestner@novell.com>
5037 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
5038 in the MouseUp handler of the listbox and move the return handling
5039 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
5041 2006-11-20 Everaldo Canuto <everaldo@simios.org>
5043 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
5045 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
5047 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
5048 working in 1.2.x anymore. So, updated.
5050 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
5052 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
5053 NumberGroupSeparator of current culture instead of assuming en-US.
5056 2006-11-17 Mike Kestner <mkestner@novell.com>
5058 * Control.cs: Add the concept of implicit bounds setting so that
5059 dock/undock round trips preserve explicitly set size/locations.
5062 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
5064 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
5065 can't handle those filters. (Fixes bug #79961)
5067 2006-11-17 Chris Toshok <toshok@ximian.com>
5069 [ fixes the exit/crashes associated with #79835. it's clearly
5070 suboptimal though, we need to figure out a better way to solve
5073 * PrintPreviewControl.cs: deal with the new invalid printer
5076 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
5077 and return false (so CommonDialog.ShowDialog doesn't actually show
5080 * PrintDialog.cs: enable/disable the Ok button depending on
5081 whether or not the printer is valid.
5083 * CommonDialog.cs (ShowDialog): only actually show the form if
5084 RunDialog returns true.
5086 2006-11-17 Jackson Harper <jackson@ximian.com>
5088 * TextControl.cs: When soft splitting a line, mark it as a soft
5089 split line. Also carry over the current line break to the next
5092 2006-11-17 Chris Toshok <toshok@ximian.com>
5094 * XplatUIX11.cs: when scrolling a window with an invalid area, we
5095 only want to shift the part of the invalid area that overlaps the
5096 area we're scrolling. we also don't want to clear the invalid
5097 area unless the invalid area was entirely contained within the
5100 2006-11-16 Chris Toshok <toshok@ximian.com>
5102 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
5103 also make sure to free the memory returned by XGetWindowProperty
5106 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
5108 2006-11-16 Chris Toshok <toshok@ximian.com>
5110 * XplatUI.cs: add a new super secret way to get at the totally
5111 unsupported X11 backend.
5113 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
5115 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
5117 2006-11-16 Jackson Harper <jackson@ximian.com>
5119 * TreeView.cs: Allow more explicit setting of top node position
5120 for scrollbars. Slower algo, but more accurate.
5121 - CollapseAll should maintain the current top node.
5122 * TextBoxBase.cs: When positioning the caret, use the line, pos
5123 method, since the x, y method does not grab the correct tag, and
5124 the caret height never gets set correctly. (Maybe I should just do
5125 away with the caret having its own height, and always use the
5126 carets current tag for height).
5128 2006-11-16 Jonathan Pobst <monkey@jpobst.com
5130 [Fixes 79778, 79923]
5132 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
5133 Parent to the FosterParent instead.
5135 2006-11-16 Jackson Harper <jackson@ximian.com>
5137 * TreeView.cs: Need to recalc the topnode when we expand or
5138 collapse. The scrolling methods can't handle this on their own,
5139 since they use differences between the last scroll position, and
5140 those difference get completely messed up since we are expanding
5141 nodes. This problem should probably be fixed in the scrolling
5142 methods, so they can figure out exactly where they are, but this
5143 will slow things down a little.
5144 * ThemeWin32Classic.cs: Special case for groupboxes with empty
5145 strings, makes nunit-gui look a lot nicer.
5147 2006-11-16 Chris Toshok <toshok@ximian.com>
5149 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
5150 the broken multithreaded event handling we have in here. File
5151 this entry under "Why we should move to the new X11 backend".
5153 Any thread can make it into UpdateMessageQueue, which gets events
5154 from the X socket - some of which could belong to hwnds being
5155 managed by a different thread. We can also have multiple threads
5156 in UpdateMessageQueue at the same time, with each one reading from
5157 the X socket. This leads to many problems, with the following
5160 We can't use hwnd.Queue.Enqueue anywhere in here and must use
5163 The MotionNotify compression we do can't work across threads
5164 (without locking the entire queue, perhaps) since we call
5165 hwnd.Queue.Peek, so we just punt and don't compress motion events
5166 unless the owning thread is the one which got the X event.
5168 ConfigureNotify is another fun one, since it modifies the hwnd's
5169 bounds and then enqueues the event. We add a lock to Hwnd which
5170 is held when setting configure_pending to true (and enqueuing the
5173 There is a race wrt the wake socket. we need to make sure that
5174 only 1 thread is waiting on that socket, or else a thread could
5175 sleep waiting for data that never comes. It's difficult (but not
5176 impossible) to make happen, because it seems to require something
5179 1. Thread 1 polls on wake_receive
5181 2. poll returns saying there's data to be read on
5184 3. Thread 2 polls on wake_receive and immediately returns
5185 saying there's data to be read.
5187 4. Thread 2 reads the wakeup byte from wake_receive
5189 5. Thread 1 attempts to read the wakeup byte from
5192 6. Thread 2 exits (due to a form closing, perhaps).
5194 7. Thread 1 blocks forever.
5198 Fixing the Expose handling isn't done yet, and the races inherent
5199 in that piece of code are responsible for the drawing mistakes you
5200 see when generating expose events in a MT app (like NPlot). This
5201 one is the likely to be the hardest to bandaid, and it doesn't
5202 appear to cause anything but drawing problems. The other issues
5203 caused apps to exit or hang.
5205 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
5206 called from a different thread than the one that should be calling
5209 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
5211 2006-11-15 Chris Toshok <toshok@ximian.com>
5213 * Application.cs: null out the context's MainForm when we exit
5214 RunLoop. Fixes a newly checked in unit test as well as the last
5215 ODE from bug #79933.
5217 2006-11-15 Chris Toshok <toshok@ximian.com>
5219 * Form.cs (set_Owner): allow a null value so we can clear the
5221 (Dispose): set all our owned_form's Owner properties to null, and
5222 clear the owned_forms collection.
5223 (WM_CLOSE): clean up this a little bit.. still not right though.
5225 * ApplicationContext.cs: OnMainFormClosed should only call
5226 ExitThreadCore if the main form isn't recreating. Fixes unit
5229 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
5233 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
5235 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
5239 * Hwnd.cs: Add a flag to show a window, but not activate it, to
5240 keep popup window types from stealing focus from the main form
5243 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
5245 * MenuAPI.cs: Set above flag to true.
5247 2006-11-15 Chris Toshok <toshok@ximian.com>
5249 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
5250 the button being released is not in wParam.
5252 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
5254 * Form.cs: Add the released button to MouseEventArgs.Button
5255 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
5258 2006-11-15 Chris Toshok <toshok@ximian.com>
5260 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
5261 GetText(). untested because it's unused in our implementation.
5262 Control.Text always caches the text, even if
5263 ControlStyles.CacheText is not set.
5267 2006-11-15 Chris Toshok <toshok@ximian.com>
5271 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
5272 message. no hiding, no disposing.
5274 in the WM_CLOSE handler, hide the form if it's modal.
5276 2006-11-15 Chris Toshok <toshok@ximian.com>
5278 * XplatUIX11.cs: use AddExpose instead of sending a message.
5279 fixes textbox border drawing.
5281 2006-11-15 Chris Toshok <toshok@ximian.com>
5283 * PropertyGridView.cs: keep from crashing on mouse move/down when
5284 the property grid is empty.
5286 2006-11-14 Jackson Harper <jackson@ximian.com>
5288 * TextControl.cs: Make PageUp and PageDown more like the MS
5290 * TextBoxBase.cs: When we set the text property position the
5291 cursor at the beginning of the document.
5293 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
5295 * Form.cs: if a mdi child's WindowState has changed
5296 before it's creation, it would display wrong control
5299 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
5301 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
5304 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
5306 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
5307 the window gets to paint its borders even if the window is
5310 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
5311 otherwise the old control buttons would still be painted
5312 if the window gets bigger.
5314 * PaintEventArgs.cs: add an internal method so that the clip
5315 rectangle can be changed.
5317 2006-11-13 Chris Toshok <toshok@ximian.com>
5319 [ fixes bug #79745 ]
5321 * NotifyIcon.cs: lots of cleanup.
5323 * X11Structs.cs: add an enum for XEMBED messages.
5325 * XplatUIX11.cs: reindent one of the giant switch statements, it
5326 was taking up an additional tab stop, and this file is already way
5327 too wide for my laptop's screen.
5329 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
5330 we get it, resize the hwnd to the WMNormalHints max_width/height.
5332 2006-11-13 Jackson Harper <jackson@ximian.com>
5334 * TextBoxBase.cs: Compute the value changes for the mouse wheel
5337 2006-11-13 Chris Toshok <toshok@ximian.com>
5339 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
5340 #79898. force a reference to the Region to stick around so the
5341 unmanaged object isn't collected (rendering our handle in the MSG
5344 2006-11-13 Chris Toshok <toshok@ximian.com>
5346 * XplatUIX11.cs: fix #79917 for window managers which support
5348 using XStoreName on the raw utf8, and we need to convert to
5349 COMPOUND_TEXT if it's non-latin1.
5351 2006-11-13 Chris Toshok <toshok@ximian.com>
5353 * Form.cs (set_DialogResult): we need to set closing to false if
5354 we're setting our result to None. fixes bug #79908.
5356 2006-11-13 Jackson Harper <jackson@ximian.com>
5358 * TextControl.cs: When formatting text, compute the adjusted tag
5359 lengths correctly, using FindTag for the end tag instead of trying
5360 to figure it out outselves.
5361 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
5362 the item, ItemHeight doesn't work, because trees with large
5363 imagelists use those for their height
5364 * TreeView.cs: ActualItemHeight factors in the image height
5365 - compute left edge of checkboxes correctly
5366 - when expanding/collapsing move the bottom down one pixel, so we
5367 aren't moving part of the node
5369 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
5371 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
5372 stack in PaintEventStart so that it won't get disposed by the gc
5373 before reaching PaintEventEnd.
5375 2006-11-13 Jackson Harper <jackson@ximian.com>
5377 * TextBoxBase.cs: Don't select the word if we are on a line with
5379 - We don't need to position the caret on mouse up, since the mouse
5380 move handler should be doing this
5381 - When double clicking a blank line, the caret is advanced to the
5384 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
5386 * TreeNodeCollection.cs: Avoid duplicating indexer code.
5388 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
5390 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
5391 Fixes part of bug #79910.
5393 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
5395 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
5396 (bug #79903). Some minor string updates to match ms.
5398 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
5400 * FileDialog.cs: Don't add an extension if the filename
5401 already ends with that extension.
5403 2006-11-10 Jackson Harper <jackson@ximian.com>
5405 * TreeView.cs: Use the currently highlighted node for the
5407 * TextBoxBase.cs: There is no need to expand selection on
5409 - CanUndo means 'is there any undo operations', not 'is undo
5410 allowed on this textcontrol. Fixed ClearUndo unit test.
5412 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
5414 * Button.cs: only perform click when button is Selectable (so as
5415 not to activate default buttons when they're disabled)
5417 * Control.cs: Rewrite of the SelectNextControl and related
5418 methods. HandleClick now selects next control if the current one
5421 * Form.cs: OnActivated selects next active control only if Load
5422 has already occurred. If Load hasn't run, there's no point in
5423 selecting here, Load might change the state of controls.
5425 * FocusTest.cs: Tests marked as working again for these fixes
5427 2006-11-10 Chris Toshok <toshok@ximian.com>
5429 * XplatUIX11.cs: a couple of fixes.
5431 - use XInternAtoms with almost all the atoms we need to register,
5432 instead of many, many calls to XInternAtom. should help a bit on
5433 startup time, at the expense of making the code look a little
5436 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
5437 isn't reparented (which seems to be a clue that we're running fon
5438 compiz) and they have an Owner form. This fixes the tool windows
5439 in paint.net when running under compiz.
5441 - when setting the opacity of a window, support both the case
5442 where the window has been reparented and also when it hasn't been.
5443 Since compiz/beryl doesn't seem to reparent windows, and these are
5444 the only window managers which support translucency, I'm not sure
5445 why we need the hwnd.reparented case at all.. but leave it in.
5446 now we get translucent windows in paint.net under compiz/beryl.
5448 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
5450 * FileDialog.cs: Always return the value for FilterIndex that
5451 was set. Internally convert it to values that make sense.
5453 2006-11-10 Everaldo Canuto <everaldo@simios.org>
5455 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
5457 2006-11-10 Everaldo Canuto <everaldo@simios.org>
5459 * Toolbar.cs: Change default value of DropDownArrows to true, the
5460 signature still using false to make it compatible with MS but the
5461 initial value is true. Fixes #79855.
5463 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
5465 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
5466 only available on Linux.
5468 2006-11-09 Everaldo Canuto <everaldo@simios.org>
5470 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
5471 reduce number of calls to redraw method during toolbar creation.
5473 2006-11-09 Mike Kestner <mkestner@novell.com>
5475 * ListView.cs : raise SelectedIndexChanged when an item is selected
5476 programmatically via the Item.Selected property. Gert's nice
5477 ListViewSelectedIndexChanged test fixture now runs clean.
5479 2006-11-09 Mike Kestner <mkestner@novell.com>
5481 * ListView.cs : raise SelectedIndexChanged when a selected item is
5482 removed from the item collection using Remove or RemoveAt.
5484 2006-11-09 Mike Kestner <mkestner@novell.com>
5486 * ListView.cs : raise SelectedIndexChanged once per selected item
5487 for compat with MS. Fixes #79849+.
5489 2006-11-09 Chris Toshok <toshok@ximian.com>
5491 * TabControl.cs: initialize row_count to 0, and set it to 1 when
5492 we need to (if we have any tab pages). Fixes unit test.
5494 2006-11-09 Chris Toshok <toshok@ximian.com>
5496 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
5497 width is 0, not 3. Fixes a unit test.
5499 2006-11-09 Mike Kestner <mkestner@novell.com>
5501 * ListView.cs : use Implicit scrollbars so that focus isn't
5502 stolen from the listview when they are clicked. Fixes #79850.
5504 2006-11-09 Chris Toshok <toshok@ximian.com>
5506 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
5507 have a root item. Fixes #79879.
5509 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
5513 - An ArgumentException is now thrown if a wrong filter
5514 is applied (matches ms). The previous filter doesn't change
5515 anymore if an exception is thrown.
5516 - Changing the FileName property also affects FileNames
5517 * ColorDialog.cs: The length of the CustomColors array is always
5518 16. It doesn't matter if we use a smaller array or null to update
5519 or change the custom colors property.
5520 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
5521 for RootFolder if we get a undefined value.
5523 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
5525 * StatusBarPanel.cs:
5526 - Width is set to MinWidth if Width is smaller than
5527 MinWidth. Fixes #79842.
5528 - MinWidth now always overrides Width (MSDN says MinWidth
5529 is set to Width when AutoSize = None, but they do not
5531 - Style has now the the correct default value.
5533 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
5536 - The control is completely invalidated on
5537 Got/LostFocus to draw the focus rectangle correctly.
5538 - When AutoSize then height is always 45 (width for
5541 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
5542 on the mouse when moved and it doesn't move when grabbed
5543 until the mouse moves as well. Also fixed some wrong
5544 calculations when clicking on the thumb (control thought
5545 click was outside of thumb and didn't grab it).
5546 Fixes some of the issues in #79718.
5548 2006-11-08 Everaldo Canuto <everaldo@simios.org>
5550 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
5552 2006-11-08 Chris Toshok <toshok@ximian.com>
5554 * PropertyGridView.cs: only call ToggleValue if the item is not
5557 2006-11-08 Jackson Harper <jackson@ximian.com>
5559 * TextBoxBase.cs: The RichTextBox and textbox have very different
5560 word selection methods. Implement the textbox's simple word
5561 selection here, and let the RichTextBox override and provide it's
5563 - Don't do extra selection on mouseup
5564 * RichTextBox.cs: Use the documents word selection algorithm, I
5565 think ideally, this function will be pulled into the
5566 RichTextBox.cs code someday.
5568 2006-11-08 Chris Toshok <toshok@ximian.com>
5570 * RootGridEntry.cs: new class to represent GridItemType.Root.
5572 * CategoryGridEntry.cs: reformat, and add boilerplate.
5574 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
5575 returns the UI parent anyway, and we need special handling to
5576 implement the GetTarget method in the face of it. Also, implement
5579 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
5580 a root grid item, and use that instead of PropertyGrid.grid_items.
5581 Also, make use of TypeConverters (and add limitted support for
5582 ICustomTypeDescriptors) when initially populating the grid.
5583 Arrays now show up more or less properly.
5585 2006-11-08 Chris Toshok <toshok@ximian.com>
5587 * Application.cs: set the modal dialog to non modal after we close
5588 it. Fixes bug #79866.
5590 2006-11-08 Jackson Harper <jackson@ximian.com>
5592 * TextControl.cs: When combining lines carry over the line end
5593 style from the end line.
5594 - Invalidate the selected area when setting it, if it is visible.
5595 * TextBoxBase.cs: Only rich text box can do full line selects.
5596 - Make sure to set the cursor position when there is a click,
5597 otherwise two clicks in separate areas could cause a large chunk
5600 2006-11-07 Everaldo Canuto <everaldo@simios.org>
5602 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
5605 2006-11-07 Everaldo Canuto <everaldo@simios.org>
5607 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
5608 time. Remove tooltips when ToolButton click events. Fixes #79856.
5610 2006-11-07 Everaldo Canuto <everaldo@simios.org>
5612 * MenuAPI.cs: Ignore right click for menu actions and fixes
5613 menu border when clicked. Fixes #79846.
5615 2006-11-07 Everaldo Canuto <everaldo@simios.org>
5617 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
5618 MouseState after create wParam for message, this fixes mouse button
5619 equal none in mouse up events.
5621 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
5623 * Control.cs : Focus() now calls Select to set the Container's
5624 Active Control and to give it focus. To avoid infinite recursion
5625 (because ActiveControl also calls Focus at one point), a check
5626 is made in Focus with the help of a new internal variable
5629 2006-11-07 Mike Kestner <mkestner@novell.com>
5631 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
5632 if there's a selection. Fixes #79849.
5634 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
5636 * PropertyGrid.cs: Avoid fixed height of help description label.
5637 Fixes part of bug #79829.
5639 2006-11-07 Chris Toshok <toshok@ximian.com>
5641 * XplatUIX11.cs: fix #79790 again, by using the
5642 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
5644 2006-11-07 Everaldo Canuto <everaldo@simios.org>
5646 * ToolBar.cs: Fix left click checking.
5648 2006-11-07 Chris Toshok <toshok@ximian.com>
5650 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
5652 2006-11-07 Chris Toshok <toshok@ximian.com>
5654 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
5655 PropertyManager unit tests.
5657 * PropertyManager.cs: make property_name internal.
5659 2006-11-07 Chris Toshok <toshok@ximian.com>
5661 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
5662 pass a unit test. Also, don't set image_index to anything in
5663 response to setting the ImageList property.
5665 2006-11-07 Everaldo Canuto <everaldo@simios.org>
5667 * ToolBar.cs: Ignore click events when mouse button is not a
5668 left button, only accepts other button for dropdown menus.
5671 2006-11-07 Chris Toshok <toshok@ximian.com>
5673 * DataGrid.cs: make the back and parent row buttons a little less
5676 2006-11-07 Jackson Harper <jackson@ximian.com>
5678 * TextBoxBase.cs: When converting to Text don't put line breaks in
5679 for soft line breaks.
5680 * TextControl.cs: There is an initial "fake" line in the document,
5681 this is now a soft break line, so that an extra line feed doesn't
5682 get added to the end of documents.
5684 2006-11-07 Chris Toshok <toshok@ximian.com>
5688 * CurrencyManager.cs: if the list is readonly, don't bother
5689 checking if IBindingList.AllowNew is true.
5691 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
5692 for non-DataRowView datasources.. or rather, make it not crash.
5693 (DataGridPaintRelationRow): make sure we limit the row painting to
5694 the area not covered by the row header, and make our cell width at
5695 least large enough to cover the relation area. This allows grids
5696 that have relations but no rows to render correctly.
5697 (DataGridPaintRowContents): same type of changes here.
5698 (SetDataSource): move back to always calling
5699 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
5700 navigating back through relations.
5701 (HitTest): handle the case where we have no cells but have
5702 relations. Right now we generate a hit in cell 0 of whatever the
5703 row is, not sure if this is strictly correct, but it works for our
5706 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
5707 bother doing anything.
5709 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
5711 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
5712 early version of StatusStrip. Not responsible for eaten
5713 application or firstborn children.
5715 2006-11-06 Chris Toshok <toshok@ximian.com>
5717 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
5718 call GetTabRect with a -1 index. Fixes #79847.
5720 2006-11-06 Jackson Harper <jackson@ximian.com>
5722 * TreeNodeCollection.cs: Update scrollbars after clearing.
5724 2006-11-06 Chris Toshok <toshok@ximian.com>
5726 * NumericUpDown.cs: fix the ToString method for some unit test
5729 2006-11-06 Chris Toshok <toshok@ximian.com>
5732 - set the initial SelectedGridItem if we can.
5734 - Exclude non-mergable properties only if we're merging > 1
5735 object. Merging 1 object isn't really merging, obviously.
5737 - Handle PropertySort.NoSort just like Alphabetical, which is
5738 wrong of course, but at least gets things on the screen.
5740 * PropertyGridView.cs:
5741 - Add method "FindFirstItem" which finds the first property grid
5742 item, so we can select it by default.
5744 - make use of GridEntry.CanResetValue.
5746 - Don't call RedrawBelowItemOnExpansion here anymore, the
5747 individual GridEntry's will do that.
5749 - Remove the ITypeDescriptorContextImpl internal class.
5752 - this class needs to implement ITypeDescriptorContext, as it's
5753 what MS's PropertyDescriptorGridEntry does, which means we can
5754 remove the ITypeDescriptorContextImpl internal class from
5755 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
5757 - keep a reference to our PropertyGridView, and move the call to
5758 RedrawBelowItemOnExpansion here from PGV. This means
5759 programmaticly setting Expanded actually does something visible.
5761 - add a CanResetValue() function which takes into account our
5762 possibly multiple "selected_objects" in the merged case. Shifting
5763 PropertyGridView to use this method fixes another unreported
5764 crasher found running the test for #79829.
5766 - when Top or Bounds is updated, make sure the PropertyGridTextBox
5767 is updated to reflect this.
5769 * CategoryGridEntry.cs: the ctor takes the PGV now.
5771 2006-11-06 Jackson Harper <jackson@ximian.com>
5773 * TextControl.cs: These are 1 based.
5774 * TextBoxBase.cs: When setting the selected text, don't change the
5775 selected text tags, this is done by ReplaceText, just position the
5776 cursor at the end of the new text.
5778 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
5780 * ListView.cs: Allow label edit only when, when LabelEdit is
5783 2006-11-06 Jackson Harper <jackson@ximian.com>
5785 * TextControl.cs: If a suitable wrapping position isn't found,
5786 just wrap right in the middle of a word.
5788 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
5790 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
5793 2006-11-06 Jackson Harper <jackson@ximian.com>
5795 * TreeView.cs: Can't use the VisibleCount property when setting
5796 scrollbar heights, because this doesn't take into account whether
5797 or not the horz scrollbar just came visible.
5799 2006-11-05 Everaldo Canuto <everaldo@simios.org>
5801 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
5802 activated. Fixes #79369, #79832.
5804 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
5806 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
5807 had to remove support for links that point to a directory. FileInfo
5808 returns no usefull information (means, the directory they point to)
5809 for such links. Replaced some empty string ("") with String.Empty.
5811 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
5813 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
5814 NullReferenceException when attempting to remove node that is not in
5815 collection. Throw NullReferenceException when null is passed to
5816 Remove. Allow first element of the collection to be removed. Fixes
5817 bug #79831. In GetEnumerator ().Current return null if positioned
5818 before the first element of the collection. In GetEnumerator ().Reset,
5819 position before first element of the collection.
5821 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
5823 * PropertyGrid.cs: To match MS, remove default title and description
5824 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
5827 2006-11-04 Chris Toshok <toshok@ximian.com>
5829 * Theme.cs: add a Clamp method, just for kicks.
5831 * ThemeWin32Classic.cs: clamp all color components to [0..255].
5833 2006-11-04 Chris Toshok <toshok@ximian.com>
5835 * Form.cs: if the form isn't visible, Close() does nothing.
5837 2006-11-03 Chris Toshok <toshok@ximian.com>
5839 * Form.cs (Close): if the form is modal, don't Dispose of it, only
5841 (WndProc): don't Dispose after handling the WM_CLOSE message.
5843 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
5844 them as such, instead of using casts from Control to Form. Also,
5845 don't Dispose of the modal dialog when we fall out of the loop -
5850 2006-11-03 Chris Toshok <toshok@ximian.com>
5852 * Control.cs (Dispose): only go through the dispose thing if we're
5853 @disposing, and we haven't already been disposed. Fixes bug
5856 * Form.cs: no reason to call "base.Dispose()" here instead of
5859 2006-11-03 Mike Kestner <mkestner@novell.com>
5861 * ComboBox.cs : use ToString instead of casts in AddItem for
5862 sorting functionality. Fixes #79812.
5864 2006-11-03 Chris Toshok <toshok@ximian.com>
5866 * Application.cs: pave the way for actually using the thread
5867 exception dialog. it's ifdefed out at the moment.
5869 2006-11-03 Chris Toshok <toshok@ximian.com>
5871 * ThreadExceptionDialog.cs: until we get a better layout, actually
5872 hide the details textbox and label when we shouldn't see them.
5874 2006-11-03 Jackson Harper <jackson@ximian.com>
5876 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
5877 multiline textboxes anymore. This method also determines the
5878 width/height of a textboxes canvas area.
5879 - Sorta a revert of the last patch. For multiline just position
5880 the controls, then bail. This way the scrollbar width won't be
5883 2006-11-03 Everaldo Canuto <everaldo@simios.org>
5885 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
5886 it dont need. Fixes #79537.
5888 2006-11-02 Jackson Harper <jackson@ximian.com>
5890 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
5891 send the status after firing the DndOver event.
5893 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
5895 * TrackBar.cs: Now orientation only switches height / width if
5896 the control's handle is created (Win32 does it like this). Also
5897 fixed a typo in ToString() for a test to pass, changed the
5898 exception thrown in set_LargeChange and set_SmallChange to
5899 match Win32 behaviour, and added TrackBar tests to the unit
5902 2006-11-02 Chris Toshok <toshok@ximian.com>
5904 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
5905 not _NET_WM_STATE_NO_TASKBAR.
5907 2006-11-02 Jackson Harper <jackson@ximian.com>
5909 * TextControl.cs: Increment count by one, since in the update view
5912 2006-11-02 Jackson Harper <jackson@ximian.com>
5914 * TextBoxBase.cs: Use client rectangle not bounds for checking if
5915 the mouse is in the client rectangle (duh).
5917 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
5919 * TrackBar.cs: Fixed trackbar jumping around when clicking
5920 on it - the trackbar was not detecting correctly at which
5921 side of the thumb the click was done. (fixes #79718)
5923 2006-11-02 Everaldo Canuto <everaldo@simios.org>
5925 * ListBox.cs: scroll visible area when change SelectedIndex to
5926 a non visible area. Fixes #79481.
5928 2006-11-01 Jackson Harper <jackson@ximian.com>
5930 * TextControl.cs: When replacing the selection move the selection
5931 start/end/anchor to the end of the new text.
5933 2006-11-01 Jackson Harper <jackson@ximian.com>
5935 * XplatUIWin32.cs: When setting the parent change the controls
5936 visibility to it's visibility flag, not to it's old parents
5937 visibility (.Visible walks the parent chain).
5939 2006-11-01 Chris Toshok <toshok@ximian.com>
5941 * XplatUIX11.cs: revert the #79790 fix, as the simple.
5942 XSetTransientForHint fix breaks paint .net's tool windows. more
5943 work needed for that one.
5945 2006-11-01 Chris Toshok <toshok@ximian.com>
5947 * ScrollBar.cs: throw ArgumentException instead of Exception in
5948 LargeChange/SmallChange setters. fixes unit tests.
5950 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
5952 * ContainerControl.cs: reverted rev.67183 (which was itself
5953 a reversion of rev.66853... eh).
5955 * Control.cs: Fixes Reflector hang by changing Focus() call
5956 to what it was before rev.66643 (calling Select() here sets
5957 ActiveControl, which in some situations calls back Focus and
5958 eventually does a stack overflow). Temp fix.
5959 Changes to GetNextControl() to not look for children to select when
5960 parent cannot be selectable (so it looks for siblings instead)
5962 2006-10-31 Mike Kestner <mkestner@novell.com>
5964 * CheckedListBox.cs : off by one error in returned index from
5965 ObjectCollection.Add. Fixes #79758.
5967 2006-10-31 Chris Toshok <toshok@ximian.com>
5969 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
5970 calls for the textbox/spinner, to keep from recursing to the point
5971 where we crash. Fixes #79760.
5973 2006-10-31 Chris Toshok <toshok@ximian.com>
5975 * ListControl.cs (set_SelectedValue): don't throw exceptions on
5976 null/"" value, just return. matches ms's behavior and fixes some
5979 2006-10-31 Chris Toshok <toshok@ximian.com>
5981 * Control.cs (set_Capture): make a logic a little easier to
5984 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
5985 if it's being destroyed. A necessary fix surely, but a bandaid
5986 also, to fix the stuck capture problem in bug #78413.
5988 2006-10-31 Chris Toshok <toshok@ximian.com>
5990 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
5991 convention of clearing hwnd.ClientRect when we set the
5992 width/height (so it'll be recalculated by Hwnd).
5994 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
5996 * ContainerControl.cs: reversed Contains check from
5997 ActiveControl due to hanging problems. This fix
5998 partly regresses #79667 (button does not have
5999 initial focus), so this might be a symptom for
6000 a larger parenting problem (set_ActiveControl
6001 is being called but the child control does
6002 not have the parent set yet?)
6004 2006-10-31 Mike Kestner <mkestner@novell.com>
6006 * MenuAPI.cs : fix keynav when menu is click activated.
6008 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
6010 * ToolStrip*: Version 0.2.
6012 * MenuStrip.cs: Version 0.1.
6014 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
6016 2006-10-30 Chris Toshok <toshok@ximian.com>
6018 [ fixes the oversized notify icon issue in bug #79745 ]
6020 * NotifyIcon.cs: scale the icon down to the size we're given by
6021 the XplatUI layer (this would be faster if we did it once instead
6022 of whenever we paint..) Also, remove the WM_NCPAINT handling,
6023 since it's never invoked.
6025 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
6026 pixels high by default, so let's hardcode our systray icon to that
6027 size. The SYSTEM_TRAY protocol should really have a way for
6028 client apps to query for the correct icon size.. but oh well. A
6029 couple of patches to deal with the screwy client_window ==
6030 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
6031 instance, and also make sure we don't XSelectInput twice).
6033 2006-10-30 Chris Toshok <toshok@ximian.com>
6035 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
6036 recreating forms. Control recreation is the bane of my existence.
6037 Fix it in a way that keeps everyone happy.
6039 2006-10-30 Chris Toshok <toshok@ximian.com>
6041 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
6042 just non-CHILD ones. otherwise sometimes scrollbars end up with
6043 client_windows not being resized to the proper size (ReportBuilder
6044 shows this extremely well).
6046 2006-10-30 Chris Toshok <toshok@ximian.com>
6048 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
6049 for non-WS_EX_APPWINDOW windows. This is what keeps them from
6050 showing up in the gnome taskbar. Fixes bug #79790.
6052 2006-10-30 Chris Toshok <toshok@ximian.com>
6054 * ApplicationContext.cs: guard against a NRE.
6056 * Application.cs: null out the old MainForm for the context, so we
6057 don't try to use it again once it's disposed. Fixes bug #79783.
6059 2006-10-30 Chris Toshok <toshok@ximian.com>
6061 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
6062 BindingContext, set the data source directly, otherwise do the
6063 lazy approach - the actual ListManager will be created when we get
6064 a BindingContext. Fixes bug #79700.
6066 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
6068 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
6069 XplatUIX11.cs: Remove old 2 parameter SetVisible.
6071 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
6073 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
6075 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
6076 of SetVisible that allows a window to be shown, but not activated.
6077 This is needed on Windows for MenuStrip, and can probably be used
6078 with MainMenu and ComboBox to fix the focus stealing issues on
6081 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
6083 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
6085 * PictureBox.cs: Fix the output of the ToString method.
6087 2006-10-29 Chris Toshok <toshok@ximian.com>
6089 * Control.cs (get_TopLevelControl): fix bug #79781.
6091 2006-10-29 Chris Toshok <toshok@ximian.com>
6093 * ListControl.cs (set_DataSource): throw Exception here, not
6094 ArgumentException, to match MS behavior.
6096 2006-10-29 Chris Toshok <toshok@ximian.com>
6098 * Form.cs: remove the try-catch's around calls to GetWindowState.
6099 We can just check the return value.
6101 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
6104 * XplatUI.cs: Add note about additional return value for
6107 2006-10-29 Chris Toshok <toshok@ximian.com>
6109 * Control.cs (CreateHandle): when we create our handle, we also
6110 create the handles of our child controls. Fixes one of the
6111 Control unit tests (CH11).
6113 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
6115 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
6117 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
6119 * ThemeClearlooks.cs: A little speedup.
6121 2006-10-27 Chris Toshok <toshok@ximian.com>
6123 * Control.cs: implement Control.FromChildHandle in a way that
6124 matches the docs (and fixes the failed test.)
6126 2006-10-27 Chris Toshok <toshok@ximian.com>
6128 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
6131 * DataGrid.cs: implement ResetForeColor such that the tests
6134 2006-10-27 Chris Toshok <toshok@ximian.com>
6136 * ToolBarButton.cs: setting text/tooltiptext to null results in it
6137 being set to "". Fixes bug #79759.
6139 2006-10-27 Jackson Harper <jackson@ximian.com>
6141 * TextControl.cs: We need to clear the entire selection area when
6142 setting the start, otherwise multiline selections are still
6145 2006-10-26 Chris Toshok <toshok@ximian.com>
6147 * PropertyGridView.cs:
6149 - ifdef all the code specific to the double
6150 buffer case, and provide some alternatives in the non-doublebuffer
6151 code, which makes heavy use of XplatUI.ScrollWindow to move things
6152 around without having to invalidate (and cause flicker). There
6153 are still some drawing problems in the non-doublebuffered case, so
6154 DOUBLEBUFFER is defined by default.
6156 - Fix the way dropdowns are handled. now we explicitly watch for
6157 the events which might cause the dropdown to close, and break out
6158 of the nested event loop there. This gets rid of all Capture
6159 code, at the expense of the Msg special casing. Seems to work,
6160 though, and fixes bug #79743.
6162 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
6163 * Control.cs: SetIsRecreating now recreates implicitly added
6164 child controls as well. Finally fixes #79629. The flag passed to
6165 SetIsRecreating has also been removed since it wasn't used.
6167 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6169 * PageSetupDialog.cs: Clean some code, fix some bits,
6170 add some checks, and add a printer sub-dialog.
6172 2006-10-26 Chris Toshok <toshok@ximian.com>
6174 * PropertyGrid.cs: make set_SelectedObject call
6175 set_SelectedObjects, and move the duplicate logic to the
6176 SelectedObjects setter. Also, raise SelectedObjectsChanged.
6178 * PropertyGridView.cs: hide the textbox when we get a
6179 SelectedObjectsChanged event.
6183 2006-10-26 Chris Toshok <toshok@ximian.com>
6185 * PropertyGridView.cs: deal with the type converter not supporting
6186 GetStandardValues() or GetStandardValues() returning null, which
6187 is does in the default case. Fixes #79742.
6189 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
6191 * CheckedListBox.cs: nunit no longer crashes when selecting
6192 Project/Edit menu option
6194 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
6196 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
6197 is no menu selected. fixes #79739
6199 2006-10-25 Chris Toshok <toshok@ximian.com>
6201 * PropertyGridView.cs: factor out the splitter invalidation code
6202 into the SplitterPercent setter, and for kicks implement the
6203 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
6204 amount in either direction.
6206 2006-10-25 Chris Toshok <toshok@ximian.com>
6208 * PropertyGridView.cs: do some cleanup of the brush used to draw
6209 text - read only fields should be grayed out. not sure how to do
6210 this with the textbox, though. but the textbox's should also be
6211 readonly now at least. Also, hide/show the textbox when resizing
6214 * CursorConverter.cs: use System.Reflection when getting the
6215 properties of Cursors, as TypeDescriptor.GetProperties isn't
6216 returning static properties.
6218 2006-10-25 Chris Toshok <toshok@ximian.com>
6220 * PropertyGridView.cs: factor out the up/down handling, and reuse
6221 it for page up/down. also add End/Home support.
6223 2006-10-25 Chris Toshok <toshok@ximian.com>
6225 * PropertyGridView.cs:
6227 - ensure the selected grid item is visible in the scrolled area,
6230 - fix Keys.Down handling when you're on the last item in the
6233 2006-10-25 Mike Kestner <mkestner@novell.com>
6235 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
6236 clicks too. Fixes #79725.
6238 2006-10-24 Chris Toshok <toshok@ximian.com>
6240 * PropertyGrid.cs: use property.Converter instead of
6241 TypeDescriptor.GetConverter(property.PropertyType), so we catch
6242 TypeConverters declared on the property as well as on the
6243 PropertyType. Fixes bug #79678.
6245 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
6247 * MimeIcon.cs, Mime.cs:
6248 Fallback to the default platform handler if no shared mime info
6249 stuff exists (fixes #79693).
6251 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
6252 * ContainerControl.cs: Incorrect contains check in ActiveControl
6253 from previous fix (duh).
6255 2006-10-20 Chris Toshok <toshok@ximian.com>
6257 * PropertyGridView.cs: the dropdown should be MIN(number of items
6258 in list, 15). Fixes #79551.
6260 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
6261 Fixes #79384, #79394, #79652, #79667
6264 - Modal windows are now destroyed in the proper order for windows
6266 * ContainerControl.cs:
6268 - ActiveControl setter has more conditions on when to return:
6269 - if we're reselecting the active control, but it actually
6270 didn't have focus (window hidden or some such), it runs
6271 - if the active control being selected doesn't actually
6272 exist in the container, it returns
6276 - The ShowDialog now gets the current form as the owner when
6277 invoking without parameters, and correctly activates the owner
6282 - MessageBox now catches the Escape key to exit
6284 2006-10-20 Chris Toshok <toshok@ximian.com>
6286 * PropertyGridView.cs: fix a number of issues (bug #78565, and
6287 most of bug #79676):
6289 - you can navigate around the property grid with the arrow keys.
6291 - the dropdown is sized properly when the pg has a vertical
6294 - fix the indentation for subentries, and properly select the
6297 - fix the gray bar's drawing (only draw it to the last element,
6298 not for the height of the control. Also make sure we draw that
6299 last horizontal grid line.
6301 - use the same mechanism the datagrid uses wrt the editing textbox
6302 when scrolling/resizing/etc. Namely, we hide it first, do the
6303 operation, then show it again (if it's still visible).
6305 - aggressively remove a lot of unnecessary refreshes (and also
6306 calls to Invalidate(). call more limited variants, and only redraw
6311 - when we're populating the merged collection, fill in the UI
6312 parent with either the passed in item, or the category item we
6315 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
6317 * GridItem.cs: drop some fully qualified names.
6319 * GridEntry.cs: add a "UIParent", which is basically the parent
6322 * GridItemCollection.cs: add an IndexOf method.
6324 2006-10-20 Mike Kestner <mkestner@novell.com>
6326 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
6327 a working win32 NC invalidation mechanism, we can't invalidate
6328 menus. [Fixes #79705]
6330 2006-10-20 Mike Kestner <mkestner@novell.com>
6332 * ListBox.cs : don't update the VScrollbar if the list is empty,
6333 just hide it. [Fixes #79692]
6335 2006-10-20 Jackson Harper <jackson@ximian.com>
6337 * RichTextBox.cs: Handle some special chars better, and don't skip
6338 the entire group when we encounter a special char that we don't
6341 2006-10-18 Chris Toshok <toshok@ximian.com>
6343 * PropertyGridView.cs: address a number of issues from bug #79676,
6344 mostly of the cosmetic variety.
6346 - The highlight rectangle for indented items not extends all the
6349 - Indented items aren't indented so much.
6351 - the dropdown is properly sized width-wise if the pg has a
6354 2006-10-18 Chris Toshok <toshok@ximian.com>
6356 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
6357 systray stuff is rather convoluted to begin with.
6359 systray icons are a single window for some reason (that I haven't
6360 figured out yet), and for them, client_window == whole_window.
6361 Given the way the tests are structured elsewhere to determine
6362 which paints are pending (client vs. nc), that situation will
6363 always yield PAINT, not NCPAINT. So, if we have a pending
6364 nc_expose and no pending expose, remove the hwnd from the paint
6365 queue, and also set nc_expose_pending to false, to keep us from
6366 blocking further expose's adding the hwnd to the paint queue.
6368 phew. like i said, a rather convoluted change. Fixes the
6369 notifyicon repaint issues in bug #79645.
6371 2006-10-18 Chris Toshok <toshok@ximian.com>
6373 * Form.cs: when getting the backcolor of the form, don't get
6374 base.BackColor, as this allows parents to influence the background
6375 color. This breaks mdi forms. Instead, if the background_color
6376 is empty, return the default.
6378 2006-10-18 Chris Toshok <toshok@ximian.com>
6380 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
6381 to being private instead of internal static.
6383 * Control.cs: remove all the stupid ParentWaitingOnRecreation
6384 crap, it wasn't working for more deeply nested controls anyway,
6385 and we already have the is_recreating flag - use that instead.
6386 Before calling DestroyHandle in RecreateHandle, recurse through
6387 the control tree setting it to true. this returns the recreate
6388 code to much of its original simplicity, while now guaranteeing we
6389 actually recreate everything we're supposed to. This change gets
6390 fyireporting actually showing mdi children.
6392 2006-10-17 Chris Toshok <toshok@ximian.com>
6394 * Form.cs: remove some debug spew, and collapse some duplicate
6395 code at the end of SetClientSizeCore.
6398 - add some more debug spew here too wrt Destroy handling.
6399 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
6400 in Control's handling of WM_DESTROY.
6401 - Remove the handling of zombie window DestroyNotifies from the
6402 event loop - we don't need it. Now the only DestroyNotifies we
6403 actually handle are ones generated by X.
6404 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
6405 match gtk's (functioning) handling of this. This keep metacity
6406 from leaving droppings in the form of wm borders with no window
6407 contents all over the place.
6410 - add a bunch of debug spew wrt control recreation.
6411 - fix a bug where we weren't tracking Visible properly on
6413 - fixed the WM_PAINT double buffer handling to support re-entrant
6414 calls (yes, i know it's gross, but it's happening to us).
6416 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
6417 * ThemeWin32Classic.cs: changed drawing of selected days
6418 to make them look better.
6420 2006-10-16 Chris Toshok <toshok@ximian.com>
6422 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
6423 drawing_stack. Nuke the ClientDC/NonClientDC properties.
6425 * XplatUIX11.cs: move away from using hwnd.client_dc and
6426 hwnd.non_client_dc and on to a stack of dc's (and in window's
6427 case, PAINTSTRUCT's), so we can deal with nested Paint calls
6428 without puking or not disposing of Graphics objects.
6430 * XplatUIOSX.cs: same.
6432 * XplatUIWin32.cs: same.
6434 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
6436 * FileDialog.cs: Don't call on_directory_changed inside
6437 OnSelectedIndexChanged (it changes the SelectedIndex too).
6438 Instead move it to OnSelectionChangeCommitted.
6440 2006-10-13 Chris Toshok <toshok@ximian.com>
6442 * XplatUIX11.cs: more Destroy work. the current code does the
6443 following things, in order:
6445 1. Enumerates all handles of all controls at or below the one
6446 being destroyed, in pre-order. As it is doing this, it marks the
6447 handles as zombie and clears all references to them.
6449 2. calls XDestroyWindow on the window passed in.
6451 3. SendMessage's WM_DESTROY to all he handles in the accumulated
6454 2006-10-13 Chris Toshok <toshok@ximian.com>
6456 * XplatUIX11.cs: set hwnd.zombie to true before calling
6457 SendMessage (WM_DESTROY). this keeps us from marking the new
6458 window a zombie, and also keeps us from calling sendmessage at
6461 2006-10-13 Jackson Harper <jackson@ximian.com>
6463 * TextControl.cs: Do not show the caret and selection at the same
6464 time. Reduces ugliness by 35%.
6466 2006-10-13 Chris Toshok <toshok@ximian.com>
6468 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
6469 zombie after we do the recursive call, so we actually do call
6470 SendMessage on the children controls.
6471 (GetMessage): if we find a pending paint event for a zombie hwnd,
6472 remove the hwnd from the paint queue, or else it will always be
6473 there (and we'll effectively loop infinitely)
6475 2006-10-13 Mike Kestner <mkestner@novell.com>
6477 * MenuItem.cs : add Selected format under keynav too.
6480 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
6482 * PropertyGrid.cs: Fixed some NRE's and small difference between our
6483 implementation and that of MS.
6485 2006-10-13 Chris Toshok <toshok@ximian.com>
6487 * Control.cs (OnInvalidated) only futz with the invalid_region if
6488 the control is double buffered. this fixes the apparent hang in
6489 the ListView unit tests. Someone needs to make the
6490 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
6492 2006-10-13 Chris Toshok <toshok@ximian.com>
6494 * PropertyGridView.cs:
6496 - do a little refactoring so that only one place calls
6497 dropdown_form.Hide, and that is CloseDropDown. make everywhere
6498 else call that. Also make it Refresh, since there are redraw bugs
6499 otherwise (we should take a look at that...)
6501 - do a little more refactoring work to share the body of code
6502 involved with the drop down. it was duplicated in the code
6503 dealing with the listbox handling and in the code dealing with the
6506 - add a Capture to the dropdown form's control once it's
6507 displayed, and add a MouseDown handler that checks to make sure
6508 the position is inside the control. If it's not, close the
6509 dropdown. This fixes #78190.
6511 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
6512 if the value is different than the initial value.
6514 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
6516 * Control.cs: see #78650
6517 - Fixed GetNextControl for several cases:
6518 - Changed FindFlatForward to return
6519 correct sibling control when more than one
6520 control has same TabIndex as the currently
6522 - Changed FindFlatBackward to loop children
6523 from last to first and apply same logic as in
6525 - Changed FindControlForward to search for
6526 children when control is not a container
6527 but has children, or search for siblings if
6528 control is a container...
6529 - Changed FindControlBackward to continue
6530 searching for child controls when hitting
6533 - Fixed Focus method to update ActiveControl
6534 (FocusTest.FocusSetsActive failure)
6537 - Focus rectangle now refreshes when gaining
6539 - Removed grab for Tab key on IsInputKey that
6540 was keeping tab navigation from working (#78650)
6542 2006-10-13 Chris Toshok <toshok@ximian.com>
6544 * PropertyGridView.cs:
6545 - Rewrite SetPropertyValue to loop over SelectedGridItem's
6548 - Deal with GridItem.Value == null a few places.
6551 - replace the PopulateGridItemCollection with a pair of methods
6552 which compute the intersection of all the properties in the
6553 SelectedObjects array. Fixes #79615.
6555 - Throw ArgumentException from set_SelectedObjects if there's a
6558 - Add GetTarget method which can be used to traverse up the
6559 GridItem.Parent chain. It depends on the assumption that
6560 selected_objects for different GridEntries are always in the same
6561 order (a safe assumption). Use this method and loop over all the
6562 selected objects in the entry when calling RemoveValueChanged and
6565 * GridEntry.cs: Make this handle multiple selected objects.
6566 .Value returns null if not all the selected objects share the same
6569 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
6570 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
6571 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
6572 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
6573 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
6574 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
6575 add additional functionality.
6577 2006-10-12 Mike Kestner <mkestner@novell.com>
6579 * ErrorProvider.cs : new ToolTipWindow ctor sig.
6580 * HelpProvider.cs : new ToolTipWindow ctor sig.
6581 * ToolTip.cs : remove ToolTip param from Window sig since it is
6583 * ToolBar.cs : add tooltip support. Fixes #79565.
6585 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
6587 * ComboBox.cs: move the events in set_SelectedIndex to
6588 after the call to HighlightIndex in order to avoid
6589 possible recursion and subsequent problems with the call
6590 to HighlightIndex and include a range check in
6591 set_HighlightIndex. Fixes #79588
6593 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
6595 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
6596 to ui thread's settings instead of sunday.
6597 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
6599 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
6603 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
6604 and implement missing functionality (selecting different parts
6605 of the date and edit them individually with the keyboard).
6607 2006-10-11 Chris Toshok <toshok@ximian.com>
6609 * Control.cs (OnInvalidated): fix NRE relating to last change.
6611 2006-10-11 Chris Toshok <toshok@ximian.com>
6613 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
6614 atoms in _NET_WM_STATE here if the window is maximized. We need
6615 to do this because we're *replacing* the existing _NET_WM_STATE
6616 property, so those atoms will be lost otherwise, and any further
6617 call to GetWindowState will return Normal for a window which is
6618 actually maximized. Fixes #79338.
6620 2006-10-11 Jackson Harper <jackson@ximian.com>
6622 * TextControl.cs: Special case for setting selection end to
6623 selection start, we basically kill the anchor.
6624 - some todo comments.
6626 2006-10-11 Chris Toshok <toshok@ximian.com>
6628 * Control.cs: switch to using an "invalid_region" to track which
6629 parts of the image buffer need updating. This is more code than
6630 the simple fix from r66532. That version just attempted to always
6631 fill the entire buffer on redraw, which turns out to be
6632 inefficient when invalidating small rectangles. This version
6633 simply adds the invalid rectangle to the invalid region. When we
6634 get any WM_PAINT message we see if it can be filled using the
6635 image buffer, and if it can't (if the paint event's clip rectangle
6636 is visible in the invalid region) we first fill the image buffer.
6637 So, the image buffer is still a cache, we just fill it lazily.
6639 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
6642 2006-10-11 Chris Toshok <toshok@ximian.com>
6644 * XplatUIX11.cs (SetWindowPos): we need to update both position as
6645 well as size after calling XMoveResizeWindow. This keeps us from
6646 ignoring future SetWindowPos calls. Fixes the disappearing
6647 DateTimePicker in the ToolBarDockExample from bug #72499.
6649 2006-10-11 Chris Toshok <toshok@ximian.com>
6651 * TextBoxBase.cs: reorder things a bit when it comes to
6652 resizing-causing-recalculation. we were recalculating the
6653 document when our position was changed, which shouldn't happen.
6654 We only care about size changes. Clear up some more redundant
6655 recalculation calls while I'm at it. This makes the toolbar dock
6656 example snappy when you're just dragging toolbars around (since it
6657 causes a relayout whenever you move one.)
6659 2006-10-11 Chris Toshok <toshok@ximian.com>
6661 * ToolBarButton.cs (get_Rectangle): this only returns
6662 Rectangle.Empty if Visible == false, or Parent == null.
6663 Parent.Visible doesn't matter.
6665 2006-10-10 Chris Toshok <toshok@ximian.com>
6667 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
6668 by .net 1.1, so switch to an internal method instead.
6670 2006-10-10 Chris Toshok <toshok@ximian.com>
6672 * Control.cs (WM_PAINT): when a control is double buffered we draw
6673 initially to the ImageBuffer and then copy from there. But when a
6674 parent control which has child controls is double buffered, the
6675 initial drawing doesn't encompass the entire ClientRectangle of
6676 the parent control, so we end up with uninitialized bits (this is
6677 easily seen by dragging the top toolbar in
6678 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
6679 manually set the ClipRectangle of the paint_event (only the one we
6680 use to populate the ImageBuffer) to ClientRectangle. Fixes more
6681 of the nastiness in bug #72499.
6683 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
6684 which we use in Control.cs's WM_PAINT handling.
6686 2006-10-10 Jackson Harper <jackson@ximian.com>
6688 * TextBoxBase.cs: Finish off the autoscrolling stuff.
6690 2006-10-10 Chris Toshok <toshok@ximian.com>
6692 * Cursor.cs: Apply a slightly different patch to the one suggested
6695 2006-10-10 Jackson Harper <jackson@ximian.com>
6697 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
6698 not the parent form.
6699 * TextControl.cs: use difference in old line count vs new count to
6700 calculate how many lines were added, this takes into account soft
6701 line breaks properly.
6703 2006-10-10 Chris Toshok <toshok@ximian.com>
6705 * LinkLabel.cs: don't call MeasureCharacterRanges against a
6706 rectangle located at 0,0 and the size of the text. Use
6707 ClientRectangle instead. This fixes rendering of non-left aligned
6710 2006-10-10 Jackson Harper <jackson@ximian.com>
6712 * TextBoxBase.cs: When we set the selection start position the
6714 * TextControl.cs: Need to update the caret when we decrement it to
6716 - Make sure that the selection_visible flag gets reset to false if
6717 the selection isn't visible. Before this you could get it set to
6718 visible by changing the selection start, then changing the end to
6721 2006-10-09 Jackson Harper <jackson@ximian.com>
6723 * TreeView.cs: Don't update scrollbars when we aren't visible.
6724 * TreeNodeCollection.cs: Only need to update scrollbars if being
6725 added to an expanded visible node or the root node.
6727 2006-10-09 Chris Toshok <toshok@ximian.com>
6729 * XplatUIX11.cs (SendMessage): fix NRE.
6731 2006-10-09 Jackson Harper <jackson@ximian.com>
6733 * TextBoxBase.cs: Implement horizontal autoscrolling.
6734 * TextControl.cs: Add a movement types that allows moving forward
6735 and backwards without wrapping.
6737 2006-10-09 Mike Kestner <mkestner@novell.com>
6739 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
6740 with focus "expansion" of labels. Fixes #79532 and then some.
6741 * ThemeWin32Classic.cs : add LineLimit to ListView label format
6744 2006-10-09 Jackson Harper <jackson@ximian.com>
6746 * TextBoxBase.cs: Set the default max values to MaxValue since
6747 we use the scrollbar for autoscrolling and the default value is
6748 100. If we don't do this the caret won't keep up with typing
6749 after about 18 characters.
6750 * TextControl.cs: Make sure the selection is offset by the
6751 viewport x. This fixes selection when using auto scrolling.
6753 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
6755 * Form.cs: The active control should be selected after the
6756 OnLoad so that any child control initialization that affects
6757 the selection is done. Fixes #79406
6759 2006-10-06 Chris Toshok <toshok@ximian.com>
6761 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
6762 to have no evil effects.
6764 - Stop selecting StructureNotifyMask on non-toplevel windows.
6766 The only way children should be resized is by using the SWF api,
6767 and we already send WM_WINDOWPOSCHANGED messages in those cases.
6768 Toplevel windows can be interacted with via the window manager,
6769 and so we keep the input mask there.
6771 The other event StructureNotifyMask gives us (that we care
6772 about) is DestroyNotify. The code is already structured such
6773 that it assumes we won't be getting a DestroyNotify event for
6774 the window we pass to XDestroyWindow (which is what
6775 StructureNotifyMask is supposed to guarantee.) So, that code
6776 shouldn't be affected by this either.
6778 - Stop selecting VisibilityChangeMask altogether.
6780 We weren't doing anything with the resulting events anyway.
6782 This vastly reduces the number of X requests and events we see
6783 when resizing/laying out a large ui.
6785 2006-10-06 Chris Toshok <toshok@ximian.com>
6787 * ScrollableControl.cs (DisplayRectangle): we need to take into
6788 account the DockPadding regardless of whether or not auto_scroll
6789 == true. rework this slightly to this effect, and fix bug #79606,
6790 and part of #72499 (you can now see the drag handles and drag
6793 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
6795 * ListViewItem.cs: Collections of selected and checked items are now
6796 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
6797 we mark the collection "dirty".
6798 * ListView.cs: Marked collections readonly. Modified UpdateSelection
6799 to only clear SelectedItems when a new item is selected and MultiSelect
6800 is enabled. CheckedItems and SelectedItems now subscribe to Changed
6801 event of ListViewItemCollection, and mark its list dirty whenever
6802 that event is fire. This allows us to return selected/checked items
6803 in the same order as they are in the Items collection. This matches
6806 2006-10-06 Chris Toshok <toshok@ximian.com>
6808 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
6809 right mouse clicks. Fixes bug #79593.
6811 2006-10-06 Chris Toshok <toshok@ximian.com>
6813 * Splitter.cs: doh, fix splitters that don't want to cancel the
6814 movement when you drag them. Also, impose the limits on the
6815 values we send to the SplitterMovingEvent. Fixes #79598.
6817 2006-10-06 Jackson Harper <jackson@ximian.com>
6819 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
6820 since we use this for auto scrolling also.
6822 2006-10-05 Chris Toshok <toshok@ximian.com>
6824 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
6825 beginning to think that most datagrid column types don't need this
6826 method. Fixes bug #79392.
6828 2006-10-05 Chris Toshok <toshok@ximian.com>
6830 * DataGrid.cs: move back to a more lazy scheme for creating the
6831 CurrencyManager, so we aren't updating it every time you set
6832 either DataSource or DataMember. Also, don't call
6833 RecreateDataGridRows if the currency manager hasn't changed.
6835 2006-10-05 Chris Toshok <toshok@ximian.com>
6837 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
6838 emitted, SelectedIndex should already be updated. Fixes bug
6841 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
6843 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
6844 ToolStripTextBox.cs: Initial commit.
6845 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
6847 2006-10-05 Jackson Harper <jackson@ximian.com>
6849 * TabControl.cs: We need to invalidate the tab control area when
6850 new ones are added (duh).
6852 2006-10-03 Chris Toshok <toshok@ximian.com>
6854 * Form.cs (ProcessDialogKey): if the focused control is in this
6855 form and is a button, call its PerformClick method here. Fixes
6858 2006-10-04 Jackson Harper <jackson@ximian.com>
6860 * TabPage.cs: Ignore setting of Visible, and add an internal
6861 method for setting the controls visibility. TabPage's Visible
6862 property is a little strange on MS, this seems to make us
6863 compatible, and fixes cases where people set all the tab pages to
6865 * TabControl.cs: Use the new internal setting on tab pages
6868 2006-10-03 Mike Kestner <mkestner@novell.com>
6870 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
6872 2006-10-03 Mike Kestner <mkestner@novell.com>
6874 * ListView.cs : use is_visible instead of Visible to check if
6875 scrollbars should be placed/sized. Also some max_wrap_width
6876 love for LargeIcon view. [Fixes #79533]
6878 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
6881 Make set_TextAlign() do actually update the align. Fixed #78403.
6883 2006-10-03 Chris Toshok <toshok@ximian.com>
6885 * DataGrid.cs: fix a crash when switching datasources if the
6886 vertical scrollbar is at someplace other than Value = 0. Also,
6887 reduce the number of recalculation passes we do in SetDataSource
6890 2006-10-03 Jackson Harper <jackson@ximian.com>
6892 * TextBoxBase.cs: Move the if value the same bail check up, we
6893 don't want to empty the document if it is already empty, this
6894 seems to severly mess up the caret. TODO: I should probably fix
6895 the empty statement to update teh caret somehow.
6897 2006-10-03 Chris Toshok <toshok@ximian.com>
6899 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
6900 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
6901 reflection, an internal row type, properties on said type, etc.)
6902 will work with our datagrid. Fixes #79531.
6904 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
6906 * FileDialog.cs: Don't crash if a path is not accessible
6907 (System.UnauthorizedAccessException). Fixes #79569.
6908 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
6909 a ':' too. Return unknown icon for those paths/files.
6911 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
6913 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
6914 GetContainerControl returns null.
6916 2006-10-02 Chris Toshok <toshok@ximian.com>
6918 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
6919 call to XGetWindowAttributes instead of "handle". fixes an X
6920 error using notifyicon after the NotifyIconWindow to Form base
6923 2006-10-02 Chris Toshok <toshok@ximian.com>
6925 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
6926 server grab and looping we need to do to get down to the most
6927 deeply nested child window.
6928 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
6929 QueryPointer again after the WarpPointer so we can generate a
6930 proper (fake) MotionNotify event to be enqueued in the destination
6932 (GetCursorPos): call QueryPointer.
6936 2006-10-02 Jackson Harper <jackson@ximian.com>
6938 * NotifyIcon.cs: Derive the notify icon from a form, so things
6939 like FindForm work on it.
6940 - Swallow the WM_CONTEXTMENU message, since that is generated on
6941 mouse down, and context menu is a mouse up kinda guy. I believe
6942 the correct fix here is probably to make the notify icon entirely
6943 NC area, but this seems to work fine for anyone not manipulating
6946 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
6948 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
6949 ToolStripItemCollection.cs, ToolStripLabel.cs,
6950 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
6951 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
6952 Initial implementation.
6953 * TextRenderer.cs: Provide padding to MeasureText.
6955 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
6957 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
6958 of ButtonBaseAccessibleObject. Fix bug #79552.
6960 2006-10-02 Jackson Harper <jackson@ximian.com>
6962 * MdiWindowManager.cs: When maximizing use the containers client
6963 rect, not it's bounds, so nc area is accounted correctly.
6964 - Use the parent form's size for the menu position, since the
6965 client isn't always the full form size.
6967 2006-10-01 Chris Toshok <toshok@ximian.com>
6969 * ScrollableControl.cs: make sure neither right_edge or
6970 bottom_edge are < 0, since they're used as LargeChange for the
6971 horiz/vert scrollbars respectively. Fixes #79539.
6973 2006-10-01 Chris Toshok <toshok@ximian.com>
6975 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
6976 the xplatuix11 code can cause us to destroy/recreate our handle.
6980 - this code can be invoked many times for the same Hwnd. Make
6981 sure we only destroy the client window once (the first time this
6982 method is called). This fixes bug #79544.
6983 - Remove the call to the improperly bound XSync. why we had two
6984 bindings to this, I will never know, but this call resulted in
6985 events being discarded from the queue(!).
6986 - correct a misunderstanding of _XEMBED_INFO - the second atom is
6987 not our current state but the state we wish to be in. So, 0 if
6988 we don't want to be mapped. Change it to 1.
6989 (SystrayRemove): The XEMBED spec makes mention of the fact that
6990 gtk doesn't support the reparent of client windows away from the
6991 embedder. Looking at gtksocket-x11.c seems to agree with this.
6992 The only avenue we have for removing systray icons is to destroy
6993 them. We don't want the handle to go away for good, though, so
6994 call InternalRecreateHandle on the NotifyIconWindow. Fixes
6997 2006-10-01 Chris Toshok <toshok@ximian.com>
6999 * Form.cs (WndProc): inline the native_enabled variable usage into
7000 the cases in which it's used. Fixes #79536.
7002 2006-09-29 Mike Kestner <mkestner@novell.com>
7004 * ListView.cs : toggle the selection state for ctrl clicks in
7005 multiselect mode. [Fixes #79417]
7007 2006-09-29 Mike Kestner <mkestner@novell.com>
7009 * ListView.cs : kill CanMultiSelect and refactor the selection
7010 code to support multiselection in the absence of mod keys. Steal
7011 arrow/home/end keys by overriding InternalPreProcessMessage to
7012 restore regressed keynav behavior.
7015 2006-09-29 Jackson Harper <jackson@ximian.com>
7017 * MdiClient.cs: Repaint the titlebars when the active window is
7020 2006-09-29 Chris Toshok <toshok@ximian.com>
7022 * Application.cs: when entering a runloop with a modal, make sure
7023 the hwnd is enabled. Fixes #79480.
7025 2006-09-29 Chris Toshok <toshok@ximian.com>
7027 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
7028 when ListManager.CanAddRows == false, bump us back one.
7030 * DataGridColumnStyle.cs (ParentReadOnly): remove the
7031 listmanager.CanAddRows check. This makes ArrayLists uneditable
7032 using a datagrid, which is not right.
7033 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
7034 is an IEditable, but call property_descriptor.SetValue regardless.
7037 2006-09-29 Chris Toshok <toshok@ximian.com>
7039 * DataGridBoolColumn.cs: we need to test equality in the face of
7040 possible null values (as is the case with the default NullValue).
7041 This patch keeps us from crashing in that case.
7043 2006-09-29 Jackson Harper <jackson@ximian.com>
7045 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
7046 here, since it will get called for every node collection in the
7047 tree. This is now done in the treeview once the sorting is
7049 * TreeView.cs: Recalculate the visible order, and update the
7050 scrollbars after sorting, set the top nope to the root so that the
7051 recalc actually works.
7053 2006-09-29 Chris Toshok <toshok@ximian.com>
7055 * LinkLabel.cs: more handling of the default link collection in
7056 the face of LinkArea manipulation. The default link collection
7057 contains 1 element (start=0,length=-1). If the user sets LinkArea
7058 to anything and the links collection is the default, clear it.
7059 Then only add the link if its nonempty. Fixes #79518.
7061 2006-09-29 Chris Toshok <toshok@ximian.com>
7063 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
7064 piece correctly when we hit a '\n'. Fixes #79517.
7066 2006-09-29 Chris Toshok <toshok@ximian.com>
7068 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
7069 change the binding of gdk_init_check to take two IntPtr's, and
7070 pass IntPtr.Zero for both of them. Fixes #79520.
7072 2006-09-29 Mike Kestner <mkestner@novell.com>
7074 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
7077 2006-09-28 Jackson Harper <jackson@ximian.com>
7079 * XplatUIX11.cs: When translating NC messages make sure we go from
7080 whole window to screen, not client window to screen.
7081 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
7082 method doesn't exist
7083 - Skip over controls that aren't forms when arranging.
7085 2006-09-28 Jackson Harper <jackson@ximian.com>
7087 * XplatUIWin32.cs: Clip the rect to the parent window.
7088 * XplatUIStructs.cs: Add clipping modes struct.
7089 * InternalWindowManager.cs: New private method that factors title
7090 bar heights in when calculating the pos of an NC mouse message.
7091 - Use SendMessage to force a paint when the form's size is changed
7092 instead of painting the decorations immediately.
7093 - Don't let the NC button click messages get to DefWndProc,
7094 because they will attempt to handle windowing themself, and this
7095 messes up z-order (it will put them in front of the scrollbars).
7096 * XplatUIX11.cs: Make sure that we don't reset window managers if
7097 we already have one (ie the window is an MDI window).
7099 2006-09-28 Chris Toshok <toshok@ximian.com>
7101 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
7102 menu code really needs going over.
7104 2006-09-27 Chris Toshok <toshok@ximian.com>
7106 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
7107 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
7108 window is maximizable. So, we need to make sure that even if we
7109 clear the border/wm frame of those functions, they're still
7110 available (basically, we remove the decoration without removing
7111 the function). Half the fix for #79338.
7113 2006-09-27 Chris Toshok <toshok@ximian.com>
7115 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
7118 2006-09-27 Chris Toshok <toshok@ximian.com>
7120 * Splitter.cs: reorder things a bit so that we don't actually
7121 draw/move the splitter until after calling OnSplitterMoving. This
7122 lets users cancel/disallow the movement by explicitly setting
7123 event.SplitX/SplitY. Fixes #79372.
7125 2006-09-27 Jackson Harper <jackson@ximian.com>
7127 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
7128 because it is most likely on a window being destroyed, and that
7129 will give us an X11 error.
7131 2006-09-27 Chris Toshok <toshok@ximian.com>
7133 * PropertyGridView.cs: half of the fix for #78190. Clicking on
7134 the dropdown button now toggles between showing and hiding the
7135 dropdown. Also, get rid of dropdown_form_showing and just use
7136 dropdown_form.Visible. We still don't do a grab, but I'll leave
7137 that part to someone who has handled Capture-fu before.
7139 2006-09-27 Chris Toshok <toshok@ximian.com>
7141 * DataGrid.cs: return false if alt isn't pressed when '0' is
7142 pressed. this keeps the '0' key from being swallowed, and fixes
7145 2006-09-27 Chris Toshok <toshok@ximian.com>
7147 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
7148 Calling Refresh (in response to a scrollbar event) screws up the
7149 scrollbar painting. Fixes bug #78923.
7151 2006-09-27 Chris Toshok <toshok@ximian.com>
7153 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
7154 then insert into hashtable" blocks threadsafe.
7156 2006-09-27 Chris Toshok <toshok@ximian.com>
7158 * MessageBox.cs (CreateParams): the styles should be |'ed with our
7159 baseclass's, since otherwise the
7160 ControlBox/MinimizeBox/MaximizeBox assignments above have no
7161 effect. This gets the close button back in messageboxes.
7163 2006-09-27 Chris Toshok <toshok@ximian.com>
7165 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
7166 flag, not just != 0. this makes flags that are actually multiple
7167 bits (like WS_CAPTION) work. fixes bug #79508.
7169 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
7171 * PageSetupDialog.cs: add support for getting and settings the
7172 paper size, source and orientation.
7174 2006-09-26 Chris Toshok <toshok@ximian.com>
7176 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
7177 and caption == "", we need to remove the resize handles as well as
7180 * Control.cs (set_Text): turns out that setting Text on a form
7181 should change the WM styles on the window, since if ControlBox ==
7182 false, the only way to get a window border is to have a non-""
7183 Text property. check winforms/forms/text.cs for an example. so,
7184 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
7185 update both window styles and title. This fixes a lot of dialogs
7186 (including the preferences dialog in MonoCalendar.)
7188 2006-09-26 Chris Toshok <toshok@ximian.com>
7190 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
7191 control isn't a Form), call Win32ShowWindow to hide the window,
7192 but don't update the control Visible property. When we reparent
7193 back to a parent control, call SetVisible in order for the
7194 window's visibility to be reinstated.
7196 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
7199 * Control.cs (ControlCollection.Remove): remove that value.Hide()
7200 call for good, since it breaks MonoCalendar (and other things I'm
7201 sure.) Also, set all_controls to null *after* the owner calls,
7202 which end up regenerating it.
7203 (ChangeParent): allow new_parent to be == null, passing
7204 IntPtr.Zero down to XplatUI.
7206 this fixes #79294 the right way.
7208 2006-09-26 Mike Kestner <mkestner@novell.com>
7210 * GridEntry.cs : internal SetParent method.
7211 * PropertyGrid.cs : attach to property changed on the proper
7212 target if we have a hierarchical grid with subobjects. Setup
7213 GridItem.Parent for hierarchical items.
7214 * PropertyGridView.cs : Set value on the correct target for
7215 hierarchical grids. [Fixes #78903]
7217 2006-09-26 Chris Toshok <toshok@ximian.com>
7219 * Control.cs (ChildNeedsRecreating): this should return true if
7220 either we're being recreated and the child is in our list, or our
7221 parent is waiting for our recreation.
7223 2006-09-26 Chris Toshok <toshok@ximian.com>
7225 * Control.cs (ControlCollection.Remove): reinstate the
7226 value.Hide() call as suggested in bug #79294.
7228 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
7230 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
7231 coordinates (versus a relative move).
7233 2006-09-26 Chris Toshok <toshok@ximian.com>
7235 * Control.cs: rework child recreation a little bit. It turns out
7236 that we race between the DestroyNotify the WM_DESTROY message. If
7237 the parent gets its DestroyNotify before the child gets the
7238 WM_DESTROY message, the child ends up not recreating (since the
7239 parent finishes its recreation on DestroyNotify, and the child
7240 checks ParentIsRecreating.)
7242 So, instead we store off a list of all the child controls which
7243 need to be recreated when the parent control starts to recreate
7244 itself. Then, when child controls get their WM_DESTROY message we
7245 check to see if they're in the parent's pending recreation list,
7246 and if so, we recreate. This removes all dependency on ordering
7247 from the code and fixes the initial MonoCalendar upgrade dialog.
7249 2006-09-26 Jackson Harper <jackson@ximian.com>
7251 * TextControl.cs: Use the Line to get the length of the line,
7252 since soft line breaks can change the end line.
7254 2006-09-26 Chris Toshok <toshok@ximian.com>
7256 * Control.cs (ControlCollection.AddImplicit): don't add the
7257 control again if it's already in one of our lists. This keeps us
7258 from adding controls over and over again for comboboxes when their
7259 handle gets recreated (as the combobox adds implicit controls in
7260 OnHandleCreated). Fixes the X11 errors in bug #79480.
7262 2006-09-26 Jackson Harper <jackson@ximian.com>
7264 * TextControl.cs: When deleting characters make sure that any
7265 orphaned zero lengthed tags get deleted.
7266 - Fix ToString for zero lengthed tags.
7268 2006-09-25 Jackson Harper <jackson@ximian.com>
7270 * TextControl.cs: When getting a tag at the location there can be
7271 multiple tags at the same spot, these are 0-lengthed tags that
7272 appear when extra formatting has been stuck in a location. We
7273 need to pull out the last of these 0 lengthed tags.
7275 2006-09-25 Jackson Harper <jackson@ximian.com>
7277 * TextControl.cs: Fix print out in debug method.
7278 * TextBoxBase.cs: When text is set bail if we are setting to the
7281 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
7283 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
7284 It is now possible to change the selected index in a FontXXXListBox
7285 with the up and down arrow keys from the FontXXXTextBoxes.
7286 Also, send the FontXXXTextBox mouse wheel event to the corresponding
7287 FontXXXListBoxes to match ms.
7289 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
7291 * SystemInformation.cs: Return a clone of the theme's MenuFont because
7292 anyone can dispose it, anytime. All other properties returns enums,
7293 structs or basic types so they don't need such tricks.
7295 2006-09-22 Jackson Harper <jackson@ximian.com>
7302 * XplatUIDriver.cs: Update interface to add a primary selection
7303 flag, so the driver can use the primary selection buffer if
7305 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
7307 * RichTextBox.cs: We need to supply the data object to paste now
7308 (so we can choose to supply CLIPBOARD or PRIMARY).
7309 * TextBoxBase.cs: Supply data object to paste (see above).
7310 - Middle click uses the primary selection data object.
7312 2006-09-21 Chris Toshok <toshok@ximian.com>
7314 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
7315 of SetWMStyles. It's still a rat's nest and is largely
7316 order-dependent which I dislike immensely. This also fixes the X
7317 button disappearing from toplevel forms.
7319 2006-09-21 Mike Kestner <mkestner@novell.com>
7321 * ListBox.cs: move Jordi's click/dblclick raising code to the
7324 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
7326 * ListBox.cs: Fixes 79450
7328 2006-09-21 Mike Kestner <mkestner@novell.com>
7330 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
7331 to deal with people updating the TreeNodeCollection after the tree
7332 is disposed. "Fixes" 79330.
7334 2006-09-20 Jackson Harper <jackson@ximian.com>
7336 * TextControl.cs: Push the cursor record onto the undo stack
7337 before the delete action. This fixes 78651.
7339 2006-09-20 Jonathan Chambers <joncham@gmail.com>
7341 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
7342 CreateParams. Fixes 79329.
7344 2006-09-19 Chris Toshok <toshok@ximian.com>
7346 * XplatUIX11.cs: a couple of blanket code massage passes to clean
7347 things up a bit. First, get rid of the NetAtoms array (and the NA
7348 enum), and just embed the atoms as static fields. Also, add a
7349 couple of functions (StyleSet and ExStyleSet) to clean up all the
7350 bitmask testing of styles.
7352 * X11Structs.cs: remove the NA enum, not needed anymore.
7354 2006-09-19 Chris Toshok <toshok@ximian.com>
7356 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
7357 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
7358 added cleanup to get MessageBox titles appearing again, which were
7359 broken by my earlier fix for caption-less/ControlBox-less windows.
7361 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
7363 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
7364 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
7365 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
7366 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
7367 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
7368 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
7369 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
7370 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
7371 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
7372 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
7373 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
7375 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
7376 ToolStripButton.cs: Stubs needed for above.
7377 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
7379 2006-09-15 Chris Toshok <toshok@ximian.com>
7382 - make the MessageQueues hashtable Synchronized.
7384 - SendMessage: if the Hwnd is owned by a different thread, use the
7385 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
7386 thread. Fixes bug #79201.
7388 2006-09-15 Chris Toshok <toshok@ximian.com>
7390 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
7391 ControlBox == false, we disallow maximize/minimize/close. If the
7392 form Caption is "" we also disallow move (and get rid of the Title
7393 decoration). Unfortunately, regardless of how things are set,
7394 we're stuck with the Title and WM menu.
7396 2006-09-15 Chris Toshok <toshok@ximian.com>
7398 * Application.cs: add locking around the static message_filters
7399 ArrayList, part of #79196.
7401 2006-09-15 Chris Toshok <toshok@ximian.com>
7403 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
7404 Form.ControlBox == false, the window has no titlebar nor resize
7405 handles. fixes bug #79368.
7407 2006-09-15 Chris Toshok <toshok@ximian.com>
7409 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
7410 >= 0. Fixes bug #79370.
7412 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
7413 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
7415 Add properties: LayoutEngine, Margin, DefaultMargin.
7416 Add method: GetPreferredSize.
7417 Move layout logic from PerformLayout to layout engines.
7419 2006-09-13 Chris Toshok <toshok@ximian.com>
7421 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
7422 fix for #79326 broke #78718, so this change addresses that.
7424 - in SendWMDestroyMessages remove the call to
7425 CleanupCachedWindows, since we might be recreating the control and
7426 need to maintain the references to right Hwnd handles. Also, set
7427 the zombie flag to true for each of the children in the hierarchy
7428 instead of calling hwnd.Dispose. This will cause GetMessage to
7429 ignore all events for the window except for DestroyNotify.
7431 - In GetMessage, ignore messages except for DestroyNotify for
7434 * Control.cs: revert the is_recreating fix from the last
7435 ChangeLog. It's definitely "right", but it breaks switching from
7436 an MDI form to a non-MDI form. Will need to revisit that.
7438 * Hwnd.cs: add a zombie flag, which means "the
7439 client_window/whole_window handles are invalid, but we're waiting
7440 for the DestroyNotify event to come in for them". Set the flag to
7441 false explicitly if setting WholeWindow/ClientWindow, and also
7444 2006-09-13 Chris Toshok <toshok@ximian.com>
7446 * XplatUIX11.cs: rework window destruction slightly.
7448 - when destroying the windows associated with a control, we don't
7449 need 2 separate XDestroyWindow calls. Just the one for the
7450 whole_window (or for client_window if whole_window is somehow
7451 IntPtr.Zero -- can this happen?) is enough.
7453 - reworked SendWMDestroyMessages slightly, so we always dispose
7454 the child control hwnd's after sending the messages.
7456 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
7457 the two places it was used (one was even using hwnd.Handle and the
7458 other hwnd.client_window. ugh), adding another call in
7459 SendWMDestroyMessages. We need this new call because now the
7460 DestroyNotify events in the queue will be ignored for the child
7461 controls (as their hwnd's were disposed, and the window id's
7462 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
7464 - this fixes bug #79326.
7466 2006-09-13 Chris Toshok <toshok@ximian.com>
7468 * Control.cs: don't always set is_recreating to false at the end
7469 of RecreateHandle, since sometimes we're not done (and won't be
7470 until WndProc handles the WM_DESTROY message). Also, set
7471 is_recreating to false in the WM_DESTROY handling code. Part of
7472 the fix for bug #79326.
7474 2006-09-13 Miguel de Icaza <miguel@novell.com>
7476 * X11DesktopColors.cs: Start the droppage of debugging messages.
7478 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
7480 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
7482 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
7484 2006-09-12 Chris Toshok <toshok@ximian.com>
7486 * DataGrid.cs (get_ListManager): if the list_manager is null, try
7487 to create it using SetDataSource. Fixes bug #79151.
7489 2006-09-11 Chris Toshok <toshok@ximian.com>
7491 * XEventQueue.cs: add a DispatchIdle property.
7493 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
7494 either the queue is null, or the queue has DispatchIdle set to
7496 (DoEvents): set queue.DispatchIdle to false around the
7497 peek/translate/dispatch message loop in this method. This keeps
7498 Application.Doevents from emitting idle events. Part of the fix
7501 2006-09-11 Chris Toshok <toshok@ximian.com>
7503 * DataGrid.cs (set_DataSource): make this work for both the
7504 winforms/datagrid test and ReportBuilder. It seems as though when
7505 we've created a ListManager (or maybe it's if we have a
7506 BindingContext?), when we set the DataSource it clears the
7507 DataMember to "". otherwise we reuse the datamember. Fixes bug
7510 2006-09-11 Chris Toshok <toshok@ximian.com>
7512 * XplatUIX11.cs: deal with queue being null, which happens in all
7513 the Clipboard functions. Fixes one of the two problems mentioned
7516 2006-09-11 Chris Toshok <toshok@ximian.com>
7518 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
7519 button on various spots (including outside the menu) works closer
7520 to MS, and doesn't crash. Fixes #79343.
7522 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
7524 * ListView.cs: Do not initialize item_sorter in init. To match MS,
7525 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
7526 and the internal comparer is set. When a new ListViewItemSorter is set,
7527 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
7528 was specified. No further processing is necessary if SortOrder is set
7529 to it's current value. If Sorting is modified to None, and View is
7530 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
7531 (either custom or our internal ItemComparer) to null, on 1.0 profile
7532 only set item_sorter to null if its our internal IComparer. If Sorting
7533 is modified to Ascending or Descending, then use our internal IComparer
7534 if none is set, and if the current IComparer is our internal one then:
7535 on 2.0 profile always replace it with one for new Sorting, and on 1.0
7536 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
7537 Enum.IsDefined to verify whether a valid View value is specified in
7538 its setter. Automatically sort listview items when listview is
7539 created. In Sort, do nothing if ListView is not yet created, or if
7540 no item_sorter is set (no Sorting was set, Sorting was explicitly set
7541 to None or ListViewItemSorter was set to null). Added Sort overload
7542 taking a bool to indicate whether the ListView should be redrawn when
7543 items are sorted (we use this in ListViewItemCollection to avoid double
7544 redraws). Modified our internal IComparer to take the sort order into
7545 account. In Add and AddRange methods of ListViewItemCollection, also
7546 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
7547 view), but use overload with noredraw option to avoid double redraw.
7548 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
7549 true when View is Tile, and do the same when attempting to set View to
7550 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
7551 for selected/checked indices, as it involves overhead when sorting is
7552 done while these collections are not used all that often. Instead
7553 we'll build the indices on demand. Modified IList implementation of
7554 CheckedIndexCollection to use public methods if object is int.
7555 Modified CheckedListViewItemCollection to hide checked items if
7556 ListView.CheckBoxes is false. Removed LAMESPEC remark in
7557 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
7558 IList implementation in SelectedIndexCollection to use public methods
7559 if object is int. Modified SelectedListViewItemCollection to hide
7560 selected items if listview is not yet created.
7561 * ListViewItem.cs: CheckedIndices list no longer needs to be
7562 maintained separately (see ListView changes). Also clone font, fixes
7565 2006-09-11 Mike Kestner <mkestner@novell.com>
7567 * ComboBox.cs: if we are updating the contents of the currently
7568 selected index, refresh the control or the textbox selection.
7571 2006-09-11 Mike Kestner <mkestner@novell.com>
7573 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
7574 the 'specified' logic has been moved there. This seems like a bug
7575 in Control.cs, since our current SetBoundsCore completely ignores
7576 the specified parameter. Peter's commit seems to indicate that is
7577 the way the MS control implementation works. [Fixes #79325]
7579 2006-09-10 Jonathan Chambers <joncham@gmail.com>
7581 * XplatUI.cs: Set default_class_name to be composed
7582 of current domain id. This allows MWF to be loaded in multiple
7585 2006-09-09 Miguel de Icaza <miguel@novell.com>
7587 * X11Keyboard.cs: If we are unable to obtain the input method, do
7588 not call CreateXic to create the input context. Should fix
7591 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
7593 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
7594 Simplified gnome support by adding more pinvokes to get the
7595 icon for a file or mime type.
7597 2006-09-08 Jackson Harper <jackson@ximian.com>
7599 * MenuAPI.cs: Deslect popup context menu items before closing the
7600 window, so that you don't see the previously selected item
7601 selected when you reopen the menu.
7602 * TextControl.cs: Update the cursor position even if we don't have
7603 focus. This fixes typing in things like the ComboBox. I'm not
7604 totally sure we should always set the visibility if we don't have
7605 focus, but couldn't find any corner cases where the cursor showed
7606 up when it shouldn't.
7608 2006-09-08 Chris Toshok <toshok@ximian.com>
7610 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
7611 our arrays are length 256. & 0xff before indexing. Fixes the
7612 crash in bug #78077.
7614 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7616 * ThemeWin32Classic.cs:
7617 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
7618 is true. Handle that check box too.
7620 2006-09-07 Chris Toshok <toshok@ximian.com>
7622 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
7625 2006-09-07 Chris Toshok <toshok@ximian.com>
7627 * Control.cs: in set_BackColor only do the work if
7628 background_color != value.
7630 * XplatUIX11.cs: move the clearing of invalid areas (both client
7631 and nc) to the same block of code where we set (nc_)expose_pending
7632 to false. That is, move it from PaintEventEnd to PaintEventStart,
7633 so things that cause invalidates from within OnPaint will trigger
7634 another call to OnPaint. Fixes bug #79262.
7636 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
7638 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
7639 * FileDialog.cs: Fix typo
7641 2006-09-07 Jackson Harper <jackson@ximian.com>
7643 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
7644 for tab pages if they have any.
7646 2006-09-06 Mike Kestner <mkestner@novell.com>
7648 * Splitter.cs: use the "current" rect when finishing drag handle
7649 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
7651 2006-09-06 Mike Kestner <mkestner@novell.com>
7653 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
7654 support offset splitters. [Fixes #79298]
7656 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
7658 * Mime.cs: Fixed a bug that could override the global mime type
7661 2006-09-05 Jackson Harper <jackson@ximian.com>
7663 * TabControl.cs: Better calculation method for setting the slider
7664 pos. Prevents crashes on really wide tabs.
7665 - Draw Image on tab pages if an image list is used.
7667 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7669 * MonthCalendar.cs: When Font changes, the Size should be
7670 updated to fit the new font's space requirements.
7672 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
7674 * ListBox.cs: If the items are cleared with Items.Clear set
7677 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7679 * MonthCalendar.cs: Handle arrow keys as input keys. Also
7680 fire DateChanged event instead of DateSelected event when
7681 the date was changed by keyboard interaction.
7683 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7685 * DateTimePicker.cs: Handle DateChanged for the associated
7686 month_calendar control, and set month_calendar.Font from
7687 OnFontChanged method, as well as resize the height of the
7688 control when needed. Make PreferredHeight proportional.
7690 2006-09-01 Chris Toshok <toshok@ximian.com>
7692 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
7695 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
7697 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
7699 * FileDialog.cs: Set ClientSize instead of window size, to allow space
7700 for decorations (Fixes #79219)
7702 2006-09-01 Mike Kestner <mkestner@novell.com>
7704 * ComboBox.cs: first stab at sorting plus some selection handling
7705 fixes to bring us more in line with MS behavior. Also switches back
7706 to index based selection. Alternative patches for index-based
7707 selection were provided by Jackson Harper, Carlos Alberto Cortez,
7708 and latency@gmx.de on bug 78848. I assume they were similar to this
7709 code I've had simmering in my tree forever.
7712 2006-09-01 Chris Toshok <toshok@ximian.com>
7714 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
7715 when setting list position guard against ending up with a -1 index
7716 (the other part of the fix for #78812). Should probably make sure
7717 we don't need the analogous fix in the ItemDeleted case.
7720 - in SetDataSource, work around the fact that the way
7721 OnBindingContextChanged is invoked will cause us to re-enter this
7722 method. I'll remove the hack once I investigate
7723 OnBindingContextChanged.
7725 - fix the logic in set_DataSource and set_DataMember (basically
7726 what to do if the other of the two is null.)
7728 - in OnListManagerItemChanged, we need to take into account the
7729 edit row when deciding whether or not to call RecreateDataGridRows
7730 (part of the fix for #78812).
7732 2006-09-01 Jackson Harper <jackson@ximian.com>
7734 * Splitter.cs: Don't do anything if there is no control to affect
7735 (prevents us from crashing in weird tet cases).
7736 * TreeView.cs: Bounding box for the mouse movement reverting
7737 focus/selection back to previously selected node. This matches
7738 MS, and makes the tree a lot more useable.
7739 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
7740 use clipping so they are not drawn. This fixes when the control
7741 is set to have a transparent background, or if it was over an
7744 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
7746 * MimeIcon.cs: Improved handling for reading default icons when
7747 using gnome (2.16 made it necessary). Check and read svg icons
7748 first, then 48x48 and then 32x32 icons.
7750 2006-08-31 Chris Toshok <toshok@ximian.com>
7752 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
7755 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
7756 ProcessKeyPreview. Fixes part of #77806.
7758 * DataGrid.cs: big patch.
7760 - revert the queueing up of DataSource/DataMember if inside
7761 BeginInit/EndInit calls. That's not the way the datagrid achieves
7762 its delayed databinding. Instead, call SetDataSource in
7763 OnBindingContextChanged. This mimic's MS's behavior, and fixes
7766 - Also, it wasn't mentioned in #78811, but the test case exhibits
7767 behavior that was lacking in our datagrid implementation - Columns
7768 that have mapping names that don't exist in the datasource's
7769 properties aren't shown. Yuck. To fix this I added the bound
7770 field to the column style, and basically any calculation to figure
7771 out anything about columns uses a loop to find the bound columns.
7772 still need to investigate if I can cache an array of the bound
7773 columns or if the indices must be the same.
7775 - When setting CurrentCell, we no longer abort if the cell being
7776 edited was in the add row. This fixes the other part of #77806.
7778 - The new code also fixes #78807.
7780 * ThemeWin32Classic.cs: perpetrate the same disgusting
7781 column.bound field hack, and only render bound fields.
7783 2006-08-31 Chris Toshok <toshok@ximian.com>
7785 * DataGridColumnStyle.cs: add bound field. this field is true if
7786 the datasource has a property corresponding to the mapping name.
7788 * DataGridTableStyle.cs: set the bound field on the column styles
7789 depending on whether or not we have a column for that property.
7791 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
7793 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
7794 splitter control (fixes #79228)
7796 2006-08-31 Chris Toshok <toshok@ximian.com>
7798 * DataGridColumnStyle.cs: we need to delay the assignment of
7799 property descriptor until the last possible moment due to the lazy
7800 databinding stuff in the datagrid. Also, fix the exceptions
7801 thrown by CheckValidDataSource to match MS.
7803 2006-08-31 Jackson Harper <jackson@ximian.com>
7805 * Form.cs: When activated select the active control, if there is
7806 no active control, we select the first control.
7807 * XplatUIX11.cs: If there is no focus control when we get a
7808 FocusIn event, find the toplevel form and activate it. This
7809 occurs when you popup a window, it becomes the focus window, then
7810 you close that window, giving focus back to the main window.
7812 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7815 * ThemeWin32Classic.cs: Cache Font in bold style, as well
7816 as StringFormat with Center alignments in MonthCalendar,
7817 instead of creating new ones when drawing the control.
7818 Also, draw the month name in bold style.
7820 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
7823 - PerformLayout(): It would seem MS performs the fill even if the
7824 control is not visible (part of #79218 fix)
7825 - ResetBackColor(): Use the setter to reset the color, to allow
7826 overriders to catch the change.
7828 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
7829 - CreateHandle(): dito (part of $79218 fix)
7830 - Don't set an icon if we have a dialog
7831 * ScrollableControl.cs:
7832 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
7833 - ScrollIntoView(): No need to scroll if control is already visible
7834 (resolves fixme and fixes #79218)
7836 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7838 * MonthCalendar.cs: Change proportions in SingleMonthSize
7839 to match the aspect of the original control.
7841 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
7843 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
7844 get updated when they get maximized.
7846 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
7848 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
7850 2006-08-29 Chris Toshok <toshok@ximian.com>
7852 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
7854 2006-08-29 Jackson Harper <jackson@ximian.com>
7856 * TreeView.cs: Need to track selected node and highlighted node,
7857 they aren't always the same thing, when the mouse is down on a
7858 node it is hilighted, but not selected yet.
7859 - Do the HideSelection stuff right
7860 - Need to focus on rbutton mouse down. And redraw selection when
7861 right click is mouse upped.
7863 2006-08-29 Mike Kestner <mkestner@novell.com>
7865 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
7866 when SubItems.Count < Columns.Count. [Fixes #79167]
7868 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
7870 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
7872 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
7874 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
7875 from X. Only send based on ConfigureNotify if we don't have the
7876 correct location in hwnd (if the window manager moved us)
7878 2006-08-28 Mike Kestner <mkestner@novell.com>
7880 * ListView.cs: remove a TODO.
7881 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
7882 [Fixes ListView part of #79166]
7884 2006-08-28 Mike Kestner <mkestner@novell.com>
7886 * ListView.cs: move wheel handler to parent since it is focused
7887 instead of the item_control now. [Fixes #79177]
7889 2006-08-28 Mike Kestner <mkestner@novell.com>
7891 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
7892 when the control is focused. [Fixes #79171]
7894 2006-08-28 Mike Kestner <mkestner@novell.com>
7896 * ListView.cs: size the item and header controls for empty and
7898 * ThemeWin32Classic.cs: draw disabled backgrounds.
7901 2006-08-28 Chris Toshok <toshok@ximian.com>
7903 * Form.cs: remove unused "active_form" static field.
7905 * Hwnd.cs: lock around accesses to static windows collection.
7907 * Application.cs: lock threads in Exit ().
7909 2006-08-28 Chris Toshok <toshok@ximian.com>
7911 * NativeWindow.cs: lock around accesses to window_collection.
7913 2006-08-28 Chris Toshok <toshok@ximian.com>
7915 * Control.cs: err, fix this the right way, by locking on controls
7916 when using it. not by making it synchronized.
7918 2006-08-28 Chris Toshok <toshok@ximian.com>
7920 * Control.cs: make the static "controls" field synchronized, as it
7921 gets updated from multiple threads.
7923 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
7925 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
7926 Prevent other threads from exiting when calling thread sets quit state.
7927 * XEventQueue.cs: Added PostQuitState property
7929 2006-08-27 Chris Toshok <toshok@ximian.com>
7931 * AsyncMethodData.cs: add a slot for the window handle.
7933 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
7934 window (the destination control's window, not the foster window).
7936 * Control.cs (BeginInvokeInternal): store the window's handle in
7937 the AsyncMethodData.
7940 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
7943 - PostQuitMessage: Removed resetting S.D display handle, we might have
7944 another loop started after calling PostQuitMessage (Fixes #79119)
7945 - Created destructor to reset S.D handle
7947 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
7949 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
7951 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
7953 * TextControl.cs (Insert): Update the caret position even if we don't
7954 have a handle yet, just don't call the driver in that case.
7955 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
7956 to the end of the new selection text (Fixes #79184)
7958 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
7960 * Form.cs (Activate): Only activate if the handle is created)
7962 - Mark window as invisible when it's disposed
7963 - Check if window handle is created when setting window visible,
7964 instead of relying just on the is_created variable
7965 - Check if object is disposed when creating the control (Fixes #79155)
7967 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
7969 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
7970 when allowing layout again. Otherwise we re-generate the anchoring
7971 distance to the border again and actually alter what the user wanted
7972 This is ugly, it'd be better if we used DisplayRectangle instead of
7973 ClientRectangle for Control.UpdateDistances, but that causes us to
7974 have other problems (initial anchoring positons would be wrong)
7977 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
7980 - The size and location setters shouldn't go directly to
7981 SetBoundsCore, but to SetBounds, which triggers layout on the
7982 parent, then calls SetBoundsCore. (Related to fix for #78835)
7983 - SetBounds: Moved actual location update code into this function
7984 from SetBoundsCore, to match MS. Added call to PerformLayout if
7985 we have a parent (to trigger resizing of anchored parents if the
7986 child size has changed (see testcase for #78835)
7987 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
7989 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
7991 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
7993 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
7994 System.Drawing when a toplevel window gets closed; there might
7995 be other toplevel windows belonging to the same app (Fixes #78052)
7997 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
7999 * FileDialog.cs: After reading FileDialog settings from mwf_config
8000 use Desktop prefix only if a real folder doesn't exist anymore.
8001 * FontDialog.cs: Added char sets.
8002 It is now possible to select the font, size or style with the
8005 2006-08-25 Kornél Pál <kornelpal@gmail.com>
8007 * PrintPreviewDialog.cs: Use assembly name constants.
8009 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
8011 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
8012 scrollbar from whacking it's buttons)
8014 2006-08-24 Chris Toshok <toshok@ximian.com>
8016 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
8017 in this patch (aggregating setting Left/Top/Width/Height to
8018 setting Bounds on the scrollbars), but the crux of the fix is in
8019 Recalculate, where we scroll by the remaining scroll_position if
8020 we're hiding a scrollbar. The 2*$5 reward in the comment is
8023 2006-08-24 Jackson Harper <jackson@ximian.com>
8026 * MdiWindowManager.cs: If the form is made a non-mdi window we
8027 need to remove the form closed event so that closing forms works
8030 2006-08-24 Jackson Harper <jackson@ximian.com>
8032 * Control.cs: Make IsRecreating internal so that the driver can
8034 - Temporarily remove the Hide when controls are removed, its
8035 making a whole bunch of things not work because visibility isn't
8036 getting reset elsewhere correctly
8037 * Form.cs: Need to do a full handle recreation when the mdi parent
8039 * XplatUIX11.cs: If we are recreating handles don't dispose the
8040 HWNDs. What was happening is the handles were being recreated in
8041 SendWMDestroyMessages, but then flow continued on in that method
8042 and destroyed the new handles.
8044 2006-08-23 Jackson Harper <jackson@ximian.com>
8046 * Form.cs: MdiClient is always at the back of the bus
8047 * Control.cs: When the order of items in the collection is changed
8048 we need to reset the all_controls array
8049 - do the same sorta setup thats done when adding a control when a
8050 control is set on the collection.
8052 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
8054 * TextBoxBase.cs (get_Text): Return an empty array if our document
8055 is empty (fixes #79052)
8057 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
8059 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
8060 on WM_SYSCHAR messages (fixes #79053)
8062 2006-08-23 Chris Toshok <toshok@ximian.com>
8064 * DataGrid.cs: fix flickering when scrolling vertically.
8066 2006-08-23 Chris Toshok <toshok@ximian.com>
8068 * DataGrid.cs (EndEdit): only invalidate the row header when we
8071 2006-08-23 Chris Toshok <toshok@ximian.com>
8073 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
8074 methods. fixes the flicker when scrolling around.
8076 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
8078 * FileDialog.cs: Making sure the control is created before we get a
8079 chance to use it with BeginInvoke (Fixes #79096)
8081 2006-08-23 Chris Toshok <toshok@ximian.com>
8083 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
8084 width to use when painting the rows.
8086 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
8089 - Throw ArgumentException if a negative value is passed to SelectionLength
8090 - Update the selection end if start is moved. end needs to be always
8091 after start. (Fixes #79095)
8092 - Track selection length; MS keeps the selection length even if start
8093 is changed; reset on all other operations affection selection
8095 2006-08-22 Jackson Harper <jackson@ximian.com>
8097 * TreeView.cs: Make sure both scrollbars get displayed and sized
8098 correctly when the other bar is visible.
8099 - Use the original clip rectangle for checking if the area between
8100 the two scrollbars is visible, not the viewport adjusted clipping
8103 2006-08-22 Jackson Harper <jackson@ximian.com>
8105 * Binding.cs: We don't use IsBinding because it requires the
8106 control to be created, which really shouldn't be necessary just to
8107 set a property on the control.
8109 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8111 * ComboBox.cs: Some CB.ObjectCollection methods must throw
8112 ArgumentNullReferenceException when the argument is null.
8114 2006-08-21 Jackson Harper <jackson@ximian.com>
8116 * Timer.cs: Track the thread that the timer is started in (NOT
8117 CREATED), this way messages for it will only be triggered on its
8119 * XEventQueue.cs: Track the timers here, this makes timers per
8121 * XplatUIX11.cs: The timers are moved to the XEventQueue.
8123 2006-08-19 Chris Toshok <toshok@ximian.com>
8125 * XplatUIX11.cs: after further communication with pdb, we get the
8126 best of both worlds. SetZOrder working for un-Mapped windows, and
8127 no X errors for un-mapped windows.
8129 2006-08-19 Chris Toshok <toshok@ximian.com>
8131 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
8132 as it was causing pdn toolbars to not have the correct stacking.
8134 2006-08-18 Mike Kestner <mkestner@novell.com>
8136 * ListView.cs : guard against negative ClientArea.Width in scrollbar
8137 calculation. Not sure why control should ever be setting a negative
8138 width though. Fixes #78931.
8140 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8142 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
8143 null items in ObjectCollection class.
8144 * ListBox.cs.: Likewise.
8146 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
8148 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
8149 as the base method in ThemeWin32Classic should work fine.
8152 2006-08-18 Jackson Harper <jackson@ximian.com>
8154 * Binding.cs: When validating if the value entered doesn't convert
8155 properly reset to the old value.
8156 * RadioButton.cs: Don't fire click when we get focus.
8158 2006-08-18 Jackson Harper <jackson@ximian.com>
8160 * FileDialog.cs: Paint the selection on the directory combobox the
8163 2006-08-17 Jackson Harper <jackson@ximian.com>
8165 * ErrorProvider.cs: Don't allow the error control to be selected.
8166 * Control.cs: Don't send the SetFocus messages, the control
8167 activation will do this, and if we do it blindly here validation
8170 2006-08-17 Jackson Harper <jackson@ximian.com>
8173 * ContainerControl.cs: Make validation events fire in the correct
8174 order. TODO: For some reason the first validation event is not
8177 2006-08-17 Mike Kestner <mkestner@novell.com>
8179 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
8181 2006-08-17 Mike Kestner <mkestner@novell.com>
8183 * ComboBox.cs : implement scroll wheel support for popped-down
8184 state. Fixes #78945.
8186 2006-08-17 Jackson Harper <jackson@ximian.com>
8188 * TreeView.cs: Specify treeview actions (old patch that didn't get
8189 committed for some reason).
8190 - Don't let the mouse wheel scroll us too far. Just want to make
8191 the bottom node visible, not scroll it all the ways to the top.
8193 2006-08-17 Jackson Harper <jackson@ximian.com>
8195 * XplatUIX11.cs: Mouse wheel events go to the focused window.
8197 2006-08-17 Mike Kestner <mkestner@novell.com>
8199 * ComboBox.cs : don't do mouseover selection in simple mode.
8201 2006-08-16 Jackson Harper <jackson@ximian.com>
8203 * Form.cs: Fire the closing events for all the mdi child windows
8204 when a window is closed. If the cancel args are set to true, the
8205 main window still gets the event fired, but it doesn't not close.
8206 * MdiWindowManager.cs: Do this closing cleanup in a Closed
8207 handler, instead of when the button is clicked, so cancelling the
8208 close works correctly.
8209 * ComboBox.cs: Send the mouse down to the scrollbar.
8211 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8213 * ListBox.cs: When passing 'null' to SelectedItem,
8214 set SelectedIndex to -1, to unselect items. This is the
8215 observed behaviour in .Net.
8217 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
8219 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
8220 MS flags saying there won't be any. (fixes #78800)
8221 * Control.cs (HandleClick): Made virtual
8223 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
8225 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
8226 cultures. Fixed bug #78399.
8228 2006-08-16 Jackson Harper <jackson@ximian.com>
8230 * Form.cs: Use the MdiClients MdiChildren property to access
8231 MdiChildren instead of creating the array from the child controls.
8232 * MdiClient.cs: Maintain a separate array of the mdi children, so
8233 that insertion order is maintained when the Z-order is changed.
8235 2006-08-16 Mike Kestner <mkestner@novell.com>
8237 * ListView.cs : add an ItemComparer and default to it for sorting.
8238 Fixes #79076, but sorting needs a complete overhaul to be compat with
8241 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
8243 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
8245 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
8247 * Hwnd.cs (Mapped): Properly traverse the tree
8249 2006-08-15 Chris Toshok <toshok@ximian.com>
8251 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
8252 pass manager.Current.GetType() to ParseData. It has to be the
8253 property type. So, hold off doing the ParseData until we're in
8254 SetPropertyValue where we know the type. This fixes the crash in
8255 #78821 but the textbox is still empty.
8257 2006-08-15 Chris Toshok <toshok@ximian.com>
8260 - when we're scrolling, only call Edit() again if the
8261 current cell is still unobscured. Fixes bug #78927.
8262 - when handling mousedown on a cell, ensure the cell is visible
8263 before calling Edit.
8264 - remove the properties from DataGridRow, and remove the
8265 DataGridParentRow class altogether.
8268 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
8270 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
8271 fire OnTextChanged by ourselves. There's no point calling base,
8272 we don't set the base value anywhere else. Fixes #78773.
8274 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8276 * ListBox.cs: Call CollectionChanged when modifying
8277 an item from Items indexer, to update the actual items
8280 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8282 * PrintDialog.cs: Small fixes for focus and a pair of checks,
8283 to match .Net behaviour.
8285 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
8287 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
8289 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
8291 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
8293 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
8295 * MessageBox.cs: Prevent potential NRE exception.
8296 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
8298 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
8300 * MessageBox.cs: Calculate the owner of a messagebox, also make
8301 it topmost. Fixes #78753
8303 2006-08-14 Chris Toshok <toshok@ximian.com>
8305 * XplatUIX11.cs: A couple of fixes so that metacity will let us
8306 programmatically move windows. first, set the PPosition hint as
8307 well as the USPosition hint. Second include some code from pdb
8308 that sets the window type to NORMAL when we set the transient for
8309 hint. This is because, in the absence of a window type, metacity
8310 thinks any window with TransientFor set is a dialog, and refuses
8311 to let us move it programmatically. fascists.
8313 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
8315 * XplatUIX11.cs: When setting normal hints, take into consideration
8316 an different hints previously set so we don't delete them (fixes #78866)
8318 2006-08-12 Chris Toshok <toshok@ximian.com>
8320 * ToolBarButton.cs: make Layout return a boolean, if something to
8321 do with the button's layout changed.
8324 - add another parameter to Redraw, @force, which all existing
8326 - make the Layout function return a boolean which is true if the
8327 layout has actually changed. Redraw now uses this (and @force)
8328 to determine when to invalidate. At present the only place
8329 where @force can be false is the call from OnResize, when
8330 background_image == null. So, resizing a toolbar when the
8331 layout doesn't change results in no drawing.
8333 2006-08-12 Chris Toshok <toshok@ximian.com>
8335 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
8336 the VScrollBar and HScrollbar reversed. oops.
8338 * DataGrid.cs: fix the logic that assigns sizes to the implicit
8339 scrollbars. we were assigning them twice (once in
8340 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
8341 therefore causing two scrollbar resizes (and redraws?) to happen
8344 2006-08-12 Chris Toshok <toshok@ximian.com>
8346 * ToolBarButton.cs: redraw the entire button if the theme tells us
8349 * Theme.cs: add ToolBarInvalidateEntireButton.
8351 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
8352 buttons, just the border.
8354 * ThemeNice.cs: redraw the entire toolbar button since we need to
8355 draw the highlight image.
8357 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
8358 we need to redraw the entire button (not just the border).
8360 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
8362 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
8363 for vertical bars. Fixes the mismatches shown by #78513
8365 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
8367 * FileDialog.cs: If a saved/remembered path doesn't exist
8368 anymore, fall back to "Desktop".
8370 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
8372 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
8373 parent. It's apparently legal to not have one
8375 - SetZOrder: Don't try to set Z-Order on an unmapped window
8376 - CreateWindow: 0,0 are legal coordinates for a window. don't move
8377 it unless the coordinates are negative
8379 2006-08-10 Mike Kestner <mkestner@novell.com>
8381 * ListControl.cs: allow null for DataSource. Clear DisplayMember
8382 when setting to null per msdn docs. Fixes #78854.
8384 2006-08-10 Chris Toshok <toshok@ximian.com>
8386 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
8387 flickering by setting a clip rectangle on the Graphics when we
8388 need to redraw just a particular menuitem. Also, rename "OnClick"
8389 to "OnMouseDown" to reflect what it actually is.
8391 * Form.cs: track the OnMouseDown change.
8393 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
8395 * CommonDialog.cs: Properly inherit the CreateParams from the form
8396 and only change what we need. Fixes #78865
8398 2006-08-10 Chris Toshok <toshok@ximian.com>
8400 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
8401 flickering in flat mode (and most of the flickering in general) by
8402 only invalidating the button border (and not the entire rectangle)
8403 when the state changes. A couple of cases still flicker:
8404 ToggleButtons, and the dropdown arrow case when the user mouse
8407 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
8409 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
8410 for german keyboards. Numlock state shouldn't affect the behaviour
8411 of the Del key. Fixes bug #78291.
8413 2006-08-10 Chris Toshok <toshok@ximian.com>
8415 * ListControl.cs: remove the items.Clear line from BindDataItems,
8416 as this is the first thing done by both subclasses in their
8417 SetItemsCore overrides. Also, add a ItemChanged handler, and when
8418 passed -1, refresh the list. This gets databinding working when
8419 the datasource is set on the list before the datasource is
8420 populated (as in wf-apps/ReportBuilder.)
8422 * ComboBox.cs: remove the argument to BindDataItems. This call
8423 should really go away, and be initiated by the ListControl code.
8427 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
8429 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
8430 if no data is in the document when the control is displayed
8432 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
8434 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
8437 - PositionCaret: Allow positioning of caret but don't call methods
8438 requiring a handle if the window isn't created yet
8439 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
8440 - owner_HandleCreated: Don't position the caret, just update it's
8441 location. User might have already set a different position
8443 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
8445 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
8446 windows. Screws up the returned coordinates for child windows.
8447 Fixes #78825. I'm hoping this doesn't break something, since the
8448 code was explicitly put in 8 months ago, but no bug was attached.
8449 Menus still seem to work properly.
8451 2006-08-08 Chris Toshok <toshok@ximian.com>
8453 * DataGrid.cs: make BeginInit/EndInit actually do what they're
8454 supposed to do - delay data binding until the EndInit call. Also,
8455 make the table style collection's CollectionChangeAction.Refresh
8458 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
8459 (with action = Refresh) when a consituent table's MappingName is
8462 2006-08-08 Chris Toshok <toshok@ximian.com>
8464 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
8465 Invalidate, since changing the text can change the size of the all
8468 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
8470 * Form.cs (AddOwnedForm): Still need to add the form to our listif
8471 we don't have it yet
8473 2006-08-08 Chris Toshok <toshok@ximian.com>
8475 * PrintControllerWithStatusDialog.cs: don't .Close() the status
8476 dialog, as this causes X errors later on, since we actually
8477 destroy the window. Instead, .Hide() it.
8479 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
8481 * ComboBox.cs: Added focus reflection for popup window
8483 - Removed transient setting for non-app windows for now, not sure it
8485 - Fixed logic checking if we have captions when deciding
8486 override_redirect, WS_CAPTION is two bits and a 0 check was not
8488 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
8491 - AddOwnedForm: Don't just add the form to the list, call the property
8492 to ensure the driver is informed about the ownership as well
8493 - CreateHandle: Set the TopMost status in the driver if we have an owner
8494 * XplatUI.cs: Fixed debug statement
8496 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
8497 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
8498 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
8499 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
8500 TrackBarRenderer.cs: Make constructor private.
8501 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
8502 * ProfessionalColorTable.cs: Make properties virtual.
8504 2006-08-06 Duncan Mak <duncan@novell.com>
8506 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
8509 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
8510 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
8511 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
8512 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
8513 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
8514 Initial import of new 2.0 classes.
8516 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
8517 * Application.cs: Add 2.0 VisualStyles properties.
8519 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
8520 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
8521 XplatUIX11.cs: Create property to allow access to existing private
8522 variable "themes_enabled"
8524 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8526 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
8527 file size, as otherwise our class libraries fail using windows. Fixes
8530 2006-08-04 Jackson Harper <jackson@ximian.com>
8533 * XplatUIX11.cs: Move the toolwindow window manager creation into
8534 the X11 driver, this way on win32 we can let windows create/handle
8537 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8539 * PrintDialog.cs: Remove some redundant checks, add some others,
8540 clean some code, and move the focus to the text boxes when the
8541 values are incorrect.
8543 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
8545 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
8547 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
8549 * NumericUpDown.cs: Setting the Minimum and Maximum is now
8550 handled correctly. Fixes bug #79001.
8552 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8554 * PrintDialog.cs: The "Copies" numeric up down must have
8555 set the Minimum property to 1; only if the value is bigger
8556 than 1, activate "Collate" check box. This is the behaviour of .Net.
8557 Also modify the Document elements only if it is not null.
8559 2006-08-03 Jackson Harper <jackson@ximian.com>
8561 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
8562 length. (We have a larger array then actual node count).
8564 2006-08-03 Jackson Harper <jackson@ximian.com>
8566 * ComboBox.cs: Don't show selection by default.
8567 - The SelectAll isn't needed here, since the focus code should do
8569 - DDL style lists to manual selection drawing, so when they
8570 get/lose focus they have to invalidate.
8572 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
8574 * TextBoxBase.cs: Don't always show all selections by default.
8576 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
8577 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
8578 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
8579 Fixed various typos.
8581 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
8583 * Control.cs: Removing the controls in a ControlCollection with
8584 Clear now hides the controls as expected. Fixes bug #78804.
8586 2006-08-03 Jackson Harper <jackson@ximian.com>
8588 * Control.cs: Revert previous focus patch, it breaks reflector.
8590 2006-08-03 Jackson Harper <jackson@ximian.com>
8592 * ComboBox.cs: Cleanup selection and focus with the combobox.
8593 This also eliminates some duplicated keyboard code, since now
8594 everything is handled by the main class.
8595 - Make list selection work on mouse up instead of down, to match
8598 2006-08-02 Jackson Harper <jackson@ximian.com>
8600 * Control.cs: Setting focus needs to go through the whole
8601 selection mechanism.
8603 2006-08-02 Chris Toshok <toshok@ximian.com>
8605 * PrintPreviewDialog.cs: change MinimumSize to use
8606 base.MinimumSize so it works.
8608 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
8611 - UpdateCaret: Added sanity check in case caret isn't defined yet
8612 - Line.Delete: Now updating selection and caret markers if we're
8613 transfering a node (Properly fixes #78323)
8614 - SetSelectionEnd: Added sanity check
8615 * TextBoxBase.cs: Removed broken attempt to fix #78323
8617 2006-08-01 Chris Toshok <toshok@ximian.com>
8619 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
8620 Close() call is handled in Form, not here.
8622 2006-08-01 Chris Toshok <toshok@ximian.com>
8624 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
8627 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
8628 for sizes < 100% zoom. The code now aggressively attempts to keep
8629 from calling document.Print (), and tries not to use the scaling
8630 g.DrawImage whenever possible (it still does if you scale to >
8631 100%, since usually that involves huge images).
8633 * PrintPreviewControl.cs: hook up the close button.
8635 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
8636 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
8637 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
8638 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
8639 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
8640 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
8641 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
8642 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
8643 Removed [Serializable] for 2.0 Event Handlers.
8645 2006-07-31 Jackson Harper <jackson@ximian.com>
8647 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
8648 * TextControl.cs: Uncomment out the body of this method.
8650 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
8652 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
8655 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
8657 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
8658 that embed TextBox and need selections visible even if textbox is not
8659 focused to enforce that behaviour.
8660 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
8663 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
8666 - Added new SetSelectionStart/SetSelectionEnd overloads
8667 - Fixed viewport width assignment to be accurate
8668 - Adjusted alignment line shift calculations to allow cursor on right
8669 aligned lines to be always visible at the right border (like MS)
8671 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
8672 - TextBoxBase_SizeChanged: recalculating canvas on size changes
8673 - CalculateScrollBars: Use ViewPort size instead of window size, to
8674 properly consider space occupied by the border and scrollbars
8676 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
8677 calculations; no longer leaves artifacts
8678 - CaretMoved: Adjusted window scrolling to match MS and fixed several
8679 calculation bugs (Still missing right/center align calculations)
8681 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
8683 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
8684 use of both scroll rect and clip rect, as they do the same.
8686 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
8688 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
8689 in the event handler (fixes #78912)
8691 2006-07-31 Chris Toshok <toshok@ximian.com>
8693 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
8694 grid.ListManager.Count, since grid.ListManager might be null.
8695 This of course begs the question "why are we drawing rows for a
8696 grid with no list manager (and therefor no rows)?" Fixes the
8697 crash in bug #78929.
8699 2006-07-31 Chris Toshok <toshok@ximian.com>
8701 * RelatedPropertyManager.cs: Don't always chain up to the parent
8702 ctor. instead, call SetDataSource if the parent's position is !=
8703 -1. Fixes the crash in #78822.
8705 2006-07-31 Chris Toshok <toshok@ximian.com>
8707 * DataGrid.cs (get_ListManager): use field instead of property
8708 accessors for datasource and datamember.
8709 (RowsCount): make internal again.
8710 (OnMouseDown): end edits before resizing columns/rows.
8711 (OnMouseUp): restart edits after resizing columns/rows.
8713 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
8715 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
8716 This fixes the situation where the last set cursor is displayed
8717 whenever the mouse is over scrollbars.
8719 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8721 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
8722 Document properties, as well as initial values.
8724 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
8726 * XplatUIWin32.cs (SetBorderStyle): Setting both border
8727 and ClientEdge results in a 3-pixel border, which is
8730 2006-07-28 Jackson Harper <jackson@ximian.com>
8732 * TreeNodeCollection.cs: Fix the clear method.
8733 - Fix the Shrink also
8735 2006-07-27 Jackson Harper <jackson@ximian.com>
8737 * TreeView.cs: Make sure the visible order is computed when we
8738 attempt to size the scrollbars (for trees that mess with the
8739 scrolling when they shouldn't.
8740 - Make sure to give the scrollbars valid values.
8742 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
8744 * XplatUIX11.cs: Move motion compression code to where it
8745 has less performance impact
8747 2006-07-26 Jackson Harper <jackson@ximian.com>
8749 * UpDownBase.cs: When the control is selected make the child
8750 controls non selectable, so that a click on them won't do a
8751 focus/unfocus cycle.
8752 - Don't give focus to the text box when the spinner is selected.
8753 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
8755 2006-07-26 Chris Toshok <toshok@ximian.com>
8757 * ThemeWin32Classic.cs: add print preview rendering. I'm not
8758 satisfied with this solution. If the bitmaps are small, we should
8759 just cache them in the PrintPreviewDialog and draw them here.
8760 Also, the layout is broken for the 2-up and 3-up cases.
8762 * Theme.cs: add PrintPReviewControlPaint.
8764 * PrintPreviewDialog.cs: first pass implementation.
8766 * PrintPreviewControl.cs: first pass implementation. No
8769 * PrintDialog.cs: only validate fields if that particular portion
8770 of the UI is enabled. Also, set the document's controller to a
8771 PrintControllerWithStatusDialog wrapping the document's print
8774 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
8775 bring up a SaveFileDialog (i hope we don't want to match the
8776 behavior of the crappy windows file entry) and set the
8777 PrinterSettings.PrintFileName accordingly.
8779 2006-07-26 Jackson Harper <jackson@ximian.com>
8781 * ContainerControl.cs: Add a field that disables auto selecting
8782 the next control in a container when the container is activated.
8783 * UpDownBase.cs: Don't select the text box when the up down is
8786 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
8788 * XEventQueue.cs: Added methods for peeking (used for compression
8789 of successive events)
8790 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
8791 mouse move events (fixes #78732)
8793 2006-07-25 Jackson Harper <jackson@ximian.com>
8795 * UpDownBase.cs: Use an internal class for the textbox so that we
8796 can control focus. the updown control should always have focus,
8797 if either the text area or the buttons are clicked.
8798 - Send the key messages to the textbox, since it never actually
8800 - Activate and decativate the textbox caret.
8802 2006-07-24 Jackson Harper <jackson@ximian.com>
8804 * Control.cs: Use the directed select when selecting a control,
8805 this way the container controls override will get called and the
8806 whole ActiveControl chain will get triggered. TODO: probably need
8807 to make sure this gets done everywhere instead of the old
8809 * ContainerControl.cs: Implement the directed Select method to
8810 find and activate the correct child control.
8812 2006-07-22 Mike Kestner <mkestner@novell.com>
8814 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
8815 menu handling code so that clicks without a grab work too.
8818 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
8820 * FileDialog.cs: Enable the BackButton when dirstack has one element.
8821 Added some small optimizations.
8823 2006-07-21 Matt Hargett <matt@use.net>
8825 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
8827 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
8829 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
8830 tests pass and match MS in some strange border cases.
8832 2006-07-21 Chris Toshok <toshok@ximian.com>
8834 * ThemeWin32Classic.cs: handle drawing of the relation links and
8837 * Theme.cs: change args to DataGridPaintParentRow.
8839 * DataGrid.cs: Don't use controls for the relation links and
8840 parent buttons, so we have to handle all their interactions in
8841 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
8842 when we're navigating through child tables, so we can reinstate
8843 selection, expanded state, current cell, etc.
8845 2006-07-20 Chris Toshok <toshok@ximian.com>
8847 * ToolBar.cs: When we redraw a button, for whatever reason,
8848 there's no reason to redraw the entire toolbar. Also, don't call
8849 Control.Refresh from within Redraw, as it's much heavier than
8850 Invalidate (which is really what we want).
8852 2006-07-20 Chris Toshok <toshok@ximian.com>
8854 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
8855 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
8856 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
8857 traces from within a debug IBindingList datasource
8858 (in mono/winforms/datagrid) for *days*, I've finally gotten things
8859 to work in a similar fashion.
8861 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8863 * ListBox.cs: Don't call Sort () when setting
8864 the Sorted property to false (avoid an unnecessary sort).
8866 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8868 * ListControl.cs: DataSource should throw an ArgumentException
8869 instead of a normal exception when the argument is not of the
8872 2006-07-20 Mike Kestner <mkestner@novell.com>
8874 * Control.cs: add InternalPreProcessMessage to allow us to steal
8875 key events before MWF gets its paws on them. Adapted from a
8877 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
8878 up/down/left/right navigation. Override the new internal control
8879 method to steal the events since they never make it to WndProc.
8880 * ToolBarButton.cs: don't worry about pushed when setting hilight
8881 since the drawing code prefers pushed to hilight. Invalidate on
8882 Hilight changes. Fixes #78547 and #78525.
8884 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
8886 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
8887 the canvas size. Fixes #78868
8889 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
8891 * Splitter.cs: Track requested split position until first layout
8892 is performed. Fixes #78871
8894 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
8896 * Application.cs: Removed code that forces 1.x for the version
8897 number if the version started with 0. Not sure why that code was
8898 there and I couldn't find any bugs that indicated we needed it.
8901 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
8903 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
8904 ResetDefaults(), just write some output to the console until it's
8905 implemented. Fixes bug #78907 for now. Eliminated two warnings.
8907 2006-07-19 Jonathan Chambers <joncham@gmail.com>
8909 * PropertyGridView.cs: set StartPosition of drop down forms
8910 so they appear in correct initial spot. Fixes #78190.
8912 2006-07-19 Mike Kestner <mkestner@novell.com>
8914 * ThemeWin32Classic.cs: use parent background color when drawing
8915 flat toolbars. Restructure the conditionals to make sure non-flat
8916 non-Divider toolbars are filled too. Fixes #78837.
8918 2006-07-19 Mike Kestner <mkestner@novell.com>
8920 * ListBox.cs: Sort on collection changes even if the handle
8921 isn't created yet. Fixes #78813.
8923 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8925 * ListControl.cs: DisplayMember should never be null,
8926 and now we assign String.Empty when null is passed to it (this
8929 2006-07-17 Mike Kestner <mkestner@novell.com>
8931 * ListViewItem.cs: restructure Font and subitem Font handling
8932 to hold a specific font and refer back to owner on null.
8935 2006-07-17 Mike Kestner <mkestner@novell.com>
8937 * ToolBar.cs: bandaid for side-effect of previous patch which was
8938 discarding explicit heights for non-AutoSize toolbars. Need to
8939 extend my format tester to deal with AutoSize=false. Fixes #78864.
8941 2006-07-15 Jackson Harper <jackson@ximian.com>
8943 * LabelEditTextBox.cs:
8944 * TreeView.cs: Use a new LabelEdit class for node editing, this
8945 class automatically 'closes' itself when it gets the enter key or
8947 - Use the client rectangle when setting the trees scrollbars, so
8948 border style is taken into account.
8950 2006-07-14 Jackson Harper <jackson@ximian.com>
8953 * TreeView.cs: Make the editing work similar to MSs, firing the
8954 events correctly and ending edits correctly.
8956 2006-07-14 Mike Kestner <mkestner@novell.com>
8959 * ToolBar.cs: layout restructuring and redraw enhancements to support
8960 formatting changes gracefully, like setting TextAlign, ImageList,
8961 ButtonSize, and Appearance. Handles explicit button sizing quirks
8962 of the MS controls. Things like flat toolbars ignoring button size
8963 but becoming constant sized at the largest button's size. Normal
8964 toolbars with an image set cannot be shrunk smaller than the image,
8965 but text can be clipped/ignored.
8966 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
8967 is zero. Seems like DrawString should be smart enough to not put
8968 anything on screen though. Also trim labels and ellipsize at the char
8970 Fixes #78711 and #78483.
8972 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
8974 * FolderBrowserDialog.cs: Disable "New Folder" button and
8975 "New Folder" contextmenu menuitem if a folder like "My Computer"
8978 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
8980 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
8981 * FolderBrowserDialog.cs:
8982 - Use MWFConfig to store and read size and position settings
8983 - Added code to create a new folder (button or context menu).
8984 Use TreeView labeledit to change the name of the new folder.
8986 2006-07-14 Jackson Harper <jackson@ximian.com>
8988 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
8989 when the tree is scrolled we end editing.
8991 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
8993 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
8996 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
8998 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
8999 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
9000 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
9001 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
9002 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
9003 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
9004 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
9005 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
9006 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
9007 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
9008 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
9009 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
9010 ListViewItemSelectionChangedEventHandler.cs,
9011 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
9012 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
9013 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
9014 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
9015 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
9016 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
9017 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
9018 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
9019 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
9020 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
9021 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
9022 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
9023 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
9024 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
9025 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
9026 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
9027 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
9028 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
9029 WebBrowserNavigatingEventHandler.cs,
9030 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
9032 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
9034 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
9035 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
9036 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
9037 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
9038 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
9039 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
9040 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
9041 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
9042 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
9043 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
9044 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
9045 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
9046 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
9047 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
9048 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
9049 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
9050 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
9051 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
9052 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
9053 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
9054 ListViewItemStates.cs, MaskFormat.cs: Added
9056 2006-07-13 Jonathan Chambers <joncham@gmail.com>
9058 * PropertyGridView.cs: Fix keyboard navigation of drop down.
9059 Patch from eno for bug 78558.
9061 2006-07-13 Jackson Harper <jackson@ximian.com>
9063 * TreeView.cs: When an edit is finished make sure that the
9064 selected node is visible.
9065 - When setting the top/bottom use the scrollbars is_visible, so
9066 everything will be set correctly even if the tree isn't visible
9069 2006-07-13 Jackson Harper <jackson@ximian.com>
9071 * ComboBox.cs: Revert the item->index part of my previous patch.
9072 * TreeView.cs: Use LostFocus instead of Leave for detecting when
9073 the edit box has lost focus (duh).
9074 - Just make the edit box not visible when we get return, that will
9075 take the focus, which will call EndEdit
9076 * TreeNode.cs When we start editing, notify the treeview.
9078 2006-07-12 Jackson Harper <jackson@ximian.com>
9080 * ComboBox.cs: Clear out old items before setting the item list.
9081 This prevents databound controls from having their items added
9083 - Switch the combobox to use indices whereever possible instead of
9084 using Item's. This allows usto navigate through lists that have
9085 more then one item with the same string value (ie a, b, b, a).
9086 - Scroll the listboxes scrollbar when a non visible item is
9088 - Allow keypress to cycle through all the possible values. For
9089 example if you have b1, b2, b3 and hold down the B key all the
9090 values will be cycled through.
9092 2006-07-12 Jackson Harper <jackson@ximian.com>
9095 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
9096 this using the internal methods.
9097 * Control.cs: Add OnGotFocusInternal. A new method that allows
9098 controls to "override" OnGotFocus and change focus behavior if
9100 - Same thing for LostFocus
9101 * ComboBox.cs: Pass off focus to the text control properly.
9103 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
9105 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
9106 * FolderBrowserDialog.cs: Almost a complete rewrite.
9107 - Better support for Environment.Specialfolders
9108 - Added support for MWFVFS
9109 - Made setting SelectedPath work
9111 2006-07-12 Jackson Harper <jackson@ximian.com>
9113 * Control.cs: Optimze getting all the controls.
9115 2006-07-11 Jackson Harper <jackson@ximian.com>
9117 * ContainerControl.cs: Override SETFOCUS in the container control,
9118 so that it is not selected on mouse click.
9120 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
9122 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
9123 Hopefully we will have a better way once all of focus is complete.
9125 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
9127 * ThemeWin32Classic.cs: Commented out some debug code and fixed
9128 a compile error with csc.
9130 2006-07-11 Jackson Harper <jackson@ximian.com>
9132 * Control.cs: When hiding a control only select the next control
9133 if the current control was focused.
9134 - Don't handle enter/leave when setting/killing focus, this is
9135 done by the container control.
9136 - Remove is_selected, it's not needed anymore.
9137 - Add utility methods for selecting a child control, and for
9138 firing the Enter/Leave events.
9139 * ContainerControl.cs: When a control is activated fire the
9141 - Don't wrap when processing the tab key, so that focus can be
9142 moved outside of the container.
9143 - Use the correct active control
9145 2006-07-11 Jackson Harper <jackson@ximian.com>
9147 * ComboBox.cs: Remove some debug code that was blinding me.
9148 * UpDownBase.cs: These controls actually aren't implicit, they are
9149 visible to the user.
9151 2006-07-10 Chris Toshok <toshok@ximian.com>
9153 * DataGrid.cs: move back to the is_adding boolean field. god i
9154 hate this is_editing/is_adding/is_changing stuff.
9156 2006-07-10 Chris Toshok <toshok@ximian.com>
9158 * DataGridTableStyle.cs: just check if the property type is bool.
9159 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
9160 Don't use CanRenderType.
9162 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
9163 if our text == NullText. Remove CanRenderType.
9165 * DataGridBoolColumn.cs: nuke CanRenderType.
9167 * DataGrid.cs: reenable some code to end the current edit inside
9168 of set_CurrentCell. This fixes the other 1.1.16 regression.
9169 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
9170 Also, remove the visible_row_count arg from CalcRowHeaders, since
9171 we don't need to worry about the actual height of the area.
9173 2006-07-10 Chris Toshok <toshok@ximian.com>
9175 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
9178 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
9179 the real sense of the IsInEditOrNavigateMode property (true =
9180 navigate, false = edit). Also, update OnKeyPress to reflect this.
9182 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
9183 column style exists, we still need to set its property descriptor
9184 to match up with our list manager.
9186 2006-07-10 Chris Toshok <toshok@ximian.com>
9188 * ThemeWin32Classic.cs: implement the new row/header painting
9189 approach. The parent row painting will likely go away and
9190 replaced with label controls, but the rest seems to work ok (and
9193 * Theme.cs: change the way we draw datagrid rows. we don't draw
9194 the row headers as a block now. Instead we draw them in the
9195 normal draw-row loop. Add some calls for drawing parent rows and
9198 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
9199 a default table style. Set the defaults from ThemeEngine.Current,
9200 not SystemColors. Fix lots of misc issues with property setters.
9202 * DataGrid.cs: move loads of style information out of this class
9203 as it's being duplicated with DataGridTableStyle. keep track of a
9204 special DataGridTableStyle for the properties we used to mirror
9205 here. Switch all the style properties to access this table style
9206 instead of instance fields of this class. Also add a internal
9207 class to represent parent rows (more needs to be stored here, like
9208 the selection state from the parent table, as well as the
9209 expansion state.) Also, for datasources with relations, do the
9210 right thing for collapse/expand, and add support for the
9211 navigation/parent row buttons.
9213 Lastly, fix the crash in the 1.1.16 build.
9215 * GridTableStylesCollection.cs: make the explicit interface
9216 implementations call the class's methods as opposed to duplicating
9219 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
9220 0 so the text doesn't jump around when we move the cursor.
9222 2006-07-10 Jackson Harper <jackson@ximian.com>
9225 * ListBox.cs: Match MS's ToString (this makes debugging focus
9226 stuff infinitely easier).
9228 2006-07-10 Jackson Harper <jackson@ximian.com>
9230 * Control.cs (SelectNextControl): When checking the control's
9231 parent use this instead of ctrl.parent so that null can be passed
9232 to SelectNextControl. (I have unit tests for this).
9233 - Remove unused var.
9235 2006-07-10 Chris Toshok <toshok@ximian.com>
9237 * CurrencyManager.cs: correct one regression, the removal of the
9238 finalType field. Also, add a MonoTODO on CanAddRows, implement
9239 Refresh() correctly, and fix some event emission in
9242 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
9244 * FileDialog.cs: Don't use brackets for new folders if they exist
9245 under *nix. Instead use -(number of existing folders +1).
9247 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
9250 - Fixed really nasty bug #78771
9251 - Don't block the whole GUI when reading directories with a lot of
9252 entries. Use an other thread instead and call BeginInvoke to
9253 update the ListView in MWFFileView
9255 2006-07-07 Chris Toshok <toshok@ximian.com>
9257 * Control.cs (Dispose): release any Capture when disposing.
9259 2006-07-07 Chris Toshok <toshok@ximian.com>
9261 * LinkLabel.cs (Select): if we chain up to the parent, set
9262 focused_index to -1 so we'll search for the first available link
9263 the next time the user tabs into us. Also, if the direction is
9264 backward and focused_index == -1, start the search from the last
9267 2006-07-07 Chris Toshok <toshok@ximian.com>
9269 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
9270 is beyond the end of the text, don't do anything.
9271 (CreateLinkPieces): set our ControlStyles.Selectable based on
9272 whether or not we have any links.
9273 (Link.Invalidate): use a loop instead of foreach.
9274 (Link.set_Start): null out owner.sorted_links so it'll be
9275 recreated by CreateLinkPieces.
9277 2006-07-06 Chris Toshok <toshok@ximian.com>
9279 * LinkLabel.cs: revert the SetStyle change.
9281 2006-07-06 Chris Toshok <toshok@ximian.com>
9283 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
9284 (OnEnableChanged): s/Refresh/Invalidate
9285 (OnGotFocus): if we have a focused index already, refocus it (so
9286 if we mouse out/in to the window it'll focus the right link).
9287 (OnKeyDown): move the tab handling out of here.
9288 (OnLostFocus): don't set focused_index to -1, so we can refocus it
9290 (OnMouseDown): don't Capture here - Control handles it. Also,
9291 focus the active link.
9292 (OnMouseUp): don't deal with Capture.
9293 (OnPaintBackgroundInternal): remove.
9294 (OnTextAlignChanged): CreateLinkPieces before calling the
9295 superclass's method.
9296 (OnTextChanged): call CreateLinkPieces before calling superclass's
9298 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
9300 (Select): implement this, moving the selection between different
9301 links, and call parent.SelectNextControl if we don't have another
9302 link to focus in the given direction.
9303 (CreateLinkPieces): call Invalidate instead of Refresh.
9305 2006-07-06 Chris Toshok <toshok@ximian.com>
9307 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
9308 new LinkLabel internals.
9310 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
9311 over pieces looking for active/focused/etc links. also, deal with
9312 runs of text (and links) with embedded \n's in them, and use
9313 MeasureCharacterRanges instead of MeasureString to figure out the
9314 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
9317 2006-07-04 Jackson Harper <jackson@ximian.com>
9319 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
9320 XKB or key auto repeat, do it manually. Without key auto repeat,
9321 when a key is held down we get key press, key release, key press,
9322 key release, ... with auto repeat we get key press, key press, key
9323 press ..., and then a release when the key is actually released.
9325 2006-07-03 Jackson Harper <jackson@ximian.com>
9328 * ThemeWin32Classic.cs: Tabs do not obey normal background color
9329 rules, they are always control color regardless of the background
9332 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
9334 * FileDialog.cs: Added internal class MWFConfig.
9335 Removed Registry support and replaced it with support for the new
9336 MWFConfig class. See MWFConfig comments for more information.
9338 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
9340 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
9341 rectangle. Added some patches from eno from bug #78490 and fixed
9342 the arrow position for small up and down CPDrawScrollButtons.
9344 2006-06-30 Jackson Harper <jackson@ximian.com>
9346 * InternalWindowManager.cs: Remove some debug code.
9347 * Form.cs: When an MdiParent is set to null, the window is
9348 "detatched" and becomes a normal window.
9349 * MdiClient.cs: Don't bring the new child form to the front until
9350 it is activated (setting it as active does this), this makes the
9351 previously active forms titlebar get redrawn as inactive.
9353 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
9355 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
9358 2006-06-29 Mike Kestner <mkestner@novell.com>
9360 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
9361 arrow in keynav state. Fixes #78682.
9363 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
9365 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
9366 order (fixes #78393)
9368 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
9370 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
9371 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
9372 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
9373 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
9374 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
9375 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
9376 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
9377 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
9378 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
9379 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
9380 enumerations (FlagsAttribute, SerializableAttribute, added/removed
9383 2006-06-28 Mike Kestner <mkestner@novell.com>
9385 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
9387 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
9390 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
9391 item lines from other area (It also makes BackColor consistent and
9392 compatible with .NET). Fixed bug #78564.
9394 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
9396 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
9397 Patch from Eno for #78555.
9399 2006-06-27 Chris Toshok <toshok@ximian.com>
9401 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
9403 * DataGridColumnStyle.cs: same.
9405 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
9407 * DataGridDrawingLogic.cs: nuke.
9409 2006-06-27 Chris Toshok <toshok@ximian.com>
9411 * DataGridTableStyle.cs: clean up the constructors, and build the
9412 list of child relations for this table. I have no idea if this is
9413 where we should be doing it (it probably isn't), but since we're
9414 already iterating over the properties..
9416 * DataGrid.cs: add row resizing. for now we add a DataGridRow
9417 struct and array for keeping track of row information, similar to
9418 what's shown in a hack on
9419 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
9421 * Theme.cs: be consistent about the naming of DataGrid methods,
9422 prefering ColumnWidths and RowHeights over columnsWidths and
9425 * ThemeWin32Classic.cs: same, and also add support for variable
9426 sized rows (and the +/- expansion icons for related rows).
9428 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
9430 * TextBoxBase.cs: Applied Eno's patch from #78660
9432 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
9434 * Form.cs (ScaleCore): We don't want to scale our form if it's
9435 state is minimized or maximized, but we still need to scale our
9436 child windows. Also, added try/finally block to ensure layout
9437 gets reset (Fixes #78697)
9439 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
9441 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
9443 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
9445 * Form.cs: Fixed c+p error and added check to resize form if minimum
9446 size is bigger than current size (Fixes #78709)
9448 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
9450 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
9452 2006-06-26 Mike Kestner <mkestner@novell.com>
9454 * ComboBox.cs: only do Keypress handling in the combo when there
9455 are items in the collection. Fixes #78710.
9457 2006-06-26 Chris Toshok <toshok@ximian.com>
9459 * Binding.cs: make this work bi-directionally. also, clear up
9460 other mixups between Push/Pull Data (e.g. we're supposed to pull
9461 data when validating).
9463 * BindingManagerBase.cs: trim some fully qualified collection
9466 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
9468 2006-06-23 Chris Toshok <toshok@ximian.com>
9470 * PropertyManager.cs: It appears (according to the unit tests)
9471 that PropertyManager doesn't use
9472 PropertyDescriptor.AddValueChanged to track propery value changes
9473 in its datasource, but uses the same scheme as Binding, where it
9474 looks for a <Property>Changed event and binds to it.
9476 Also, according to the docs, IsSuspended always returns false for
9477 a property manager with a non-null datasource.
9479 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
9481 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
9482 need to update the actual DialogResult. (Fixes #78613)
9484 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
9486 * Form.cs (ShowDialog): Release any captures before running the
9487 new message pump (fixes #78680)
9489 2006-06-22 Mike Kestner <mkestner@novell.com>
9491 * ListView.cs: Layout column widths properly in details mode even
9492 if HeaderStyle.None is set. Fixes #78691.
9494 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
9496 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
9498 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
9500 * Control.cs (ContainsFocus): Using new driver method to get focused
9501 window, instead of trying to use internal tracking var, which can
9502 recursion issues (Fixes #78685)
9503 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
9504 XplatUIWin32.cs: Added GetFocus method to return focused window
9506 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9508 * ColorDialog.cs: when the mouse button is pressed inside the color
9509 matrix, don't let the cursor move out of it until the button is
9510 released, which is the behavior on windows. Changed 'colours' by
9511 'colors' to use the same word consistently.
9513 2006-06-21 Chris Toshok <toshok@ximian.com>
9515 * DataGrid.cs: add in some basic navigation stuff (navigating to a
9516 child relation and back, using a stack). Also, remove
9517 GetDataSource and the code that calls it - it's not needed. Also,
9518 track CurrencyManager.ListName's removal.
9520 2006-06-21 Chris Toshok <toshok@ximian.com>
9522 * CurrencyManager.cs: push some of the original type checking from
9523 BindingContext.CreateBindingManager to here, and remove some of
9524 the finalType stuff. Need more tests to make sure I've got the
9525 ListName part right, and we might need more in SetDataSource.
9527 * PropertyManager.cs: add a ctor that takes just the datasource,
9528 and no property name. Make SetDataSource work with a null
9529 property_name, and make Current return the data_source if the
9530 property descriptor is null. this makes 'string foo = "hi";
9531 BindingContext[foo].Current' return "hi" as it should.
9533 * RelatedCurrencyManager.cs: make this code more generic - there's
9534 no reason the parent manager has to be CurrencyManager, and
9535 there's no reason to pass the DataRelation. It suffices to use a
9536 BindingManagerBase and PropetyDescriptor.
9538 * RelatedPropertyManager.cs: make a similar change here.
9540 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
9541 flower I knew it could be.
9543 2006-06-20 Chris Toshok <toshok@ximian.com>
9545 * PropertyManager.cs: the PropertyChangedHandler is invoked when
9546 data in the source has changed and we need to update the control,
9547 so s/PullData/PushData.
9549 * CurrencyManager.cs: Refresh is meant to update the control from
9550 data in the datasource. So, s/PullData/PushData.
9552 * BindingContext.cs: add more ugliness (we weren't handling the
9553 case where data_source = DataTable and data_member = column_name).
9555 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
9556 from the perspective of the datasource. PullData pulls from the
9557 control, PushData pushes to the control.
9559 2006-06-20 Chris Toshok <toshok@ximian.com>
9561 * BindingContext.cs: rewrite the CreateBindingManager code to
9562 handle navigation paths more or less properly. This could
9563 definitely stand some more work, in particular to push the
9564 recursion up to the toplevel. But that relies on fixes in other
9565 places (System.Data comes to mind).
9567 Also, move to a flat hashtable (and encode the twolevel nature of
9568 the dictionary into the hash key). This lets us implement the
9569 IEnumerable.GetEnumerator method.
9571 * RelatedCurrencyManager.cs: new class. Update our view based on
9572 our relation and our parent CurrencyManager's position.
9574 * CurrencyManager.cs: split out some logic from the ctor into
9575 SetView, so it can be called from the new RelatedCurrencyManager
9578 * RelatedPropertyManager.cs: new class. Update our datasource
9579 based on the position of our parent CurrencyManager.
9581 * PropertyManager.cs: split out some logic from the ctor into
9582 SetDataSource, so it can be called from the new RelatedDataSource
9583 subclass. Also, make the Current getter return the value
9584 of the PropertyDescriptor, not the data_source.
9586 * Binding.cs: no need to duplicate the string splitting code here.
9588 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
9591 - set_Enabled: OnEnabledChanged is not called if the inherited state
9592 of the control is not altered, even though we might be changing the
9593 internal state of the control (#78458)
9594 - set_Enabled: (Re)Moved the enabling/disabling of the window to
9595 OnEnabledChanged, to allow easy altering of any child window state
9596 - OnEnabledChanged: Added code to enable/disable driver window state
9597 - OnParentEnabledChanged: Instead of firing the event, call
9598 OnEnabledChanged, which will fire the event and also a) set driver
9599 window state and pass the enabled state to any grandchildren (#78458)
9601 2006-06-19 Jackson Harper <jackson@ximian.com>
9603 * InternalWindowManager.cs: We don't set the cursor explicitly
9604 thats done via the response to NCHITTESTs.
9605 - Don't need to adjust for titlebar heights anymore, the
9606 coordinates are coming in the correct coordinates now (see peters
9610 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
9612 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
9613 being translated relative to whole window, instead of client window.
9614 That caused broken offsets on mouseclick (and caused gas for our
9615 InternalWindowManager)
9617 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
9620 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
9621 - Undo(): Added replay of cursor move on DeleteChars action; added
9622 calling Undo() again if a recorded cursor move is invalid (to
9623 ensure that some action is performed on Undo)
9624 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
9626 2006-06-16 Jackson Harper <jackson@ximian.com>
9628 * MdiClient.cs: Instead of just sizing maximized windows when
9629 there is a resize we also have to adjust the Y of minimized
9630 windows, so they stay pinned to the bottom of the mdi container.
9631 - Eliminate separate tracking of the active control, we can just
9632 get this from the controls collection.
9633 - Paint the decorations for the newly activated titlebar so we get
9635 * InternalWindowManager.cs:
9636 * ThemeWin32Classic.cs: Minimized windows get all three buttons
9637 even if they are a tool window.
9639 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
9641 * TextControl.cs (Undo): Handle non-existent cursor locations in the
9642 undo buffer, these can happen when text was deleted and the cursor
9643 was recorded first. Since we will also have a recorded cursor
9644 after the delete this is not an issue. (Fixes #78651)
9646 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
9648 * AccessibleObject.cs: Remove dependence on Control.is_selected;
9649 instead properly track control states internally (allows us to
9650 remove is_selected from Control)
9652 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9654 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
9655 whose width is not a multiple of 8.
9657 2006-06-13 Jackson Harper <jackson@ximian.com>
9659 * MdiClient.cs: Only maximize the next child if the current one
9662 2006-06-13 Chris Toshok <toshok@ximian.com>
9664 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
9665 modified. Also, guard against grid or grid_drawing being null in
9668 * DataGrid.cs: Reformat tons of getters/setters. In the
9669 DataMember setter, just call SetNewDataSource instead of
9670 duplicating some of its functionality. In SetNewDataSource, don't
9671 check ListManager for null, since the property getter creates the
9674 * DataGridTableStyle.cs: don't set TableStyle or call
9675 SetDataGridInternal on the column here, it's done in
9676 GridColumnStylesCollection.Add.
9678 * GridColumnStylesCollection.cs: fix all the explicit interface
9679 implementations to just call our methods. Nuke AddInternal() and
9680 move the body of it to Add(). Also, add a call to
9681 column.SetDataGridInternal to Add().
9683 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
9684 base()+duplicate code. Also, use the Format property instead of
9685 format to generate an Invalidate ala MS. Lastly, create the
9686 textbox here, unconditionally.
9687 (set_Format): call Invalidate.
9688 (get_TextBox): no need to call EnsureTextBox.
9689 (Commit): remove the message box.
9690 (Edit) remove the call to EnsureTextBox.
9691 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
9692 (EnterNullValue): no need to check textbox for null.
9693 (HideEditBox): no need to check textbox for null.
9694 (SetDataGridInColumn): add the textbox to the grid's controls.
9695 (EnsureTextBox): nuke.
9697 2006-06-13 Jackson Harper <jackson@ximian.com>
9699 * MdiWindowManager.cs: Hook up to the maximized menus paint event
9700 and redraw the buttons when needed. Unhook when the window is
9702 * MainMenu.cs: Add an internal Paint event, the mdi window manager
9703 needs this so that it can redraw its buttons when the menu is
9705 * InternalWindowManager.cs:
9706 * Form.cs: The method order has changed for DrawMaximizedButtons,
9707 so that it can be a PaintEventHandler.
9709 2006-06-13 Jackson Harper <jackson@ximian.com>
9711 * MdiClient.cs: When we close a maximized mdi window, the next mdi
9712 window is activated and maximized, even if it wasn't before.
9713 - When a new window is activated repaint the decorations of the
9714 old one, so that it no longer has the Active "look" (the blue
9716 * InternalWindowManager.cs: Open up CreateButtons to base classes
9717 so they can recreate the buttons on state changes.
9718 - If a window is maximized give it all three buttons
9719 * MdiWindowManager.cs: Create the titlebar buttons when the state
9720 is changed, this is needed because a toolwindow will not have all
9721 three buttons until it is maximized.
9723 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
9725 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
9728 2006-06-12 Jackson Harper <jackson@ximian.com>
9730 * KeysConverter.cs: Make sure we handle the Ctrl special case
9731 if its the only key.
9733 2006-06-12 Jackson Harper <jackson@ximian.com>
9735 * Theme.cs: Add a method to get the size of a managed window
9737 * InternalWindowManager.cs: Remove the ButtonSize property, this
9738 should be retrieved from the theme.
9739 * MdiWindowManager.cs: Get the button size from the theme
9740 * ThemeWin32Classic.cs: Make the method to get the managed window
9741 titlebar button size public.
9742 - Handle the different button sizes of maximized toolwindows
9743 (should match any maximized window).
9744 - Get the titlebar height from the theme, not the WM (which gets
9747 2006-06-12 Jackson Harper <jackson@ximian.com>
9749 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
9750 event down to the mdi window manager.
9751 - Expose some extra stuff to base classes
9752 - Make sure to end the Capture on an NC Mouse up, so that we can
9753 get double clicks properly, and the sizing doens't stick.
9754 - When doing PointToClient contain it in the workable desktop
9755 area, this prevents windows from changing size when the cursor is
9756 pulled outside of the working area while sizing.
9757 * MdiWindowManager.cs: When we get a double click maximize the
9759 - Reset the cursor after handling mode changes.
9761 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
9763 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
9764 current desktop, instead of just assuming a 0, 0 origin. This
9765 is needed for our internal window manager, to know the top
9766 margin of the desktop
9768 2006-06-12 Chris Toshok <toshok@ximian.com>
9770 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
9771 we need this to get rid of the selected background in the bool
9773 (CancelEditing): move the ConcedeFocus call to above the Abort
9774 call. Also, set is_changing to false and invalidate the row
9775 header if we were changing before.
9776 (ProcessKeyPreviewInternal): remove, since noone outside this
9777 class calls it anymore. Roll the code into ProcessKeyPreview.
9778 (EndEdit): remove the internal version.
9779 (InvalidateCurrentRowHeader): make private.
9781 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
9782 Keys.Escape handling (and with it the last call to
9783 DataGrid.EndEdit from outside the class.)
9786 2006-06-12 Chris Toshok <toshok@ximian.com>
9788 * DataGridTextBox.cs (.ctor): isedit defaults to false.
9789 (OnKeyPress): set isedit to true.
9790 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
9791 already handled by the grid.
9793 * DataGrid.cs (set_CurrentCell): more work here. it's still not
9795 (set_DataSource): SetDataSource always returns true, so stop
9796 putting it in an if statement.
9797 (EndEdit): get rid of some {}'s
9798 (ProcessGridKey): return true in case Keys.Escape.
9799 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
9800 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
9801 PositionChanged, stopped connecting to CurrentChanged.
9802 (GetDataSource): simplify this a bunch.
9803 (SetDataSource): change return type from bool to void.
9804 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
9805 to this, and make sure we don't set ListManager.Position inside
9807 (OnListManagerItemChanged): if we're passed an actual index,
9810 * CurrencyManager.cs (set_Position): don't call PullData here.
9812 2006-06-09 Jackson Harper <jackson@ximian.com>
9814 * TreeNode.cs: Recalculate the visible order before doing the
9815 Expand/Collapse Below calls, because those calls generate an
9817 - Reduce calls to the TreeView property, which is mildly expensive
9818 by using a local var.
9819 * Form.cs: Layout the MDI child windows when creating the parent
9821 - Don't use the internal constructor anymore
9822 * MdiClient.cs: use the parent form width/height (if available)
9823 when laying out the child windows, we do this because the
9824 mdiclient isn't docked yet when the initial layout is done.
9825 - Don't need an internal constructor anymore.
9827 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9829 * FileDialog.cs: handle access errors when trying to create a folder
9830 or changing to a directory. No need to initialize out parameters.
9832 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
9834 * FileDialog.cs: Append a number when creating a new folder if the
9835 folder already exists (use parenthesis instead of square brackets)
9837 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
9840 - Disabled registry support for windows and added better registry
9841 error checking for other systems (need to investigate why it
9842 works perfectly on my system)
9843 - If a folder already exist show an error MessageBox instead of
9844 trying to create an indexed name.
9845 - Fixed a non intentional typo.
9847 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9849 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
9851 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
9853 * FileDialog.cs: When creating a new folder don't crash if the
9854 folder already exists.
9856 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
9858 * FileDialog.cs: Allmost a complete rewrite.
9859 - added a "virtual" file system that handles the differences
9860 between unix and windows file systems (especially the directory
9861 structure). Moved most of the directory and file handling code
9863 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
9864 UnixFileSystem and FSEntry.
9865 - Recently used folder/directory, size, location and used file names
9866 (file name ComboBox) are now stored in the registry and get read
9867 before the dialog shows up (fixes part 6 of bug #78446).
9868 - Creation of new folders/directories is now possible (context menu
9869 or ToolBar). Added TextEntryDialog for this that fills in the gap
9870 until ListView.LabelEdit works.
9871 - Fixed cursor handling (bug #78527) and focus handling for
9873 - Various "Search in" ComboBox enhancements. The content of the
9874 dropdown listbox now almost matches ms.
9875 - Changed the behaviour when the user switches to SpecialFolder
9876 Recent to show the ListView in View.Details.
9877 - Beside using the ToolBar to change the View property of the
9878 file ListView it is now possible to use the context menu too.
9880 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
9882 * ComboBox.cs: Don't create a new ObjectCollection when an item
9883 gets inserted. Just insert the item in the existing object_items
9886 2006-06-08 Jackson Harper <jackson@ximian.com>
9888 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
9889 that the treeview and root node checks are done also, this fixes a
9890 regression i caused in the unit tests.
9892 2006-06-07 Wade Berrier <wberrier@novell.com>
9894 * RichTextBox.cs: More ISO8859-1 -> unicode
9896 2006-06-07 Mike Kestner <mkestner@novell.com>
9898 * ComboBox.cs : use items to hold highlight/selection so that
9899 collection insertions don't require synchronization.
9901 2006-06-07 Jackson Harper <jackson@ximian.com>
9903 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
9904 routine. We now always keep the sized edge at the cursor instead
9905 of computing movement and adjusting rects. There is one buglet
9906 with this method though when the cursor is moved over area that
9907 the window can not expand too (such as the toolbars on the desktop).
9909 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9911 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
9912 here. Fixes crash on startup in AlbumSurfer.
9914 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
9916 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
9919 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9921 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
9922 statement to avoid calling XNextEvent which will block if another thread
9923 took the event that we were expecting. Fixes bug #78605.
9925 2006-06-07 Mike Kestner <mkestner@novell.com>
9927 * ListView.cs : isolated checkbox clicking from the selection logic.
9928 Toggle check state on item doubleclicks. Really fixes #78454 part2.
9930 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9932 * Form.cs: Check that the value passed to Form.DialogResult
9933 is a valid enum value.
9935 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9937 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
9938 Computer'. Clicking it in the network view goes to 'My Computer'.
9939 Added CIFS filesystem type. Display the mount point of filesystems.
9940 Avoid duplicate mount points (happens for me with CIFS);
9942 2006-06-06 Jackson Harper <jackson@ximian.com>
9944 * InternalWindowManager.cs: Draw the maximized windows buttons
9947 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9949 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
9950 all other dialogs. Fixes bug #78585.
9952 2006-06-06 Mike Kestner <mkestner@novell.com>
9954 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
9955 Only invalidate checkbox on checkstate changes to avoid flicker.
9956 * ListBox.cs : avoid unselect/select when clicking selected item.
9957 avoid reselection flicker for already multiselected items.
9960 2006-06-06 Jackson Harper <jackson@ximian.com>
9962 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
9963 the parent form so that the menu is removed if needed.
9965 2006-06-06 Mike Kestner <mkestner@novell.com>
9967 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
9968 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
9970 2006-06-06 Mike Kestner <mkestner@novell.com>
9972 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
9975 2006-06-06 Jackson Harper <jackson@ximian.com>
9977 * Control.cs: Use the property (instead of the field) to get the
9978 default cursor so it is instantiated correctly.
9979 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
9980 resizes so we need to manually repaint the window decorations here.
9981 - Set the titlebar button locations as soon as they are created,
9982 otherwise they are not set correctly on win32.
9984 2006-06-06 Chris Toshok <toshok@ximian.com>
9986 * CurrencyManager.cs (set_Position): call PullData before
9988 (AddNew): after calling IBindingList.AddNew, update our
9989 listposition, and call OnCurrentChanged/OnPositionChanged (without
9991 (OnCurrentChanged): remove the call to PullData from here.
9992 (OnItemChanged): remove the call to PushData from here.
9993 (OnPositionChanged): change the test from == null to != null to
9994 match the other methods.
9995 (ListChangedHandler): the grossest part of the patch. Implement
9996 this such that it passes the unit tests in CurrencyManagerTest and
9997 the output more or less matches that of MS's implementation.
9999 2006-06-06 Mike Kestner <mkestner@novell.com>
10001 * ListView.cs : only update check state on single click.
10002 * ThemeWin32Classic.cs : fix focus drawing for details view without
10003 fullrowselect. Fixes #78454.
10004 * XplatUIX11.cs : fix for double click emission.
10006 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
10008 * PropertyGridView.cs : Applied Atsushi's patch to fix
10009 font dialog bug (#78197).
10011 2006-06-05 Jackson Harper <jackson@ximian.com>
10013 * TreeNode.cs: Compute the next node for expanding/collapsing
10014 correctly. We now factor in nodes without a NextNode
10015 correctly. (Fixes somes cases in nunit-gui).
10016 * InternalWindowManager.cs: Set the bounds when updating the
10017 virtual position of a tool window.
10019 2006-06-05 Chris Toshok <toshok@ximian.com>
10021 * DataGrid.cs: rename cached_currencymgr to list_manager.
10022 (set_CurrentCell): move SetCurrentCell code here, and clean it up
10024 (CurrentRow, CurrentColumn): single accessors so we can make the
10025 cursor movement code a lot easier to understand.
10026 (CurrentRowIndex): implement this in terms of CurrentRow.
10027 (BeginEdit): clean this up a bit.
10028 (CancelEditing): sort out the is_editing/is_changing/is_adding
10030 (EndEdit): minor changes.
10031 (OnKeyDown): add a comment about a (most likely) unnecessary
10033 (OnMouseDown): cancel editing when we click on a row header. And
10034 use the CurrentRow setter, not CurrentCell.
10035 (ProcessDialogKey): directly call ProcessGridKey.
10036 (UpdateSelectionAfterCursorMove): factor out this common block of
10037 code (it's used everywhere that we move the cursor by updating row
10039 (ProcessGridKey): pretty substantial overhaul. Use the
10040 CurrentRow/CurrentColumn properties to make the code a lot more
10041 readable. Only use the CurrentCell property when we have to
10042 modify both row and column at once. Tab behavior is still broken,
10043 and Delete is untested.
10044 (Select): if we have no selected rows, set selection_start to
10046 (EditCurrentCell): rename EditCell this. It was only ever invoked
10047 with CurrentCell as the arg, so drop the arg and rename it.
10049 * DataGridColumnStyle.cs: clean up the constructors a little, and
10050 drop CommonConstructor().
10052 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
10053 actually get notified when the user hits it.
10054 (ProcessKeyMessage): *substantially* simplify this method.
10055 There's no reason (that I can see) for the textbox to be making
10056 calls into the datagrid at all. Remove all of them but the ones
10057 for Enter handling. those will take some more work.
10059 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
10060 calling HideEditBox.
10061 (HideEditBox): if we have an active textbox, render it invisible
10062 without causing a re-layout of the datagrid.
10064 2006-06-05 Mike Kestner <mkestner@novell.com>
10066 * ListView.cs : fix NRE crasher when focuseditem is cleared by
10067 collection changes by resetting it to Items[0]. Fixes #78587.
10069 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10071 * MessageBox.cs: if the height of the text is larger than the icon_size,
10072 use that. Fixes bug #78575.
10074 2006-06-05 Jackson Harper <jackson@ximian.com>
10076 * TreeView.cs: Fix line drawing when scrolling. To do this each
10077 node is basically responsible for drawing its entire horizontal
10078 area. When drawing a node it draws its parent node lines if
10080 - Adjust the clip area to the viewport rectangle
10081 - Fix Left/Right key handling to match MS. (It expand/collapses
10082 and moves to parents/first child but does not move selection to
10084 - Fix SetTop to work with new bound calculation code
10085 - When scrollbars are no longer needed we need to reset scrolling
10086 vars and recalculate the visible order so the redraw is correct
10087 * TreeNode.cs: We can't expand/collapse nodes with no children.
10089 2006-06-03 John Luke <john.luke@gmail.com>
10091 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
10092 so the colors work without dev packages
10094 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
10097 - Select: Implemented to just use activate. Seems to match MS
10098 behaviour closest. Documented to only do actual control walking
10099 based on it's parameters if in a container control so I moved
10101 - Removed selection check logic from our internal Select() method
10102 * ContainerControl.cs:
10103 - Select: Moved selection logic from Control here, since MS documents
10104 that containers obey the bool arguments. No longer calling base
10106 2006-06-02 Jackson Harper <jackson@ximian.com>
10108 * TreeView.cs: If the selected node isn't changed when we get
10109 focus update the previously selected node so that we see the
10112 2006-06-02 Mike Kestner <mkestner@novell.com>
10114 * ComboBox.cs: restructure grab and general mouse event handling.
10115 Make the composite control raise mouse events like it was a single
10116 control for leaves/enters/motion/up/down events. fix dropdown list
10117 coordinate mangling and refactor it into the scrollbar subclass to
10118 reduce code duplication. Fixes #78282 #78361 and #78457.
10120 2006-06-02 Mike Kestner <mkestner@novell.com>
10122 * ScrollBar.cs: remove Capture setting/clearing, as it happens
10123 automatically in the Control.WndProc.
10125 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10127 * FileDialog.cs: fix crash when running SharpChess, which sets the
10128 FilterIndex to 2 with only one Filter.
10130 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10132 * ToolBar.cs: add SizeSpecified property.
10133 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
10134 try to figure out our real size, otherwise fallback to what the
10137 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
10139 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
10140 * Control.cs (WndProc): MS always calls the DefWndProc to pass
10143 2006-06-01 Mike Kestner <mkestner@novell.com>
10145 * ListView.cs: revamp the focus management in ListView. It still
10146 causes churn of LostFocus/GotFocus emissions on clicks, but it's
10147 better than not handling focus at all. Will revisit when pdb feels
10148 the general focus handling is solid. Fixes #78526.
10150 2006-06-01 Jackson Harper <jackson@ximian.com>
10152 * TreeView.cs: Set the default border style in the constructor.
10153 - Move painting to use OnPaintInternal instead of capturing
10154 WM_PAINT, this is the correct way of doing things
10155 - UpdateBelow shouldn't invalidate the scrollbar area
10156 - Cap the top on update below in case the node was above the top
10157 of the viewport rectangle.
10158 - ExpandBelow and Collapse below need to obey Begin/End Update.
10159 * TreeNode.cs: Make is_expanded internal so the treenode
10160 collection can change it without firing the whole event chain.
10161 * TreeNodeCollection.cs: When clearing all the child nodes make
10162 sure to recalc the visible order.
10163 - Improve algo for remove the top node
10165 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
10167 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
10168 SendMessage directly calling window procedures, which in turn might
10171 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
10173 * Control.cs: Don't handle WM_SETFOCUS if the same window already
10174 has focus (works around X11 sending a FocusIn after our SetFocus)
10175 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
10177 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
10179 * Mime.cs: Fix for the NET_2_0 build.
10180 NameValueCollection needs StringComparer now.
10182 2006-05-31 Chris Toshok <toshok@ximian.com>
10184 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
10185 return (via an out parameter) the starting X of the column.
10186 (UpdateVisibleColumn): track change to FromPixelToColumn.
10187 (HitTest): add a ColumnResize case here.
10188 (DrawResizeLine): new function, probably poorly named.
10190 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
10191 only need to keep one reference.
10192 (set_ListManager): same.
10193 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
10194 Also, add support for HitTestType.ColumnResize.
10195 (OnMouseMove): add column resize behavior here, and change the
10196 cursor to the correct one as we move around the datagrid.
10197 (OnMouseUp): terminate the column resize if we're resizing.
10198 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
10199 for the current cell.
10200 (ConnectListManagerEvents): use cached_currencymgr.
10201 (DisconnectListManagerEvents): fill this in, using
10202 cached_currencymgr.
10203 (SetCurrentCell): remove cached_currencymgr_events handling.
10204 (SetDataMember): only call DisconnectListManagerEvents if
10205 cached_currencymgr is != null.
10206 (SetDataSource): same.
10207 (OnListManagerCurrentChanged): cached_currencymgr_events ->
10208 cached_currencymgr.
10210 2006-05-31 Jackson Harper <jackson@ximian.com>
10212 * BindingManagerBase.cs: Remove somedebug code that creeped into
10214 * TreeNode.cs: We get the indent level dynamically right now, so
10215 don't track it as a member.
10216 * TreeNodeCollection.cs: Make sure all nodes added to the list
10217 have parents, treeviews/topnodes setup properly.
10218 - Don't attempt to track indent level.
10220 2006-05-30 Jackson Harper <jackson@ximian.com>
10222 * BindingContext.cs: Create the currency manager tables here.
10223 This allows us to more easily create null tables (when bad data
10224 members are used), and more easily create related currency
10226 * CurrencyManager.cs: All the table creation stuff is done by the
10227 binding context now.
10228 - Current should throw an exception if listposition is -1.
10229 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
10232 2006-05-30 Mike Kestner <mkestner@novell.com>
10234 * ListView.cs: allow reexpansion of zero-width column headers.
10237 2006-05-28 Chris Toshok <toshok@ximian.com>
10239 * CurrencyManager.cs (get_Current): after the late binding
10240 listposition = -1 fix, we need to guard against it here and return
10241 null, otherwise we raise an exception (which is swallowed
10242 elsewhere, and breaks datagrid databinding.)
10244 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
10246 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
10247 than WM_SYSKEY, don't throw if get something unexpected (#78507)
10249 2006-05-26 Jackson Harper <jackson@ximian.com>
10252 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
10253 values, it's faster and it's all we care about (we don't care if
10254 the names aren't equal).
10255 * KeyboardLayouts.cs: Eliminate some dead code.
10257 * X11Keyboard.cs: Lazy init keyboard detection.
10258 - Cleanup access modifiers a little.
10260 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
10262 * XplatUIX11.cs: Once again, attempting to get layout just right.
10264 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
10266 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
10267 the sizes of each link section, that will result in sizes that
10268 match DrawString's layout (Fixes #78391)
10270 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
10272 * FileDialog.cs: If AddExtension property is true autocomplete the
10273 extensions in SaveFileDialog correctly. Fixes bug #78453.
10274 Set MyNetwork and MyComputer to "C:\" for windows. This should
10275 fix part 8 of bug #78446 for now.
10277 2006-05-26 Chris Toshok <toshok@ximian.com>
10279 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
10280 invalidate the current row header if we need to, but presumably
10281 we'll invalidate the row corrsponding to the bounds or
10283 (GridHScrolled): switch back to this method, as it's part of the
10284 public api. *sigh*.
10285 (GridVScrolled): same.
10286 (OnMouseWheel): hack up something that more or less works. Call
10287 GridHScrolled/GridVScrolled directly, instead of duplicating much
10288 of their code here.
10289 (EnsureCellVisibility): reinstate a bunch of this code, since we
10290 can't just set the scrollbar Value and expect to do all the work
10291 in the ValueChanged handler. Also, Call Update() after scrolling
10292 in one direction so the other XplatX11.ScrollWindow call has the
10293 proper stuff in the proper places.
10294 (EditCell): set is_editing to true before calling .Edit.
10296 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
10297 don't bother comparing first.
10298 (OnKeyPress): call grid.ColumnStartedEditing before calling
10299 base.OnKeyPress. this will set is_changing and invalidate the row
10300 header if necessary.
10301 (ProcessKeyMessage): for WM_CHAR messages, call
10302 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
10305 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
10306 it's done in the DataGrid.
10307 (NextState): call grid.ColumnStartedEditing, which takes care of
10308 invalidating the row header (and setting is_changing).
10310 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
10311 here. it's done in the DataGrid.
10313 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10315 * Control.cs: allow changing the cursor when the mouse position is
10316 out of bounds but Capture is set.
10317 * LinkLabel.cs: handle the case when the mouse button is pressed on the
10318 linklabel but released somewhere else.
10320 2006-05-25 Jackson Harper <jackson@ximian.com>
10322 * TreeView.cs: When we get focus if there is no selected node make
10324 - Remove some uneeded setup code from Draw.
10325 * TreeNodeCollection.cs: If the tree doesn't have a top node when
10326 a new node is inserted make the new node the top.
10328 * Timer.cs: Use Utc time so that no local time zone stuff needs to
10329 be used (should be faster).
10331 2006-05-25 Chris Toshok <toshok@ximian.com>
10333 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
10334 problem with the last commit.
10336 2006-05-25 Chris Toshok <toshok@ximian.com>
10338 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
10339 need the invalidate call here, while scrolling right-to-left via
10340 the left arrow key (i.e. moving the editing cell while scrolling).
10342 * DataGrid.cs (.ctor): remove the initialization of
10343 ctrl_pressed/shift_pressed. We no longer track them using key
10344 up/down handlers, but by using Control.ModifierKeys. Also, switch
10345 to using ValueChanged handlers on the scrollbars instead of
10346 Scrolled event handlers. This simplifies a bunch of the scrolling
10348 (GridHValueChanged): rename from GridHScrolled, and change it to
10349 work with the new event args.
10350 (GridVValueChanged): same.
10351 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
10352 (OnMouseWheel): actually scroll the datagrid. Don't change the
10354 (ProcessGridKey): correct all the keyboard navigation stuff I
10355 could find. Ctrl up/down/left/right/home/end work now.
10356 (EnsureCellVisibility): correct method name spelling. Also,
10357 simplify this a touch by not explicitly calling the
10358 ScrollToRow/ScrollToColumnInPixels methods. We just set the
10360 (OnKeyUpDG): no need for this method now.
10362 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10364 * LinkLabel.cs: display the OverrideCursor when hovering the label.
10367 2006-05-25 Chris Toshok <toshok@ximian.com>
10369 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
10372 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
10374 * Application.cs: Moved setting of is_modal and closing to before
10375 we create the control, to allow the event handlers called as a
10376 result of creation affect closing. Also removed Gonzalo's previous
10377 change to setting DialogResult, the behaviour has been moved to
10380 - ShowDialog(): Removed explicit creation of the form, let RunLoop
10382 - ShowDialog(): If no dialog result is set, we need to return Cancel
10383 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
10384 the close is cancelled
10386 2006-05-25 Jackson Harper <jackson@ximian.com>
10388 * StatusBar.cs: We only need to update the sizes of the other
10389 panels when we have auto size contents. Also we are only updating
10390 the contents of the panel, not the borders, so compensate for the
10391 border width (TODO: get this width from the theme somehow).
10392 * TreeView.cs: Scrollable is true by default
10393 - Use invalidate instead of refresh where needed
10394 - Factor the scrollable value into scrollbar updating
10395 - Update the scrollbars if the Scrollable property is altered
10396 - Update the selected node if its ImageIndex is changed
10397 - Handle null nodes in UpdateNode (mainly so we don't have to
10398 check if selected is null when updating it
10399 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
10400 are factored into the visible count
10401 - Use VisibleCount for clarity in the code
10402 - When the font is changed we need to recurse through all the
10403 nodes and invalidate their sizes
10405 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10407 * Application.cs: set the DialogResult to fixed when the main form is
10408 hidden or destroyed while being modal.
10410 2006-05-25 Miguel de Icaza <miguel@novell.com>
10412 * Theme.cs: Use Tangoified messagebox icons.
10414 (GetSizedResourceImage): Also cope with width = 0 and do not
10415 trigger a warning in that case (0 means "give me your icon from
10416 the resouce, no special size needed).
10418 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
10420 * Application.cs: Leave runloop if the the main modal form is
10421 hidden (fixes #78484)
10423 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
10425 * BindingContext.cs : reject null datasource in Contains() and
10427 * CurrencyManager.cs : check data_member validity when data_source
10428 is dataset. When it is late binding, the initial position is -1.
10430 2006-05-24 Jackson Harper <jackson@ximian.com>
10432 * TreeNodeCollection.cs: Dont't recalculate the visible order on
10433 inserted nodes that aren't visible. This changes the
10434 max_visible_order which confuses scrollbar settings.
10435 - Use the enumerator to get the prev node instead of duplicating
10437 * TreeView.cs: Use new method for setting scrollbar values
10438 - Don't set the bounds every time the scrollbar is updated
10439 - When updating below the root node use an invalidate instead of a
10440 refresh to prevent the child controls (scrollbars) from being
10441 refreshed. (UpdateBelow still needs to be reworked anyways).
10442 - Reenable SetBottom now that visible orders are set correctly,
10443 added some debug code incase we ever get bad values there again.
10444 - Set the scrollbar max to 2 less then the max value, this
10445 compensates for the max value being one above the node count, and
10446 for scrollbars adding one extra "notch".
10447 - When drawing image nodes if there is an imagelist we draw the
10448 first image in the list if the supplied image index is out of the
10449 image list's bounds.
10451 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
10453 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
10454 we receive a size change from the WM (Fixes #78503)
10456 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
10458 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
10459 rectangle (Fixes #78501)
10461 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
10464 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
10466 - Fixed MouseMove to no longer switch pressed state unless the left
10467 mouse button is pressed. Atsushi provided the original patch (#78485)
10469 2006-05-24 Jackson Harper <jackson@ximian.com>
10471 * ScrollBar.cs: New internal methods that allow us to change a
10472 couple values on the scrollbar (the most common case is maximum
10473 and large change) without getting multiple invalidates.
10475 2006-05-24 Chris Toshok <toshok@ximian.com>
10477 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
10478 (Edit): save off the original state in oldState, and set
10479 grid.is_editing to true.
10480 (OnKeyDown): abort editing if escape is pressed. also, call
10481 NextState if space is pressed.
10482 (OnMouseDown): call NextState.
10483 (NextState): factor out shared code from OnKeyDown and OnMouseDown
10484 here. Also, only invalidate the row header once (on the initial
10485 is_changing switch) to save on redraws.
10487 2006-05-24 Chris Toshok <toshok@ximian.com>
10489 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
10490 if the value in the cell is different than it was before. This
10491 keeps us from triggering a layout when we move around a datarid
10492 with a highlighted cell.
10493 (Edit): suspend layout when creating/positining the text box, and
10494 resume passing false so we don't ever actually re-layout.
10495 (ReleaseHostedControl): same.
10496 (EnsureTextBox): reformat slightly, and set WordWrap to false.
10498 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
10499 control-key sequences should go to the datagrid - remove that
10500 lock. Also, modify the conditions under which we move between
10501 cells when moving the cursor within a cell, and remove the "this"
10502 and "base" from field accesses. We weren't even consistent, given
10503 they all were in the base class.
10505 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
10507 * Binding.cs : (.ctor)
10508 An obvious NRE fix for BindingTest.CtorNullTest().
10510 2006-05-23 Chris Toshok <toshok@ximian.com>
10512 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
10513 them between lines. This fixes some quirks editing cells in the
10516 2006-05-23 Jackson Harper <jackson@ximian.com>
10518 * TreeView.cs: Use begin/end update when doing expand/collapse all
10519 so that we don't get flicker on the scrollbar.
10521 2006-05-23 Jackson Harper <jackson@ximian.com>
10523 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
10524 treenode calculations to be independant of the painting code. To
10525 do this nodes track a visible order which is calculated by the
10527 - Call new methods for expanding/collapsing nodes. These methods
10528 use scrollwindow so we don't have to update everything below the
10530 * TreeView.cs: Refactored drawing and scrolling code. We don't
10531 need to update nodes when drawing anymore or calculate scrollbar
10533 - Added new methods for expanding/collapsing nodes. These methods
10534 use ScrollWindow so as to not have to redraw all the nodes below.
10535 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
10536 we add/remove nodes or sort.
10537 - Handle removing the selected and the top node properly.
10539 2006-05-23 Chris Toshok <toshok@ximian.com>
10541 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
10542 maybe this should actually happen in the datagrid code?
10543 (EndEdit): no need to invalidate anything, given that
10544 ReleaseHostedControl causes the datagrid to relayout, which
10545 invalidates everything anyway.
10547 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
10548 in SetCurrentCell).
10549 (set_SelectionBackColor): call InvalidateSelection instead of
10551 (set_SelectionForeColor): same.
10552 (BeginEdit): Flesh this out a bit.
10553 (CancelEditing): only do any of this if we're editing/adding.
10555 (OnMouseDown): there's no need to cancel editing here, it's done
10557 (SetCurrentCell): only invalidate the current row header if it's a
10558 different row than the new one.
10559 (ShiftSelection): fix this to work like MS does.
10560 (ResetSelection): factor out the invalidation of selected_rows to
10561 InvalidateSelection.
10562 (SetDataSource): cancel any editing that's going on.
10564 * DataGridColumnStyle.cs
10565 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
10566 call the non-interface version.
10568 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
10569 header rectangle with the clip rectangle so we don't redraw the
10570 entire header for just a small area. Gets rid of the last flicker
10571 when horizontally scrolling.
10572 (DataGridPaintRow): same.
10574 2006-05-23 Mike Kestner <mkestner@novell.com>
10576 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
10577 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
10578 poorly placed checkbox on the MS control. Fixes Alex's unfiled
10579 Critical bug report.
10581 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
10583 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
10584 and this fixes #78493
10586 2006-05-23 Miguel de Icaza <miguel@novell.com>
10588 * Theme.cs (GetSizedResourceImage): Scale images if the proper
10591 * FileDialog.cs: Do not change the background for the side bar as
10592 it wont work nicely with the theme, and also reduces the artifacts
10593 in rendering the icons (which I want to fix too).
10595 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
10596 resources, not resgen resources.
10598 (PlatformDefaultHandler): Pull images using the new API.
10600 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
10602 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
10603 a reference to the hwnd and will not remove it unless there are
10604 no pending exposures (fixes #78341)
10605 * XplatUI.cs: Improved debug
10607 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
10609 * MenuAPI.cs : don't handle OnClick event when it was not the left
10610 button. Fixed bug #78487.
10612 2006-05-23 Mike Kestner <mkestner@novell.com>
10614 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
10615 prefer submenus to the top menu for item lookup, to avoid popping down
10618 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
10620 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
10621 Graphics.FillRectangle as the visual results are really bad (even
10622 on win). We now draw perfect arrows (and perfect shadows when the
10623 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
10624 Pen.DashPattern to draw the dots of each line.
10626 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
10628 * FileDialog.cs: Update the filename combobox when navigating through
10629 the ListView with the cursor keys. Fixes part 7 of bug #78446.
10631 2006-05-22 Mike Kestner <mkestner@novell.com>
10633 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
10636 2006-05-22 Mike Kestner <mkestner@novell.com>
10638 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
10639 requests. Fix a misspelled parameter and a copy paste exception error
10642 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
10644 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
10645 to get the same width/height (5/13) on X11 as the default font has on
10646 win32. This means that our DefaultFont emSize is smaller than the
10647 the MS SWF equivalent (even thought the width/height stays the same)
10649 2006-05-20 Jackson Harper <jackson@ximian.com>
10652 * MdiWindowManager.cs:
10653 * InternalWindowManager.cs: Make sure to use the border width from
10656 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
10658 * PrintDialog.cs: Implements printer details
10660 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
10662 * FileDialog.cs: Added focus handling for PopupButtonPanel.
10663 Fixes part 1 and 2 of bug #78446
10665 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
10667 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
10668 instead of sticking to the first ever calculated value
10670 2006-05-19 Mike Kestner <mkestner@novell.com>
10672 * ComboBox.cs: fix mouse motion selection to use MousePosition and
10673 PointToClient, since Capture is set. Fixes #78344.
10675 2006-05-19 Mike Kestner <mkestner@novell.com>
10677 * ListView.cs: match MS behavior in Details view where items are not
10678 drawn if Columns.Count == 0.
10679 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
10680 Use a separate pen to draw the check, since changing the width affects
10681 the box as well. Fixes #78454.
10683 2006-05-18 Miguel de Icaza <miguel@novell.com>
10685 * ListView.cs: ArgumentOutOfRangeException, single versions of the
10686 exception should throw the name of the invalid argument.
10688 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
10689 there are no files listed.
10691 2006-05-18 Jackson Harper <jackson@ximian.com>
10693 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
10696 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
10698 * Control.cs: Brought back our old UpdateZOrder method as a private
10699 function and switched our calls from UpdateZOrder to the new one.
10700 This fixes the Paint.Net canvas disappearing bug.
10702 2006-05-18 Jackson Harper <jackson@ximian.com>
10705 * ThemeWin32Classic.cs:
10706 * InternalWindowManager.cs: Move the drawing into the theme,
10707 expose everything the theme should need from the window manager.
10709 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
10711 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
10712 from the call to NativeWindow to avoid walking up the parent chain
10713 further than needed (speeds up setting cursors and avoids setting
10714 the wrong cursor if a parent has another cursor defined)
10715 * Cursor.cs: When loading an icon as cursor, MS uses the center of
10716 the icon as hotspot, not what's contained as hotspot in the icon
10717 file. This fixes the perceived drawing offset seen with Paint.Net
10719 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
10722 - Store the calculated rectangle in Hwnd object and use it when
10723 setting the client size
10724 - Force Toolwindows to always be type Dock, to ensure they're on top
10726 2006-05-18 Mike Kestner <mkestner@novell.com>
10728 * ComboBox.cs: first pass at ComboBox rework. Layout is more
10729 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
10730 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
10731 Substantial refactoring to remove confusing nested classes. Coding
10732 standard and Get+Set->property refactorings. Shift to index based
10733 highlighting in ComboListBox instead of constantly using IndexOf and
10734 Items[]. Add invalidations on resize for DropDownList to fix ugliness
10735 in FileDialog growth. Draw borders manually since Simple mode needs
10736 to look like two independent controls. Make listbox border
10737 conditional to DropDownStyle. Improved OwnerDraw support.
10739 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
10741 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
10742 Don't set the disposed graphics to null, so we can throw the "right"
10743 exception if the graphics is reused later (added a flag to avoid
10744 double disposing). Some behaviours are different under 2.0 and are
10745 filled under bug #78448.
10747 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
10749 * Control.cs: When double-buffering is enabled, we need to reset
10750 our graphics context between paint calls. Otherwise, any
10751 transformations and other alterations on the context will
10752 become cumulative (#77734)
10754 2006-05-18 Mike Kestner <mkestner@novell.com>
10756 * ListView.cs: do focused item selection like MS on clicks.
10757 Rework focus handling for ItemControl so LostFocus invalidates as
10759 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
10760 the ListView ItemControl has focus.
10762 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
10764 * XplatUIX11.cs: If client_window ends up being width or height zero
10765 due to border settings, move it off window inside whole_window (#78433)
10767 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
10769 * Mime.cs: Shrink the mime file cache correctly.
10771 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
10773 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
10775 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
10777 * XplatUIX11.cs (AddExpose): More sanity checks
10779 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
10782 - AddExpose: Don't add expose ranges outside the size of our
10784 - Cast opacity values to Int32 to avoid crashes with certain
10786 - Added disabled code paths that protect against illegal cross-
10787 thread painting (Developers.exe)
10789 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
10791 * ProgressBar.cs: Invalidate the control when it's resized
10792 since block size is based on control size. (#78388)
10794 2006-05-16 Miguel de Icaza <miguel@novell.com>
10796 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
10797 of setting the incoming argument to the "reset" value, we set the
10798 this.datamember to string.empty (before we were invalidating the
10803 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
10805 * Form.cs: Only apply transparency settings after the form
10806 is created. (Fixes #77800)
10808 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
10810 * ApplicationContext.cs: Grab the HandleDestroyed event so
10811 we know when to fire OnMainFormClosed
10813 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
10815 * Application.cs: Introduced sub-class to allow tracking of
10816 threads and centralized triggering of the event mess for
10817 ThreadExit, AppExit, etc.. (#76156)
10819 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
10822 - Do not return a null icon index value for a mime subclass.
10823 Instead try the main mime type class too.
10824 - Seems that some newer distributions don't have a link to some
10825 gnome default icons anymore. So check the default gnome dir too.
10828 2006-05-16 Jackson Harper <jackson@ximian.com>
10830 * MdiClient.cs: Don't paint the parent background image if we have
10831 our own background image.
10833 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
10836 - PerformLayout: Do not shrink space filled by DockStyle.Fill
10837 controls, all filled controls are supposed to overlap (#78080)
10838 - UpdateZOrder is supposed to update the control's z-order in the
10839 parent's z-order chain. Fixed to behave like that
10840 - BringToFront: Removed obsolete code
10841 - SendToBack: Simplyfied
10842 - SetChildIndex: Trigger layout calculations when Z-order changes
10843 since layout is done by z-order
10845 2006-05-16 Chris Toshok <toshok@ximian.com>
10847 [ fixes bug #78410 ]
10848 * DataGrid.cs (set_AlternatingBackColor): use
10849 grid_drawing.InvalidateCells instead of Refresh().
10850 (set_BackColor): call grid_drawing.InvalidateCells.
10851 (set_BackgroundColor): use Invalidate instead of Refresh.
10853 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
10854 invalidate the cell area.
10856 2006-05-15 Chris Toshok <toshok@ximian.com>
10858 [ fixes bug #78011 ]
10859 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
10860 on to DataGridPaintRow.
10861 (DataGridPaintRow): take a clip argument, and only draw the cells
10862 which intersect it. same with the not_usedarea.
10864 * Theme.cs (DataGridPaintRow) add @clip parameter.
10866 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
10867 XplatUI.ScrollWindow.
10868 (ScrollToRow): same.
10870 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
10871 with last column which was causing a gray swath to appear with the
10872 XplatUI.ScrollWindow code.
10874 2006-05-15 Chris Toshok <toshok@ximian.com>
10876 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
10877 use XplatUI.ScrollWindow.
10878 (VerticalScrollEvent): use XplatUI.ScrollWindow.
10880 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
10882 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
10884 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
10886 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
10887 file since there are no equivalent X11 cursors
10889 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
10891 * MonthCalendar.cs : DateTimePicker should reflect selected date
10892 on mouse*up*, not mouse*down*. Fixed originally reported part of
10895 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
10897 * TabControl.cs : When argument index is equal or more than tab
10898 count, just ignore. Fixed bug #78395.
10900 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
10902 * Control.cs: Dispose all child controls when control is diposed (#78394)
10904 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
10906 * ColorDialog.cs: Finally it is possible to select the color with
10909 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
10911 * PrintDialog.cs: Fix typo
10913 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
10915 * PrintDialog.cs: PrintDialog is not resizable
10916 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
10917 color. Made some ToolBar drawing methods protected virtual.
10919 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
10921 * PrintDialog.cs: Implementation of the PrintDialog
10923 2006-05-12 Chris Toshok <toshok@ximian.com>
10925 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
10926 thumb, instead use MoveThumb. This has the side effect of making
10927 most of the other thumb moving machinery use MoveThumb as well.
10928 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
10929 need to actually invalidate the rectangle where the new thumb will
10931 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
10932 We force an Update() after, so it's not as fast as it could be,
10933 but at least there's zero flicker and no droppings.
10934 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
10935 (UpdateThumbPos): add another argument (dirty), which says whether
10936 or not to calculate/add dirty regions which we later invalidate.
10937 For cases where we know we're going to use MoveThumb, we pass
10938 false for this. Otherwise, pass true.
10940 2006-05-12 Jackson Harper <jackson@ximian.com>
10942 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
10945 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
10947 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
10948 and GetClipRegion methods and UserClipWontExposeParent property.
10949 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
10950 overriding UserClipWontExposeParent property, setting to false, since
10951 Win32 handles the required expose messages to draw our clipped parent
10953 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
10954 PaintEventStart to set the user clip region if set.
10956 - Now internally tracking the Region for the control since we need to
10957 store it if the handle is not yet created and only set it when it
10958 becomes created. Before setting the region forced handle creation
10959 - Added code to draw the parents underneath a user-clipped region
10960 * Hwnd.cs: Added UserClip property
10962 2006-05-12 Chris Toshok <toshok@ximian.com>
10964 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
10965 (set_Maximum): same.
10966 (set_Minimum): same.
10967 (set_SmallChange): same.
10968 (OnMouseUpSB): remove the call to refresh when releasing the
10969 thumb. We shouldn't need it.
10971 2006-05-12 Miguel de Icaza <miguel@novell.com>
10973 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
10974 AutoSize set to None, we do not need to relayout everything, we
10975 just need to invalidate the current region.
10977 (Draw): Do not draw the entire ClientArea, just redraw the
10978 clip area being passed.
10980 * MdiClient.cs: Make MdiClient constructor with the Form argument
10983 2006-05-12 Jackson Harper <jackson@ximian.com>
10985 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
10986 parents background image, but strangely not their own.
10987 - (DrawStatusBarPanel): Take into account horizontal alignment
10988 when drawing the strings and icons.
10990 2006-05-12 Mike Kestner <mkestner@novell.com>
10992 * ListBox.cs: avoid invalidations for focus when the collection is
10995 2006-05-12 Chris Toshok <toshok@ximian.com>
10997 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
10998 invalidate the entire thumb area. Call InvalidateDirty which
10999 limits the redraw to the thumb itself and surrounding pixels.
11001 * XplatUIX11.cs (ScrollWindow): optimize copying.
11003 2006-05-12 Chris Toshok <toshok@ximian.com>
11005 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
11006 Figure out the positioning/layout in a single pass instead of
11007 multiple recursive invocations. Speeds up the initial display of
11008 the data grid. Also, make many things private that were
11009 originally public but unused outside this class.
11011 2006-05-11 Jackson Harper <jackson@ximian.com>
11013 * MdiClient.cs: Improved layout code.
11015 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
11017 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
11018 not SelectedObject.
11020 2006-05-11 Chris Toshok <toshok@ximian.com>
11022 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
11023 union of that will always be {0,0,width,height}.
11025 2006-05-11 Jackson Harper <jackson@ximian.com>
11027 * Form.cs: Match MS's DefaultSize for forms (they must have
11028 changed the size in sp2).
11030 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
11032 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
11034 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
11036 * TextControl.cs : Fixed bug #78109. This incorrect position
11037 comparison caused crash on automatic line split.
11038 * TextBoxBase.cs : reduce duplicate code.
11040 2006-05-10 Jackson Harper <jackson@ximian.com>
11042 * MdiClient.cs: Active form is only sent to the back when using
11043 the Next form functionality, when a form is clicked the current
11044 active shouldn't be sent to the back.
11045 - Layout the mdi windows when the container is first made visible.
11046 * Form.cs: Give the MdiClient a ref to the containing form when we
11049 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
11051 * LinkLabel.cs : link_font could be uninitialized, so populate one
11052 before actual use. Fixed bug #78340.
11054 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
11056 * XplatUIX11.cs : clipboard format native value is IntPtr.
11059 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
11062 - Instead of showing context menus directly we send WM_CONTEXTMENU,
11063 which is passed up the parent chain by DefWndProc
11064 - We now handle WM_CONTEXTMENU to display any menu, or pass it
11065 to DefWndProc (#77956)
11066 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
11068 2006-05-10 Jackson Harper <jackson@ximian.com>
11070 * MdiClient.cs: We need to remove the controls from the mdi
11071 collection, when we close the window.
11072 * MdiWindowManager.cs: Special handling of closing mdi windows.
11073 * InternalWindowManager.cs: Make the close method virtual so the
11074 mdi window manager can handle it specially.
11076 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
11079 - Recalculate grid when the data source has changed
11080 - Matches styles provided by user from all data sources types
11081 * DataGridTableStyle.cs: For columns that provided by the user set the
11082 with the preferred value is there was unassigned.
11083 * CurrencyManager.cs: throw OnItemChanged event
11085 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
11087 * PictureBox.cs: Don't animate until handle is created. Start animation
11088 when handle is created.
11090 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
11092 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
11094 * XEventQueue.cs: We don't need to provide the extra info
11096 2006-05-10 Jackson Harper <jackson@ximian.com>
11098 * MdiClient.cs: If the mdi clients parent form has a background
11099 image set, we draw that background image for the mdi area's
11102 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
11104 * TextBoxBase.cs: Set IBeam cursor (#78347)
11106 2006-05-10 Mike Kestner <mkestner@novell.com>
11108 * ToolBar.cs: fix some text padding issues with ButtonSize
11109 calculation. Update the default size to match MS documentation.
11110 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
11111 button size. Fixes #78296.
11113 2006-05-10 Mike Kestner <mkestner@novell.com>
11115 * ListBox.cs: use is_visible for scrollbar positioning in case the
11116 control isn't on screen yet. Fix off by one with Right vs Width
11117 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
11119 2006-05-10 Jackson Harper <jackson@ximian.com>
11121 * X11Dnd.cs: Drop to a control with another control on top of it.
11122 * ToolBar.cs: Work on a copy of the buttons list, so that it can
11123 be modified in click handlers. TODO: Look for similar problems in
11126 2006-05-09 Jackson Harper <jackson@ximian.com>
11128 * Form.cs: Window managers need the old window state when setting
11130 * InternalWindowManager.cs: Allow the base mdi window manager to
11131 handle more of the MDI only stuff (like maximize buttons).
11132 * MdiWindowManager.cs: Fix some snafus in changing the window
11133 state. Add all the menu functionality, for both popup and
11135 * MdiClient.cs: When a new form is selected the currently
11136 activated form is sent to the back, this matches MS.
11137 - Implement a new method to activate the next mdi child window.
11139 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
11142 - Added new InternalCapture method to allow controls to prevent
11143 the capture behaviour on the click handlers
11144 - Switched to use InternalCapture
11146 - Using InternalCapture to prevent mouse captures from being released
11147 on mouse button release (Fixes #78100)
11148 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
11149 returns Form borders if a caption is present. (Fixes #78310)
11151 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
11153 * TreeNode.cs: Changed serialization .ctor to not require every field
11154 to be present. (#78265)
11155 * OwnerDrawPropertyBag.cs: Added serialization .ctor
11157 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
11159 * MimeIcon.cs: for is faster than foreach for strings.
11161 2006-05-05 Mike Kestner <mkestner@novell.com>
11163 * CheckedListBox.cs: update check handling code to not use selected.
11164 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
11165 behavior for visual feedback, motion response, shift/ctrl handling,
11166 and properly deal with all 4 selection modes. Updates to bounds
11167 handling logic. Add scroll wheel support. [Fixes #77842]
11169 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
11172 - Moved adding of Implicit controls into .ctor. That way, subsequent
11173 creation of the controls will not cause them to think they are
11174 toplevel windows (fixes #78200 header problem)
11175 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
11176 - Switched visibility setting of header control to use internal field
11177 to avoid triggering handle creation
11178 - Now checking if handle is created before causing a refresh when items
11179 are added (This makes us now match handle creation time with MS)
11180 * Splitter.cs: Removed loading of private splitter cursor, switched to
11181 Cursors version now that that is loading the right ones
11182 * Cursors.cs: Load proper splitter cursors from resources
11183 * Cursor.cs: Added second method of loading resource cursors for the
11184 VS.Net users amongst us
11186 2006-05-05 Mike Kestner <mkestner@novell.com>
11188 * ListView.cs: give header_control a minimum size based on the
11191 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
11193 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
11194 window seems to do that with metacity, so set that type. (#78120)
11196 2006-05-05 Mike Kestner <mkestner@novell.com>
11198 * ListViewItem.cs: fix Details mode checkbox layout bug.
11199 * ThemeWin32Classic.cs: draw a ListView column header for unused space
11200 at the end of the header, if it exists. [Fixes for #78200]
11202 2006-05-04 Jackson Harper <jackson@ximian.com>
11204 * MdiClient.cs: Add a helper property to get the container form.
11205 * MdiWindowManager.cs: We have to make sure to use the menu origin
11206 when drawing the icons and buttons, this fixes maximized window
11207 icons/buttons on win32.
11208 * InternalWindowManager.cs: Reset the restore captions when a
11209 window goes from Maximized to Minimized and vice versa. Move the
11210 DrawMaximizedButtons into the MdiWindowManager source, tool
11211 windows can't be maximized. NOTE: This could use a little
11212 refactoring if time ever permits.
11214 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
11216 * TextBox.cs: Add MWFCategoryAttributes
11217 * TextBoxBase.cs: Add MWFCategoryAttributes
11218 * Form.cs: Add MWFCategoryAttributes
11220 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
11222 * Control.cs: Add MWFCategoryAttributes
11223 * ScrollableControl.cs: Add MWFCategoryAttributes
11225 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
11227 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
11228 Divider is true. Fix a little glitch in PropertyToolBar
11231 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
11234 - Dispose: Call base.Dispose, this causes the disposed event
11235 to be fired (and probably other, more important stuff)
11236 - SetVisibleCore: Set is_visible to true after creating the
11237 window so that the window still gets created invisible (if
11238 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
11239 to generate a WM_ACTIVE message
11240 * Form.cs: Call Dispose when we want to destroy the window, instead of
11241 just destroying the handle (Dispose will do that for us)
11243 - RootWindow also needs a queue, so we can properly process the
11244 property change events from RootWindow (like Activate)
11245 - Generatic synthetic WM_ACTIVE message when the active window is
11248 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
11250 * LinkLabel.cs: Trigger a recalc of our label dimensions when
11253 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
11255 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
11256 for determining width and height (image might not be assigned if
11257 we're drawing an imagelist)
11259 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
11261 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
11262 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
11264 * Theme.cs: No longer returns hardcoded menu height, instead calls
11266 * Form.cs (OnLoad): Scaling happens before triggering Load events
11269 2006-05-01 Mike Kestner <mkestner@novell.com>
11271 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
11273 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
11275 * TextBoxBase.cs: Removed Fixme
11276 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
11278 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
11281 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
11282 the rectangle relative to the parent, considering borders. We
11283 don't really want that.
11284 - ScrollWindow: Fixed warning to be more understandable
11285 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
11286 scrollbars and scroll only the visible area
11287 * RichTextBox.cs: Removed debug output
11289 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
11291 * NumericUpDown.cs (Text): Just use base
11292 * UpDownBase.cs: Ensure txtView is created before using it
11294 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
11296 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
11297 casting to IntPtr to avoid 64bit overflow errors
11299 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
11302 - AllowDrop: Don't force handle creation.
11303 - CreateHandle: Added call to tell driver if we're allowed to drop
11305 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
11307 * FileDialog.cs: Remember the last directory not only for the
11308 current instance but also for new FileDialog instances.
11310 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
11312 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
11313 broke sending async messages
11315 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
11318 - ScrollWindow: Fixed method. We finally generate expose events again
11319 for scrolled areas. This was causing 'garbage' when scrolling
11320 textbox and other controls that used ScrollWindow
11321 - Switched from using the regular queue for paint events to the MS
11322 model of 'generating' paint events when the queue is empty.
11323 We use the new XQueueEvent.Paint subclass to store which windows
11325 - AddExpose now takes the x/y/width/height of the exposed area
11326 and inserts the window into the paint queue if not already there
11327 - InvalidateWholeWindow: Switched to use new AddExpose method
11328 - UpdateMessageQueue: Added which queue to monitor for paint events
11329 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
11330 the unlikely case nothing above handles it. We reset the expose
11331 pending states to get them off the queue.
11332 - GetMessage: Now pulls a paint event if no other events are in the
11334 - Invalidate: Switched to new AddExpose method
11335 - PeekMessage: Updated to understand pending paint events
11336 - UpdateWindow: Fixed logic bug. We were only updating if the window
11337 didn't need updating. Also switched to sending WM_PAINT directly,
11339 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
11340 and random access Remove(). The random access is needed to handle
11341 UpdateWindow() where a WM_PAINT is sent directly without accessing
11343 * ScrollBar.cs: Added Update() calls to cause immediate updates to
11344 allow for better feedback when scrolling. Scrollbars are small and
11345 the immediate update should make it 'feel' more responsive without
11346 slowing things down. ScrollBar still needs it's invaliate logic
11347 updated to not always invalidate the whole bar on certain changes.
11349 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11352 (BackColor): if the control does not support a transparent background,
11353 return the default backcolor when the parent backcolor is transparent.
11355 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
11357 * Application.cs: Updated to new StartLoop/GetMessage API
11358 * RichTextBox.cs: Provide some output on RTF parsing errors
11359 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
11360 new queue_id argument to GetMessage and PeekMessage to allow faster
11361 handling of per-thread queues in drivers.
11362 * Hwnd.cs: Added Queue tracking and property
11363 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
11364 * XEventQueue.cs: Added thread trackingA
11365 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
11367 - Implemented new per-thread queue
11368 - GetMessage: Fixed return/break behaviour on several cases. We were
11369 returning stale messages in some cases, instead of just processing
11372 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
11374 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
11376 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
11378 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
11379 fixed off-by-one comparisons between Width/Height and Right/Bottom.
11381 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
11383 * PropertyGridView.cs: Fix drop down width.
11385 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
11387 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
11388 a mess in DrawToolBar, so I removed one of them.
11390 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
11392 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
11393 needed (clip). Otherwise we get artifacts.
11395 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
11397 * FixedSizeTextBox.cs: Added constructor to allow specifying which
11399 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
11400 and switched FixedSizeTextBox to only be fixed vertical (#78116)
11401 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
11402 if it matches the scale base font (avoids unneeded scaling)
11404 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
11406 * X11DesktopColors.cs: One gtk_init_check should be enough
11408 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
11410 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
11413 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
11416 - Generate OnTextChanged for Backspace even if we're only deleting
11417 the current selection
11418 - When setting the Text property, only select all text if the
11419 control does not have focus when it is being set. Otherwise
11420 just place the cursor at the beginning of the control
11422 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
11424 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
11425 Added a little helper to draw PropertyGrid ToolBar with a different
11426 border and a different BackColor.
11427 * PropertyGrid.cs: Some background parts didn't get painted with the
11428 correct background color. Added a class that helps us to draw the
11429 correct border for PropertyGridView and a class that helps us to
11430 draw ToolBars with a different backcolor
11431 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
11433 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
11435 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
11436 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
11438 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
11440 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
11441 into the palette entries. Also, since we're working on a copy
11442 we needed to copy the palette back onto the bitmap.
11443 * Cursor.cs: Same fix as XplatUIWin32.cs.
11445 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
11447 * ImageListStreamer.cs: Need to read the var (or we're off)
11449 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
11451 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
11452 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
11453 TextBoxBase.cs: Unused var fixes
11454 * AxHost.cs: Small 2.0 fix
11455 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
11456 as it seems that is what at least Metacity expects. This will make
11457 icons show up on 64bit platforms. We still have some 64bit size
11458 issues, though, since the startup app window size still won't match.
11460 2006-04-25 Mike Kestner <mkestner@novell.com>
11462 * *.cs: cleanup newly reported exception var unused warnings.
11464 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
11466 * ThemeWin32Classic.cs: Button image alignment now matches exactly
11469 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
11471 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
11472 image. The image position is always the same, no matter if the
11473 button is pressed or not.
11475 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
11477 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
11478 selection and set the correct filename for SaveFileDialog.
11479 Patch by Emery Conrad.
11481 2006-04-24 Mike Kestner <mkestner@novell.com>
11483 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
11484 check for item.X outside the ClientRect instead of item.Y. Fixes
11487 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11489 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
11490 trust that value blindly and do some sanity check. Fixes bug #77814.
11492 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11494 * ImageListStreamer.cs: save the mask as a 1bpp image.
11496 2006-04-21 Mike Kestner <mkestner@novell.com>
11498 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
11499 pass Checked and Indeterminate to the Theme Engine. Improve
11500 encapsulation with ListBox.
11501 * ListBox.cs: Keep a StringFormat instead of calculating it every item
11502 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
11503 nested types. Move all CheckState functionality to CheckedListBox.
11504 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
11505 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
11506 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
11507 single base list. Fix scrollbar sizing and placement to mirror MS.
11508 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
11510 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
11511 for CheckedListBox by using new DrawItemState info. Center the
11512 checkboxes on the items. Use new StringFormat property.
11514 2006-04-18 Jackson Harper <jackson@ximian.com>
11516 * Form.cs: MdiChildren don't do default locations the same way as
11517 regular forms. This prevents a crash when trying to position the
11520 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
11522 * PropertyGridTextBox.cs: Formatting, copyright
11523 * PropertiesTab.cs: Formatting
11524 * PropertyGrid.cs: Formatting
11525 * PropertyGridView.cs: Formatting, fix drop down, enabled double
11526 click toggling of values
11528 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
11530 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
11531 * Control.cs (.ctor): verify_thread_handle is static, don't reset
11532 every time a control is created
11533 * Application.cs: Removed obsolete EnableRTLMirroring method
11535 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
11537 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
11538 SelectedIndex to -1. Fixes bug #78121.
11540 2006-04-17 Jackson Harper <jackson@ximian.com>
11542 * Binding.cs: Handle null values for Current and BindingContext.
11543 This occurs when binding is a little delayed.
11544 * CurrencyManager.cs: return null for Current when there are no
11546 - Hookup to the listchanged event on the DataView and update
11547 bindings when the list is changed. This fixes late binding of
11550 2006-04-17 Jackson Harper <jackson@ximian.com>
11553 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
11556 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
11558 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
11560 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
11561 with the correct ButtonState
11563 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
11565 * XplatUIX11.cs: Improved distinguishing between window types to
11566 tell the WM a type closer to what the app wants (Fixes #78107)
11568 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
11570 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
11573 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
11575 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
11576 drawing code to reflect the size grip changes
11578 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11580 * ImageListStreamer.cs: fix handling of the mask that follows the main
11581 bitmap when deserializing and serialize it properly. The generated mask
11582 should better be a 1bpp image, but I'll do that later.
11584 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
11586 * FileDialog.cs: Show something in the DirComboBox on *nix if the
11587 path doesn't fit into some of our Current.Places
11589 2006-04-13 Jackson Harper <jackson@ximian.com>
11591 * ComboBox.cs: Use borders instead of drawing our own decorations,
11592 try to obey correct rules for heights.
11595 * ThemeClearLooks.cs:
11596 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
11597 this is now handled by borders.
11598 - Remove unused DrawListBoxDecorationSize method.
11600 2006-04-13 Mike Kestner <mkestner@novell.com>
11602 * MenuAPI.cs: null guarding for the disbled click check fixes crash
11605 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
11607 * ThemeWin32Classic.cs:
11608 - Fixed CPDrawStringDisabled
11609 - Corrected drawing of disabled menu items
11610 - Fixed drawing of disabled radio buttons (bug #78095)
11611 - Draw check in a disabled CheckBox with color ControlDark
11613 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
11615 * Form.cs: Use the provided width when calculating the menu size;
11616 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
11617 and ClientSize.Width won't be updated yet
11618 * Application.cs: Use Visible instead of Show() to make form visible,
11619 this way we create the handle later and menusize is considered
11621 2006-04-12 Mike Kestner <mkestner@novell.com>
11623 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
11626 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
11628 * TextBox.cs: Implemented context menu
11630 2006-04-12 Mike Kestner <mkestner@novell.com>
11632 * ListView.cs: implement box selection. fixes #77838.
11633 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
11635 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
11637 * XplatUIX11.cs: Added setting of window type when transient window
11638 is created (metacity would move it otherwise)
11639 * X11Structs.cs: Added WINDOW_TYPE atoms
11640 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
11641 background (the control is Opaque but still wants transparent
11644 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
11646 * Control.cs: Added OnPaintBackgroundInternal to allow controls
11647 that set Opaque but don't mean it (like all ButtonBase-derived
11648 controls) to still draw their background
11649 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
11652 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
11654 * Control.cs (PaintControlBackground): Set the graphics object
11655 on our PaintEvent to null to prevent it from being disposed
11656 when the PaintEvent gets disposed
11658 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
11660 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
11661 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
11663 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
11666 - Added transparency check to BackColor property. Transparent
11667 backgrounds are only allowed if the control styles permit it
11668 - Added recursive painting of parent control background and
11669 foreground if a control with a transparent backcolor is drawn
11670 (Thanks to Tim Ringenback for providing his 'hack' as a base
11671 for this patch) Fixes #77985 and #78026.
11672 - Added Opaque style check before calling OnPaintBackground, no
11673 need to draw the background if the control is opaque
11674 - Removed ControlAccessibleObject owner variable (inherited from
11675 base, no need to define again)
11676 - Added some documentation links explaining the drawing events
11679 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
11681 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
11682 that the affected control is the located at the left border of our
11683 parent (Fixes #77936)
11685 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
11687 * TextBoxBase.cs: When rendering disabled or readonly controls,
11688 draw the background with 'Control' instead of 'Window' color as
11689 long as the user hasn't specifically set a color
11691 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
11693 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
11694 since that won't be updated if the user types text (only if it's
11695 programatically set)
11697 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
11699 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
11700 layout changes do to app-triggered resizes will have the proper
11701 display rectangle for layout
11703 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
11705 * ThemeWin32Classic.cs:
11706 - Make use of the SystemBrushes and SystemPens wherever possible
11707 - Corrected some highlight colors
11708 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
11710 * Theme.cs: Added Empty field to CPColor struct
11712 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
11714 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
11715 is displayed when calculating the display rectangle. Thanks to Mike
11716 for teaching me the err of my ways.
11718 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
11720 * ScrollableControl.cs:
11721 - Rewrote DisplayRectangle code, now returning the proper x/y coords
11722 (instead of 0,0) and we now return the real width/height instead of
11723 just the clientrectangle, adjusted for padding. The rectangle is
11724 now cached and created by the new CalculateDisplayRectangle method.
11725 - Created new CalculateDisplayRectange method, which basically does
11726 what get_DisplayRectangle() did originally, but now using the
11727 right edge instead of DisplayRectangle to determine the size of
11729 - get_Canvas(): Fixed it to properly calculate canvas for
11730 right/bottom controls which seem to be placed to the right/bottom
11731 of any controls that have a fixed location
11732 - Removed TODO that's taken care of
11733 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
11734 and SetDisplayRectLocation according to new MSDN2 docs
11735 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
11736 event when that is called, this is added for compatibility
11737 - ScrollControlIntoView(): Implemented.
11738 - Switched scrollbars to be implicit, they shouldn't be selectable
11739 * ContainerControl: Now that ScrollControlIntoView is implemented, we
11740 call it when the active control is set/changed
11741 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
11742 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
11743 implicit_control variable (used for native Win32 message generation)
11744 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
11745 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
11746 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
11747 * XplatUIStructs.cs: Added ScrollBarCommands enum
11749 2006-04-10 Jackson Harper <jackson@ximian.com>
11752 * CheckedListBox.cs:
11759 * PrintPreviewControl.cs:
11765 * UpDownBase.cs: Fixup base event overrides.
11767 2006-04-06 Mike Kestner <mkestner@novell.com>
11769 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
11770 all user-initiated value changes to min <= value <= max-thumbsz+1.
11771 (set_Value): check for vert/horiz when calculating new thumb position.
11772 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
11774 (OnMouseMoveSB): refactor the thumb dragging code and refine
11775 invalidation logic to reduce flicker.
11776 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
11777 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
11778 (UpdateThumbPosition): small code readability cleanup
11780 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
11782 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
11785 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
11787 * ThemeNice.cs: Use a better graphics effect when a button is pressed
11789 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
11791 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
11792 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
11793 This dramatically reduces the number of Pen.Dispose calls.
11794 Where possible call ResPool methods only once instead of calling it
11795 over and over again (for example for the same color).
11797 2006-04-06 Mike Kestner <mkestner@novell.com>
11799 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
11800 Also remove an unused private field on the collection. Fixes #77972.
11802 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
11804 * ThemeNice.cs: Added ToolBar drawing code
11806 2006-04-06 Mike Kestner <mkestner@novell.com>
11808 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
11809 I'm assuming that means we need to look up the toplevel for the
11810 provided control. Fixes the crash trace in #77911 but exposes another
11811 crash in some strange reflection usage in NDocGui.
11813 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
11815 * ThemeNice.cs: Gave it a little silver touch and added Images
11817 * FontDialog.cs: FontDialog is not resizable
11818 * FileDialg.cs: Added SizeGripStyle.Show
11820 2006-04-05 Jackson Harper <jackson@ximian.com>
11822 * KeyboardLayouts.cs: Remove warning.
11824 2006-04-05 Jackson Harper <jackson@ximian.com>
11826 * Control.cs: Enable OnPaintInternal so we can use it for drawing
11827 all of our controls instead of Paint +=.
11842 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
11843 use OnPaintInternal. Remove Width/Height and Visible checks in
11844 paint handler, this is done at a higher level now.
11845 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
11846 * PaintEventArgs.cs: Add a handled flag so controls that don't
11847 want anymore painting after OnPaintInternal can make sure OnPaint
11850 2006-04-05 Mike Kestner <mkestner@novell.com>
11852 * Form.cs: fix the menu WndProc hacks to respect the native enabled
11853 state of the form, so that we don't process events when Modal dialogs
11854 are up. Fixes #77922.
11856 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
11858 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
11861 2006-04-05 Mike Kestner <mkestner@novell.com>
11863 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
11865 2006-04-05 Mike Kestner <mkestner@novell.com>
11867 * ListView.cs (HeaderMouseMove): null guarding for the over column
11868 when setting up the drag_to_index. Fixes #78015.
11870 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
11872 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
11873 in the taskbar. Transient windows seem to accomplish that.
11875 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
11878 - Re-enabled CreateParams.X/Y code for FormStartPosition
11879 - Added code for manual placement when creating the Control
11880 - Incomplete patch to treat MDI forms differently when
11881 setting the ClientSizeCore. (Still need to figure out handling
11884 - When we're explicitly setting the X/Y position of a non-Child
11885 window, let the WM know. Metacity really wants this.
11887 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
11889 * ThemeNice.cs: Added CPDrawButton
11891 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
11893 * ThemeNice.cs: Changed the color for focused buttons and activated
11894 the arrows for small scroll buttons.
11896 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
11898 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
11899 anymore. Changed some method modifiers to protected (virtual)
11900 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
11902 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
11903 Updated drawing of menus, buttons and progressbars; added
11906 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11908 * ImageListStreamer.cs: implemented serialization/deserialization
11911 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
11913 * ThemeWin32Classic.cs:
11914 - Removed all the DrawFrameControl stuff; CPDrawButton,
11915 CPDrawCheckBox and CPDrawRadioButton are now handled directly
11917 - Updated and corrected the drawing code of CPDrawButton,
11918 CPDrawCheckBox and CPDrawRadioButton to better match ms
11919 - Updated theme checkbox and radiobutton code to use the CP*
11922 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
11924 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
11927 2006-03-31 Jackson Harper <jackson@ximian.com>
11929 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
11931 * UpDownBase.cs: Don't CreateGraphics manually, use a
11932 Refresh. Ideally we would invalidate the correct areas here.
11934 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
11937 - We now track the mapping state of windows. If a window (or
11938 one of it's parents) is not mapped we no longer permit
11939 WM_PAINT messages to be generated since we'd otherwise get
11940 lots of BadMatch X errors. Jackson did all the work figuring
11942 - Destroying the caret if the window it's contained in is
11943 destroyed. Can't use regular DestroyCaret method since it
11944 might fall into a drawing function (trying to remove the
11945 caret) and with that generate new BadMatch errors. Again,
11946 Jackson tracked this down.
11947 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
11948 make sure we send the messages to all windows. (The old code
11949 would send the WM_DESTROY to the window, and then all child
11950 windows would be 'gone' because the WM_DESTROY handle lookup
11951 would no longer find the destroyed window)
11952 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
11953 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
11955 2006-03-31 Jackson Harper <jackson@ximian.com>
11957 * ScrollableControl.cs: Dont recalc if we are not visible.
11959 2006-03-31 Mike Kestner <mkestner@novell.com>
11961 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
11962 the visibility branch.
11964 2006-03-31 Jackson Harper <jackson@ximian.com>
11966 * ScrollBar.cs: Cap values when incrementing/decrementing.
11968 2006-03-31 Mike Kestner <mkestner@novell.com>
11970 * MenuAPI.cs: setup menu.tracker for popup/context menus.
11971 * ToolTip.cs: guard against timer expirations with no active control.
11972 Not sure why it happened.
11974 2006-03-31 Mike Kestner <mkestner@novell.com>
11976 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
11978 * ToolTip.cs: Position the tooltip based on where the cursor is at
11979 popup time, not at MouseEnter time. Add a Down state so that we don't
11980 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
11981 positioning offset. Lookup DisplaySize at positioning time, since it
11982 can theoretically change during invocation.
11983 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
11984 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
11986 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
11988 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
11989 Fixes behaviour when the Text property of the box is String.Empty
11991 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
11993 * XplatUIX11.cs: Only send mouseleave for our client windows, not
11994 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
11997 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
11999 * FileDialog.cs: Visual enhancement for the popup buttons in
12002 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
12004 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
12007 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
12009 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
12010 highlighted menu items to match ms
12012 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
12014 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
12016 2006-03-30 Mike Kestner <mkestner@novell.com>
12018 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
12019 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
12020 go active to account for HotLight to Selected transition.
12021 * MenuItem.cs: add internal Selected prop. Fill out the Status
12022 property by calculating it from item info. Add HotLight,
12023 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
12025 2006-03-30 Mike Kestner <mkestner@novell.com>
12027 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
12029 2006-03-29 Jackson Harper <jackson@ximian.com>
12031 * Form.cs: Implement TODO.
12033 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
12035 * PrintPreviewDialog.cs: Implemented missing methods and events; still
12036 missing proper dialog setup in the constructor
12038 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
12040 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
12042 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
12043 - Fixed ResetBindings and removed TODO
12044 - Added check for cross-thread calls to get_Handle()
12045 - Added Marshaller attribute for set_Font to satisfy class status
12046 * FontDialog.cs: Removed TODOs that seemed implemented
12047 * UpDownBase.cs: Removed unneeded TODO and Fixme
12048 * MessageBox.cs: Implemented support for Default button and removed TODO
12049 * FileDialog.cs: Removed obsolete TODO
12050 * DomainUpDown.cs: Removed obsolete TODO
12051 * ButtonBase.cs: Removed obsolete TODO
12052 * XplatUIWin32.cs: Removed obsolete TODO
12054 - Removed obsolete TODO
12055 - Calling CheckAcceptButton when the acceptbutton is changed to allow
12056 internal status updates
12057 - Making sure the active control is selected when the control is created
12058 * CurrencyManager.cs: Removed obsolete TODO
12060 2006-03-29 Mike Kestner <mkestner@novell.com>
12062 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
12063 of PrintPreviewDialog and RichTextBox.
12065 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
12067 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
12068 DarkDark, Light and LightLight colors for a specific color
12069 * ThemeWin32Classic.cs:
12070 - Use Button drawing code to draw RadioButtons and CheckBoxes with
12071 Appearance = Button
12072 - Make use of the new ResPool helper CPColor
12073 - Draw ProgressBar and StatusBar with correct 3D borders
12075 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
12077 * ColorDialog.cs: Return selected color. Fixes bug #77940.
12079 2006-03-28 Mike Kestner <mkestner@novell.com>
12081 * ListView.cs: fix Icon layout to plan for scrollbar widths when
12082 calculating col/row counts.
12084 2006-03-28 Mike Kestner <mkestner@novell.com>
12090 switch to explicit interface method implementation for some methods
12091 corcompare identifies as inconsistent with MS.
12093 2006-03-28 Mike Kestner <mkestner@novell.com>
12097 add a few missing methods from the class status output.
12099 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
12101 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
12104 2006-03-28 Mike Kestner <mkestner@novell.com>
12106 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
12108 2006-03-27 Mike Kestner <mkestner@novell.com>
12110 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
12111 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
12113 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
12115 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
12117 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
12119 * ThemeWin32Classic.cs:
12120 - GroupBox: Inserted a little gap between the text and the lines
12122 - Made the code in CPDrawBorder3D more readable
12123 - Corrected the drawing location of the up and down arrows in
12126 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
12128 * ControlPaint.cs: Corrected line widths in DrawBorder for
12129 ButtonBorderStyle Inset and Outset
12131 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
12133 * ThemeWin32Classic.cs:
12134 - Rewrote the totally broken CPDrawBorder3D method. That was
12135 one of the main problems for the terrific ThemeWin32Classic
12137 - Updated and corrected Button drawing
12138 - Correct the dimensions of the SizeGrip to match ms ones
12139 - Removed a small drawing glitch in DrawComboBoxEditDecorations
12140 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
12141 Border3DStyle.Sunken to match ms.
12143 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
12145 * ThemeWin32Classic.cs: First small part of the "de-uglify
12146 ThemeWin32Classic" effort, SizeGrip
12148 2006-03-24 Jackson Harper <jackson@ximian.com>
12150 * XplatUIX11.cs: Give a max idle time of one second, this matches
12151 MS and forces an Idle event every second when there are no other
12152 events in the queue.
12154 2006-03-24 Mike Kestner <mkestner@novell.com>
12156 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
12157 * ListView.Item.cs: fix layout issues with null image lists and images
12158 smaller than checkbox size.
12159 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
12160 mode like MS does. It's weird, but consistent. ;-)
12163 2006-03-24 Mike Kestner <mkestner@novell.com>
12165 * ListView.cs: Scroll wheel support for the item control. Fixes
12168 2006-03-23 Jackson Harper <jackson@ximian.com>
12170 * ScrollableControl.cs: Special case negative sized areas, not
12172 * MonthCalendar.cs: Save the rect of the clicked date so we can
12173 use it for invalidation.
12174 - Try to cut down on the number of invalidates
12175 - Invalidate the rect the mouse is over and was over when moving
12176 the mouse, so we get the focus box following the cursor.
12178 2006-03-23 Mike Kestner <mkestner@novell.com>
12180 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
12181 focus rectangle drawing. Fixes #77835.
12183 2006-03-23 Mike Kestner <mkestner@novell.com>
12185 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
12186 the if and else if and reverting back to the original == check on the
12189 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
12191 * FontDialog.cs: Update the example panel if the selected index of
12192 the fontListBox changes.
12194 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
12196 * FileDialog.cs: Make FileDialog remember which directory it was in
12197 last in the same execution.
12199 2006-03-22 Mike Kestner <mkestner@novell.com>
12201 * FileDialog.cs: make the DropDownMenu on the toolbar display
12202 RadioChecks since they are mutually exclusive and that's what MS does.
12204 2006-03-22 Mike Kestner <mkestner@novell.com>
12206 * Theme.cs: add Color param to CPDrawMenuGlyph.
12207 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
12208 checks and radio marks and arrows are visible on highlighted items.
12209 * ControlPaint.cs: update to use new Theme signature.
12211 2006-03-22 Mike Kestner <mkestner@novell.com>
12213 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
12214 is active. Fixes #77870.
12216 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
12218 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
12219 to be focused/selected after startup
12221 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
12224 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
12225 CustomColors and ShowHelp properties
12226 - Some internal rewrites to get better results when using the
12229 2006-03-22 Mike Kestner <mkestner@novell.com>
12231 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
12232 HoverSelection. Fixes #77836.
12234 2006-03-22 Mike Kestner <mkestner@novell.com>
12236 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
12237 ToggleButtons. (De)Sensitize the Back button around a stack count of
12238 1, not 0. Update ButtonSize based on a pixel count of the win32
12239 control. Adjust the toolbar size/location for new button size.
12241 2006-03-22 Jackson Harper <jackson@ximian.com>
12243 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
12245 * ScrollBar.cs: When doing increments and decrements we need to
12246 set the Value property so that ValueChanged gets raised. A
12247 possible optimization here would be to make an internal SetValue
12248 that doesn't invalidate immediately.
12249 * ToolTip.cs: Tooltips get added to their container (when
12250 supplied) so they get disposed when the container is disposed.
12251 - Don't create tooltips for String.Empty. This prevents all these
12252 little 2-3 pixel windows from showing up when running nunit-gui
12253 and driving me mad.
12254 * Form.cs: Don't set topmost when setting the owner if the handles
12255 haven't been created yet. The topmost set will happen when the
12256 handles are created.
12258 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
12261 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
12262 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
12263 visible (to allow them to recalculate their sizes)
12265 2006-03-21 Mike Kestner <mkestner@novell.com>
12267 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
12268 methods. Removed a ton of redundant code. Still not really happy with
12269 the border rendering, but I think that's mainly because of the
12270 ControlDarkDark being black instead of a dark grey. Depending on how
12271 close we want to be, we might want to revisit those color choices.
12272 Among the new features added during the refactor were DropDownArrow
12273 pressed rendering, Disabled image rendering. Proper flat appearance
12274 boundary rendering. Removed the Divider and Wrapping dividers since I
12275 can't figure out any combination of themes and conditions to make the
12276 MS control draw a horizontal line on a toolbar despite what the
12277 Divider property docs indicate.
12278 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
12279 conditions and incorrect layout. Updated to coding standard.
12280 * ToolBarButton.cs: refactored layout and positioning code from
12281 ToolBar to here. Invalidate wherever possible instead of forcing
12282 redraws of the whole toolbar.
12283 (Known remaining issues: explicit ButtonSize smaller than provided
12286 2006-03-21 Mike Kestner <mkestner@novell.com>
12288 * ContextMenu.cs (Show): use the position parameter instead of just
12289 showing at the MousePosition.
12291 2006-03-21 Jackson Harper <jackson@ximian.com>
12293 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
12294 control handle this.
12295 * TreeNodeCollection.cs: If we are clearing the root node we need
12296 to reset top_node so calcs can still happen.
12297 * ThemeWin32Classic.cs: This is a Flags so we need to check
12300 2006-03-21 Jackson Harper <jackson@ximian.com>
12302 * DataGrid.cs: Create columns when the binding context has been
12304 * X11Structs.cs: Keysyms are uints.
12305 - Add size to fix build.
12307 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
12309 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
12311 - Added ResetMouseHover method to allow controls to retrigger
12312 hovering if they need it more than once
12313 - Implemented MouseHoverTime and MouseHoverSize properties
12314 * Timer.cs: Start() must reset the interval
12315 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
12318 2006-03-21 Jackson Harper <jackson@ximian.com>
12320 * X11Keyboard.cs: improved layout detection. Move the nonchar
12321 tables into this file.
12322 * KeyboardLayouts.cs: Move the tables into resource files.
12324 2006-03-21 Mike Kestner <mkestner@novell.com>
12326 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
12328 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
12330 * Mime.cs: Various speed optimizations. Looking up mime types
12331 is now 2 times faster than before
12333 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
12335 * CreateParams.cs: Added internal menu field
12337 - Switched call order for UpdateBounds; now we always call
12338 the one that also takes ClientSize, and we're calculating the
12339 client size via driver method in the others. The previous
12340 method of tracking client size by difference wasn't working
12341 for forms where even the starting client size wouldn't match
12342 the overall form size (due to borders) (Part of fix for #77729)
12343 - CreateParams(): Do not use parent.Handle unless the handle is
12344 already created. Causes havoc with Nexxia and throws off our
12345 creation of controls
12347 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
12348 - Switched handling of ConfigureNotify over to new PerformNCCalc
12349 method (consolidates code)
12350 - Changed RequestNCRecalc to use new PerformNCCalc method
12351 - Added calls to RequestNCRecalc when menus and borders are changed
12352 to allow app to set NC size. (Part of fix for #77729) This matches
12353 when MS send a WM_NCRECALC on Win32 windows.
12354 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
12355 (Part of fix for #77729). This matches what MS does, they also
12356 send that message when the form is made visible.
12357 - XException.GetMessage: Improved usability of X errors by including
12358 a translation of the window into Hwnd and Control class
12359 - Improved debug info for window creation, reparenting and destruction
12360 - Created helper method WindowIsMapped() [Currently not used]
12361 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
12363 - CreateParams: Now setting our menu on the new internal menu field
12364 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
12365 avoid calculating the same property twice
12367 - Improved usability of ToString() for debugging purposes
12368 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
12369 determine the height of the menu, instead of just the font. This
12370 required to also create a graphics context and to keep a bmp
12371 around (for performance reasons)
12373 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
12375 * MenuAPI.cs: Added OnMouseUp method
12377 - Now remembering the requested client size, avoids size errors
12378 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
12379 instead of base if the menu is active. This is required due to
12380 control now capturing and releasing on down/up and it would
12381 prematurely release our menu capture
12383 2006-03-17 Jackson Harper <jackson@ximian.com>
12385 * KeyboardLayouts.cs: Add the czech layouts.
12387 2006-03-16 Jackson Harper <jackson@ximian.com>
12389 * Control.cs: Use the viewport space when sizing not the controls
12390 client size, so things like ScrollableControl that effect the
12391 viewport size (when scrollbars are added) are computed correctly.
12392 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
12394 - Handle creating BindingManagers for null data sources.
12395 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
12396 source, otherwise when rows are added they are added to the 'fake'
12397 datasource and we will crash when trying to set the position in
12399 - Use Implicit scrollbars on the datagrid so they arent
12402 2006-03-16 Jackson Harper <jackson@ximian.com>
12405 * InternalWindowManager.cs:
12406 * MdiWindowManager.cs:
12407 * X11Keyboard.cs: I really want Mike to love me again (fix
12408 compiler warnings).
12410 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
12413 - OnMouseDown: Switch to editing mode when clicking on the cell
12414 even if we're clicking on the cell that's currently
12416 - ProcessGridKey: Left/Right now wrap like MS.Net does
12417 - ProcessGridKey: Tab now knows to add a new row when tab is
12418 pressed in the cell of the last column of the
12420 - ProcessGridKey: Enter now adds another row if pressed in the last
12421 row and selectes the new row, same column cell
12422 - ProcessGridKey: Home/End navigate columns, not rows, like
12423 originally implemented
12424 - Broke ProcessKeyPreview code out into an extra Internal method
12425 so it can be called from the edit code
12426 * DataGridTextBox.cs (ProcessKeyMessage):
12427 - Switched to accept Tab keypresses
12428 - Added F2 handling to allow jumping to the end of the edited cell
12429 - Added logic to allow moving caret left/right inside edited cell
12430 and making the edited cell jump when the caret hits cell borders
12431 - Tab and Enter are now passed to the datagrid after being handled
12433 - Removed capture code now that Control handles it
12434 - set_SelectionStart now ensures caret is visible
12436 2006-03-16 Jackson Harper <jackson@ximian.com>
12438 * TrackBar.cs: Debackwards the increment/decrement for handling
12439 mouse clicks on the bar with vertical trackbars.
12440 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
12441 bottom to match MS.
12443 2006-03-16 Mike Kestner <mkestner@novell.com>
12445 * ListView.cs: make shift/ctrl keyboard and mouse selection
12446 consistent with the MS control. Fix a bug in
12447 SelectedListViewItemCollection.Clear that was pissing me off for the
12448 better part of a day because the collection was being altered
12449 underneath us as we walked the list.
12451 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
12453 * Control.cs: Not sure how we could miss this so long, but it seems
12454 that MS.Net has Capture set all the way from before calling
12455 OnMouseDown through sending the mouse events until after
12456 OnMouseUp. This will fix DataGrid's selection being set to end
12457 at the location of the MouseUp.
12459 2006-03-15 Jackson Harper <jackson@ximian.com>
12461 * BindingContext.cs: Check the binding after its added so that it
12462 can initialize the binding managers and hookup to events.
12463 * Binding.cs: Data members seem to sometimes include rows/cols in
12464 the format Row.Column we now take this into account.
12465 - Hookup to the position changed event so we can update the
12466 control when the position has changed in the data set.
12467 * CurrencyManager.cs: Take into account the row/col naming
12468 convention when creating dataset tables.
12469 * BindingContext.cs: Using a newer better way of storing
12470 datasource/datamember pairs. Hopefully this better matches MS for
12471 looking up binding managers.
12474 2006-03-15 Jackson Harper <jackson@ximian.com>
12476 * BindingContext.cs: The currency manager needs the data member
12477 name, if the member is a data set we use the name to find the
12479 * CurrencyManager.cs: When creating the list prefer an IList over
12481 - Attempt to create a DataTable from a DataSet (TODO: might need
12482 some better error checking here, although MS doesn't seem to have much)
12483 - If we have a DataTable create a view and use it as our list.
12485 2006-03-15 Mike Kestner <mkestner@novell.com>
12487 * ListView.cs: keep a matrix of the icon mode layout to facilitate
12488 keyboard navigation. Support Up/Down/Left/Right selection correctly
12489 for all 4 View modes.
12490 * ListViewItem.cs: add internal row/col fields for icon layouts.
12492 2006-03-15 Jackson Harper <jackson@ximian.com>
12494 * TabControl.cs: Redraw the tabs when we resize so their newly
12495 calculated sizes are drawn on screen.
12496 * X11Keyboard.cs: Begginnings of XIM support. We also now support
12497 composite characters.
12498 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
12499 - filter events so that composite characters can be created
12501 * X11Structs.cs: Add XIMProperties enum.
12503 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
12505 * Control.cs (BringToFront, SendToBack): Don't use window or handle
12506 unless it's created
12508 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
12510 * Control.cs (PerformLayout): We don't need to consider visiblity
12511 for anchoring, only for docking. This fixes 'whacky' alignment
12512 in listbox and other controls that use implicit scrollbars after
12513 the previous PerformLayout patch
12514 * ListBox.cs: Switched to use implicit scrollbars
12516 2006-03-14 Mike Kestner <mkestner@novell.com>
12520 - chain up the "new event" overrides to base and use
12521 OnEvent to raise them. Part of fix for bug #76509.
12523 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
12525 * FileDialog.cs: Do not select an item in the parent directory
12528 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
12530 * Control.cs (PerformLayout): It would seem that we considered
12531 invisible windows for our layout. Not quite the right thing
12532 to do. Now we don't any longer, thereby fixing bug #76889.
12534 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
12536 * Control.cs (CanFocus): I goofed. A control can have focus
12537 even though it's not selectable. Made it match MS docs.
12539 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
12541 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
12542 center by default (fixes #76895)
12543 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
12544 all uses of Border3DSides.All with the explicit ORd together
12545 Left|Right|Top|Bottom because I assume that nobody was aware
12546 that All also implies a center fill. Most places I checked had
12547 a fill right above.
12548 * ProgressBarStyle.cs: Added
12550 2006-03-13 Mike Kestner <mkestner@novell.com>
12552 * ListView.cs: fix breakage in drag shadow header positioning
12553 from Peter's csc compilation fix.
12555 2006-03-13 Mike Kestner <mkestner@novell.com>
12557 * ListView.cs: fix NRE produced by backspacing twice in a focused
12560 2006-03-13 Mike Kestner <mkestner@novell.com>
12562 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
12564 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
12566 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
12568 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
12569 the allowed size before making programmatic size changes
12571 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
12573 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
12574 set, metacity is broken and will still use the emty sizes in
12575 the struct. (Fix for #77089)
12577 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
12579 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
12580 WindowExStyles and marked both enums as Flags
12581 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
12582 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
12583 to match WindowStyles split
12585 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
12586 - Updated to match WindowStyles split
12588 - Fixed FosterParent creation, was using ExStyle on the Style field
12589 (This should help with Popup focus issues)
12590 - Updated to match WindowStyles split
12592 2006-03-13 Jackson Harper <jackson@ximian.com>
12594 * MdiWindowManager.cs: Use the system menu height. Fixes some
12595 strange sizing issues.
12597 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
12599 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
12601 - Scroll to caret after inserting text (#77672)
12602 - Make scroll range one pixel higher, fixes off-by-one error (and
12603 makes underlines visible on the last line)
12605 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
12607 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
12608 the keyboard state from being stuck with keys in 'pressed' state when
12609 focus is switched away via keyboard
12610 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
12611 reset the keyboard if no X11 KeyUp events are expected to come
12612 * X11Structs.cs: Switched type of Visible to bool to match driver
12614 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
12617 - Switched caret to be just 1 pixel wide, matches MS and looks less
12619 - Moved caret display 1 pixel down from the top of the control
12621 - InsertCharAtCharet: Update the selection start if moving the caret
12622 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
12623 - No longer always creating the caret when the caret methods are
12624 called. Only the actual ShowCaret/HideCaret will do that now
12625 - Only setting caret visible if the owner control has focus
12626 - UpdateView: Added invalidation-shortcut logic for center and right
12627 aligned text. Previously we'd update all according to the left
12628 logic which caused drawing errors. Also fixed height of invalidated
12629 areas, now properly invalidating the whole area (was off-by-one)
12630 - owner_HandleCreated: Always generate the document when the
12631 handle is created; this ensures that
12633 - Fixed situation where caret would disappear under the right
12634 window border, also improved scrolling behaviour on left-
12636 - Fixed right-aligned textboxes to have a border to the
12637 right instead of the caret being under the right border
12639 - Switched from 'nested' to simple visible/not visible tracking
12640 for caret (part of fix for #77671)
12641 - No longer passing through translated FocusIn/FocusOut messages
12642 since we were notifying too often and the wrong windows. Instead
12643 we just notify our focussed window of receiving or loosing focus
12644 * XplatUIWin32.cs: Switched from 'nested' show/hide
12645 counting for caret to simple visible yes/no behaviour (part of
12648 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
12650 * Mime.cs: Remove debug code...
12652 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
12654 * MimeGenerated.cs: Removed
12655 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
12656 and subclasses) from /usr/(local/)share/mime and
12657 $HOME/.local/share/mime.
12659 2006-03-10 Jackson Harper <jackson@ximian.com>
12661 * MdiWindowManager.cs: Recalc the NC area when a window is
12662 maximized/restored so that the menu area is drawn on forms that
12665 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
12667 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12668 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
12669 us to force a WM_NCCALCRESIZE message being sent. This is needed
12670 for MDI maximizing.
12672 2006-03-10 Jackson Harper <jackson@ximian.com>
12674 * Form.cs: We need to use the ActiveMenu when calculating menu
12676 - Fix nullref when the window manager hasn't been created yet.
12677 * Control.cs: Fix nullref when we try to bring a control to the
12678 front that has no parent.
12679 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
12681 - Add a dummy item to the maximized menu so it always has the
12682 correct height. Otherwise when there are no menus we don't get our
12686 2006-03-10 Jackson Harper <jackson@ximian.com>
12688 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
12690 * Form.cs: Make the window_state internal so the window managers
12692 - When an MDI child is maximized let its window manager create the
12693 main menu (so it can add its icon).
12694 - Notify the window managers of state changes
12695 - Let the window manager paint its buttons and handle button
12696 clicks on the menu when it is maximized.
12697 * InternalWindowManager.cs: Move the prev_bounds into the mdi
12698 window manager, since tool windows don't use it, only mdi windows.
12699 - Tell the main form that we don't want it to handle NCPAINT
12700 itself to avoid extra painting.
12701 - Handle clicks on a maximized windows menu.
12702 - Handle window state changes
12703 - Handle minimize/maximize clicks correctly by setting the window state.
12704 * MdiWindowManager.cs: Add an icon menu that (the menu you get
12705 when clicking on the forms icon).
12706 - New method to create a forms maximized menu. This is its normal
12708 - Handle window state changes.
12709 - Handle sizing of maximized windows. Maximized windows are just
12710 drawn bigger then the parent visible area. All controls are still
12711 there, they are just outside the visible area (this matches windows).
12712 * MdiClient.cs: No scrollbars when a child window is maximized.
12713 - Let the children windows figure out how big they should be when
12714 sizing maximized windows.
12715 - Implement a version of ArrangeIconicWindows somewhat similar to
12716 Windows version. There are some little differences, but I don't
12717 think any app will rely on the layout of minimized mdi windows.
12719 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
12721 * Padding.cs: Several fixes to allow compiling with csc 2.0
12723 2006-03-09 Jackson Harper <jackson@ximian.com>
12726 * MenuItem.cs: Cheap hack so we can add items to the list without
12727 the events being raised. This allows adding mdi items during
12728 drawing. TODO: Should probably find a better time to add the items.
12730 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
12732 * ThemeWin32Classic.cs:
12733 - CheckBox_DrawText: Added logic to not wrap if not enough space
12734 is available (Fix for bug #77727)
12735 - RadioButton_DrawText: Added logic not to wrap if not enough
12736 space is available (Fix for bug #77727). Also removed some
12737 duplicate code, DrawString always drawing the regular text
12738 before hitting the if statement.
12740 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
12742 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
12744 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
12746 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
12747 * ContainerControl.cs: Partial implementation of some 2.0 scaling
12748 methods. Moved the new 2.0 properties into alphabetical order with
12749 other properties and added MonoTODO tags
12751 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
12753 * AutoScaleMode.cs: Added. Fix build.
12755 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
12757 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
12758 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
12759 and was requiring premature handle creation for calls from above
12760 * Form.cs, Control.cs: Removed handle arguments from calls to
12761 CalculateClientRect()
12763 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
12765 * ListView.cs (HeaderMouseMove): Fix csc compilation.
12766 drag_column.column_rect is MarshalByRef and can't be used that way
12768 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
12770 * AxHost.cs: Added deserialization constructor for
12771 AxHost+State (fixes 77743)
12773 2006-03-09 Mike Kestner <mkestner@novell.com>
12776 - Added column drag reordering for details view.
12777 - fixed behavior when mouse is dragged off column and
12778 AllowColumnReorder is false.
12779 * ColumnHeader.cs: clone the format too in Clone.
12780 * Theme.cs: add DrawListViewHeaderDragDetails method.
12781 * ThemeWin32Classic.cs:
12782 - impl new method for drawing drag column shadows and targets.
12783 - support column offset for details mode in DrawListViewItem.
12785 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
12787 * TextControl.cs: Reset the char_count when the document is cleared
12788 (Fixes bug reported on mono-winforms mailing list)
12790 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
12792 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
12793 of calling base we simply process the key ourselves, since both
12794 DefWindowProc and the handled method would set m.Result.
12797 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
12799 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
12800 method also moves the window; instead implemented a copy of
12801 Control.ScaleCore (Part of fix for #77456)
12803 - Created new CreateGraphicsInternal method to allow providing
12804 a graphics context when no handle is created without triggering
12805 handle creation. (Part of fix for #77456)
12806 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
12808 - Switched Constructor to require TextBoxBase instead of Control (to
12809 allow uncast access to CreateGraphicsInternal)
12810 - Safeguarded use of owner.Handle property. No longer accessing it
12811 unless the handle is already created.
12812 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
12813 - Now triggering a recalc when owning control becomes visible
12814 * TextBox.cs, RichTextBox.cs: Switched to use new internal
12815 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
12816 premature handle creation (Part of fix for #77456)
12818 - We now only destroy our double-buffering buffers when the
12819 control is resized or disposed, but not when visibility
12820 changes. (The code even re-created them twice every time)
12821 - Now requiring a redraw of the buffer on visibility changes
12822 (fixes bug 77654 part 2)
12823 - Not passing OnParentVisibleChanged up unless the control
12825 - CanFocus: Fixed to match MS documentation
12826 - Focus: Fixed to return actual focus state and to check if
12827 setting focus is legal before setting it
12829 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
12831 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
12832 when to draw focus rectangle by looking at parent focus and
12833 selected state instead. This fixes TabPages on Linux sometimes
12834 having none or multiple focus rectangles.
12835 * XplatUIX11.cs (SetFocus):
12836 - Don't set the focus if the same window already has focus
12837 - Use SendMessage instead of PostMessage (like it's Win32
12838 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
12839 to match MS behaviour
12840 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
12841 are not selectable.
12843 2006-03-07 Jackson Harper <jackson@ximian.com>
12845 * PictureBox.cs: Revert line I accidently committed last week.
12847 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
12850 - Added new IsRecreating and ParentIsRecreating properties to
12851 allow testing if RecreateHandle has been called on ourselves
12852 or one of our parents
12853 - WndProc(WM_DESTROY): If our control handle is being recreated
12854 we immediately need to create the handle when receiving the
12855 destroy, that way our child windows find a valid parent handle
12856 when they themselves are being recreated upon WM_DESTROY receipt
12857 (fix for bug #77654 part 1)
12859 - DestroyWindow: WM_DESTROY must be sent to our own window before
12860 notifying any child windows. MS documents that child windows
12861 are still valid when WM_DESTROY is received. (Control now relies on
12863 - Added some fine-grain debug options
12865 2006-03-06 Jackson Harper <jackson@ximian.com>
12867 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
12868 box and base calculations off this.
12869 * MdiChildContext.cs:
12870 * MdiWindowManager.cs: Don't need to ensure scrollbars here
12873 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
12875 * Splitter.cs: In situations where the affected control is added
12876 to the parent's control list after the splitter, we would not
12877 populate affected. Now we try populating it on mousedown, if
12878 it's not already set, and force it to be re-set whenever our
12881 2006-03-03 Matt Hargett <matt@use.net>
12883 * Control.cs: implement Control.Padding
12884 * Padding.cs: -Padding.All returns -1 when constructing with the
12885 implicit default ctor
12886 -Padding.ToString() matches MS.NET
12887 * ContainerControl.cs: implement
12888 ContainerControl.AutoScaleDimensions
12889 * ListControl.cs: implement ListControl.FormattingEnabled
12890 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
12892 * TabPage.cs: Implement UseVisualStyleBackColor.
12893 * PictureBox.cs: Implement PictureBox.InitialImage.
12895 2006-03-03 Mike Kestner <mkestner@novell.com>
12897 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
12898 event declarations to proxy to base event.
12899 * ListViewItem.cs: update to use ItemControl.
12900 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
12901 * ThemeWin32Classic.cs: update to new ListView theme API and fix
12902 column header label rendering for 0 width columns.
12904 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
12906 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
12907 that causes the control to be created. Fixes #77476.
12909 2006-03-02 Jackson Harper <jackson@ximian.com>
12911 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
12914 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
12916 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
12917 passed in for the EventArgs (fixes #77690)
12919 2006-03-01 Jackson Harper <jackson@ximian.com>
12921 * ScrollBar.cs: Refresh afterbeing resized.
12923 2006-02-28 Mike Kestner <mkestner@novell.com>
12925 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
12926 Clean up a tracker compile warning.
12927 * MenuItem.cs: add internal PerformPopup method.
12930 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
12932 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
12933 implicit expose) when the text is set to null
12935 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
12937 * RichTextBox.cs (FlushText): When newline is true, we always
12938 need to split the line, even if no text is on it and we may
12939 never eat newlines. (Fixes #77669)
12941 2006-02-28 Mike Kestner <mkestner@novell.com>
12943 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
12944 and set Selected instead.
12945 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
12948 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
12950 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
12952 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
12955 - Got rid of the panel. All controls are now directly added to
12957 - It is now possible to set a font with the Font property
12958 - MinSize and MaxSize property do now what they should
12959 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
12960 - Searching and selecting a font with the font textbox works now,
12961 the same applies to the style and size textbox
12962 - Draw the correct 3D border in the example panel
12963 - Fixed a little mem leak (unused fonts didn't get disposed)
12964 - Many other internal updates/rewrites...
12967 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
12970 - InsertRTFFromStream: Added 'number of characters inserted' argument
12971 - set_SelectedRTF: Now using the number of characters to calculate
12972 the new location for the selection and cursor (x/y cannot be used
12973 due to potentially already wrapped text)
12975 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
12977 * TextControl.cs: Added property and implemented means to allow
12978 disabling recalculation of a document (can be used to speed up
12979 multiple inserts and is needed to make RTF inserts predictable, see
12981 * RichTextBox.cs: Using the new NoRecalc property of Document to
12982 keep x/y insert locations predictable. Also makes it faster inserting
12983 large chunks of RTF
12985 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
12987 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
12988 it's easier for a child control to handle the other messages without
12989 having to duplicate the special functionality
12991 - WndProc: Removed calling base handler for WM_KEYDOWN and added
12992 code to handle processing the key ourselves, in order to get
12993 access to the result of KeyEventArgs.Handled. We now only call
12994 ProcessKey if they key hasn't been handled already. Fixes #77526.
12995 - set_Text: If null or empty string is given, just clear the
12996 document. Fixes part of #77526
12998 2006-02-27 Jackson Harper <jackson@ximian.com>
13000 * SizeGrip.cs: Paint the background color before painting the grip
13001 so things look right.
13002 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
13004 2006-02-27 Mike Kestner <mkestner@novell.com>
13007 - Restructure layout and invalidation model to remove a ton of
13008 flicker from the control and speed up performance in general.
13009 - Add manual column resize, flickers like crazy, but I already have
13010 some ideas on how I'll fix that. (#76822)
13011 - Merge the three Icon-based views into a single layout method.
13012 - Move item selection interaction logic from the item since
13013 interaction with the collections is more appropriate to the view.
13014 - Deselection on non-item clicks.
13016 - Encapsulate most of the layout. Add some internal props to trigger
13017 layout. Move to a model where Items invalidate themselves instead
13018 of just invalidating the whole control every time something changes.
13019 - Invalidate on Text/Caption changes.
13020 - switch to an offset based layout model to avoid having to absolute
13021 position every element on item moves.
13022 - correct checkbox layout to conform to MS layout.
13023 * ThemeWin32Classic.cs:
13024 - refactor some column header drawing code.
13025 - fix string justification for column headers (#76821)
13026 - make SmallIcon labels top justified for compat with MS impl.
13027 * ThemeClearlooks.cs:
13028 - adjust to new ListViewItem internal checkbox bounds api.
13030 2006-02-27 Jackson Harper <jackson@ximian.com>
13032 * Control.cs: Change where implicit controls fall in the zorder.
13033 They are now on top of all children.
13034 - Synced AddImplicit code with Add
13035 - Removed unused enumerator.
13036 * SizeGrip.cs: Remove the TODO as its been TODONE.
13038 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
13040 * TextControl.cs(Insert): Combine the last lines unless the insertion
13041 string ends with \n\n, otherwise we leave one line too many (Fixes
13042 something I noticed with the testapp for #77526; the bug itself was
13043 already fixed in the previous checkin)
13045 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
13048 - SelectionColor and SelectionFont methods no longer set absolute
13049 styles. Instead, the keep font or color respectively (This
13050 resolves a long-standing FIXME in the code)
13051 - When flushing RTF text, the insert code now considers text trailing
13052 behind the insertion point (Fixes the bug where when replacing
13053 the selected text via SelectedRTF the remainder of the line behind
13054 the selection would stay on the first insertion line)
13056 - AppendText now updates the selection points after inserting text
13057 - AppendText now ensures that the last tag (sometimes 0-length) of
13058 the document is used for the style information (Fixes part of
13061 - Created new FontDefiniton class to allow describing partial style
13063 - StreamLine() now takes a lines argument, to allow it to decide
13064 whether an encountered zero-length tag is the last in the document
13065 (which must be kept to not loose the font/color contained in it,
13067 - Created Combine() and Split() methods for Marker structs, to
13068 support marker updates due to reformatted documents (soft line
13070 - Implemented Document.CaretTag setter
13071 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
13072 of the last line (Not the cause, but also exposed by bug #77220)
13073 - Added LineTag argument to InsertString method, to allow callers
13074 to force a certain tag to be used (required to force use of the
13075 trailing zero-length tag of a document)
13076 - Now updating markers in Combine(), to avoid stale tag markers
13077 - Added some method descriptions to aid maintenance
13078 - Implemented new FormatText concept, allowing additive/subtractive
13079 formatting by only specifying the components that are to be
13080 changed. This was needed for resolving the RTB.SelectedColor/
13081 RTB.SelectedFont fixmes
13082 - Added Break() support method to allow breaking up linetags (used
13083 for partial formatting)
13084 - Added GenerateTextFormat() method. It is used for partial
13085 formatting and allows to generate a full font/color from given
13086 attributes and an existing tag.
13088 2006-02-26 Jackson Harper <jackson@ximian.com>
13090 * XplatUIX11.cs: Use the correct caption height.
13091 - Translate hittest coordinates to screen coords to match MS.
13092 * XplatUIWin32.cs: When we create MDI windows we need to reset
13093 some of the style flags, so we get a nice blank window, and can
13094 draw all the decorations ourselves.
13095 - Set a clipping rectangle on the non client paint event, the
13096 window manager drawing code needs one.
13097 * Form.cs: The window manager needs to know when the window state
13099 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
13100 don't need to factor in border and title sizes in these
13101 methods. TODO: Remove the args and fix the call points.
13102 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
13104 - Let the driver set the cursors.
13105 - Improve active window handling
13106 - Correct sizes for title bars and buttons.
13107 - Match MS drawing better
13108 * MdiWindowManager.cs: We don't need to handle border style
13109 updates specially anymore.
13110 - Check for scrollbars when windows are done moving
13111 - Handle Active properly.
13112 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
13113 correctly. I am spewing the exception though, so we don't hide the
13116 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
13118 * DataGridViewRowPostPaintEventArgs.cs,
13119 DataGridViewCellPaintingEventArgs.cs,
13120 DataGridViewRowCollection.cs,
13121 DataGridViewRowPrePaintEventArgs.cs,
13122 DataGridViewCell.cs: Clear a few warnings and implement a few
13123 exceptions that should be thrown.
13125 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
13127 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
13128 'inheriting' our parent's (non-default) cursor. (Part of
13129 the fix for #77479)
13131 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
13133 * XplatUIX11.cs: Fixed cast to make csc happy
13135 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
13137 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
13138 it's for the client area (part of fix for #77479 and needed
13139 for MDI window cursor handling)
13141 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
13142 the appropriate default cursors and also passing the message
13143 up the parent chain
13144 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
13145 for non-client areas
13147 2006-02-15 Jackson Harper <jackson@ximian.com>
13149 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
13150 is a real MDI window
13152 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
13154 * X11DesktopColors.cs: Instead of checking the desktop session
13155 string for "KDE" check if it starts with "KDE"
13157 2006-02-10 Jackson Harper <jackson@ximian.com>
13159 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
13162 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
13164 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
13167 - Got rid of the panel. All controls are now directly added to
13169 - Changed to mono coding style
13171 2006-02-10 Jackson Harper <jackson@ximian.com>
13173 * InternalWindowManager.cs: We don't need the set visibility to
13174 false hack anymore now that peter has written beautiful shutdown
13177 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
13179 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
13180 where already explicitly destroyed
13182 2006-02-10 Jackson Harper <jackson@ximian.com>
13184 * MdiClient.cs: Handle the case where windows are too high or to
13185 the left and we need scrollbars.
13187 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
13189 * MimeIcon.cs: Added some icons
13192 - Got rid of the panel. All controls are now directly added to
13194 - Changed to mono coding style
13195 - On Linux "My Computer" and "My Network" will now show some
13196 more usefull information. A new class, MasterMount, gathers
13197 this information from /proc/mount. Updated MWFFileView to make
13198 use of this information
13199 - Fixed a bug that caused FileDialog to crash when
13200 ".recently_used" file had a zero size
13201 - FilterIndex does now what it should
13203 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
13206 2006-02-09 Jackson Harper <jackson@ximian.com>
13208 * ComboBox.cs: Don't touch if null.
13210 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
13212 * Cursor.cs: 64bit safeness fix
13213 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
13215 2006-02-09 Jackson Harper <jackson@ximian.com>
13217 * Form.cs: If a form is made into an MDI form update the styles so
13218 all the props can get set correctly.
13219 - Kill the mdi_container when we dont need it anymore.
13220 * InternalWindowManager.cs: Add missing NOT
13222 2006-02-08 Jackson Harper <jackson@ximian.com>
13224 * InternalWindowManager.cs: Respek clipping when drawing MDi
13227 2006-02-08 Jackson Harper <jackson@ximian.com>
13229 * Hwnd.cs: Add bits to track non client expose events.
13230 * XplatUIX11.cs: Track non client expose events on the hwnd. This
13231 gives us a proper invalid rect and will allow for some nice
13232 optimizations with NC client drawing
13233 - MDI windows are children windows, so move their style handling
13234 into the child window block.
13235 * InternalWindowManager.cs: Remove a state reset that was
13236 getting invoked at the wrong time. Fixes managed windows getting
13237 into a 'stuck' captured state.
13239 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
13241 * TextControl.cs (Document.ctor): Now initializing
13242 selection_anchor. Fixes #77493
13244 2006-02-07 Jackson Harper <jackson@ximian.com>
13246 * TrackBar.cs: The increment/decrements were backwards.
13248 2006-02-07 Mike Kestner <mkestner@novell.com>
13250 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
13251 to the instance itself.
13253 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
13255 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
13256 on ulongs and pointers, the size differs between 32bit and 64bit
13259 2006-02-07 Mike Kestner <mkestner@novell.com>
13261 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
13262 for 64 bit platforms to work around a metacity bug.
13264 2006-02-07 Jackson Harper <jackson@ximian.com>
13266 * TrackBar.cs: Process the input keys we need, and hookup to
13267 KeyDown instead of using WndProc, so we get key messages.
13269 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
13271 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
13273 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
13274 we need to translate the XdndVersion atoms array before sending it
13276 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
13279 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
13280 number of bits for the property, not the number of bytes. The
13281 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
13282 but would not crash since it specified 8 bits instead of 4 bits)
13283 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
13284 defined as XID -> long in the C headers)
13285 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
13286 references since those are now IntPtr to begin with
13287 - Switched all Atom.XXX 'int' casts to IntPtr casts
13288 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
13289 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
13290 - Added XChangeActivePointerGrab DllImport (for X11DnD)
13292 - Changed 'int' type for Atoms in XEvent structures to IntPtr
13293 - Changed atom in HoverStruct to be IntPtr
13295 - Removed local DllImports, switched code to use those from XplatUIX11
13296 - Removed/fixed casts related to the switch of Atom to be a IntPtr
13298 2006-02-06 Mike Kestner <mkestner@novell.com>
13300 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
13301 method signatures in the import region. There may still be some
13302 lingering struct marshaling issues, as I didn't drill down into those.
13305 2006-02-06 Jackson Harper <jackson@ximian.com>
13307 * ComboBox.cs: Dont manually set the top_item, this is computed
13308 when the scrollbar position is set.
13310 2006-02-06 Mike Kestner <mkestner@novell.com>
13312 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
13313 startup crashes on amd64. There's other fixes needed. All pinvoke
13314 usage of Atom needs to be mapped to IntPtr for example. And there are
13315 likely other int/long issues to be addressed.
13317 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
13319 * FileDialog.cs: One more...
13321 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
13323 * FileDialog.cs: Next try
13325 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
13327 * FileDialog.cs: First part of fix for #77464
13329 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
13331 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
13332 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
13333 AcceptButton border drawing.
13335 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
13337 * Form.cs: Moved positioning of form after auto scaling is applied,
13338 otherwise it would possibly use wrong form size.
13340 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
13342 * Control.cs (RecreateHandle): No need to re-create any child
13343 controls, the child windows will get destroyed automatically by
13344 the windowing system or driver, and re-created when the handle
13345 is being accessed the first time. Fixes #77456
13346 * Form.cs: No longer setting the form to closing if the handle is
13347 being recreated. This seems like the right thing to do, don't
13348 have a bug or testcase for this, though.
13350 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
13352 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
13353 controls to avoid unwanted side effects
13355 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
13358 - ScaleCore needs to scale the bounds, not the ClientSize of the
13359 control. Fixes #77416.
13360 - DefaultSize is 0,0 for control
13362 - DefaultSize is 100, 20
13363 - SetBoundsCore: Now enforcing the height, no matter if the provided
13364 height is more or less than the preferred one, as long as AutoSize
13366 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
13368 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
13371 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
13372 call unless both performLayout is true *and* we have a pending
13374 - ResumeLayout: MS does not completely nest Suspend and Resume,
13375 they bottom out at 0, fixed our code to match that.
13376 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
13377 SetBoundsCore, we were updating even when we shouldn't. This fixes
13378 swf-anchors mis-anchoring when resizing the app fast and lots.
13379 - UpdateDistances: Now only setting the left and top distance if
13380 we have a parent and are not suspended, this is based on
13381 a suggestion by Don Edvaldson in bug #77355.
13382 - OnVisibleChanged: Fixed logic when to create the control. We may
13383 not create the control if we have no parent or if it's not visible;
13384 switched to using Visible property instead of is_visible field
13385 since the property also considers parent states. This fixes a bug
13386 when starting Paint.Net
13388 2006-02-02 Jackson Harper <jackson@ximian.com>
13390 * Form.cs: If the forms handle hasn't been created yet don't call
13391 into xplatui to make it top most, just set the topmost flag on the
13392 form in CreateParams
13393 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
13395 2006-02-01 Jackson Harper <jackson@ximian.com>
13397 * ScrollableControl.cs: Refactored the Recalculate method a
13398 little, this wasn't handling all the variants of bottom and right
13399 bars needed to be added and added/removed based on their
13400 counterparts being added/removed (which changes the drawable
13401 size). Also we special case client widths and heights of 0 and
13402 don't add the scrollbar for those.
13404 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
13407 - Added method to get AbsoluteGeometry(); currently unused, but might
13408 be used in the future, if we try again to figure out toplevel
13409 coordinates with some more crappy window managers
13410 - Added FrameExtents() method to retrieve the WM set decoration size
13411 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
13412 to deal with at least KDE, FVWM and metacity (Fixes #77092)
13414 - Added whacky_wm tracking var for metacity
13415 - Added logic to have default menu height if the actual menu height
13416 has not yet been calculated (part of fix for #77426)
13417 * Form.cs: Keep track whether client size has been set and re-set
13418 it if a menu is added/removed afterwards (Fixes #77426)
13420 2006-01-31 Jackson Harper <jackson@ximian.com>
13422 * Control.cs: When a new Site is set on the component attempt to
13423 pull the AmbientProperties from it.
13425 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
13427 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
13428 in the background of the owning form. Fixes #77332
13430 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
13432 * MimeIcon.cs: Fix for #77409
13434 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
13436 * XplatUIX11GTK.cs: Initial import
13438 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
13440 * FixedSizeTextBox: fixes class signature
13442 2006-01-30 Jackson Harper <jackson@ximian.com>
13444 * FixedSizeTextBox.cs: New internal class that represents a
13445 textBox that will not be scaled.
13448 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
13451 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
13453 * XplatUIX11.cs: Retrieve default screen number instead of
13454 assuming 0. Attempted fix for #77318
13456 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
13459 - GetWindowPos: When a window is parented by FosterParent, use
13460 the desktop instead of FosterParent as the base to get coordinates
13461 - CreateWindow: Don't make FosterParent the parent window for Popups
13462 if we don't want a taskbar entry, Popups automatically don't get one
13463 * Hwnd.cs: Need to call remove to actually remove the key from the
13466 2006-01-30 Mike Kestner <mkestner@novell.com>
13468 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
13470 2006-01-30 Jackson Harper <jackson@ximian.com>
13473 * TreeNode.cs: Raise events no matter how the treenode is
13474 checked. Patch by Don Edvalson.
13476 2006-01-30 Jackson Harper <jackson@ximian.com>
13478 * TreeNode.cs: Signature fix.
13480 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
13482 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
13484 2006-01-20 Mike Kestner <mkestner@novell.com>
13486 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
13487 event forwarding when menus are active.
13488 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
13489 Most of the patch is pdb's with a little rework.
13491 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
13493 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
13494 Removed GetMenuDC and ReleaseMenuDC methods; replaced
13495 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
13496 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
13497 * InternalWindowManager.cs: Added use of PaintEventStart/End to
13498 handling of WM_NCPAINT message, now passing the PaintEventArgs to
13499 the PaintWindowDecorations method
13500 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
13501 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
13502 * MenuAPI.cs: Made tracker window invisible
13504 - Removed GetMenuDC and ReleaseMenuDC methods
13505 - Implemented the client=false path for PaintEventStart and
13508 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
13510 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
13511 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
13514 - MaximizeBox, MinimizeBox: Recreate the handle when setting
13516 - CreateParams: Reworked the styles to match MS look'n'feel,
13517 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
13518 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
13520 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
13522 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
13523 window is not mapped, since otherwise every form that's being
13524 created is considered minimized, which is wrong.
13525 * Form.cs: Catching the exception and returning our internal value
13528 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
13530 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
13531 SetWindowMinMax() to have means to tell the driver about the minimum,
13532 maximum and maximized state window sizes. (Part of the fix for #76485)
13534 - Implemented tracking of minimum and maximum window size, now calling
13535 new SetWindowMinMax() driver method to tell the driver (Part of the
13537 - Finished handling of WM_GETMINMAXINFO method, now setting all values
13538 (Completes fix for #76485)
13539 - Calling new SetWindowMinMax driver method when the handle for a
13540 form is created, to make sure the driver knows about it even if
13541 the values have been set before the window was created
13542 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
13543 to avoid messing up our anchoring calculations (partial fix
13545 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
13547 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
13548 - Improved GetWindowState() to detect 'Minimized' state on Metacity
13549 (and presumably other freedesktop.org compliant WMs). Left the
13550 assumption unmapped=minimized, needed for SetVisible to work.
13551 - Now setting the window state when creating windows
13552 - Fixed SetVisible to consider/set the window state when mapping
13553 a Form. We cannot set the state before it's mapped, and we cannot
13554 use Form.WindowState once it's mapped (since it would ask the
13555 driver and get 'normal'. Therefore, we grab the state before
13556 mapping, map, and then set state.
13557 - Implmemented SetWindowMinMax method; Metacity does not seem to
13558 honor the ZoomHints, though.
13560 - Removed MINMAXINFO (moved to XplatUIStructs)
13561 - Added SetWindowMinMax stub (on Win32 the only way to set that
13562 information is in response to the WM_GETMINMAXINFO message, which
13563 is handled in Form.cs)
13564 - Added logic to SetVisible to set the proper window state when a
13565 form is made visible (fixes #75720)
13567 2006-01-26 Jackson Harper <jackson@ximian.com>
13569 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
13570 same way we handle them with Invoke.
13572 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
13575 - Added tracking of window state so CreateParams can return
13576 the appropriate style
13577 - Moved setting of WS_CAPTION style in CreateParams to allow
13578 styles without caption
13579 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
13580 control if the TextBox property is accessed. Fixes #77345
13582 - get_Created: now uses is_disposed and is_created to determine
13583 return value (suggested by Jackson)
13584 - CreateHandle: No longer exits if the handle is being recreated
13585 - RecreateHandle: If the handle is not yet created call the
13586 appropriate method to create either control or handle. If the
13587 control is already created CreateHandle will simply exit instead
13588 of just creating the handle
13589 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
13590 now SendMessage WM_DESTROY directly to the control when DestroyWindow
13593 - When DestroyWindow is called, instead of waiting for the
13594 DestroyNotification from X11, we directly post it to the WndProc
13595 and immediately dispose the hwnd object.
13596 Same applies to DestroyChildWindows, and this obsoletes the
13597 expose_pending tracking. Contrary to Win32 behaviour we destroy our
13598 child windows before our own, to avoid X11 errors.
13599 - Removed the direct sending of WM_PAINT on UpdateWindow
13601 - Reworked DoEvents and GetMessage to allow access to internal queue
13602 even when trying non-blocking access to the queue. Fixes #77335.
13603 Based on a patch suggestion by Don Edvalson. The new private
13604 GetMessage can now also be used as a backend for a PeekMessage
13606 * XplatUI.cs: Improved debug output for CreateWindow
13608 2006-01-25 Jackson Harper <jackson@ximian.com>
13610 * Help.cs: Allow param to be null. Patch by Don Edvalson.
13612 2006-01-24 Jackson Harper <jackson@ximian.com>
13614 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
13615 when we have a MaxDropItems lower then the selected index.
13617 2006-01-24 Jackson Harper <jackson@ximian.com>
13619 * Control.cs: Don't allow selection of non visible controls, allow
13620 selection of controls without parents.
13622 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
13624 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
13625 * DataGridDrawingLogic.cs: Add editing row only when is necessary
13627 2006-01-23 Jackson Harper <jackson@ximian.com>
13629 * UpDownBase.cs: Make the textbox handle all the selection and
13630 tabbing. This fixes tabing to updown controls.
13632 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
13634 * TextBoxBase.cs: fixes exception thown the object was null
13636 2006-01-23 Jackson Harper <jackson@ximian.com>
13638 * ButtonBase.cs: Just use the base CreateParams. They set
13639 visibility and enabled correctly.
13642 * MonthCalendar.cs: Lets let the base set as much of the
13643 createparams as possible so we don't have duplicate code all over
13646 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
13648 * ThemeGtk.cs: Added TrackBar and some experimental code to
13649 get double buffering back
13651 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
13653 * DataGrid.cs: Allows row number set internally higher than the last
13654 when creating a new row. Restores the editing functionality.
13656 2006-01-20 Mike Kestner <mkestner@novell.com>
13658 * MimeIcon.cs: delay Image creation until the icons are accessed
13659 instead of creating 190 scaled images on GnomeHandler startup.
13661 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
13663 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
13664 first call base before processing the event. Fixes #77279
13666 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
13668 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
13669 that the stride for the GDI bitmap would match the stride of
13672 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
13674 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
13676 2006-01-19 Jackson Harper <jackson@ximian.com>
13678 * ComboBox.cs: Hookup the text controls keydown event so we get
13679 those when the text control has the focus.
13681 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
13683 * Label.cs: Now using the base events instead of defining new ones;
13684 this allows us to just call the base properties without having to
13685 duplicate all base property logic
13687 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
13689 * Label.cs: A label by default is not a tabstop (Fixes one of our
13690 failing nunit tests)
13692 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
13694 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
13695 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
13697 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
13699 * Cursor.cs: Reimplemented creating cursor bitmaps without using
13700 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
13703 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
13704 constructor creates images that can't be saved. Part of the fix
13706 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
13707 - SetWindowState: Switched ShowWindow flags (part of an upcoming
13708 bug fix for handling window state in forms properly)
13710 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
13712 * ThemeGtk.cs: Simplify ScrollBar drawing
13714 2006-01-18 Jackson Harper <jackson@ximian.com>
13716 * Splitter.cs: Set the default dock style for the splitter control
13717 in the constructor.
13719 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
13721 * ThemeGtk.cs: Corrected StateType and ShadowType for
13724 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
13726 * Control.cs: Make use of Theme.DoubleBufferingSupported
13728 - Added drawing for flat style buttons
13729 - Added ScrollBar drawing
13731 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
13733 * ThemeClearlooks.cs: Removed some unneeded code.
13734 * ThemeGtk.cs: First part of ThemeGtk enhancements.
13736 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
13738 * LinkLabel.cs: We need to update the hover drawing when
13739 leaving the control as well.
13741 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
13743 * DataGrid.cs: Clicking on non empty areas in the columns
13744 area was giving an exception
13746 2006-01-17 Jackson Harper <jackson@ximian.com>
13748 * ThemeWin32Classic.cs:
13749 * ListView.cs: Do not draw/clip the headers when the header style
13752 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
13754 * DataGrid.cs: Fixes 77260
13756 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
13758 * DataGrid.cs: Clicking on a column on a empty grid was giving
13761 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
13763 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
13764 or any keypress will crash the grid.
13766 2006-01-17 Mike Kestner <mkestner@novell.com>
13768 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
13769 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
13770 invisible/previously-visible items.
13773 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
13775 * ThemeClearlooks.cs:
13776 - Added CL_Draw_Button method; now other theme controls that are
13777 not derived from button or do not have a button can draw buttons
13779 - Updated ComboBox drawing
13780 - Beautified RadioButton drawing
13781 - Corrected drawing of bottom and left tabs
13782 - Beautified DateTimePicker and MonthCalendar
13783 - Added CPDrawButton and CPDrawRadioButton
13785 2006-01-16 Jackson Harper <jackson@ximian.com>
13787 * ComboBox.cs: Set the initial value of the scrollbar to the
13788 current index. Reduce the numbers of refreshs and IndexOfs called.
13790 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
13792 * FileDialog.cs: When the file listview is focused hitting the
13793 backspace key moves the fileview to the parent directory
13795 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
13798 - Added RecreateHandle call when changing taskbar visibility to
13799 trigger reparenting in Win32 driver (Fixes #75719)
13800 - If a window has minimize or maximize buttons, it cannot have
13803 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
13804 the toplevel form with FosterParent (A toolwindow not on the
13805 taskbar) (Fixes #75719)
13806 - Made FosterParent a toolwindow
13808 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
13810 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
13812 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
13814 * ToolTip.cs: If SetToolTip is called from a control and the mouse
13815 is currently over that control, make sure that tooltip_window.Text
13818 2006-01-13 Mike Kestner <mkestner@novell.com>
13820 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
13822 2006-01-13 Jackson Harper <jackson@ximian.com>
13824 * TreeView.cs: On MS GetNodeAt never actually factors in the X
13825 value passed. Also redraw the selected node when we recieve
13826 focus, so tabbing between trees works correctly.
13828 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
13830 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
13831 ~/.gconf/%gconf-tree.xml, so use
13832 .gconf/desktop/gnome/interface/%gconf.xml
13834 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
13836 * TextControl.cs: Draw text in gray if control is disabled
13838 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
13840 * TreeView.cs: Draw the focus rectangle outside the highlight, to
13841 make sure it's always visible. Fixes #76680.
13843 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
13845 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
13847 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
13849 * PageSetupDialog.cs: Added.
13850 * PrintDialog.cs: Attributes.
13851 * PrintPreviewControl.cs: Updates.
13852 * PrintPreviewDialog.cs: Updates.
13854 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
13856 * Control.cs: Undid my selection check fix, since it's not needed
13858 - Now considering the presence of hscroll/vscroll when sizing
13859 vscroll/hscroll respectively. Fixed bug #77077
13860 - Added Left/Up/Down/Right to IsInputKey list to prevent
13861 ContainerControl from stealing them. This fixes what I broke
13862 with my last checkin.
13864 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
13866 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
13867 I finally understand how the property can be set without a setter :-)
13869 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
13872 - Switched RunLoop to use static Message.Create to create a
13874 - Added PreProcessMessage call in runloop for keyboard events; this
13875 is part of the fix for #77219, I overlooked this originally in the
13876 MSDN doc for PreProcessMessage
13878 - Removed call to PreProcessMessage from handling of keyboard
13879 messages; it's supposed to be done in the message pump
13880 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
13881 per MSDN documentation.
13882 - IsInputChar: All chars are input chars by default; removed the
13883 parent calling chain, MS does not document that
13884 - PreProcessMessage: If IsInputChar is true, we want to return false
13885 to allow dispatching of the message
13886 - When selecting the next control, now also check that we're not
13887 selecting ourselves again and therefore return a false positive.
13889 - Tried to match return values for IsInputKey and ProcessDialogKey
13890 to what MS returns; moved processing of our special keys outside
13891 ProcessDialogKey since MS does not seem to return true on those.
13892 - Moved code that previously was in ProcessDialogKey into new private
13893 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
13894 - Reworked handling of WM_CHAR to not have to duplicate code from
13895 Control.cs anymore, instead we simply call down to base.
13897 2006-01-12 Jackson Harper <jackson@ximian.com>
13899 * ComboBox.cs: We always need to refresh the text area when
13900 EndUpdate is called. Fixes the combobox in the file dialog.
13901 * Control.cs: Don't create the creator_thread until the controls
13902 handle is created. Also in InvokeRequired we check if the
13903 creator_thread is null. This gives the effect of InvokeRequired
13904 returning true if the controls handle is not created yet, and
13907 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
13910 - Added StartLoop() driver method. This is used to allow drivers to
13911 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
13912 loop for a particular thread
13913 - Added EndLoop() driver method. This is called once the message
13914 pump for the thread is shut down
13915 - Added SupportsTransparency method to allow the driver to indicate
13916 opacity support for windows
13918 - Removed TODO attribute, completed AllowTransparency property
13919 - Added documented logic to Opacity
13920 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
13921 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
13922 versions of CompatibleTextRendering
13923 * X11Structs.cs: Added opacity atom to our atom enumeration
13924 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
13925 of a form might be set before it's reparented by the WM, and we need
13926 the opacity value without calling up to Form)
13927 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
13928 SupportsTransparency() driver methods
13929 * Application.cs: Now calling StartLoop and EndLoop driver methods
13931 - Added opacity atom registration
13932 - Added StartLoop()/EndLoop() methods. They're empty right now but
13933 will need to get implemented when we switch to a per-thread queue
13934 - Implemented SupportsTransparency() method
13935 - Implemented SetWindowTransparency() method
13936 - Added support for setting the opacity value when a window is
13937 reparented (since the opacity needs to be set on the WM frame)
13938 * XplatUIOSX.cs, XplatUIWin32.cs:
13939 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
13941 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
13943 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
13945 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
13947 * FileDialog.cs: Added ToolTip for MWFFileView
13948 * MimeIcon.cs: Rewrote GnomeHandler.
13949 - Get currently used gnome icon theme from
13950 ($HOME)/.gconf/%gconf-tree.xml
13951 - Make use of inherited icon themes
13952 - Support SVG icon themes like Tango via librsvg
13954 2006-01-12 Miguel de Icaza <miguel@novell.com>
13956 Revert's Jackson's revert which broke 2.0 builds. Fix both
13959 * Application.cs: Move the use_compatible_text_rendering outside
13960 the NET_2_0 define. If we ever need to use the
13961 use_compatible_text_rendering on the individual controls they will
13962 access the variable from the common shared code paths.
13964 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
13967 - Added more granular debug options
13968 - Added method to print both window text and id
13969 - Switched debug output to use new Window() debug method
13970 - Added IsEnabled() driver method
13971 - Added EnableWindow() driver method
13973 - Removed end_modal; no longer needed, new loop handles termination
13974 via 'closing' variable
13975 - If form is modal, setting DialogResult will now initiate loop
13976 termination via 'closing' variable
13977 - Added support for is_enabled/WS_DISABLED to CreateParams
13978 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
13980 - Removed code that's now in RunLoop from ShowDialog()
13981 - Added various documented sanity checks to ShowDialog()
13982 - Added handling of WM_DESTROY message; we set 'closing' on getting
13983 the message to indicate the message pump to terminate
13984 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
13985 send by the Application.ExitThread method. (We send the message
13986 to destroy the window after all other events have been
13987 processed through the queue, instead of destroying the handle
13989 - Moved code from Close() method to WM_CLOSE handler; added logic
13990 to only send close-related events if the form is not displayed
13992 * Splitter.cs (..ctor): Fixed typo in resource name
13994 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
13996 - set_Cursor: Now only setting calling into XplatUI if the handle for
13997 the control is already created; this avoids implict handle creation
13998 or crashes if it's not created
13999 - set_Enabled: Now setting the enabled state via the new driver method
14000 instead of just tracking it
14001 - CreateParams: Added logic to set WS_DISABLED based on enabled state
14002 - CreateControl: Reordered event firing and method calls to more
14003 closely fire events in the order MS does. Now setting the
14004 enabled state in the driver when creating the control.
14005 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
14007 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
14008 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
14009 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
14011 - Added tracking of window enabled state (get_Enabled/set_Enabled)
14012 - Added EnabledHwnd property to easily allow a driver to find the
14013 handle of the first enabled window in the parent chain (this is
14014 used by drivers to pass up input events of disabled windows)
14015 * XplatUIDriver.cs: Added IsEnabled() method
14017 - Removed crude and obsolete exiting tracking variable
14018 - Removed internal ModalRun(); replaced by RunLoop()
14019 - Implemented private CloseForms() method to allow closing all
14020 windows owned by a particular (or all) threads
14021 - Exit() now properly closes all windows without forcing the message
14023 - Removed obsolete InternalExit() method
14024 - Changed Run() methods to use new RunLoop() message pump
14025 - Implemented new RunLoop() method for both modal and non-modal forms
14027 - get_CreateParams: Added setting of WS_DISABLED
14028 - Simplified ShowDialog(); now all the work is done in RunLoop(),
14029 invoked via Form.ShowDialog()
14030 * NativeWindow.cs: We don't remove the window from the collection when
14031 the handle is destroyed; there might still be messages for it in the
14032 queue (mainly the resulting WM_DESTROY); instead it will be removed
14033 when Control calls InvalidateHandle in the WM_DESTROY handler
14035 - CreateWindow: Added logic to handle the WS_DISABLED window style
14036 - EnableWindow: Implemented based on Hwnd.Enabled
14037 - GetMessage: Reset PostQuitState so the method can be called again
14038 - Implemented support for disabled windows (passing messages to the
14039 first enabled parent) in handling all input messages
14040 - Added optimizations for handling Expose events
14041 - Implemeted new driver method IsEnabled()
14042 - Now always resetting paint pending tracking vars when we start paint
14043 - Re-implemented UpdateWindow via just sending a WM_PAINT message
14044 * XplatUIOSX.cs: Added IsEnabled method stub
14045 * XplatUIWin32.cs: Implemented new IsEnabled() method
14047 2006-01-11 Jackson Harper <jackson@ximian.com>
14049 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
14050 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
14051 variables a little.
14052 * ColorDialog.cs: Clear out the old form before adding the new
14055 2006-01-11 Jackson Harper <jackson@ximian.com>
14057 * X11Dnd.cs: Make sure to add all the text formats when adding
14058 strings to the data object.
14059 * TreeNodeCollection.cs: When adding to a sorted tree we need to
14060 do some redrawing too. Also change the UpdateNode to an
14061 UpdateBelow so the newly added node gets painted.
14063 2006-01-11 Miguel de Icaza <miguel@novell.com>
14065 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
14066 LinkLabel.cs, PropertyGrid.cs: Implement the
14067 UseCompatibleTextRendering property for 2.x
14069 * Application.cs (SetCompatibleTextRenderingDefault): Add.
14071 2006-01-11 Jackson Harper <jackson@ximian.com>
14073 * TreeView.cs: Use the property for setting the selected node so
14074 the correct events get raised.
14075 * TreeNode.cs: Update the tree when the fore/back colours of a
14078 2006-01-10 Jackson Harper <jackson@ximian.com>
14080 * TreeView.cs: Allow setting SelectedNode to null.
14082 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
14084 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
14086 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
14088 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
14090 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
14092 * PrintDialog.cs: Added attributes and set default property values.
14094 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
14096 * PrintControllerWithStatusDialog.cs:
14097 Added PrintControllerWithStatusDialog.
14099 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
14101 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
14102 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
14104 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
14106 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
14108 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
14110 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
14111 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
14113 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
14115 * MimeIcon.cs: Added internal class SVGUtil.
14117 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
14119 * FileDialog.cs: Don't crash if there are two files with the
14120 same name but different locations.
14122 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
14124 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
14125 dates across multiple month grids. Used to not highlight entire
14126 month, but does now.
14128 2006-01-06 Jackson Harper <jackson@ximian.com>
14130 * MonthCalendar.cs: Removed DoEvents call to prevent a running
14131 message loop. Change timer intervals to numbers that seem more
14134 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
14136 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
14137 object for location info since screen object is now implemented.
14139 2006-01-05 Jackson Harper <jackson@ximian.com>
14141 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
14142 * AsyncMethodResult.cs: We no longer use a WeakReference for the
14143 AsyncMethodResult, this is because we ALWAYS want the
14144 ManualResetEvent to get set.
14145 * Control.cs: When disposing use an async invoke to call shutdown
14146 code, so that thigns don't block on the finalizer thread. Also
14147 check if we even have a message loop before trying to send
14148 messages, if we don't then don't bother sending messages.
14149 - No more weak references for async methods
14150 * XplatUIDriver.cs: No more weak references for async methods.
14152 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
14154 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
14155 returns two FontFamily with the same name
14157 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
14159 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
14160 drawing disabled text. Instead using the ColorGrayText color
14162 2006-01-04 Jackson Harper <jackson@ximian.com>
14164 * TreeNode.cs: redraw the node when its image index is changed.
14166 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
14168 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
14169 time I checked there are no others like it.
14171 2006-01-04 Jackson Harper <jackson@ximian.com>
14173 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
14174 this gives the behavoir I was looking for.
14175 * Control.cs: Special case Invoking EventHandlers, this matches MS
14176 and fixes part of bug #76326.
14178 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
14180 * ThemeClearlooks.cs, FileDialog.cs:
14181 - Reflect the latest Theme class changes
14182 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
14185 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
14187 * Theme.cs: Cache UI resource images and resize them if needed
14189 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
14191 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
14192 is called. This fixes the crash in Nexxia when setting the font
14193 attributes in the chat. [However, RTF needs a look-over to make sure
14194 that all SelectionXXX methods handle the special case that selection
14195 is empty and therefore the change must be applied to all text starting
14196 at the cursor/selection start]
14198 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
14200 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
14201 XplatUIOSX.cs: Added SendMessage and PostMessage methods
14202 * X11Keyboard.cs: Switched to new way of calling PostMessage
14204 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
14206 * Theme.cs: Added theme interface for images to allow the theme to
14207 control what images are used for things like FileDialog, MessageBox
14209 * MessageBox.cs: Now uses the new Theme icon/image interfaces
14211 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
14214 - Removed some dead code
14215 - Opening a recently used file does work now
14216 - Small UI enhancements
14219 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
14221 * FileDialog.cs: Forgot too add __MonoCS__
14223 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
14225 * FileDialog.cs: We are able to read recently used files now let's
14226 go on and write them.
14228 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
14230 * FileDialog.cs: Breathe some life into "last open"/"recently used"
14232 * MimeIcon.cs: Do a check for the top level media type also
14234 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
14236 * ThemeClearlooks.cs:
14237 - Added CPDrawStringDisabled
14238 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
14239 some chars if the text doesn't fit into text_rect
14240 - DrawListViewItem: If View = View.LargeIcon center the image;
14241 rewrote the drawing of ListViewItem.Text if View =
14244 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
14246 * MimeIcon.cs: Use default KDE icon theme if there is no
14247 "48x48" directory for the current icon theme, fixes #77114
14248 * Mime.cs: Disable not working and actually not used code.
14249 * ThemeWin32Classic.cs:
14250 - Replace "new SolidBrush" in GetControlBackBrush and
14251 GetControlForeBrush with ResPool.GetSolidBrush
14252 - Changed DrawListViewItem from private to protected virtual
14254 - Added form.MaximizeBox = true
14255 - Don't throw an exception if there is a broken symbolic link
14257 2005-12-23 Jackson Harper <jackson@ximian.com>
14259 * TabControl.cs: Give the panels focus, keyboard navigation is
14260 fixed so this works correctly now.
14261 - We need these key events also.
14262 * ToolBar.cs: Remove some of the poor mans double buffering.
14264 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
14266 * ComboBox.cs: The internal TextBox now returns the focus.
14268 2005-12-23 Jackson Harper <jackson@ximian.com>
14270 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
14272 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
14274 * Control.cs: Removed debug code
14275 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
14278 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
14280 * Control.cs: When creating the control, update the Z-order after
14281 all it's children are created, too. (Fixes nexxia not showing
14284 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
14286 * Control.cs: Do not update the anchoring distances if layout is
14287 suspended, instead do it once layout is resumed
14289 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
14292 - After many hours of debugging, for both Jackson and
14293 myself, it turns out that it helps to set the parent of a control
14294 if you want to actually see it onscreen. In the spirit of that
14295 discovery, we're now setting the parent of the control and
14296 it's children when the control's handle is created. This fix
14297 will make Lutz Roeder's Reflector run happily.
14298 - now just creating the handle instead of the whole control when
14299 getting a graphics context for the control.
14301 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
14303 * ScrollableControl.cs: When calculating the canvas, don't consider
14304 the scrollbar widths. Instead, predict if horizontal scrollbar
14305 will affect canvas when deciding on vertical display and vice versa.
14307 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
14309 * RichTextBox.cs: Set default RTF font for documents that don't
14310 have a font table (Fixes #77076)
14312 2005-12-22 Jackson Harper <jackson@ximian.com>
14314 * TextBoxBase.cs: It's difficult to do, but you can have an empty
14315 clipboard. This prevents a NullRef in that case.
14316 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
14317 clipboard. PRIMARY is for the currently selected text only. (We
14318 should implement PRIMARY at some point.
14320 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
14322 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
14323 a Unicode function with a structure that was defined in Ansi way.
14326 2005-12-21 Jackson Harper <jackson@ximian.com>
14328 * StatusBar.cs: Statusbar handles its fore/back colours on it's
14329 on. Because thats how it rolls. (and this avoids it using ambient
14331 * ThemeWin32Classic.cs: Use the proper back color for filling.
14332 * Menu.cs: Use the system menu bar color for drawing menu
14333 bars. Using the window back color will bring ambient colours into
14336 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
14338 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
14339 Bitmaps were created and not disposed.
14341 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
14343 * Control.cs (CreateControl): Don't do anything if the control is
14344 already created, otherwise we'd fire the OnCreated event more than
14347 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
14349 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
14350 will always match. Instead return -1. Fixes #76464.
14352 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
14354 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
14355 neither the beginning nor the end of the line (Fixes bug #76479)
14357 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
14360 - ControlNativeWindow.ControlFromHandle(): Now handling situation
14361 where handle is invalid
14362 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
14363 instead of slower linear search
14364 * NativeWindow.cs: Don't remove the window from the hashtable until
14365 after the driver has destroyed it (since the driver might use
14366 Control.FromHandle to lookup the control object
14367 * Hwnd.cs: Added DestroyPending property to track if a window is
14368 already destroyed as far as the driver is concerned and only hasn't
14369 yet notified the control
14371 - Activate(): Check if the window is still valid before using the
14373 - Implemented DestroyChildWindow() method to mark child windows as
14374 destroyed when a window is destroyed. This prevents situations
14375 where we might call an X method based on queued events for a
14376 window that already has been destroyed but we haven't yet pulled
14377 the destroy method from the queue.
14378 - Added a call to the new DestroyChildWindow() method to the drivers
14379 DestroyWindow code. Also now marking the destroyed window itself
14382 2005-12-20 Jackson Harper <jackson@ximian.com>
14385 * StatusBarPanel.cs: Don't calculate panel sizes on draw
14386 anymore. Just do them when needed, also track the rects of panels
14387 so that we can optimize refreshing more in the future.
14389 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
14391 * ColorDialog.cs: Fixed focus drawing in small color controls
14393 2005-12-19 Jackson Harper <jackson@ximian.com>
14395 * InternalWindowManager.cs:
14396 * MdiWindowManager.cs: Cleanup some coordinate system changes so
14397 moving windows works properly.
14399 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
14402 - Removed call to InitLayout() from SetBoundsCore(); doc says
14403 it's only called when a control is added to a container
14404 - Split InitLayout logic, moved to separate UpdateDistances() method
14405 since we need to perform those calculations more often than just
14406 when adding the control to a container. (Needed to fix #77022)
14407 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
14408 - Reduced the OnBindingContextChanged events count, don't send them
14409 unless the control is created, we still aren't totally matching
14410 MS, but I can't quite figure out some of their rules
14412 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
14414 * ThemeClearlooks.cs: Corrected distance between ProgressBar
14417 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
14419 * ThemeClearlooks.cs:
14420 - Updated ProgressBar drawing
14421 - Corrected drawing of ScrollBars and scroll buttons
14422 - Some temporary fixes for minor pixel artefacts
14424 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
14427 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
14428 cause events to be sent in the same order as MS does.
14429 - Added ChangeParent() method to trigger various OnXXXChanged events
14430 that need to be fired when a parent changes (This is a reworking
14431 of the patch from r54254, with the X11 errors fixed)
14432 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
14433 since on MS we get OnLayoutChanged events when calling Clear()
14434 - Changed Enabled property to consider parent state as well, if a
14435 parent is not enabled, the control will not be either
14436 - Changed Parent property to simply call Controls.Add() since that
14437 now does all the work required, this way we avoid code duplication
14438 - Threw in a few OnBindingsContextChanged calls to try and match
14439 when MS sends them. We seem to send a few too many, though.
14440 - Added call to CreateControl when adding the control to a parent.
14441 We were never calling CreateControl. Still needs some work, in
14442 some places we treat HandleCreated and ControlCreated as equal,
14444 - Removed obsolete commented out code from UpdateZOrder()
14446 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
14448 * ThemeClearlooks.cs: Updated TrackBar drawing.
14450 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
14452 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
14454 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
14456 * FileDialog.cs: Add the Help button and the open readonly
14457 checkbox only if needed
14459 2005-12-16 Jackson Harper <jackson@ximian.com>
14461 * Control.cs: Make sure we have an active menu before trying to
14462 process commands on it. Prevents menu-less forms from crashing
14463 when Alt is pressed.
14464 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
14466 * RichTextBox.cs: Expand statement to help out gmcs and fix the
14469 2005-12-16 Jackson Harper <jackson@ximian.com>
14471 * InternalWindowManager.cs: Don't translate tool windows screen
14472 coordinates. This fixes windows 'bouncing' around when being moved.
14474 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
14477 - MaxLength now treats 2^31-1 equal to unlimited length (this is
14478 not quite MS compatible, MS uses that number only for single line
14479 and 2^32-1 for multi-line, but I figure it won't hurt keeping
14481 - Now enforcing the MaxLength limit when entering characters
14482 - Added argument to internal Paste() method to track if it's called
14483 from programatically or via keyboard, since keyboard driven pastes
14484 need to enforce max-length
14485 - Added logic to Paste to only paste as many chars as MaxLength
14487 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
14489 - Added Length property to return number of characters in document
14490 - Added private CharCount property which only tracks actual chars
14491 in the document (no linefeeds) and fires event when CharCount
14493 - Added tracking of character count to all methods that alter it
14494 - Added LengthChanged event to allow applications to subscribe
14495 to any changes to the document
14497 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
14500 - Removed local password_char field (moved to TextBoxBase)
14501 - Now setting the document's password var when password is
14504 - Added password_char field (needed here so MultiLine can
14506 - Added logic to MultiLine property setter to set the document's
14507 variable when password display is allowed
14508 - Removed debug code and made some debug code conditional
14510 - Added RecalculatePasswordLine() method to handle special password
14512 - Added PasswordChar property, also added related tracking vars
14513 - Draw() method now uses local text var for grabbing text to draw,
14514 this var is set to line.text unless we're doing password display,
14515 then it is set to the pre-generated all-password-chars line
14516 - Added calling RecalculatePasswordLine() method for password lines
14518 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
14521 - Added Reparented property to allow tracking of Window Manager
14522 reparenting actions (which affect X/Y calculations of toplevel
14524 - Made ToString() print window handles in hex
14526 - AddConfigureNotify(): Now uses reparented state off Hwnd to
14527 determine if X/Y needs offsetting
14528 - AddConfigureNotify(): Fixed offset calculations
14529 - Now adds ReparentNotify messages into the queue
14530 - Now processes ReparentNotify messages and causes a
14531 WM_WINDOWPOSCHANGED message to be sent upstream if a window
14532 is reparented (as most likely it's X/Y coordinates are changed
14535 2005-12-14 Jackson Harper <jackson@ximian.com>
14537 * XplatUIX11.cs: Tool windows still need to respek focus.
14539 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
14541 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
14542 have a working release
14544 2005-12-13 Jackson Harper <jackson@ximian.com>
14546 * Form.cs: Update styles after setting the border style regardless
14547 of whether or not the window is using a window manager.
14549 2005-12-13 Jackson Harper <jackson@ximian.com>
14551 * Form.cs: We now hook into an internal window manager instead of just an
14552 MDI subsystem, this is so we can have properly behaving tool windows.
14553 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
14554 * InternalWindowManager.cs: New internal class that acts as a
14555 window manager for tool windows and as a base for mdi windows.
14556 * MdiWindowManager.cs: New class that acts as a window manager for
14559 2005-12-12 Jackson Harper <jackson@ximian.com>
14561 * Control.cs: Updates so we match behavoir for for implicit
14562 controls. Fixes explosions in MDI.
14564 2005-12-12 Jackson Harper <jackson@ximian.com>
14566 * Control.cs: Implement Invalidate (Region).
14568 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
14571 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
14572 the same events as MS does. MS fires events for each property
14573 except, for unknown reasons, Cursor, when the control is reparented.
14574 I can't seem to totally match add/remove since MS also fires some
14575 VisibleChanged events, which makes no sense. Consolidated the
14576 parenting code into a separate method so it can be called from
14577 both Add and Remove. set_Parent no longer needs any special logic
14578 as it calls the parent's add method which implicitly fires
14580 - Removed some obsolete code and debug output
14581 - Enabled state is inherited from parents, if this is enabled
14583 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
14585 * Form.cs: Removed commented out code
14587 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
14590 - Added internal version of Invoke, with additional argument
14591 indicating if we're calling it from a Dispose() handler. That
14592 way we can avoid BeginInvoke throwing an exception if we're
14593 calling for an already destroyed window.
14594 - Added a dispose argument to BeginInvokeInternal, and made the
14595 check if a valid window handle chain exists conditional on
14596 it not being a dispose call
14597 - Removed code in DestroyHandle to destroy our children. Since we
14598 now handle the WM_DESTROY message we will catch all our children
14600 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
14602 - Added a field to track the application context of the form.
14603 - No need to set closing variable as response to WM_CLOSE, instead
14604 we destroy the window. We also call PostQuitMessage if the form
14605 has an application context (which makes it the main app form,
14606 which, when closed terminates the app)
14608 - Dropped Exit() method, it's naming was confusing
14609 - Added PostQuitMessage() which causes GetMessage to return false
14610 once the message queue is empty
14611 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
14613 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
14614 no longer a valid XplatUI method, but left it in since it's used
14615 internally. Added empty PostQuitMessage() method.
14616 * MenuAPI.cs: Replaced call to Exit() with call to
14617 PostQuitMessage, even though this is probably no longer needed.
14618 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
14619 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
14621 - Replaced call to XplatUI.Exit() with PostQuitMessage()
14622 - Removed old debug code that would call XplatUI for exception
14623 display, enabled standard exception handling (Still not enabled
14624 though, until NativeWindow's ExternalExceptionHandler define
14627 - Added internal method to allow control to update NativeWindow
14628 after a window has been destroyed
14629 - Added handling of already destroyed windows when calling i
14631 - Added removal of handle from list on ReleaseHandle
14633 - Dropped GetMessageResult var and related code
14634 - Added PostQuitState to field to track if PostQuitMessage has been
14636 - Dropped Exit() method
14637 - Added PostQuitMessage() method
14638 - GetMessage now will return false if PostQuitState is set and no
14639 more messages are in the queue.
14640 - Expose handler will no longer generate WM_PAINT messages if we are
14641 in PostQuitState since it's very likely any windows have already
14642 been destroyed, and since Hwnd won't get updated until we have
14643 processed the DestroyNotify we'd be causing X errors.
14645 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
14647 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
14648 Thanks to Mike for pointing out the err of my ways.
14650 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
14652 * Control.cs(PreProcessMessage): Moved menu handling back, but
14653 after all other key handling, to match MS (who handles Menu in
14655 * Menu.cs (WndProc): Removed my brainfart
14657 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
14659 * Control.cs(PreProcessMessage): Removed special menu handling
14660 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
14662 2005-12-07 Mike Kestner <mkestner@novell.com>
14664 * Control.cs : special case SYSKEYUP so that we can adjust keynav
14665 state according in tracker.
14666 * Menu.cs : promote tracker field to base class and provide a tracker
14667 lookup capability. Add/Remove shortcuts dynamically if the top menu
14668 has a tracker. Unparent items that are removed from the collection.
14669 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
14670 * Theme*.cs: add always_show_hotkeys field to support configurability
14671 of mnemonic display. win32 doesn't show mnemonics until Alt is
14674 2005-12-07 Jackson Harper <jackson@ximian.com>
14676 * MdiChildContext.cs: Use Control.ResetCursor.
14677 * Control.cs: ResetCursor needs to set the property so that the
14678 correct XplatUI call gets made.
14680 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
14682 * Control.cs: More fixes to make our key events match MS. We
14683 were not setting the modifier state on KeyData, and we were
14684 not generating any events when Alt was pressed with a key
14685 since handling of WM_SYSxxx was missing for the OnKey methods.
14687 2005-12-07 Jackson Harper <jackson@ximian.com>
14689 * MdiChildContext.cs: reenable the sizing code.
14690 - When the mouse leaves a window reset its cursor.
14692 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
14694 * ThemeClearlooks.cs: Reflect latest Hwnd changes
14696 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
14698 * Hwnd.cs: Now using the theme 3d bordersize to calculate
14699 widths of Fixed3D borders
14701 2005-12-07 Jackson Harper <jackson@ximian.com>
14703 * MdiClient.cs: Fix warnings. Earn Mike's love.
14705 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
14707 * ThemeClearlooks.cs:
14708 - Adjusted mouse over button color
14709 - Added first parts of CheckBox drawing
14710 - Added correct color for selected text background
14711 - Fixed ComboBox drawing
14712 - Added CPDrawBorder3D and CPDrawBorder
14714 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
14716 * XplatUIX11.cs: Added call to XBell for AudibleAlert
14718 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
14720 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
14721 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
14722 alert users via sound. We could add an enum arg with different
14723 types of alerts in the future
14725 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
14727 * Control.cs: Fix behaviour problems pointed out by Mike
14729 2005-12-05 Mike Kestner <mkestner@novell.com>
14731 * StatusBarPanel.cs: add Invalidate method and hook it into all the
14732 prop setters. Calls parent.Refresh for now, but could be maybe be
14733 optimized with an internal method on StatusBar at some point.
14736 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
14738 * RichTextBox.cs: Implemented get_SelectionColor
14740 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
14742 * ThemeClearlooks.cs:
14743 - Removed dead code
14744 - Draw black button border only if button is Form.AcceptButton
14745 - Draw correct button color for pressed RadioButton if the mouse
14746 has entered the button
14747 - Updated ProgressBar drawing!
14748 - Updated CPDrawSizeGrip drawing
14749 - Updated StatusBarPanel drawing
14751 2005-12-05 Mike Kestner <mkestner@novell.com>
14753 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
14754 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
14756 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
14758 * ThemeClearlooks.cs: Initial check-in, activate with
14759 export MONO_THEME=clearlooks
14760 * ThemeEngine.cs: Added ThemeClearlooks
14762 2005-12-03 Mike Kestner <mkestner@novell.com>
14764 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
14767 2005-12-02 Jackson Harper <jackson@ximian.com>
14769 * Form.cs: If the child form has no menu the default main menu is
14770 used as the active menu.
14772 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
14774 * ListBox.cs: Check if any items exist before trying to resolve
14775 coordinates into items
14777 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
14779 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
14780 as the second color for the background hatch
14782 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
14784 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
14785 * RichTextBox.cs: FormatText position arguments are 1-based, now making
14786 sure that what we pass to FormatText is always 1-based. Fixes #76885
14788 2005-11-29 Miguel de Icaza <miguel@novell.com>
14790 * NumericUpDown.cs (EndInit): When we are done initializing,
14791 reflect any updates on the UI.
14793 2005-12-02 Jackson Harper <jackson@ximian.com>
14795 * ImplicitHScrollBar.cs:
14796 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
14797 their container controls.
14798 * TreeView.cs: Use the new implicit scrollbars.
14800 2005-12-02 Jackson Harper <jackson@ximian.com>
14802 * TreeView.cs: Make top_node internal so the TreeNodeCollections
14804 * TreeNodeCollection.cs: If we remove the topnode we need to
14805 update topnode to the next node in line.
14806 - When clearing nodes go through the same process as removing
14807 them, so they get depareneted and checked if they are top node.
14809 2005-12-01 Jackson Harper <jackson@ximian.com>
14811 * TreeView.cs: When imagelists are used the image area is
14812 selectable as well as the text.
14813 - If there are no selected nodes select the first one.
14814 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
14815 so don't do it more then we need to.
14817 2005-12-01 Jackson Harper <jackson@ximian.com>
14819 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
14820 that arrows can be scaled.
14822 2005-12-01 Jackson Harper <jackson@ximian.com>
14824 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
14825 fail. Patch by Dieter Bremes
14827 2005-11-30 Jackson Harper <jackson@ximian.com>
14829 * Form.cs: Property is 2.0 only
14830 * PrintDialog.cs: Signature fix.
14832 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
14835 - No longer artificially moves text 2 pixels down (now that we have
14836 borders this is no longer needed)
14837 - Added calcs for left, hanging and right indent
14839 2005-11-23 Mike Kestner <mkestner@novell.com>
14841 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
14843 2005-11-30 Jackson Harper <jackson@ximian.com>
14845 * MdiChildContext.cs: Set the cloned menus forms, as these don't
14846 get cloned as part of CloneMenu ().
14847 * Menu.cs: Make sure the parent of the items get set correctly
14848 when they are added. And the owners are notified of the changes.
14849 * Form.cs: Create an ActiveMenu property, so that when MDI is used
14850 we can change the menu being displayed/handled by the form without
14851 changing the menu assosciated with the form.
14852 - Don't let Mdi children draw/handle menus.
14854 2005-11-30 Jackson Harper <jackson@ximian.com>
14856 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
14857 a MenuChanged event. Just to make the API a little more
14860 * MenuItem.cs: Use the new OnMenuChanged
14861 * MdiChildContext.cs: Handle menu merging.
14862 * Form.cs: Implement MergedMenu.
14864 2005-11-30 Jackson Harper <jackson@ximian.com>
14866 * Menu.cs: We were misusing Add. Add goes behind the specified
14867 index according to the docs, and does not replace the specified
14868 index. So I added an Insert method.
14870 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
14872 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
14873 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
14875 * RichTextBox.cs: Added calls to base for DnD events
14877 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
14880 - Fixed drag-selection related crash; style fixes
14881 - Implemented undo class
14882 o Implemented method to capture document state for specified
14883 range in document tree
14884 o Implemented method to restore captured document state
14885 o Implemented cursor tracking
14886 o Implemented basic undo stack
14887 - Added undo cursor tracking to methods altering cursor location
14888 - Added undo tracking to selection deletion (still missing
14889 other text-altering hookups)
14891 - Added SelectionLength property
14892 - Implemented CanPaste()
14893 - Implemented Paste()
14894 - Added missing protected methods
14895 - Fixed RTF->Document conversion; now uses font index 0 and color
14896 index 0 as the default font for the parsed text
14897 - Fixed RTF<->Document font size translation
14898 - Fixed RTF generation, now properly handles cross-tag boundaries
14899 for single line selection
14900 - No longer always appends blank line to generated RTF
14902 - Added missing attributes
14903 - Hooked up undo-related methods
14905 - Implemented Copy()
14906 - Implemented Paste()
14907 - Implemented Cut()
14908 - Fixed caret mis-behaviour on backspace across line-boundaries
14910 2005-11-29 Jackson Harper <jackson@ximian.com>
14912 * MdiClient.cs: Add a method for activating mdi children. Very
14913 basic right now. I imagine someday it might need more girth.
14914 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
14915 children windows names are added to the menu item.
14916 * ThemeWin32Classic.cs: Draw the arrow if the item is an
14917 mdilist. This happens regardless of whether or not there are any
14918 mdi windows to see in the list, and according to my tests happens
14919 before the items are even added. Also happens if there isn't even
14920 an mdi client to get windows from.
14922 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
14924 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
14925 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
14927 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
14929 * DataGridTableStyle.cs:
14930 - Create always the styles for the missing columns even if they are
14931 provided by the user (not default table style)
14934 - Fixes SetDataBinding (always re-attach source)
14935 - Fixes SetNewDataSource (only clear styles if they are not for
14937 - Expands OnTableStylesCollectionChanged to handle style refresh
14938 and remove properly
14940 2005-11-29 Jackson Harper <jackson@ximian.com>
14942 * FileDialog.cs: Implement missing bits, remove some dead
14944 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
14945 creation of the panel so that the options set on the dialog are
14946 seen when the panel is created.
14947 * TreeView.cs: raise a click when items are clicked.
14949 2005-11-29 Jackson Harper <jackson@ximian.com>
14951 * MdiClient.cs: Pass some signature methods through to base.
14953 2005-11-28 Jackson Harper <jackson@ximian.com>
14955 * ListView.cs: Raise the click event when items are clicked.
14957 2005-11-28 Jackson Harper <jackson@ximian.com>
14959 * MdiClient.cs: Make this algorithm even more beautiful. And fix
14962 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
14964 * ThemeNice.cs: - Removed 1 pixel bitmaps
14965 - Use SmoothingMode.AntiAlias where it makes sense
14966 (ScrollButton arrow for example)
14967 - Enhanced Button focus drawing
14968 - Fixed ComboBox drawing (no artefacts anymore, focus
14969 rectangle is back again, reduced size of ComboButton, etc.)
14970 - Fixed RadioButton focus drawing for Appearence.Button
14971 - Slight ScrollButton redesign
14972 - Some LinearGradientBrush size fixes
14973 - GroupBoxes have now rounded edges
14974 - Fixed StatusBar drawing
14976 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
14978 * ThemeNice.cs: - Remove dead code
14979 - use correct background colors for menus, etc.
14980 - Fake pixel drawing with 1 pixel bitmaps
14982 2005-11-24 Jackson Harper <jackson@ximian.com>
14984 * MdiClient.cs: Size the scrollbars when resizing the window.
14985 - Resize the maximized windows when the client is resized
14986 * Form.cs: Make the child context available
14988 2005-11-23 Jackson Harper <jackson@ximian.com>
14990 * MdiChildContext.cs: Don't size windows if they are maximized.
14992 2005-11-23 Mike Kestner <mkestner@novell.com>
14994 * ContextMenu.cs: use MenuTracker.
14995 * Control.cs: remove menu handle usage.
14996 * Form.cs: remove menu handle usage.
14997 * Hwnd.cs: remove menu handle usage.
14998 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
14999 motion and clicks to the new Tracker handlers.
15000 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
15002 * MenuAPI.cs: refactored to combine popup and menubar event handling.
15003 Killed the MENU and MENUITEM data types and associated collections
15004 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
15005 MenuTracker class that exposes the leftovers from the old MenuAPI
15006 static methods. Restructured Capture handling so that only one grab is
15007 done for the entire menu hierarchy instead of handing off grabs to
15008 submenus. Tracker now has an invisible control to Capture when active.
15009 * MenuItem.cs: add sizing accessors, kill Create
15011 * Theme.cs: remove menu handle and MENU(ITEM) usage.
15012 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
15013 MENU(ITEM). remove menu handle usage, use Menu directly.
15014 * XplatUIDriver.cs: remove menu handle usage.
15015 * XplatUIOSX.cs: remove menu handle usage.
15016 * XplatUIWin32.cs: remove menu handle usage.
15017 * XplatUIX11.cs: remove menu handle usage.
15019 2005-11-22 Jackson Harper <jackson@ximian.com>
15021 * Hwnd.cs: Don't compute the menu size for
15022 DefaultClientRectangle.
15023 - Reenable menu sizes being computed for GetClienRectangle.
15024 * Form.cs: Remove comment of trechery
15026 2005-11-22 Jackson Harper <jackson@ximian.com>
15028 * Hwnd.cs: The adjustments for the menu bar are made when it is
15029 attached to the form.
15031 2005-11-19 Jackson Harper <jackson@ximian.com>
15033 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
15034 (just like on windows).
15036 2005-11-19 Jackson Harper <jackson@ximian.com>
15038 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
15039 use real buttons anymore because they are in non client area. The
15040 one TODO here is that I need to somehow invalidate a section of
15041 the non client area.
15043 2005-11-18 Jackson Harper <jackson@ximian.com>
15045 * Control.cs: Put the enum check back in now that MDI doesnt have
15046 to use this to set border styles.
15047 * Form.cs: Only set mdi child windows borders if the handle has
15049 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
15050 this directly on to the driver.
15051 - Get the move start position before adjusting for the titlebar
15052 height, this fixes the windows "skipping" when they are first
15055 2005-11-18 Jackson Harper <jackson@ximian.com>
15057 * XplatUIX11.cs: Just compute the mdi borders separately as they
15058 don't totally match up with normal form borders.
15060 2005-11-18 Jackson Harper <jackson@ximian.com>
15062 * Control.cs: Set WS_ styles for borders, so that the driver does
15063 not have to retrieve the control instance to figure out what kind
15064 of borders it should have.
15065 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
15066 driver can know its an mdi child easily.
15067 * XplatUIX11.cs: Get the border styles and whether the window is
15068 MDI from the Styles and ExStyles params instead of having to get a
15069 control. This prevents a chicken and egg problem.
15071 2005-11-18 Jackson Harper <jackson@ximian.com>
15073 * MdiClient.cs: Fix typo so scrollbars show up correctly.
15075 2005-11-18 Jackson Harper <jackson@ximian.com>
15077 * MdiClient.cs: Calculate when to add and remove scrollbars
15079 * MdiChildContext.cs: Adjust the y position to take the titlebar
15081 - No height for FormBorderStyle.None
15083 2005-11-18 Jackson Harper <jackson@ximian.com>
15085 * Control.cs: Allow non enum values to be used for
15086 InternalBorderStyle. MDI does this to set a special border style.
15087 - New utility methods for converting points to/from client coords
15088 - Add the newly created control to the Controls collection before
15089 updating its style. This way UpdateStyle can walk the control
15090 heirarchy to find the control if needed.
15091 so I don't need to create a new Point object all the time.
15092 * Form.cs: Let MDI windows handle their border styles.
15093 - Set styles on MDI windows so the correct title style is derived.
15094 * MdiChildContext.cs: Move all the painting and window handling
15095 into the non client area.
15096 - Use correct sizing and put correct buttons on frames based on
15097 the FormBorderStyle.
15098 - Notify the mdi client about scrolling
15099 - Need to handle the buttons ourselves now, because they are all
15100 in non client areas and we can't add controls there.
15101 * MdiClient.cs: Halfway to scrolling, this implementation is
15102 somewhat broken though, we need to check to make sure other
15103 windows aren't causing scrolling before removing the bars. Also
15104 the bars need to be drawn on top, maybe I can switch implicit
15105 controls to be on top.
15106 * Hwnd.cs: caption_height and tool_caption_height are now
15107 properties of an hwnd, this way they can be set by the driver
15108 based on the type of window they are. In X11 the window manager
15109 handles the decorations so caption_height is zero unless its an
15111 - Add 3 pixel borders for MDI windows (0xFFFF).
15112 - Get rid of some code duplication, have DefaultClientRectanle
15113 just call GetClientRectangle.
15114 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
15116 - Set border styles differently for mdi windows.
15117 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
15120 2005-11-15 Mike Kestner <mkestner@novell.com>
15122 * Menu.cs: when adding an item to the collection, if item is already
15123 parented, remove it from the parent.
15125 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
15127 * X11DesktopColors.cs: Added KDE support
15129 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
15132 - Clipboard methods now can translate Rtf format
15133 - No longer removes clipboard contents whenever a new format is added
15134 to allow placing multiple formats on the clipboard
15135 * Clipboard.cs: Clipboard now supports getting a IDataObject and
15136 will place all formats contained in it onto the clipboard. Also
15137 now cleans the clipboard before placing a new object onto it
15139 - Implemented set_Rtf
15140 - Implemented set_SelectedRtf
15141 - Created InsertRTFFromStream() method to allow single code base
15142 for all properties and methods that insert RTF into document
15143 - Removed debug output
15145 - Fixed Delete(int) to fix up line numbers
15146 - Fixed ReplaceSelection to combine start and end line
15147 - Fixed serious DeleteChars bug that would leave the document tree
15149 - Improved DumpTree with several logic checks to detect broken
15151 - Removed debug lines
15152 - Fixed Caret.WordForward/WordBack moving code, now always also
15153 updates caret.tag (fixes crash when word-selecting across tag
15154 boundaries via keyboard)
15155 - Added Insert() method for inserting multiline text into documents
15156 - Fixed DeleteChars() calculation errors that would cause a broken
15157 tag chain with multiple tag lines
15158 - DeleteChars() no longer crashes on multi-tag lines if not all tags
15159 - Split() no longer moves caret if split is at caret location
15160 - ReplaceSelection() now updates the cursor and re-displays it
15161 - ReplaceSelection() now uses new Insert() method to avoid code
15163 - FormatText() can now handle formatting partial lines
15165 - Append now uses new TextControl.Insert() method (this avoids
15167 - Implemented Ctrl-X (Cut) (
15168 - Implemented Ctrl-C (Copy)
15169 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
15170 regeneration when pasting text; roundtripping Copy&Paste within
15171 edit control still fails due to some calculation bugs in GenerateRTF)
15172 - The Delete key will now remove the current selection if it is visible
15173 * TextBox.cs: Removed debug lines
15174 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
15175 driver to be initialized and can't therefore be done via a static ctor)
15177 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
15179 * TextControl.cs: Added backend code for finding char arrays and strings
15181 - Added mouse wheel scroll support
15182 - Added support for VScroll and HScroll events
15184 - Implemented all seven Find() variants
15185 - Implemented GetCharFromPosition()
15186 - Implemented GetCharIndexFromPosition()
15187 - Implemented GetLineFromIndex()
15188 - Implemented GetPositionFromCharIndex();
15189 - Implemented SaveFile for PlainText and UnicodeText
15190 - Fixed set_Font, now setting a new font applies that font to
15192 - Implemented generic Document to RTF converter
15193 - Implemented SaveFile for RichText format (still missing unicode
15194 conversion for non-ansi chars)
15195 - Implemented get_Rtf
15196 - Implemented get_SelectedRtf
15198 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
15200 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
15201 to allow any captures to be released before triggering OnClick. This
15202 way a click handler may capture the mouse without interference.
15203 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
15204 This way we send them even though X may not allow a grab (if the window
15205 isn't visible, for example)
15207 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
15209 * DataGridViewRowEventArgs.cs: DataGridView implementation
15210 * DataGridViewElement.cs: DataGridView implementation
15211 * DataGridViewComboBoxCell.cs: DataGridView implementation
15212 * DataGridViewDataErrorContexts.cs: DataGridView implementation
15213 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
15214 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
15215 * ImageLayout.cs: DataGridView implementation
15216 * DataGridViewComboBoxColumn.cs: DataGridView implementation
15217 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
15218 * DataGridViewSelectionMode.cs: DataGridView implementation
15219 * IDataGridViewEditingControl.cs: DataGridView implementation
15220 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
15221 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
15222 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
15223 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
15224 * DataGridViewColumnSortMode.cs: DataGridView implementation
15225 * DataGridView.cs: DataGridView implementation
15226 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
15227 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
15228 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
15229 * Padding.cs: DataGridView implementation
15230 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
15231 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
15232 * DataGridViewRowEventHandler.cs: DataGridView implementation
15233 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
15234 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
15235 * DataGridViewButtonCell.cs: DataGridView implementation
15236 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
15237 * DataGridViewEditMode.cs: DataGridView implementation
15238 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
15239 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
15240 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
15241 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
15242 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
15243 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
15244 * DataGridViewCellEventHandler.cs: DataGridView implementation
15245 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
15246 * DataGridViewCellStyleConverter.cs: DataGridView implementation
15247 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
15248 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
15249 * DataGridViewColumnEventArgs.cs: DataGridView implementation
15250 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
15251 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
15252 * QuestionEventArgs.cs: DataGridView implementation
15253 * IDataGridViewEditingCell.cs: DataGridView implementation
15254 * DataGridViewTriState.cs: DataGridView implementation
15255 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
15256 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
15257 * DataGridViewColumnCollection.cs: DataGridView implementation
15258 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
15259 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
15260 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
15261 * DataGridViewColumn.cs: DataGridView implementation
15262 * DataGridViewCellBorderStyle.cs: DataGridView implementation
15263 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
15264 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
15265 * DataGridViewRow.cs: DataGridView implementation
15266 * DataGridViewImageCellLayout.cs: DataGridView implementation
15267 * DataGridViewImageCell.cs: DataGridView implementation
15268 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
15269 * DataGridViewCheckBoxCell.cs: DataGridView implementation
15270 * DataGridViewHeaderCell.cs: DataGridView implementation
15271 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
15272 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
15273 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
15274 * DataGridViewTextBoxColumn.cs: DataGridView implementation
15275 * QuestionEventHandler.cs: DataGridView implementation
15276 * DataGridViewCellStyleScopes.cs: DataGridView implementation
15277 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
15278 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
15279 * DataGridViewCell.cs: DataGridView implementation
15280 * DataGridViewCellEventArgs.cs: DataGridView implementation
15281 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
15282 * DataGridViewCellStyle.cs: DataGridView implementation
15283 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
15284 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
15285 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
15286 * TextFormatFlags.cs: DataGridView implementation
15287 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
15288 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
15289 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
15290 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
15291 * DataGridViewButtonColumn.cs: DataGridView implementation
15292 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
15293 * HandledMouseEventArgs.cs: DataGridView implementation
15294 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
15295 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
15296 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
15297 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
15298 * DataGridViewRowCollection.cs: DataGridView implementation
15299 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
15300 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
15301 * DataGridViewHitTestType.cs: DataGridView implementation
15302 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
15303 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
15304 * DataGridViewColumnEventHandler.cs: DataGridView implementation
15305 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
15306 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
15307 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
15308 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
15309 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
15310 * DataGridViewContentAlignment.cs: DataGridView implementation
15311 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
15312 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
15313 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
15314 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
15315 * DataGridViewPaintParts.cs: DataGridView implementation
15316 * DataGridViewCellCollection.cs: DataGridView implementation
15317 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
15318 * DataGridViewImageColumn.cs: DataGridView implementation
15319 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
15320 * DataGridViewElementStates.cs: DataGridView implementation
15321 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
15322 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
15323 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
15324 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
15325 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
15326 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
15327 * DataGridViewRowHeaderCell.cs: DataGridView implementation
15328 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
15329 * DataGridViewTextBoxCell.cs: DataGridView implementation
15330 * DataGridViewBand.cs: DataGridView implementation
15331 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
15332 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
15333 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
15334 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
15335 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
15336 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
15337 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
15338 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
15339 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
15340 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
15341 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
15343 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
15345 * ThemeWin32Classic.cs:
15346 - Draw the outside focus rectangle around buttons
15347 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
15348 doesn't use end caps for every dash of a line anymore. This
15349 workaround ignores the forecolor.
15351 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
15353 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
15356 2005-11-07 Jackson Harper <jackson@ximian.com>
15358 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
15360 2005-11-07 Jackson Harper <jackson@ximian.com>
15362 * ScrollableControl.cs: Calculate the maximum and change vars
15363 (more) correctly so that scrollbars appear as a sensible size.
15365 2005-11-04 Jackson Harper <jackson@ximian.com>
15367 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
15369 * TreeView.cs: When the tree is sorted null out the top_node so
15370 that it is recalculated.
15371 - Use dotted lines instead of dashed lines to match MS better.
15373 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
15376 - Implements key search for items. Useful when browsing files with FileDialog
15377 - When changing view mode or when clear the items reset scrollbar positions
15379 2005-11-04 Jackson Harper <jackson@ximian.com>
15381 * CurrencyManager.cs: Implement the MetaDataChanged event, the
15382 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
15383 as to what the method may do as there is no real way of creating a
15384 derived CurrencyManager and calling the method.
15386 2005-11-03 Jackson Harper <jackson@ximian.com>
15388 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
15389 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
15390 method which seems to just be used internally to refresh the tabs.
15392 2005-11-03 Jackson Harper <jackson@ximian.com>
15394 * TabControl.cs: Implement the remove method. Fix some broken
15397 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
15399 * DateTimePicker.cs:
15400 - Added missing DateTimePickerAccessibleObject class
15401 - Added missing events
15402 - Added OnFontChanged method
15403 * Form.cs: Added missing attributes
15404 * TreeView.cs: Added missing attributes
15406 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
15408 * GridItemCollection.cs: Fix signatures
15410 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
15412 * XplatUI.cs: Updated build rev/date
15413 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
15414 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
15415 * Application.cs: Trigger context-specific ExitThread events
15417 2005-11-03 Jackson Harper <jackson@ximian.com>
15421 * GridTableStylesCollection.cs:
15426 * MonthCalendar.cs: Signature fixes
15428 2005-11-03 Jackson Harper <jackson@ximian.com>
15430 * TreeNodeCollection.cs: Remove should not be virtual.
15431 * TreeView.cs: Implement the last of the missing methods.
15433 2005-11-03 Jackson Harper <jackson@ximian.com>
15435 * TreeNodeConverter.cs: Implement to get off my class-status back.
15437 2005-11-03 Jackson Harper <jackson@ximian.com>
15439 * TreeView.cs: Hookup the bits for drag and drop.
15440 * TreeNode.cs: Don't cache the tree_view or index anymore, now
15441 that nodes can be moved from tree to tree easily this just causes
15442 all sorts of problems.
15443 * TreeNodeCollection: Don't need to give treenodes an index and
15444 treeview anymore when they are added, these are computed on the
15445 fly. Also make sure to remove a node before its added.
15447 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
15450 - Added CaretSelection enum
15451 - Added comparison methods to Marker struct, makes selection code
15453 - Added SelectionStart and SelectionEnd as 'moveable' location for
15454 the CaretDirection enum and handler
15455 - Added selection_prev variable to track optimized invalidation for
15456 word and line selection
15457 - Added SelectionVisible property (returns true if there is a valid
15459 - Switched CaretHasFocus to only display the caret if there is no
15461 - Avoiding StringBuilder.ToString to retrieve a single char, instead
15462 using the direct character index; should be much faster
15463 - Added various conditional debug statements
15464 - Fixed invalidation calculation for selection ranges
15465 - Added ExpandSelection() method to support word and line selection
15466 - Switched SetSelectionToCaret to use new Marker compare overloads
15467 - Added central IsWordSeparator() method to determine word
15468 separators/whitespace and FindWordSeparator() to streamline common
15469 usage of IsWordSeparator()
15471 - Removed unneeded grabbed variable, it was just mirroring
15473 - No longer firing OnTextChanged event when Text setter is called,
15474 since the base will fire the event for us
15475 - Added handling of Ctrl-Up/Down selection
15476 - Added handling of Shift-Cursorkey selection
15477 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
15479 - Added handling of Shift and Ctrl-Shift-Home/End selection
15480 - Removed some debug output
15481 - Added handling for single/double/tripple-click to place caret/
15482 select word/select line respectively (Fixes bug #76031)
15483 - Added support for drag expansion of word/line selection
15484 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
15487 2005-11-02 Jackson Harper <jackson@ximian.com>
15489 * X11Dnd.cs: If the drag is going to and from a MWF window just
15490 copy the data instead of sending it out through the X Selection
15493 2005-11-02 Jackson Harper <jackson@ximian.com>
15496 * XplatUIX11.cs: When in a drag we don't want motion notify
15497 messages to get passed on to the other controls. This prevents
15498 mouse move messages from showing up in the drag source.
15500 2005-11-02 Jackson Harper <jackson@ximian.com>
15502 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
15503 the correct button is release to end a drag.
15504 * XplatUIX11.cs: Make the button state internal so the drag system
15505 can access it. Dragging needs to know about all button releases,
15506 not just left button.
15508 2005-11-02 Miguel de Icaza <miguel@novell.com>
15510 * Form.cs (Icon): If the icon is null, reset the icon to the
15513 * Cursor.cs: When writing the AND-mask bitmap do not include the
15514 number of colors, but hardcode those to two (black and white),
15515 fixes the loading of color cursors (Paint Dot Net).
15517 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
15518 turn off autoscaling.
15520 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
15522 2005-11-02 Jackson Harper <jackson@ximian.com>
15524 * X11Dnd.cs: Make sure to send a status message if the pointer
15525 enters a control that can not accept a drop, otherwise the cursor
15526 isn't updated correctly. Also tried to compress the lines of code
15529 2005-11-02 Jackson Harper <jackson@ximian.com>
15531 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
15532 set actions correctly. This isn't perfect as XDND and win32 have
15533 some differences on how you allow actions. I'll clear this up by
15534 adding a path for drag from MWF to MWF windows.
15535 * XplatUIX11.cs: Hook into the dnd system.
15537 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
15539 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
15540 previously shown but they are no longer need it. Very obvious when
15541 browsing files with FileDialog.
15543 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
15545 * Control.cs: We always need to call OnPaintBackground. We pretty much
15546 ignore AllPaintingInWmPaint and always do the painting there, whether
15547 it's set or not, since we always ignore the WM_ERASEBKGND message
15548 (which we don't generate on X11). This fixes #76616.
15549 * Panel.cs: Removed unneeded background painting. This happens properly
15550 in Control.cs already
15552 2005-10-31 Mike Kestner <mkestner@novell.com>
15554 * Menu.cs: Add items to collection before setting their index.
15555 * MenuItem.cs : add range checking with ArgumentException like MS.
15558 2005-10-31 Jackson Harper <jackson@ximian.com>
15560 * ListBox.cs: Invalidate if the area is visible at all not just
15561 contained in the visible rect. Fixes unselection of semi visible
15564 2005-10-31 Jackson Harper <jackson@ximian.com>
15566 * Control.cs: Consistently name the dnd methods. Make them
15567 internal so we can override them to match some MS behavoir
15569 * Win32DnD.cs: Use the new consistent names.
15571 2005-10-31 Jackson Harper <jackson@ximian.com>
15573 * TreeView.cs: Don't draw the selected node when we lose focus.
15575 2005-10-31 Jackson Harper <jackson@ximian.com>
15577 * X11Dnd.cs: We still need to reset the state even though a full
15578 reset isn't being done, otherwise status's still get sent all over
15581 2005-10-31 Jackson Harper <jackson@ximian.com>
15583 * Control.cs: Make the dnd_aware flag internal so the dnd
15584 subsystem can check it. Catch exceptions thrown in dnd handlers to
15586 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
15587 * X11Dnd.cs: Handle null data in the converters. Set the XDND
15588 version when sending a XdndEnter. Use the control/hwnd dnd_aware
15589 flags to reduce the number of dnd enters/status's sent.
15591 2005-10-31 Jackson Harper <jackson@ximian.com>
15593 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
15595 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
15597 * PictureBox.cs: Fixes 76512
15599 2005-10-28 Jackson Harper <jackson@ximian.com>
15601 * X11Dnd.cs: Early implementation to support winforms being a drag
15602 source for data on X11. Also restructured the converters so they
15603 can go both ways now.
15604 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
15606 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
15608 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
15611 2005-10-27 Jackson Harper <jackson@ximian.com>
15613 * TreeNode.cs: Implement serialization so my DnD examples will work.
15615 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
15617 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
15618 TreeView.cs: Don't dispose objects that are not owned.
15620 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
15622 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
15623 should retrieve the current cursor and report that, but XplatUI
15624 doesn't (yet) have an interface for that (and I'm not sure I even
15626 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
15627 until any message loop processing is done (and the WM_SETCURSOR
15628 replaces the cursor to the proper one)
15630 - Fixed override behaviour, we can't set the cursor globally on X11,
15631 just for our windows.
15632 - Invalidating the System.Drawing X11 display handle when we are
15634 * Control.cs: Fix to make csc happy
15636 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
15639 - get_Text: Add last line (without trailing newline) to returned
15640 value (Fixes 76212)
15641 - get_TextLength: Count last line in returned length
15642 - ToString: Call Text property instead of duplicating code
15644 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
15646 * ImageList.cs: Dispose ImageAttributes objects.
15648 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
15650 * ImageList.cs: Use attribute constructors with less arguments where
15653 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
15655 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
15656 Use typeof instead of strings when assembly is referenced. Added
15657 some more comments.
15659 2005-10-21 Jackson Harper <jackson@ximian.com>
15661 * ListView.cs: Raise a double click event. Also tried to somewhat
15662 fix when the selectedindexchanged event is raised. Its still
15665 2005-10-21 Jackson Harper <jackson@ximian.com>
15667 * TreeView.cs: New method to invalidate the plus minus area of a
15668 node without invalidating the whole node (maybe this can be used
15669 in some more places).
15670 * TreeNodeCollection.cs: When adding to an empty node we need to
15671 invalidate its plus minus area so the little block shows up.
15673 2005-10-21 Jackson Harper <jackson@ximian.com>
15675 * TreeView.cs: Make sure that when we invalidate a node the bounds
15676 are big enough to cover the selected box and the focus
15677 rectangle. Use a different colour for the lines connecting nodes
15678 so they show up with all themes.
15680 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
15682 * NativeWindow.cs: Don't call anything that could call into the driver,
15683 we might be on a different thread.
15685 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
15687 * Control.cs(Dispose): Since Dispose might run on a different thread,
15688 make sure that we call methods that could call into the driver via
15689 invoke, to avoid thread issues
15691 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
15693 * XplatUI.cs: Removed finalizer
15694 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
15695 not allowing to be called on the finalizer thread.
15697 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
15700 - Reverted r51889 and r51891.
15701 - Added ImageListItem class that stores unmodified image items and image
15702 properties required to create list images until handle is created.
15703 - Added AddItem and moved image creation logic to AddItemInternal.
15704 - Added CreateHandle method that creates images based on unmodified items.
15705 - Added DestroyHandle that changes state to store unmodified items.
15706 - Add and AddStrip methods no more create handle.
15707 - ReduceColorDepth has no return value.
15708 - Dispose destroys handle.
15709 - Modified other methods to reflect the above changes.
15710 - Implemented key support.
15711 - Added profile 2.0 members and attributes.
15712 - Added private Reset and ShouldSerialize methods that provide the same
15713 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
15714 them as they are private.
15715 - Added some more comments about implementation details.
15717 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
15719 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
15721 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
15723 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
15725 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
15727 * DataGridDrawingLogic.cs: Fixes column hit calcultation
15728 * DataGridColumnStyle.cs: Remove debug message
15730 2005-10-20 Jackson Harper <jackson@ximian.com>
15732 * TreeView.cs: We can always get input keys regardless of whether
15733 or not editing is enabled. They are used for navigation.
15735 2005-10-20 Jackson Harper <jackson@ximian.com>
15737 * TreeNode.cs: Use the viewport rect for determining if a node
15738 needs to be moved for visibility. Don't use Begin/End edit. This
15739 calls a full refresh when its done.
15740 * TreeView.cs: New SetBottom works correctly. Make the viewport
15741 rect property internal so the treenodes can see it. When clicking
15742 on a node we need to ensure that its visible because it might just
15743 be partly visible when clicked.
15745 2005-10-20 Jackson Harper <jackson@ximian.com>
15747 * TreeNodeCollection.cs: Remove debug code.
15749 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
15751 * Datagrid.cs: Implements column sorting in Datagrid
15752 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
15754 2005-10-20 Jackson Harper <jackson@ximian.com>
15756 * TreeNodeCollection.cs: Remove items properly. Update the correct
15757 area after removing them.
15759 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
15761 * Datagrid.cs: Should not call base.OnPaintBackground
15763 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
15765 * XplatUIX11.cs (GetMessage):
15766 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
15767 window instead of client window
15768 - Now properly calculates NC_xBUTTONUP message coordinates
15769 - ScreenToMenu now properly calculates it's coordinates of whole
15770 window, since menus are in the whole window, not in the client
15772 - Added WholeToScreen coordinate translation method
15774 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
15776 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
15777 want to return a message, loop back to the beginning of the function
15778 and grab the next real message to process instead.
15780 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
15782 * Splitter.cs: Properly set limits if no filler control is used
15784 2005-10-19 Jackson Harper <jackson@ximian.com>
15786 * ColorDialog.cs: Don't show the help button if it is not enabled
15787 instead of disabling it (this is what MS does). Don't create the
15788 panel until the dialog is run, otherwise the vars (such as
15789 ShowHelp) are not set yet.
15791 2005-10-19 Jackson Harper <jackson@ximian.com>
15793 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
15794 are reduced when adding nodes.
15796 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
15799 2005-10-19 Jackson Harper <jackson@ximian.com>
15801 * FolderBrowserDialog.cs: End editing our treeview so the window
15802 actually gets refreshed.
15804 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
15806 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
15807 Obsoleted handling of WM_ERASEBKGND, now always draws our background
15810 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
15812 * MenuAPI.cs: Returns after Hidding window
15813 * XplatUIX11.cs: Added TODO found while debugging menu issues
15815 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
15817 * XplatUIX11.cs: Do not re-map the whole window when it's size
15818 becomes non-zero unless it's supposed to be actually visible
15820 2005-10-18 Jackson Harper <jackson@ximian.com>
15822 * TreeView.cs: We don't need to keep a count anymore.
15823 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
15824 use the Grow method.
15826 2005-10-18 Jackson Harper <jackson@ximian.com>
15828 * TreeNodeCollection.cs: Insert is not supported on arrays, so
15829 implement it manually here.
15831 2005-10-18 Jackson Harper <jackson@ximian.com>
15833 * ImageList.cs: Dont kill the list when the colour depth is
15834 changed, just change the colour depth of all the images.
15835 - Same goes for setting the image size. Just resize them all
15836 instead of killing the list softly.
15838 2005-10-18 Jackson Harper <jackson@ximian.com>
15840 * Control.cs: Don't invalidate empty rectangles.
15842 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
15845 - Adds checked item to the Checked/Item lists (where empty before)
15846 - Do not add items to the Selected lists if they are already present
15848 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
15849 - When deleting items make sure that we delete them for the Selected
15850 and Checked list also.
15852 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
15854 * Label.cs: Dispose objects no longer used
15855 * ThemeWin32Classic.cs: Dispose objects no longer used
15857 2005-10-18 Jackson Harper <jackson@ximian.com>
15859 * TabControl.cs: Don't refresh the whole control when the tabs are
15860 scrolled, we just need to refresh the tab area.
15862 2005-10-17 Jackson Harper <jackson@ximian.com>
15864 * XplatUIX11.cs: Compress code a little bit. Only calculate the
15865 after handle when we need it.
15867 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
15869 * Control.cs: When the parent size changes, recalculate anchor
15870 positions. Partial fix for #76462
15872 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
15874 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
15875 drawn. Fixes #76462
15877 2005-10-17 Jackson Harper <jackson@ximian.com>
15879 * MonthCalendar.cs: Don't create the numeric up down until our
15880 handle is created. Otherwise our handle is created in the
15881 constructor and we don't know if we are a WS_CHILD or WS_POPUP
15884 2005-10-17 Jackson Harper <jackson@ximian.com>
15886 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
15889 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
15890 * TreeNode.cs : small logical fix (was using local var instead of field)
15892 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
15894 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
15896 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
15898 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
15900 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
15903 - Re-implemented anchoring code. My first version was really broken.
15904 This fixes bug #76033. Unlike the previous implementation we will
15905 no longer have round errors since all numbers are calculated from
15906 scratch every time. Removed various anchor-related obsolete vars.
15907 - InitLayout no longer causes layout event firing and layout to be
15910 2005-10-16 Jackson Harper <jackson@ximian.com>
15912 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
15915 2005-10-16 Jackson Harper <jackson@ximian.com>
15917 * TabControl.cs: Remove debug code.
15919 2005-10-16 Jackson Harper <jackson@ximian.com>
15921 * XEventQueue.cs: Increase the default queue size (very simple
15922 apps needed to grow the queue).
15923 * Hwnd.cs: No finalizer so we don't need to suppress
15924 finalization. Compute the invalid area manually so a new rectangle
15925 does not newto be created.
15926 * ScrollableControl.cs: Don't set any params (otherwise visibility
15927 isn't set correctly).
15928 * MdiChildContext.cs: New constructor takes the mdi parent so it
15929 doesn't have to be computed and avoids a crash on windows. Draw
15930 the window icon properly, and allow the text to be seen.
15931 * Form.cs: Use new MdiChildContext constructor. Make sure the
15932 child context isn't null in wndproc.
15933 * TabControl.cs: Don't set focus, this is muddling keyboard
15934 behavoir. Expand the tab rows when a window size increase will
15935 allow extra tabs to be seen. Don't allow tabs smaller than the
15936 width of a window to be scrolled out of view.
15938 * TreeView.cs: Use measure string to calculate a nodes width, the
15939 width is cached and only updated when the text or the font is
15940 changed. Don't check for expand/collapse clicks on the first level
15941 nodes if root lines are disabled.
15943 2005-10-16 Ritvik Mayank <mritvik@novell.com>
15945 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
15947 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
15949 * DataGridBoolColumn.cs: fixes warning
15951 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
15953 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
15954 to match more to match more precisely the MS Net behavior
15956 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
15958 * Hwnd.cs: Added field to track if window is mapped
15960 - Unmap windows if they become 0-size, re-map when
15961 they are >0 again; fixes #76035
15962 - Re-set our error handler after initializing X11Desktop
15963 to override any error handlers Gtk or whatever was called
15966 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
15968 * CheckedListBox.cs: Removed unused vars
15969 * ListView.cs: Fixed signatures
15970 * RichTextBox.cs: Removed unused vars
15971 * TextBoxBase.cs: Removed unused vars
15972 * XplatUIWin32.cs: Removed unused vars
15973 * XplatUIX11.cs: Removed unused vars
15974 * XplatUI.cs: Updated version and date to latest published
15976 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
15978 * Cursor.cs: Added private .ctor to work around a bug in
15979 resourceset (Thanks to Geoff Norton for the help on this)
15980 * SplitterEventArgs.cs: Made fields accessible so we don't
15981 waste boatloads of objects and can reuse the same one
15983 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
15984 any captions and borders when generating screen coordinates
15985 * Splitter.cs: Reimplemented control, now fully complete, uses
15986 rubberband drawing, supports and obeys all properties, has
15989 2005-10-13 Miguel de Icaza <miguel@novell.com>
15991 * Form.cs (Form): Setup default values for autoscale and
15992 autoscale_base_size; Make these instance variables, not static
15995 (OnLoad): on the first load, adjust the size of the form.
15997 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
15999 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
16000 width argument to DrawReversibleRectangle()
16001 * XplatUIWin32.cs, XplatUIX11.cs:
16002 - Implemented width for DrawReversibleRectangle()
16003 - Added logic to DrawReversibleRectangle that recognizes a zero
16004 width or height and only draws a line in that situation
16006 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
16008 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
16009 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
16010 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
16011 method (it uses our FosterParent window to get a graphics context)
16013 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
16015 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
16016 and SetWindowBackground methods
16018 - Setting proper ControlStyles
16019 - We no longer call XplatUI.SetWindowBackground and XplatUI.
16020 EraseWindowBackground, instead we draw the window background
16021 ourselves in PaintControlBackground. This behaviour is
16022 required to match MS, where, when OnPaintBackground is not
16023 called, the background is not drawn.
16024 - Removed unneeded Refresh() in set_Text
16025 * Hwnd.cs: Dropped the ErasePending support. No longer needed
16027 - Created DeriveStyles method to translate from CreateParams to
16028 FormBorderStyle and TitleStyle, also handles BorderStyle (which
16029 matches FormBorderStyle enum values)
16030 - Consolidated SetHwndStyles and CalculateWindowRect border/title
16031 style calculations into single DeriveStyles method
16032 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
16033 from redrawing the whole window on any resize or expose.
16034 - Fixed CreateWindow usage of SetWindowValuemask. Before not
16035 all styles were applied to our whole/client window appropriately
16036 - Removed EraseWindowBackground() and SetWindowBackground() methods
16037 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
16038 no longer clear/redraw the background through X
16039 - Removed handling of erase_pending bit, we have no use for it (or
16042 - Removed generation and handling of WM_ERASEBKGND message
16043 - Removed EraseWindowBackground() and SetWindowBackground() methods
16044 - Removed handling of hwnd.ErasePending flag
16046 - Removed EraseWindowBackground() and SetWindowBackground() methods
16047 - We no longer call EraseWindowBackground on PaintEventStart, we
16048 ignore the fErase flag, erasing is handled in Control in the
16050 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
16051 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
16052 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
16053 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
16054 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
16055 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
16056 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
16058 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
16060 * PropertyGrids.cs: Get sub properties
16061 * PropertyGridView.cs: Fix drawing code
16063 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
16065 * ListBox.cs: Fixes 76383
16067 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
16069 * DataGridTextBoxColumn.cs: Sets location and size before attachment
16070 * ThemeWin32Classic.cs: Fixes border drawing and calculations
16071 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
16074 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
16076 * ComboBox.cs: Fixes border drawing
16078 2005-10-10 Miguel de Icaza <miguel@novell.com>
16080 * MimeIcon.cs: Ignore errors if the file can not be read.
16082 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
16084 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
16085 - Fixed border calculations
16086 - Fixed horizontal scrolling in single column listboxes
16087 - Fixed drawing issues
16089 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
16091 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
16092 FormBorderStyle enum
16093 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
16094 code to determine FormBorderStyles from CreateParams
16096 - Fixed bug where we'd set the wrong window styles if we were
16097 not creating an MDI window
16098 - Added call to XplatUI.SetBorderStyle when form borders are set
16099 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
16101 - Removed obsolete edge style
16102 - Switched from BorderStyle to FormBorderStyle
16104 2005-10-10 Jackson Harper <jackson@ximian.com>
16106 * Form.cs: Use the property to get the window handle instead of
16107 accessing it directly. Prevents a null reference exception.
16109 2005-10-10 Jackson Harper <jackson@ximian.com>
16111 * TreeView.cs: Don't adjust the rect given to DrawString now that
16112 our libgdiplus draws correctly.
16114 2005-10-08 Jackson Harper <jackson@ximian.com>
16116 * TreeView.cs: Don't try to find the clicked on node if there are
16117 no nodes in the tree.
16119 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
16125 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
16127 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
16128 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
16130 Use ResPool for brushes and dispose System.Drawing objects that
16131 are not used anymore.
16133 2005-10-07 Jackson Harper <jackson@ximian.com>
16135 * MdiChildContext.cs: Use the new borders instead of drawing them
16138 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
16140 * Calling UpdateBounds after changing the window's BorderStyle
16141 since the style can change the ClientSize
16143 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
16145 * Control.cs: Made PaintControlBackground virtual
16146 * Panel.cs: Overriding PaintControlBackground instead of using paint
16147 event; paint event method was interfering with 'real' users of the
16150 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
16152 * ThemeWin32Classic.cs: remove border drawing since it is handled
16153 by the base control class now and was causing double border drawing.
16155 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
16157 * Panel.cs: Redraw our background on paint. Not a pretty solution,
16158 but it does seem to match MS behaviour. This fixes bug #75324
16160 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
16162 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
16163 somewhat hackish looking
16165 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
16168 - We now accept Enter even if AcceptEnter is false, if the containing
16169 form does not have an AcceptButton configured (fixes bug #76355)
16170 - Calculations are now fixed to no longer use Width/Height, but
16171 ClientSize.Width/Height, since we now support borders (this was
16172 a result of fixing borders and therefore bug #76166)
16173 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
16174 true (fixes bug #76354)
16176 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
16179 - Defaulting BorderStyle and setting it in XplatUI when our window
16181 - Added enum check to InternalBorderStyle setter
16183 - Added drawing of window borders
16184 - Now properly calculates WM decorations offset for toplevel
16185 windows (fixes bug #74763)
16187 - Implemented BorderStyles for windows (we're letting win32 draw
16189 - Fixed the signature for SetWindowLong
16190 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
16191 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
16193 * UpDownBase.cs: Remove drawing of borders, this is handled by
16194 the driver, outside the client area
16195 * ListView.cs: Removed bogus border calculations. The control should
16196 be oblivious to borders, since those are not part of the client
16198 * X11DesktopColors.cs: Commented out (currently) unneeded variables
16199 * ThemeWin32Classic.cs: Removed border calculations from ListView
16202 2005-10-06 Jackson Harper <jackson@ximian.com>
16204 * MdiChildContext.cs: Clear out the old virtual position remove
16205 all the unneeded calls to CreateGraphics.
16207 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
16209 * TextControl.cs: Use proper color for highlighted text; fixes #76350
16211 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
16214 - Added loading and setting of our new default icon
16215 - Only set icon if window is already created
16217 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
16220 - Do not explicitly set the foreground and background colors, to
16221 allow inheriting from parents (fixes #76302)
16222 - Use Control's InternalBorderStyle property to deal with borders
16224 2005-10-06 Jackson Harper <jackson@ximian.com>
16226 * MdiChildContext.cs: Use the new xplatui function to draw a
16229 2005-10-06 Jackson Harper <jackson@ximian.com>
16231 * Form.cs: Add the parent before creating the child context cause
16232 we need the parent when setting up the child.
16234 2005-10-06 Jackson Harper <jackson@ximian.com>
16236 * FolderBrowserDialog.cs: redo the tree population code so a
16237 second thread isn't used. Should be a lot faster and more stable
16240 2005-10-05 Jackson Harper <jackson@ximian.com>
16242 * TreeView.cs: There are no expand/collapse boxes if the node has
16245 2005-10-05 Jackson Harper <jackson@ximian.com>
16247 * X11DesktopColors.cs: Get menu colours for the gtk theme.
16249 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
16251 * FileDialog.cs: Fix InitialDirectory
16253 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
16256 - Fixes changing between styles
16257 - Fixes simple mode
16258 - Fixes last item crashing when navigating with keyboard
16260 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
16262 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
16264 2005-10-05 Jackson Harper <jackson@ximian.com>
16266 * TreeView.cs: If updating the root node do a full refresh.
16267 * TreeNode.cs: The root node should be expanded by default. Also
16268 added a utility prop to tell if we are the root node.
16269 * TreeNodeCollection.cs: Only refresh if the node we are being
16270 added to is expanded. Also added a comment on a potential
16273 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
16275 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
16276 in dispose method. Fixes #76330
16278 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
16280 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
16282 - Implements vertical and horizontal scrolling using XplatUI
16283 - Fixes keyboard navagation
16284 - Fixes EnsureVisible
16286 - Handles and draws focus properly
16289 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
16291 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
16292 Create handle. NET_2_0: Destroy handle when value is null.
16294 2005-10-03 Jackson Harper <jackson@ximian.com>
16296 * ScrollBar.cs: My last scrollbar patch was broken. This is a
16297 revert and a new patch to prevent the thumb from refreshing so
16300 2005-10-02 Jackson Harper <jackson@ximian.com>
16302 * ScrollBar.cs: Don't update position if it hasn't actually
16303 changed. This occurs when you hold down the increment/decrement
16304 buttons and the thumb gets to the max/min.
16306 2005-10-01 Jackson Harper <jackson@ximian.com>
16309 * MdiChildContext.cs:
16310 * MdiClient.cs: Implement ActiveMdiChild in Form.
16312 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
16314 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
16316 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
16318 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
16321 2005-09-30 Jackson Harper <jackson@ximian.com>
16323 * ListBox.cs: Don't do a full refresh unless some data has
16326 2005-09-30 Jackson Harper <jackson@ximian.com>
16328 * TreeView.cs: Make sure that the checkboxes size is factored in
16329 even when not visible.
16331 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
16333 * FileDialog.cs: Fix Jordi's build break
16335 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
16338 - Use standard the Windows colours for the combobox as espected
16339 - Dispose objects that use resouces when no longer need them
16341 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
16343 * X11DesktopColors.cs: Initial incomplete implementation
16344 * XplatUIX11.cs: Added call to initialize X11DesktopColors
16346 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
16349 - Switched Theme color names to match the names defined in
16350 System.Drawing.KnownColors. Life's hard enough, no need to make
16352 - Added setters to all theme color properties so themes can set
16353 their color schemes. The setters also propagate the color changes
16354 to System.Drawing.KnownColors via reflection
16355 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
16356 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
16357 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
16358 use the new, more logical theme color names
16359 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
16361 * ThemeWin32Classic.cs:
16362 - Removed code to set the old classic Windows colors. Instead it
16363 now relies on the colors returned by System.Drawing.KnownColors
16364 which will be either modern static colors (Unix) or colors
16365 read from the user's configuration (Win32)
16366 - Updated to use the new, more logical theme color names
16367 - Switched DataGrid drawing code to use only Theme colors instead of
16368 a mix of System.Drawing.KnownColors and Theme colors
16369 - DrawFrameControl(): Removed code that fills the button area, the
16370 fill would overwrite any previous fill done by a control. This
16372 - Added DrawReversibleRectangle() stub
16373 * ScrollableControl.cs: Set visible state to false when scrollbars
16374 are removed (pdn fix)
16375 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
16376 DrawReversibleRectangle() method to allow drawing primitive
16378 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
16380 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
16382 * ImageList.cs: Add(Icon): Create handle.
16384 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
16387 * ThemeWin32Classic.cs:
16388 - Fixes detail mode
16390 - Issues with drawing
16392 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
16394 * ImageList.cs: Moved RecreateHandle back to ImageList as event
16395 source has to be the ImageList.
16397 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
16399 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
16401 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
16403 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
16405 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
16407 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
16409 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
16410 * GridItem.cs: Fixed TODOs
16411 * GridItemCollection.cs: Added ICollection interface
16413 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
16415 * ImageList.cs: Resize icons when needed.
16417 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
16420 - Fixes GetBounds and returns on screen rects
16422 - Fixes vertical and horzintal scrolling of items
16423 * ThemeWin32Classic.cs:
16426 2005-09-29 Raja R Harinath <harinath@gmail.com>
16428 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
16430 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
16432 * ImageList.cs: Added comments about handle creation. Moved Handle,
16433 HandleCreated and OnRecreateHandle implementations to ImageCollection.
16434 Handle is created in Add methods.
16436 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
16438 * DataGridDrawingLogic.cs:
16439 - Takes rows into account on Colum calculations
16440 - Returns the column when clickig
16442 - Fixes default HitTestInfo values
16443 - Fixes HitTestInfo.ToString
16444 - Fixes ResetBackColor
16446 2005-09-28 Jackson Harper <jackson@ximian.com>
16448 * MdiChildContext.cs: Obey rules for fixed sized windows (no
16449 sizing or cursor changes). Also added some temp code to draw the
16450 titlebars text (Makes dev a little easier).
16452 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
16454 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
16456 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
16458 * ListBox.cs: Fixes bug 76253
16460 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
16462 * ImageList.cs: Added comments about the current implementation. Added
16463 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
16464 Format32bppArgb to preserve transparency and can use Graphics.FromImage
16465 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
16466 with Bitmap.LockBits for better performance. Revised the whole file to
16467 match MS.NET behaviour and provide better performance. Non-public
16468 interface members are calling public members even when they throw
16469 NotSupportedException for better maintainability. Moved ColorDepth,
16470 ImageSize, ImageStream and TransparentColor implementations to
16471 ImageCollection for better performance as these properties are not used
16473 * ImageListStreamer.cs: Added a new internal constructor that takes an
16474 ImageList.ImageCollection and serializes Images based on
16475 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
16476 match ImageList property name.
16478 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
16480 * ListBox.cs: Fixes IndexFromPoint for last item
16482 2005-09-27 Jackson Harper <jackson@ximian.com>
16484 * Form.cs: Set the position of new mdi children correctly.
16486 2005-09-27 Jackson Harper <jackson@ximian.com>
16488 * MdiClient.cs: New mdi children need to be added to the back of
16489 the controls collection so the zorder is set correctly. Also add a
16490 count of all the child windows that have been created.
16492 2005-09-27 Jackson Harper <jackson@ximian.com>
16494 * Form.cs (CreateParams): Setup MDI forms correctly.
16496 2005-09-27 Jackson Harper <jackson@ximian.com>
16498 * MdiChildContext.cs:
16499 * MonthCalendar.cs:
16505 * ScrollableControl.cs:
16506 * ComboBox.cs: Add implicit controls using the new implict control
16507 functionality in ControlCollection. Also try to block multiple
16508 control add in a suspend/resume layout to save some cycles.
16510 2005-09-27 Jackson Harper <jackson@ximian.com>
16512 * Control.cs: Add functionality to the controls collection to add
16513 'implicit controls' these are controls that are created by the
16514 containing control but should not be exposed to the user. Such as
16515 scrollbars in the treeview.
16516 * Form.cs: The list var of the ControlsCollection is no longer
16517 available because of the potential of implicit controls getting
16518 ignored by someone accessing the list directly.
16520 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
16522 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
16523 loose it's parent. (Fixed bug introduced in r49103 when we added
16524 setting the child parent to null on Remove)
16526 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
16528 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
16529 * Splitter.cs: Added missing attributes for BorderStyle property.
16530 * TextBoxBase.cs: Marked Calculate* methods internal.
16531 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
16534 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
16536 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
16538 2005-09-25 Jackson Harper <jackson@ximian.com>
16540 * TreeView.cs: Update the node bounds correctly regardless of
16541 whether the node is visible.
16543 2005-09-25 Jackson Harper <jackson@ximian.com>
16545 * ImageList.cs: Don't dispose the image after it is added to the
16546 image list. Only reformat images that need to be resized.
16548 2005-09-25 Jackson Harper <jackson@ximian.com>
16550 * ImageList.cs: Don't set the format when changing the image.
16552 2005-09-25 Jackson Harper <jackson@ximian.com>
16554 * TreeView.cs: We can't just assume the node has a font. Use the
16555 treeviews font if no node font is available.
16557 2005-09-25 Jackson Harper <jackson@ximian.com>
16559 * TreeView.cs: Allow the scrollbars to be reset with negative
16561 - Don't add scrollbars to negative sized windows.
16563 2005-09-23 Jackson Harper <jackson@ximian.com>
16565 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
16566 old Mono.Posix. Also remove some stray code that shouldn't have
16569 2005-09-23 Jackson Harper <jackson@ximian.com>
16571 * TreeView.cs: Attempt at proper sizing of the horizontal
16572 scrollbar. Also don't resize the scrollbars unless they are
16575 2005-09-23 Jackson Harper <jackson@ximian.com>
16577 * TreeView.cs: We don't need to expand the invalid area when the
16578 selection changes, as this is all drawn in the node's bounding
16579 box. The area needs to be expanded (previous typo was contracting
16580 it) when the focus rect moves.
16582 2005-09-23 Jackson Harper <jackson@ximian.com>
16584 * TreeView.cs: Display the selection box under the correct
16585 circumstances. We were rendering white text with no selection box
16588 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
16590 * TextControl.cs(Split): Now updates selection start/end if it points
16591 into a line that's being split. Fixes a FIXME and bug #75258
16593 2005-09-23 Jackson Harper <jackson@ximian.com>
16596 * ListControl.cs: Don't use the path when retrieving binding
16597 managers from the binding context. My bat sense tells me that the
16598 path is only used on insertion.
16600 2005-09-22 Jackson Harper <jackson@ximian.com>
16602 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
16604 2005-09-22 Jackson Harper <jackson@ximian.com>
16606 * Splitter.cs: There are special cursors used for splitting.
16607 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
16609 2005-09-22 Jackson Harper <jackson@ximian.com>
16611 * Splitter.cs: Change the cursor appropriately when the splitter
16612 is moused over, so the user actually knows there is a splitter
16615 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
16617 * Label.cs : Fix ToString method to give same output as MS.NET
16619 2005-09-22 Jackson Harper <jackson@ximian.com>
16621 * TreeView.cs: Create the scrollbars when the handle is created
16622 and add them right away, just make them invisble. Also account for
16623 the window being shrunk vertically to the point that the vert
16624 scrollbar needs to be added.
16625 - Remove some 0.5 adjustments to get around anti aliasing issues.
16627 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
16629 * MainMenu.cs: Fixes default value
16630 * MenuItem.cs: Fixes default value
16632 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
16634 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
16636 2005-09-21 Jackson Harper <jackson@ximian.com>
16638 * Control.cs: Don't try to set the border style on the window if
16639 it hasn't been created. When the window is created the border
16640 style will be used.
16642 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
16644 * Control.cs (Update): Don't call XplatUI if we don't have a
16647 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
16649 * ContainerControl.cs: Instead of throwing an exception, print
16650 a one-time warning about Validate not being implemented
16651 * XplatUIWin32.cs: Removed debug output
16653 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
16655 * Control.cs: Only set XplatUI background if we expect the windowing
16656 system to handle the background. This stops controls that draw their
16657 own background from flickering
16659 * XplatUIX11.cs: Support custom visuals and colormaps for window
16660 creation. This allows, amongst other things, using MWF X11 windows
16663 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
16665 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
16666 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
16667 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
16668 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
16669 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
16670 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
16671 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
16672 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
16673 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
16674 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
16675 GridColumnStylesCollection.cs,
16676 IDataGridColumnStyleEditingNotificationService.cs,
16677 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
16678 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
16679 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
16680 TreeNodeCollection.cs, AmbientProperties.cs,
16681 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
16682 DataObject.cs, ErrorProvider.cs, Splitter.cs,
16683 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
16684 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
16685 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
16686 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
16687 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
16688 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
16689 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
16690 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
16691 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
16692 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
16693 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
16694 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
16695 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
16696 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
16697 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
16698 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
16699 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
16700 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
16701 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
16702 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
16703 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
16704 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
16705 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
16706 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
16707 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
16708 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
16709 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
16710 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
16711 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
16712 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
16713 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
16714 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
16715 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
16716 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
16717 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
16719 2005-09-21 Jackson Harper <jackson@ximian.com>
16721 * TreeNode.cs: Call Before/After Expand not Collapse when
16724 2005-09-20 Jackson Harper <jackson@ximian.com>
16726 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
16728 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
16732 - Fixes proper storing of subitems
16733 - Fixes not updated items
16735 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
16737 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
16738 things if our window handle isn't created yet. Also disabled
16739 debug for TextBoxBase
16741 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
16743 * MenuAPI.cs: Remove filtering of events to allow menu usage
16745 2005-09-20 Miguel de Icaza <miguel@novell.com>
16747 * Cursor.cs: Allow null to be passed to Cursor.Current.
16749 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
16751 * ThemeWin32Classic.cs:
16752 - Change some private methods/fields to protected virtual so that
16753 they can be accessed and overriden in derived classes
16754 - First refactoring of some methods. Derived themes now don't
16755 need to duplicate the complete code from ThemeWin32Classic
16757 - Added nice StatusBar
16758 - Derive from ThemeWin32Classic and not Theme
16759 - Removed duplicate ThemeWin32Classic code
16761 2005-09-20 Miguel de Icaza <miguel@novell.com>
16763 * Control.cs (ControlCollection.Add): If the value null is passed
16764 the control is ignored.
16766 Optimize this loop.
16768 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
16770 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
16771 PostQuitMessage state.
16772 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
16774 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
16776 * Application.cs: Our constructor will never get called, move
16777 initialization to fields; fixes bug #75933
16779 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
16782 - Allow files to be selected properly using file name
16784 - Add ability to change diretory (absolute / relative)
16785 using file name combo box.
16787 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
16790 - Fixes Multicolumn listboxes item wrong calculations
16791 - Allows to click when only one item is in the listbox
16792 - Fixes crash when no items using keyboard navigation
16794 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
16796 * ComboBox.cs: Reverted almost everything from the latest patch which
16799 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
16802 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
16804 - When DropDownStyle is Simple, it does not show scrollbar
16805 to the last item of the list.
16806 - When DropDownStyle is Simple, it crashed when the list was
16807 scrolled down with the down cursor key.
16808 - Fixed a bug that when DropDownStyle is DropDownList, the
16809 selected item was not shown.
16810 - The position of the selected item was not preserved when
16811 the next dropdown happened.
16812 * ThemeWin32Classic.cs:
16813 - Items were wrapped at the right end.
16814 * CheckedListBox.cs:
16817 - Items should be fully shown.
16818 - When resizing and vertical scrollbar disappeared, the item
16819 of index 0 should be on the top of the list.
16820 - GetItemRectangle should consider the size of ver. scrollbar
16822 - SizingGrip area should not be allocated when it is not
16824 - Now it reflects MinWidth of the containing panel and
16825 fixed a crash that happens when its width becomes so small.
16827 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
16829 * CheckedListBox.cs: Fixes bug 76028
16830 * ListBox.cs: Fixes bug 76028
16832 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
16834 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
16835 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
16837 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
16839 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
16841 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
16843 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
16845 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
16847 * IRootGridEntry.cs: Added
16848 * PropertyGridCommands.cs: Added
16849 * PropertiesTab.cs: Added missing methods and property
16850 * PropertyGridView.cs: Made class internal
16851 * PropertyGridTextBox.cs: Made class internal
16853 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
16855 * MimeIcon.cs: Try to check some other environment variables
16856 if "DESKTOP_SESSION" returns "default"
16858 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
16860 * ThemeNice.cs: Corrected background colors (e.g. menus)
16861 * ColorDialog.cs: Use correct background colors for controls
16863 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
16865 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
16867 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
16869 * RichTextBox.cs: Added initial implementation
16870 * lang.cs: Removed. Was accidentally checked in long time ago
16871 * TODO: Removed. Contents were obsolete
16873 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
16875 * PropertiesTab.cs : Added
16877 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
16879 * PropertyGrid.cs : Update
16880 * PropertyGridView.cs : Update
16881 * System.Windows.Forms.resx : Added images and strings
16883 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
16885 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
16887 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
16889 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
16890 a busy loop right after the Ungrab the X11 display is otherwise
16893 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
16895 * ThemeWin32Classic.cs: Optimise the use of clipping
16897 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
16899 * DataGrid.cs: fixes recursion bug
16901 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
16904 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
16907 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
16909 * ThemeNice.cs: Draw nice ProgressBars
16911 2005-09-01 Miguel de Icaza <miguel@novell.com>
16913 * VScrollBar.cs: Another buglet found by Aaron's tool.
16915 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
16918 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
16921 - Added nicer menu drawing
16925 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
16927 * CreateParams.cs (ToString): Made output match MS
16928 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
16929 handle is already created (to avoid forcing window creation)
16930 * XplatUIX11.cs: Set window text to caption after creating window,
16931 in case Text was set before window was created
16932 * Form.cs: Use this.Text instead of a static string as caption
16934 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
16936 * NotifyIcon.cs: Don't set the window to visible; this screws
16937 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
16938 OnPaint without a bitmap)
16939 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
16940 happen very often anyway; we could add the check to the WM_PAINT
16941 event generation code
16943 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
16945 * NotifyIcon.cs: Fill the icon area with a background color, to
16946 avoid 'residue' when transparent icons are drawn
16948 - Handle whole_window == client_window when destroying windows
16949 - SystrayAdd(): Set client_window to whole_window value to
16950 get mouse and other events passed to NotifyIcon
16952 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
16954 * Form.cs: Set proper default for Opacity property
16956 - ShowSystray(): Don't bother creating telling the OS
16957 about the systray item if no icon is provided
16958 - Now handles WM_NCPAINT message to deal with whole/client window
16960 - Create window as visible to not get caught by Expose optimization
16961 * Hwnd.cs: Removed debug message
16962 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
16963 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
16964 PaintEventStart/End to use new client argument
16966 - Commented out debug messages
16967 - Switched PaintEventStart/End to use new client argument
16968 * XplatUI.cs: Added client window bool to PaintEventStart()/
16969 PaintEventEnd() calls, to support drawing in non-client areas
16970 * XplatUIDriver.cs:
16971 - Added client window bool to PaintEventStart()/PaintEventEnd()
16972 calls, to support drawing in non-client areas
16973 - Added conditional compile to allow using MWF BeginInvoke
16976 - Added some conditional debug output
16977 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
16978 whole/client window split
16979 - Implemented handling of client argument to PaintEventStart()/End()
16981 - Throw exception if BeginInvoke() is called and the window handle
16982 or one of the window's parent handles is not created
16983 - Added conditional compile to allow using MWF BeginInvoke on
16985 - get_Parent(): Only sets parent if handle is created. This avoids
16986 forcing window handle creation when parent is set.
16987 - Now fires Layout and Parent changed events in proper order
16988 - Switched to use Handle instead of window.Handle for Z-Order setting,
16989 the get_Parent() patch above causes us to possibly get null for 'window'
16990 - Implemented handling of client argument to PaintEventStart()/End()
16991 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
16993 - Now sends a Refresh() to all child windows when Refresh() is called
16995 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
16997 * Form.cs: Added (non-functional) Opacity property
16998 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
17000 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
17001 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
17002 use export MONO_THEME=nice to activate it.
17003 Currently supported controls:
17007 - TabControl (TabAlignment.Top only, other will follow)
17008 * ThemeEngine.cs: Add theme nice
17009 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
17012 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
17014 * Splitter.cs: Resize docked control and its neighbor.
17016 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
17017 -- Making Windows with Menus layout correctly --
17018 * Form.cs : The first leg of the fix
17019 Menu setter - adjust Client Size as needed to make space for the menu
17020 SetClientSizeCore - doesn't call base version to be able to pass the
17021 menu handle to XplatUI.CalculateWindowRect
17022 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
17023 * XplatUIX11.cs: The critical second leg of the fix
17024 GetWindowPos needs to use a recalculated client_rect
17025 so that resizing the window doesn't break layout of child controls.
17026 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
17027 Lots of \t\n killed
17029 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
17031 * Label.cs: Now properly recalculates width and height on Font and Text
17032 changes if AutoSize is set
17034 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
17035 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
17037 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
17039 * ImageList.cs: Makes ToString method compatible with MS
17041 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
17043 * MenuAPI.cs: fixes bug 75716
17045 2005-08-11 Umadevi S <sumadevi@novell.com>
17046 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
17048 2005-08-11 Umadevi S <sumadevi@novell.com>
17049 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
17051 2005-08-10 Umadevi S <sumadevi@novell.com>
17052 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
17054 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
17056 * Menu.cs: fixes bug 75700
17057 * MenuAPI.cs: fixes navigation issues
17059 2005-08-09 Umadevi S <sumadevi@novell.com>
17060 * CheckedListBox.cs - simple fix for GetItemChecked.
17062 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
17064 * ComboBox.cs: Serveral fixes
17065 * ListBox.cs: Serveral fixes
17067 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
17069 * ComboBox.cs: Fixes FindString methods and GetItemHeight
17070 * ListBox.cs: Fixes FindString methods
17072 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
17074 * DataGrid.cs: fixes bugs exposed by new tests
17076 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
17078 * Mime.cs: Compile Mono assembly references only if compiling
17079 with Mono (Allows to build with VS.Net again)
17081 2005-07-28 Marek Safar <marek.safar@seznam.cz>
17083 * Control.cs (PaintControlBackground): Draw background image
17085 (CheckForIllegalCrossThreadCalls): Stubbed.
17087 * Form.cs (OnCreateControl): Center when should be centered.
17089 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
17091 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
17093 * Binding.cs: Binding to properties should be case unsensitive
17095 2005-07-18 vlindos@nucleusys.com
17097 * DataGrid.cs: fixes setmember order
17099 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
17101 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
17102 * FileDialog.cs: FileDialog is now resizable and uses the new
17105 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
17107 * DataGridTextBoxColumn.cs: default value
17108 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
17109 * GridTableStylesCollection.cs: fixes checking MappingName
17110 * DataGridDrawingLogic.cs: fixes drawing logic issues
17111 * DataSourceHelper.cs: rewritten to make compatible with more data sources
17112 * DataGrid.cs: fixes
17114 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
17116 * MimeGenerated.cs: Use case sensitive comparer for
17117 NameValueCollections
17119 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
17121 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
17122 * ThemeWin32Classic.cs: bug fixes, code refactoring
17123 * DataGridDrawingLogic.cs: bug fixes, code refactoring
17124 * DataGrid.cs: bug fixes, code refactoring
17125 * DataGridTextBox.cs: bug fixes, code refactoring
17126 * DataGridColumnStyle.cs: bug fixes, code refactoring
17127 * Theme.cs: bug fixes, code refactoring
17129 2005-07-01 Peter Bartok <pbartok@novell.com>
17131 * TextControl.cs: Quick fix for the reported crash on ColorDialog
17132 and other text box usage
17134 2005-07-01 Jackson Harper <jackson@ximian.com>
17136 * TabControl.cs: Make sure the bottom of the tab covers the pages
17139 2005-06-30 Peter Bartok <pbartok@novell.com>
17141 * Form.cs (ShowDialog): Assign owner of the dialog
17142 * TextBoxBase.cs: Always refresh caret size when deleting, caret
17143 might have been moved to a tag with different height
17145 2005-06-30 Jackson Harper <jackson@ximian.com>
17147 * Form.cs: Don't create an infinite loop when setting focus
17148 * MenuItem.cs: Don't dirty the parents if we don't have any
17150 2005-06-29 Ben Maurer <bmaurer@ximian.com>
17152 * LibSupport.cs: Rename
17154 2005-06-29 Peter Bartok <pbartok@novell.com>
17156 * TextBoxBase.cs: Re-align caret after deleting a character
17158 - DeleteChars(): Ensure that tag covers the provided position
17159 - StreamLine(): Drop reference for dropped tag
17161 2005-06-29 Peter Bartok <pbartok@novell.com>
17164 - Selections now work properly, anchoring at the initial location
17165 and properly extending in either direction (SetSelectionToCaret(),
17166 SetSelectionStart() and SetSelectionEnd())
17167 - No longer redraws the whole control on selection change, now
17168 calculates delta between previous and new selection and only
17169 invalidates/redraws that area
17170 - Fixed FindPos() math off-by-one errors
17171 - Changed DeleteChars() to verify the provided tag covers the
17172 provided position, selections may have a tag that doesn't cover
17173 the position if the selection is at a tag border
17174 - Fixed off-by-one errors in DeleteChars()
17175 - Added missing streamlining check in DeleteChars() to remove
17177 - Implemented Invalidate() method, now properly calculates exposures
17178 between two given lines/positions
17179 - Implemented SetSelection()
17180 - Obsoleted and removed FixupSelection()
17181 - Improved RecalculateDocument() logic, removing code duplication
17183 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17185 * LibSupport.cs: changes to match different input/output arguments.
17187 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17189 * LibSupport.cs: added libsupport.so init routine.
17191 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
17193 * ControlBindingsCollection.cs
17194 - Throws an exception on null datasource when adding
17195 - Checks for duplicated bindings when adding
17197 2005-06-28 Jackson Harper <jackson@ximian.com>
17199 * TreeView.cs (OnKeyDown): Support left and right properly
17200 (navigates as well as expanding and collapsing.
17201 - Add support for Multiply, this expands all the selected nodes
17203 - Fix some tabbing.
17205 2005-06-28 Jackson Harper <jackson@ximian.com>
17207 * TreeView.cs: Implement keyboard navigation, currently supports,
17208 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
17209 support for toggling checkboxes with the space bar.
17211 2005-06-28 Jackson Harper <jackson@ximian.com>
17213 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
17216 2005-06-28 Jackson Harper <jackson@ximian.com>
17218 * TreeView.cs: Add missing event.
17220 2005-06-27 Peter Bartok <pbartok@novell.com>
17223 - Made line ending size configurable (now allows for counting
17224 lineendings as \n or \r\n)
17225 - Added margin to viewport to keep caret visible on right side
17226 - Fixed translation routines for line/pos to documentpos to consider
17227 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
17228 - Fixed some line-endings to be unix style
17229 - Fixed Document.FormatText to perform it's calculations 1-based
17230 - Added descriptions for a few methods that might otherwise get
17232 - Added NOTE section with some basic conventions to remember at
17233 the top of the file
17234 - Major fixup for RichTextBox selection drawing:
17235 * Fixed crashes when multiple tags on a single line were selected
17236 * fixed selection box drawing not overlaying text
17237 * fixed bogus offset calculation for tags not starting at index 1
17238 * Switched behaviour from using multiple Substrings of a
17239 StringBuilder.ToString() to using multiple
17240 StringBuilder.ToString(start, length) statements, hoping this is
17241 faster (kept original version commented out in the code, in case
17242 original version was faster)
17243 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
17245 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
17248 2005-06-27 Jackson Harper <jackson@ximian.com>
17250 * TabControl.cs: Move to the left and right with the arrow
17251 keys. These keys don't cycle beyond first and last like
17252 tab. Refresh all the tabs when scrolling them to the left or
17255 2005-06-27 Jackson Harper <jackson@ximian.com>
17258 - ToString: Added method
17259 - CreateParams: Remove TODO and comment
17260 - OnKeyDown: Cycle through bounds properly.
17261 - SelectedIndex: Scroll to the right or left if we need to
17262 display the newly selected tab.
17264 2005-06-23 Jackson Harper <jackson@ximian.com>
17266 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
17269 2005-06-23 Jackson Harper <jackson@ximian.com>
17271 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
17272 CTRL-SHIFT-TAB, and HOME, END are there any others?
17274 2005-06-23 Jackson Harper <jackson@ximian.com>
17276 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
17278 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
17280 * DataGridTextBoxColumn.cs: fixes and enhancements
17281 * ThemeWin32Classic.cs: fixes and enhancements
17282 * DataGridBoolColumn.cs: fixes and enhancements
17283 * DataGridDrawingLogic.cs: fixes and enhancements
17284 * CurrencyManager.cs: fixes and enhancements
17285 * DataGrid.cs: fixes and enhancements
17286 * DataGridColumnStyle.cs: fixes and enhancements
17288 2005-06-22 Jackson Harper <jackson@ximian.com>
17290 * TabControl.cs: Add some missing methods that just call into the
17291 base. Make the TabPageCollection's IList interface behave in the
17292 same manner as the MS implementation.
17294 2005-06-22 Peter Bartok <pbartok@novell.com>
17296 * TextControl.cs: Added sanity check
17298 - Fixed wrapping behaviour, don't set wrap on single line controls
17299 (this fixes the breakage of colordialog introduced in an earlier
17301 - Added rudimentary support for autoscrolling right-aligned controls
17302 (still needs fixing, also, center alignment scroll is missing)
17304 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
17306 * ScrollBar.cs: Fixes thumbpos on Maximum values
17308 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
17310 * PropertyGridView.cs: Pass context information to UITypeEditors
17312 2005-06-21 Peter Bartok <pbartok@novell.com>
17315 - Now calling PositionCaret with absolute space coordinates
17316 - Enabled vertical scrolling
17317 - Better tracking of scrollbar changes, tied into WidthChange
17319 - Improved cursor tracking
17320 - Removed debug output
17322 - PositionCaret coordinates are now works in absolute space, not
17324 - Improved tracking of document size
17325 - Added events for width and height changes
17327 2005-06-21 Peter Bartok <pbartok@novell.com>
17329 * Form.cs: Set focus to active control when form is activated
17331 - Added word-wrap functionality to RecalculateLine()
17332 - Added some short function descriptions for VS.Net to aid in
17333 writing dependent controls
17334 - Added Caret property, returning the current coords of the caret
17335 - Added ViewPortWidth and ViewPortHeight properties
17336 - Added Wrap property
17337 - Added CaretMoved event
17338 - Removed some old debug code
17339 - Split() can now create soft splits
17340 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
17341 - Added method to format existing text
17342 - Fixed size/alignment calculations to use viewport
17343 - RecalculateDocument now can handle changing line-numbers while
17347 - Added some wrap logic, we don't wrap if alignment is not left
17348 - Added casts for scrollbar var, base class switched types to
17349 also support RichTextBoxA
17350 - Implemented handling of scrollbar visibility flags
17353 - Switched scrollbars type to RichTextBoxScrollBars to support
17355 - Added tracking of canvas width/height
17356 - Switched scrollbars to be not selectable (to keep focus on text)
17357 - Added central CalculateDocument() method to handle all redraw
17359 - Added ReadOnly support
17360 - Added WordWrap support
17361 - Fixed handling of Enter key (we now treat it as a DialogKey)
17362 - Fixed caret positioning when h or v scroll is not zero
17363 - Fixed placing/generation of vertical scrollbar
17364 - Added CalculateScrollBars() method to allow updating scrollbar
17365 limits and visibility
17366 - Fixed handling of horizontal scroll
17367 - Added handling of vertical scroll
17368 - Implemented auto-'jump' when caret moves to close to a left or
17369 right border and there is text to be scrolled into view (currently
17370 there's the potential for a stack overflow, until a bug in
17371 scrollbar is fixed)
17373 2005-06-21 Geoff Norton <gnorton@customerdna.com>
17375 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
17377 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
17381 - return application/x-zerosize for files with size zero
17382 (if no extension pattern matches).
17383 - check matches collection for strings too.
17384 - return only the first mime type if the name value
17385 collection has more than one mime type.
17387 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
17389 * PropertyGrid.cs: Cleaned up some TODOs
17390 * PropertyGridView.cs: Added support for UITypeEditors
17392 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
17394 * DataGrid.cs: clears cached value
17396 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
17398 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
17399 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
17400 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
17401 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
17403 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
17405 * ThemeWin32Classic.cs: fixes colour
17407 2005-06-15 Peter Bartok <pbartok@novell.com>
17409 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
17410 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
17411 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
17412 * Control.cs: Added some MWFCategory and MWFDescription attributes
17413 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
17415 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
17417 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
17420 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
17422 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
17423 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
17424 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
17425 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
17426 * DataGrid.cs: default datagrid settings for Default Styles, fixes
17427 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
17429 2005-06-13 Jackson Harper <jackson@ximian.com>
17431 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
17432 isn't printed when the user enables dropping. (X11 does accept
17435 2005-06-13 Jackson Harper <jackson@ximian.com>
17437 * TreeView.cs: Remove some TODOS.
17439 2005-06-13 Jackson Harper <jackson@ximian.com>
17441 * Form.cs: Hook into the mdi framework.
17442 * MdiClient.cs: Use the base control collections add method so
17443 parents get setup correctly. Set the default back colour and dock
17445 * MdiChildContext.cs: New class, this bad actor handles an
17446 instance of an MDI window. Right now there is only basic
17447 support. You can drag, close, and resize windows. Minimize and
17448 Maximize are partially implemented.
17450 2005-06-13 Jackson Harper <jackson@ximian.com>
17452 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
17453 freaky when both vals are negative. NOTE: There are probably other
17454 places in XplatUIX11 that this needs to be done.
17456 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
17458 * DataGrid.cs: implement missing methods, move KeyboardNavigation
17459 * DataGridColumnStyle.cs: fixes signature
17461 2005-06-12 Jackson Harper <jackson@ximian.com>
17463 * XplatUIX11.cs: Use sizing cursors similar to the ones on
17466 2005-06-11 Jackson Harper <jackson@ximian.com>
17468 * StatusBarPanel.cs: Signature cleanups. Implement
17471 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
17473 * DataGridTextBoxColumn.cs: Honors aligment
17474 * GridColumnStylesCollection.cs: Contains is case unsensitive
17475 * GridTableStylesCollection.cs: several fixes
17476 * DataGridTableStyle.cs: default column creation
17477 * DataGridDrawingLogic.cs: fixes
17478 * CurrencyManager.cs: ListName property
17479 * DataGrid.cs: multiple styles support
17480 * DataGridColumnStyle.cs: fixes
17483 2005-06-10 Peter Bartok <pbartok@novell.com>
17485 * Control.cs(Select): Moved SetFocus call to avoid potential
17486 loops if controls change the active control when getting focus
17487 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
17488 the up/down buttons
17490 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
17492 * ImageListConverter.cs: Implemented
17494 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
17496 * MonthCalendar.cs: Wired in NumericUpDown control for year
17498 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
17500 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
17501 DoubleClick events, since they are not meant to be fired.
17503 2005-06-09 Peter Bartok <pbartok@novell.com>
17505 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
17506 Jonathan's standalone controls into MWF, implemented missing
17507 events, attributes and methods; added xxxAccessible classes
17508 * AccessibleObject.cs: Made fields internal so other classes
17509 can change them if needed
17511 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
17513 * UpDownBase.cs: Complete implementation
17514 * NumericUpDown.cs: Complete implementation
17515 * DomainUpDown.cs: Complete implementation
17517 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
17519 * DataGridTextBoxColumn.cs: drawing fixes
17520 * DataGridCell.cs: fixes ToString method to match MSNet
17521 * DataGridTableStyle.cs: fixes
17522 * DataGridBoolColumn.cs: fixes, drawing
17523 * DataGridDrawingLogic.cs: fixes, new methods
17524 * DataGridTextBox.cs: Keyboard and fixes
17526 - Keyboard navigation
17528 - Row selection (single, multiple, deletion, etc)
17531 2005-06-07 Jackson Harper <jackson@ximian.com>
17533 * ThemeWin32Classic.cs: Clear the background area when drawing
17536 2005-06-06 Peter Bartok <pbartok@novell.com>
17538 * ImageListStreamer.cs: Fixed signature for GetData
17539 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
17541 - Added missing ChildAccessibleObject class
17542 - Added missing OnXXXFocus overrides, switched to using those
17543 instead of the event handler
17545 - Added Parent property for ControlAccessibleObject
17548 - Added ResetBindings()
17549 * ListBindingConverter.cs: Implemented some methods
17550 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
17551 * ImageList.cs: Implemented basic handle scheme, removed TODOs
17552 * ContainerControl.cs: Fixed signature, now subscribing to the
17553 ControlRemoved event instead of overriding the handler, LAMESPEC
17554 * CurrencyManager.cs: Added missing attribute
17555 * MonthCalendar.cs: Added missing properties
17557 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
17559 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
17561 2005-06-06 Gaurav Vaish and Ankit Jain
17563 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
17564 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
17566 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
17568 * Control.cs: fixes CreateParams Width / Height.
17570 2005-06-05 Peter Bartok <pbartok@novell.com>
17572 * Win32DnD.cs: Removed compilation warnings
17574 2005-06-05 Peter Bartok <pbartok@novell.com>
17576 * Control.cs (CreateParams): Since we don't know if one of the
17577 properties we use is overridden, lets make sure if we fail accessing
17578 we continue with a backup plan
17580 2005-06-05 Peter Bartok <pbartok@novell.com>
17583 - Removed debug output
17584 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
17586 - Plugged resource leak
17587 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
17590 2005-06-05 Peter Bartok <pbartok@novell.com>
17592 * XplatUIWin32.cs: Removed DnD code
17593 * Win32DnD.cs: Implemented drop source and drop target functionality
17595 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17597 * UpDownBase.cs: remove duplicate addition of event, enable some code
17598 that was commented out.
17599 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
17600 Validate input when a key is pressed. It works fine now for every
17601 combination of Hexadecimal. Only missing some drawing love when sharing
17602 space with other controls.
17604 2005-06-04 Peter Bartok <pbartok@novell.com>
17607 - We need to pass a window for DragDrop, so enable callback events
17608 - Added DnD callback events when being a DragSource
17609 * XplatUI.cs (StartDrag): Added window handle argument
17610 * XplatUIDriver.cs (StartDrag): Added window handle argument
17611 * QueryContinueDragEventArgs: Made fields internally accessible so
17612 drivers can set them
17613 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
17616 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
17618 * DataGridTextBoxColumn.cs: column text editing
17619 * DataGridTableStyle.cs: Respect columns styles created by the user
17620 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
17621 * DataGridBoolColumn.cs: bool column editing
17622 * DataGrid.cs: fixes to scrolling, properties, etc
17623 * DataGridTextBox.cs: handle keyboard
17624 * DataGridColumnStyle.cs: fixes
17626 2005-06-02 Jackson Harper <jackson@ximian.com>
17628 * ImageListStreamer.cs: Somewhat broken implementation of
17629 GetObjectData. The RLE needs some work to match MS properly.
17631 2005-06-02 Jackson Harper <jackson@ximian.com>
17633 * X11Dnd.cs: Attempting to keep at least one file in MWF
17636 2005-06-02 Peter Bartok <pbartok@novell.com>
17638 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
17641 2005-06-02 Peter Bartok <pbartok@novell.com>
17643 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
17644 * XplatUI.cs: Added DoDragDrop() method
17645 * XplatUIDriver.cs: Added DoDragDrop() method
17647 2005-06-02 Jackson Harper <jackson@ximian.com>
17649 * Splitter.cs: Implement BorderStyle.
17651 2005-06-02 Jackson Harper <jackson@ximian.com>
17653 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
17654 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
17657 2005-06-02 Peter Bartok <pbartok@novell.com>
17660 - Added Data setter
17661 - Fixed broken insertion code for SetData, now also
17662 overwrites any existing entry of the same format name
17663 * Hwnd.cs: Added list of pointers that automatically gets
17664 freed when the window is disposed
17665 * XplatUI.cs: Call driver initialization method when loading
17668 - OnDragLeave takes EventArgs, not DragEventArgs
17669 - Added setting of WS_EX_ACCEPTFILES style when dropping is
17671 - Forces style update when drop state changes
17672 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
17673 not perfect since we cannot (yet) call the IDataObject.GetData()
17674 method, we keep getting 0x80004005 error, dunno why)
17676 2005-06-02 Peter Bartok <pbartok@novell.com>
17678 * DragEventArgs.cs: Make fields internal so we can cache the
17679 object and re-set the fields from XplatUI
17681 2005-06-02 Jackson Harper <jackson@ximian.com>
17683 * Control.cs: Add some internal methods so the DnD subsystem can
17684 raise DnD events. Also call into the driver when AllowDrop is set.
17686 * XplatUIDriver.cs: New method for setting whether or not a window
17687 is allowed to accept drag and drop messages.
17689 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
17691 * ScrollBar.cs: Make sure that values sent in Scroll events
17692 are always between Maximum and Minimum.
17694 2005-06-01 Marek Safar <marek.safar@seznam.cz>
17696 * Menu.cs: Call MenuChanged when menuitem visibility has been
17698 * MenuItem.cs: Rebuild menu when item is (not) visible.
17699 * MainMenu.cs: MainMenu has special MenuChanged.
17700 * Theme.cs: Caption and FrameBorderSize are not fixed.
17701 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
17702 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
17704 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
17705 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
17707 2005-05-30 Jackson Harper <jackson@ximian.com>
17709 * DataFormat.cs: We can't statically initialize this stuff because
17710 it calls into the xplatui and could create a loop. So we lazy init
17713 2005-05-28 Jackson Harper <jackson@ximian.com>
17715 * Control.cs: Proper implementation of Product(Name/Version).
17717 2005-05-27 Jackson Harper <jackson@ximian.com>
17719 * DataObject.cs: Dont crash if no data is found.
17721 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
17722 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
17723 as per status page, guessing it should be set to true
17725 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
17727 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
17728 * DataGridTableStyle.cs: set proper formatting text, def header text
17729 * ThemeWin32Classic.cs: new themable paramaters
17730 * DataGridBoolColumn.cs: paint check box, get data, fixes
17731 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
17732 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
17733 * DataGridColumnStyle.cs: fixes
17734 * Theme.cs: new themable paramaters
17736 2005-05-26 Peter Bartok <pbartok@novell.com>
17738 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
17740 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
17741 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
17743 2005-05-24 Peter Bartok <pbartok@novell.com>
17745 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
17746 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
17747 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
17748 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
17749 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
17750 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
17751 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
17752 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
17753 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
17754 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
17755 missing attributes, etc
17756 * DataGridPreferredColumnWidthTypeConverter.cs: Added
17758 2005-05-24 Peter Bartok <pbartok@novell.com>
17760 * Help.cs: Added, implemented trivial functions, throws up MessageBox
17761 when user tries to get help
17762 * DataObject.cs, DataFormats.cs, LinkArea.cs,
17763 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
17764 to suppress warnings
17765 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
17766 avoid unreachable code warning
17768 2005-05-20 Peter Bartok <pbartok@novell.com>
17770 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
17772 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
17774 * DataGridTextBoxColumn.cs: Basic painting methods
17775 * DataGridTableStyle.cs: Set table style in the column
17776 * ThemeWin32Classic.cs: Use Theme for colors
17777 * DataGridDrawingLogic.cs: Implement more drawing
17778 * DataGrid.cs: drawing, theming, enhacements, fixes
17779 * DataGridColumnStyle.cs: fixes, drawing
17780 * Theme.cs: theming for Datagrid
17782 2005-05-20 Peter Bartok <pbartok@novell.com>
17784 * Cursor.cs: Implemented GetObjectData() method
17786 2005-05-20 Peter Bartok <pbartok@novell.com>
17788 * Cursors.cs: Added setting of cursor name
17790 - Implemented constructors
17791 - Implemented Draw and DrawStretched
17792 - Implemented Current property
17793 - Implemented == and != operators
17794 - Implemented Dispose()
17795 - Implemented ToString
17796 - Added missing attributes
17798 - Added missing reset for OverrideCursor when DoEvents is called
17799 - Fixed creation of cursor, logic was wrong
17801 - Added missing reset for OverrideCursor when DoEvents is called
17802 - Fixed creation of cursor, bit arrays were swapped
17803 * Clipboard.cs: Removed obsolete MonoTODO attribute
17805 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
17807 * ComboBox.cs: fixes OnSelectedItemChanged
17808 * ControlBindingsCollection.cs: fixes item range check
17810 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
17813 - Calc preferred height properly
17814 - Implement missing properties
17816 * NumericUpDown.cs: Implement missing events
17818 2005-05-19 Jackson Harper <jackson@ximian.com>
17820 * TabControl.cs: New method that resizes the tab pages before
17821 redrawing them. This as needed as the control is double buffered
17822 and sizing will not be recalculated unless ResizeTabPages is
17824 * TabPage.cs: Set base.Text instead of Text in the constructor so
17825 that UpdateOwner does not get called. Use the new Redraw method of
17826 TabControl instead of Refresh so the sizing is recalculated.
17827 * ThemeWin32Classic.cs: Draw the text for button tabs.
17829 2005-05-19 Jackson Harper <jackson@ximian.com>
17831 * Control.cs: Paint control background images. Fix typo where
17832 PaintControlBackground was not getting called correctly.
17834 2005-05-19 Peter Bartok <pbartok@novell.com>
17836 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
17837 I can investigate, apparently I broke FileDialog
17839 2005-05-19 Marek Safar <marek.safar@seznam.cz>
17841 * AxHost.cs: Some simple properties.
17842 * Control.cs: window must be accessible after ctor.
17843 * Form.cs: Added TransparencyKey property.
17844 * TextBoxBase.cs: Implemented Clear. Text property can be null.
17845 * XplatUIWin32.cs: SetBorderStyle implemented.
17847 2005-05-18 Peter Bartok <pbartok@novell.com>
17849 * DataObject.cs: Entries are not global but particular to the
17850 DataObject, now it behaves that way
17851 * XplatUIWin32.cs: Implemented Clipboard methods
17852 * Clipboard.cs: Implemented
17853 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
17854 * XplatUIOSX.cs: Updated to final clipboard prototypes
17855 * XplatUIX11.cs: Implemented Clipboard methods
17856 * XplatUIDriver.cs: Updated to final clipboard prototypes
17857 * XplatUIStructs.cs:
17858 - Added BITMAPINFOHEADER struct
17859 - Added ClipboardFormats enum
17861 - Added ClipboardStruct
17862 - Added Atom enum items for clipboard types
17863 - Fixed atom types for Selection event structures
17865 - Added internal properties and methods for drivers to enumerate
17867 - Switched initialization method to allow drivers to assign their
17868 own IDs even for the MS predefined clipboard IDs
17869 * XplatUI.cs: Updated to final clipboard interface
17871 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
17872 * PropertyGridView.cs: Fixed compiler warnings.
17874 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
17875 * PropertyGrid.cs: Added some event calls
17876 * PropertyGridView.cs: Change drawing code to use double buffering
17877 * PropertyGridTextBox.cs: Changed Text property name
17878 * GridItem.cs: Added Bounds property.
17879 * GridEntry.cs: Added Bounds property.
17881 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
17883 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
17884 since GetType() may not return the correct type if the object is
17887 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
17889 * TreeNodeCollection.cs: fixes get/set item ranges
17891 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
17893 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
17895 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
17897 * ComboBox.cs: Fix item range comparation
17898 * ListView.cs: Fix item range comparation
17900 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
17903 - Clear example panel when OnPaint is called
17904 - Better solution for displaying the example panel text
17905 - Select default indexes in the ListBoxes
17907 2005-05-11 Geoff Norton <gnorton@customerdna.com>
17909 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
17911 2005-05-11 Peter Bartok <pbartok@novell.com>
17913 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
17914 * SelectionRangeConverter.cs: Implemented
17915 * PropertyGrid.cs: Fixed attribute value
17917 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
17918 - Added Sebastien Pouliot's CAS Stack Propagation fixes
17919 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
17920 that's common to all drivers. First methods to go there are
17921 Sebastien Pouliot's CAS Stack Propagation helper methods
17922 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
17923 Sebastien Pouliot for CAS Stack Propagation
17925 2005-05-11 Geoff Norton <gnorton@customerdna.com>
17928 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
17930 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
17932 * DataGridTextBoxColumn.cs: fixed some members
17933 * GridColumnStylesCollection.cs: indexed column is case insensitive
17934 * DataGridTableStyle.cs: fixes
17935 * ThemeWin32Classic.cs: add new theme parameter
17936 * Theme.cs: add new theme parameter
17937 * DataGridDrawingLogic.cs: Datagrid's drawing logic
17938 * DataGrid.cs: fixes, new internal properties, etc.
17939 * DataGridColumnStyle.cs: allows to set grid value
17942 2005-05-10 Peter Bartok <pbartok@novell.com>
17944 * AccessibleObject.cs:
17945 - Removed MonoTODO attribute on help, method is correct
17946 - Fixed Bounds property
17947 * AxHost.cs: Moved MonoTODO
17948 * ButtonBase.cs: Now setting AccessibleObject properties
17949 * RadioButton.cs: Setting proper AccessibleObject role
17950 * CheckBox.cs: Setting proper AccessibleObject role
17951 * ControlBindingsCollection.cs: Added properties, methods and attributes
17952 * DataFormats.cs: Fixed awkward internal API, and changed to enable
17953 userdefined DataFormats.Format items as well
17954 * ListControl.cs: Removed data_member from the public eye
17955 * OpenFileDialog.cs:
17956 - Made class sealed
17957 - Added missing attributes
17958 * SaveFileDialog.cs: Added missing attributes
17959 * ImageListStreamer.cs: Fixed code that caused warnings
17960 * LinkLabel.cs: Removed unreachable code
17961 * TreeView.cs: Fixed code that caused warnings
17962 * PropertyGridView.cs: Fixed code that caused warnings
17963 * GridColumnStylesCollection.cs: Added missing attributes
17964 * GridTableStylesCollection: Added missing attribute
17965 * PropertyManager: Added .ctor
17966 * SecurityIDType: Added
17967 * DataObject.cs: Implemented class
17968 * LinkArea.cs: Added missing attribute
17970 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
17972 * RadioButton.cs: call base method to allow to fire OnClick event
17973 * UpDownBase.cs: OnMouseUp call base method
17974 * CheckedListBox.cs: call base method before returning
17975 * TrackBar.cs: call base method before returning
17978 2005-05-10 Peter Bartok <pbartok@novell.com>
17980 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
17983 2005-05-10 Peter Bartok <pbartok@novell.com>
17985 * DataFormats.cs: Implemented
17986 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
17987 XplatUIX11.cs: Added Clipboard APIs
17988 * XplatUIWin32.cs: Implemented Clipboard APIs
17989 * FolderBrowserDialog.cs: Added missing event, attributes
17991 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
17993 * CheckBox.cs: call base method to allow to fire OnClick event
17995 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
17997 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
17999 2005-05-06 Peter Bartok <pbartok@novell.com>
18001 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
18002 * Screen.cs: Implemented
18003 * HelpNavigator.cs: Added
18004 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
18006 * HelpProvider.cs: Implemented all we can do until we have a CHM
18007 help library (which means that "What's This" does work now)
18009 2005-05-06 Jackson Harper <jackson@ximian.com>
18011 * XplatUIX11.cs: Fix waking up the main loop.
18013 2005-05-05 Peter Bartok <pbartok@novell.com>
18015 * XplatUI.cs: Updated revision
18016 * Form.cs: Removed enless loop
18017 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
18018 * Label.cs (OnPaint): Added call to base.OnPaint()
18019 * ToolTip.cs: Made ToolTipWindow reusable for other controls
18020 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
18021 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
18023 * ButtonBase.cs: Moved base.OnPaint() call to end of method
18024 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
18025 to ToolTip.ToolTipWindow for drawing and size methods; this allows
18026 reuse of ToolTipWindow by other controls
18027 * SizeGrip.cs: Moved base.OnPaint() call to end of method
18028 * XplatUIX11.cs: Now clipping drawing area (experimental)
18029 * PictureBox.cs: Moved base.OnPaint() call to end of method
18030 * Theme.cs: Fixed ToolTip abstracts to match new format
18031 * ErrorProvider.cs: Implemented
18033 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
18035 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
18039 - Implements LinkBehavior
18040 - Fixes many issues
18042 2005-05-03 Jackson Harper <jackson@ximian.com>
18044 * ListView.cs: Calculate the scrollbar positioning on resize and
18045 paint, so they get put in the correct place.
18047 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
18049 * ColorDialogs.cs: The small color panels are now handled by
18050 SmallColorControl. This fixes drawing of the focus rectangle
18051 and adds a 3D border.
18053 2005-05-03 Peter Bartok <pbartok@novell.com>
18055 * Control.cs: Modified version of Jonathan Chamber's fix for
18058 2005-05-03 Jackson Harper <jackson@ximian.com>
18060 * ListView.cs: Remove redraw variable. Control now handles whether
18061 or not a redraw needs to be done, and will only raise the paint
18062 event if redrawing is needed.
18064 2005-05-03 Jackson Harper <jackson@ximian.com>
18066 * Splitter.cs: No decorations for the splitter form. Cache the
18069 2005-05-03 Jackson Harper <jackson@ximian.com>
18071 * TreeView.cs: Use dashed lines to connect nodes. Use the
18072 ControlPaint method for drawing the focus rect instead of doing
18075 2005-05-02 Peter Bartok <pbartok@novell.com>
18077 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
18079 2005-04-29 Jackson Harper <jackson@ximian.com>
18081 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
18082 entire image buffer. Just clear the clipping rectangle.
18084 2005-04-29 Jackson Harper <jackson@ximian.com>
18086 * ThemeWin32Classic.cs: Don't draw list view items that are
18087 outside the clipping rectangle.
18089 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
18091 * ListBox.cs: added horizontal item scroll
18093 2005-04-29 Jackson Harper <jackson@ximian.com>
18095 * ThemeWin32Classic.cs: Remove some old debug code that was
18096 causing flicker with the new double buffering code.
18098 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
18100 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
18101 behave like combobox and comboboxlist (still not sure if this is
18104 2005-04-28 Jackson Harper <jackson@ximian.com>
18106 * ThemeWin32Classic.cs: Don't fill the middle of progress
18107 bars. This fills areas outside of the clip bounds that don't need
18110 2005-04-28 Jackson Harper <jackson@ximian.com>
18112 * Control.cs: Don't expose functionality to touch the image buffers.
18114 * ListView.cs: We do not need to (and no longer can) manipulate
18115 the image buffers directly. All of this is handled by Control.
18117 2005-04-28 Peter Bartok <pbartok@novell.com>
18119 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
18120 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
18121 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
18123 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
18126 - Adjust control's height for non-simple comboboxes (bug fix)
18128 * MenuAPI.cs: remove unused var
18129 * ScrollBar.cs: remove unsed var
18131 * ListBox.cs: unselect items when clearing
18133 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
18135 * ListControl.cs: honors OnPositionChanged and default Selected Item
18136 * ListBox.cs: unselect items when clearing
18138 2005-04-27 Jackson Harper <jackson@ximian.com>
18140 * X11Keyboard.cs: Initialize a default keyboard and give a warning
18141 if a "correct" keyboard is not found. This will make us not crash,
18142 but might give some users bad keyboard layouts...seems to be the
18143 same thing rewind does.
18145 2005-04-27 Jackson Harper <jackson@ximian.com>
18147 * BindingManagerBase.cs: Attach the current/position changed
18148 handlers to their respective events.
18150 2005-04-27 Jackson Harper <jackson@ximian.com>
18152 * Control.cs: Make sure that the first WM_PAINT does a full draw,
18154 * ThemeWin32Classic.cs: Don't fill the background for picture
18155 boxes. This could overright user drawing.
18156 * ComboBox.cs: Just fill the clipping rect not the entire client
18157 rect when drawing the background. This prevents pieces of the
18158 image buffer from getting overwritten and is theoretically faster.
18160 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
18162 * ComboBox.cs: Databinding support fixes, fire missing events
18163 * ListControl.cs: implement missing methods and properties, fixes
18164 * ThemeWin32Classic.cs: Databiding support on Drawing
18165 * CheckedListBox.cs: Databinding support fixes, fire missing events
18166 * ListBox.cs: Databinding support fixes, fire missing events
18168 2005-04-25 Peter Bartok <pbartok@novell.com>
18170 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
18172 2005-04-25 Jackson Harper <jackson@ximian.com>
18174 * TreeView.cs: Use the horizontal scrollbars height not width when
18175 determining how much of the client area is available.
18177 2005-04-25 Jackson Harper <jackson@ximian.com>
18179 * Control.cs: Double buffering is handled differently now. As per
18180 the spec, the extra buffer is created in the WM_PAINT message and
18181 passed down to the control's drawing code.
18189 * PropertyGridView.cs:
18201 * DateTimePicker.cs:
18203 * TreeView.cs: Update to new double buffering system.
18204 * MonthCalendar.cs: Uncomment block, as Capture is now
18205 working. Update to new double buffering
18206 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
18207 * PaintEventArgs.cs: New internal method allows us to set the
18208 graphics object. This is used for double buffering.
18209 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
18210 rectangle. The internal paint_area var has been removed from
18211 StatusBar. The clipping rect should be used instead.
18212 * Theme.cs: Give the PictureBox drawing method a clipping rect.
18213 * TabPage.cs: The RefreshTabs method was removed, so just call the
18214 tab controls Refresh method now.
18215 * TabControl.cs: Update to new double buffering. Make sure the
18216 handle is created before sizing the tab pages, otherwise we will
18217 get stuck in a loop.
18219 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
18221 * LinkLabel.cs: Fix typo, bug #74719; patch
18222 from Borja Sanchez Zamorano
18224 2005-04-22 Jackson Harper <jackson@ximian.com>
18226 * TreeNode.cs: Implement Handle stuff.
18227 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
18229 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
18231 * DataGridTextBoxColumn.cs: call base constructors, fixes
18232 * GridColumnStylesCollection.cs: missing events, methods, and functionality
18233 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
18234 * DataGridTableStyle.cs: implements create default column styles
18235 * DataGridBoolColumn.cs: which types can handle
18236 * DataGrid.cs: missing methods, fixes, new functionality
18237 * DataGridColumnStyle.cs: fixes
18239 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
18240 * FolderBrowserDialog.cs:
18241 - Use a thread to fill the TreeView
18242 - Adjusted some sizes
18244 2005-04-19 Peter Bartok <pbartok@novell.com>
18246 * LinkLabel.cs: (Re-)create the pieces when setting the Text
18247 property. Fixes #74360.
18249 2005-04-19 Jackson Harper <jackson@ximian.com>
18251 * XEventQueue.cs: Lock when getting the lockqueue size.
18252 * PictureBox.cs: Call base OnPaint
18254 2005-04-19 Peter Bartok <pbartok@novell.com>
18256 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
18257 messages were no longer being processed (this broke BeginInvoke)
18260 2005-04-18 Jackson Harper <jackson@ximian.com>
18262 * TreeView.cs: buglet that caused node images to get drawn
18263 regardless of whether or not they were in the clipping rectangle.
18265 2005-04-18 Jackson Harper <jackson@ximian.com>
18267 * CurrencyManager.cs: There are four rules for GetItemProperties:
18268 - If the type is an array use the element type of the array
18269 - If the type is a typed list, use the type
18270 - If the list contains an Item property that is not an object, use
18272 - use the first element of the list if there are any elements in
18275 2005-04-17 Jackson Harper <jackson@ximian.oom>
18277 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
18278 click. This handles offsets for scrolling properly and reduces
18279 memory. Also fixed GetNode to not offset now that TopNode works
18281 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
18283 2005-04-17 Jackson Harper <jackson@ximian.com>
18285 * CursorConverter.cs: Initial implementation.
18287 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
18289 * ListControl.cs: work towards complex data binding support on ListControl
18290 * CurrencyManager.cs: work towards complex data binding support on ListControl
18291 * ListBox.cs: work towards complex data binding support on ListControl
18294 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
18296 * GridTableStylesCollection.cs: fixes name and constructor
18297 * DataGridTableStyle.cs: fixes
18298 * DataGridBoolColumn.cs: fixes names and constructors
18299 * DataGrid.cs: define methods and properties. Some init implementations
18300 * DataGridCell.cs: define methods and properties. Some init implementations
18301 * GridTablesFactory.cs: Define methods and properties
18303 2005-04-15 Geoff Norton <gnorton@customerdna.com>
18305 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
18306 graphics port changes. We still want the coordinates in global screen
18309 2005-04-14 Jackson Harper <jackson@ximian.com>
18311 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
18312 check plus minus or checkbox clicks unless those features are enabled.
18314 2005-04-14 Jackson Harper <jackson@ximian.com>
18316 * TreeView.cs: Add methods for setting the top and bottom visible
18317 nodes. TreeNode::EnsureVisible uses these methods.
18318 * TreeNode.cs: Implement EnsureVisible
18320 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
18322 * Form.cs: Pospone menu assignation if the window has not been created yet
18323 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
18326 2005-04-12 Jackson Harper <jackson@ximian.com>
18328 * TreeView.cs: Set the TopNode properly when scrolling
18329 occurs. This has the added benifit of reducing the amount of
18330 walking that needs to be done when drawing. Also removed an old
18332 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
18334 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
18336 * Timer.cs: fixes interval setting when the timer is already enabled
18338 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
18340 * FolderBrowserDialog.cs: First approach
18342 2005-04-09 Peter Bartok <pbartok@novell.com>
18344 * FolderBrowserDialog: Added
18346 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
18348 * LinkLabel.cs: move drawing code into the theme
18349 * ThemeWin32Classic.cs: drawing code and painting background bugfix
18350 * Theme.cs: define DrawLinkLabel method
18352 2005-04-05 Jackson Harper <jackson@ximian.com>
18354 * BindingContext.cs: Use weak references so these bad actors don't
18355 stay alive longer then they need to.
18357 2005-04-05 Jackson Harper <jackson@ximian.com>
18359 * ListControl.cs: Basic implementation of complex databinding.
18361 * ListBox.cs: Add calls to ListControl databinding methods.
18363 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
18366 - Don't change PopupButtonState to Normal when the
18367 PopupButton gets pressed several times.
18368 - Renamed ButtonPanel to PopupButtonPanel
18370 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
18372 * ColorDialog.cs: Use cached objects instead of creating them
18373 * LinkLabel.cs: Use cached objects instead of creating them
18374 * Splitter.cs: Use cached objects instead of creating them
18375 * FontDialog.cs: Use cached objects instead of creating them
18376 * PropertyGridView.cs: Use cached objects instead of creating them
18377 * MessageBox.cs: Use cached objects instead of creating them
18378 * FileDialog.cs: Use cached objects instead of creating them
18379 * ThemeWin32Classic.cs: Use cached objects instead of creating them
18380 * TreeView.cs: Use cached objects instead of creating them
18382 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
18384 * Control.cs: use Equals to compare the font since no == op
18385 * ScrollBar.cs: use Equals to compare the font since no == op
18387 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
18389 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
18391 2005-04-01 Jackson Harper <jackson@ximian.com>
18393 * Binding.cs: Implement IsBinding.
18394 * BindingManagerBase.cs:
18395 * PropertyManager.cs:
18396 * CurrencyManager.cs: Add IsSuspended property.
18398 2005-04-01 Jackson Harper <jackson@ximian.com>
18400 * Binding.cs: Had some IsAssignableFrom calls backwards.
18402 2005-04-01 Jackson Harper <jackson@ximian.com>
18404 * Binding.cs: Handle null data members when pulling data.
18405 * PropertyManager.cs: Handle the data member being a property that
18408 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
18410 * DataGridTextBoxColumn.cs: fixes signature
18411 * DataGrid.cs: calls right constructor
18413 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
18415 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
18416 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
18417 * GridTableStylesCollection.cs: implements GridTableStylesCollection
18418 * DataGridTableStyle.cs: implements DataGridTableStyle
18419 * DataGridBoolColumn.cs: implements DataGridBoolColumn
18420 * DataGridTextBox.cs: implements DataGridTextBox
18421 * DataGridColumnStyle.cs: implements DataGridColumnStyle
18423 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
18425 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
18427 2005-03-29 Peter Bartok <pbartok@novell.com>
18430 - Properly implemented CompanyName property
18431 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
18432 returns a path that includes CompanyName, ProductName and
18433 Version (fixes bug #70330)
18435 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
18437 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
18440 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
18442 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
18444 - Added ReadOnly CheckBox
18445 - Further refactoring: moved some code from Open-/SaveFileDialog
18448 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
18450 * OpenFileDialog.cs: Fixed CheckFileExists
18452 Moved FileView and DirComboBox outside FileDialog class.
18453 They can now be used outside FileDialog
18455 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
18457 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
18458 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
18460 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
18462 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
18463 - Added missing CreatePrompt property in SaveDialog
18464 - Overall SaveDialog handling should be better now
18465 - Added non standard ShowHiddenFiles property
18466 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
18467 - Added InitialDirectory and RestoreDirectory support
18469 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
18471 * FileDialog.cs: Made dirComboBox usable
18473 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
18475 * FileDialog.cs: Added Filter support (case sensitiv)
18477 2005-03-24 Jackson Harper <jackson@ximian.com>
18479 * TabControl.cs: Need a couple more pixels for the lines.
18481 2005-03-23 Jackson Harper <jackson@ximian.com>
18483 * TabControl.cs: Give the tab page focus when it is selected.
18485 2005-03-23 Jackson Harper <jackson@ximian.com>
18487 * TabControl.cs: Account for the drawing of tabs borders when
18488 invalidating. If the slider was clicked dont do click detection on
18491 2005-03-23 Jackson Harper <jackson@ximian.com>
18493 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
18495 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
18497 * CategoryGridEntry.cs: Added
18498 * GridItem.cs: Added helper properties
18499 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
18500 * GridEntry.cs: Updated code for collection
18501 * PropertyGrid.cs: Cleaned up some formatting
18502 * PropertyGridView.cs: Added drop down functionality for enums.
18503 * GridItemCollection.cs: Added enumerator logic
18504 * PropertyGridEntry.cs: Added
18506 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
18509 - Removed unnecessary commented code
18510 - Fixed handling for entering the filename manually in the combobox
18512 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
18514 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
18516 2005-03-18 Peter Bartok <pbartok@novell.com>
18518 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
18519 them being touching the border
18521 2005-03-18 Peter Bartok <pbartok@novell.com>
18523 * TextControl.cs: Quick hack to center text better
18525 2005-03-18 Peter Bartok <pbartok@novell.com>
18528 - Don't throw NotImplemented exceptions, just print a notice once
18529 instead (requested by Miguel). This makes running existing SWF
18532 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
18533 - Added context menu trigger on right click
18534 * Panel.cs: Trigger invalidate on resize
18536 - Removed old double-buffer drawing
18537 - Added ResizeRedraw style to force proper update of statusbar
18539 - Removed debug output
18540 * ThemeWin32Classic.cs:
18541 - Fixed drawing of status bar, now draws Text property if there
18542 are no defined panels
18544 2005-03-18 Jackson Harper <jackson@ximian.com>
18546 * ImageList.cs: When the image stream is set pull all the images
18548 * ImageListStreamer.cs: Implement reading image list streams.
18550 2005-03-18 Peter Bartok <pbartok@novell.com>
18552 * ThemeWin32Classic.cs (DrawPictureBox):
18553 - Fixed calculations for centered drawing
18554 - Fixed drawing for normal mode, not scaling the image on normal
18556 2005-03-18 Peter Bartok <pbartok@novell.com>
18558 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
18561 - Made Open/Save button the accept button for FileDialog
18562 - Tied the cancel button to the IButtonControl cancel button
18563 - Save/Open now properly builds the pathname
18564 - Now handles user-entered text
18565 - Preventing crash on right-click if no item is selected
18566 - Fixed Text property, now uses contents of textbox
18567 - Fixed SelectedText property, now just returns the text part that
18568 is selected in the text box
18570 2005-03-18 Jackson Harper <jackson@ximian.com>
18572 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
18573 rect, make sure to de-adjust the interior rect after drawing the
18576 2005-03-18 Peter Bartok <pbartok@novell.com>
18578 * MenuAPI.cs: Remove menu *before* executing selected action to
18579 prevent the menu from 'hanging around'
18581 2005-03-17 Geoff Norton <gnorton@customerdna.com>
18583 * XplatUIOSX.cs: Implemented WorkingArea property
18585 2005-03-17 Peter Bartok <pbartok@novell.com>
18587 * XplatUIX11.cs: Fixed menu coord calculations
18588 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
18589 for calculating offsets
18591 2005-03-17 Peter Bartok <pbartok@novell.com>
18593 * Hwnd.cs: Do not consider menu presence for default client
18594 rectangle location/size
18595 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
18596 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
18597 translation functions
18598 * FileDialog.cs: Fixed (what I presume is a) typo
18600 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
18602 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
18603 X access (avoids X-Async errors)
18605 2005-03-16 Jackson Harper <jackson@ximian.com>
18607 * TabControl.cs: Raise the SelectedIndexChanged event.
18609 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
18611 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
18612 - Removed vertical ToolBar and replaced it with a custom panel
18613 (desktop and home button already work)
18614 - Added Help button (some controls get resized or relocated then)
18615 - Draw correct text depending on Open or Save.
18616 - Fixed some typos...
18618 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
18621 - Only change Maximum and Minimum when need it (bug fix)
18623 2005-03-15 Peter Bartok <pbartok@novell.com>
18625 * Form.cs: Use Handle for icon, to trigger creation if
18626 the window does not yet exist
18628 - CanSelect: Slight performance improvement
18629 - Focus(): Preventing possible recursion
18630 - Invalidate(): Removed ControlStyle based clear flag setting
18631 - WM_PAINT: fixed logic for calling OnPaintBackground
18632 - WM_ERASEBKGND: Fixed logic, added call to new driver method
18633 EraseWindowBackground if the control doesn't paint background
18635 - Moved EraseWindowBackground() method to internal methods
18636 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
18637 is sent via SendMessage on BeginPaint call on Win32
18639 - Added EraseWindowBackground() method
18640 - No longer sends WM_ERASEBKGND on .Expose, but on call to
18641 PaintEventStart, which more closely matches Win32 behaviour
18642 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
18643 - Fixed SetFocus() to properly deal with client and whole windows
18644 * Hwnd.cs: Added ErasePending property
18645 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
18646 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
18648 2005-03-12 Geoff Norton <gnorton@customerdna.com>
18651 - Fix hard loop when timers exist.
18652 - Fix bugs with middle and right click for 3 button mice.
18654 2005-03-11 Peter Bartok <pbartok@novell.com>
18657 - get_WorkingArea: Need to call X directly, GetWindowPos only
18658 returns cached data now
18659 - Added sanity check to GetWindowPos hwnd usage
18661 2005-03-11 Jackson Harper <jackson@ximian.com>
18663 * BindingManagerBase.cs: This method isn't used anymore as
18664 PullData now updates the data in the control.
18666 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
18668 * Form.cs: fixes menu drawing on X11
18669 * MenuAPI.cs: fixes menu drawing on X11
18671 2005-03-11 Peter Bartok <pbartok@novell.com>
18673 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
18674 from Jonathan Gilbert; should fix bug #73606
18675 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
18676 in Screen coordinates. Thanks, Jordi.
18677 * Form.cs: Added missing attribute
18679 2005-03-11 Peter Bartok <pbartok@novell.com>
18682 - Rudimentary Mdi support
18683 - Removed outdated FormParent code
18684 - Implemented lots of missing properties and methods, still missing
18685 transparency support
18686 - Added missing attributes
18687 - Implemented support for MaximumBounds
18688 - Added firing of various events
18689 * XplatUI.cs: Added SetIcon() method
18690 * XplatUIDriver.cs: Added SetIcon() abstract
18691 * XplatUIOSX.cs: Stubbed out SetIcon() method
18693 - Implemented SetIcon() support
18694 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
18695 - Switched to unix line endings
18697 - Made POINT internal so for can access it as part of MINMAX
18698 - Implemented SetIcon() support
18699 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
18700 native Mdi support again, might have to go managed)
18701 * Control.cs: Now fires the StyleChanged event
18702 * MdiClient.cs: Added; still mostly empty
18704 2005-03-10 Peter Bartok <pbartok@novell.com>
18706 * SaveFileDialog.cs: Added emtpy file
18708 2005-03-08 Peter Bartok <pbartok@novell.com>
18710 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
18711 in turn triggers OnCreateContro) when creating a handle for the
18713 * TextControl.cs: Fixed endless loop in certain cases when
18714 replacing the current selection
18716 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
18719 - Honors NewValue changes in Scroll events allowing apps to change it
18720 - Adds First and Last Scroll events
18721 - Fixes Thumb events
18723 2005-03-07 Peter Bartok <pbartok@novell.com>
18725 * Hwnd.cs: Added DefaultClientRectangle property
18726 * XplatUI.cs: Now using the X11 driver Where() method, which provides
18727 more detailed debug information
18729 - Fixed size-change feedback loop, where we would pull an old size
18730 off the queue and mistakenly change our window's size to an
18732 - Now compressing ConfigureNotify events, to reduce looping and
18734 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
18737 2005-03-07 Jackson Harper <jackson@ximian.com>
18739 * Binding.cs: Push data pushes from data -> property. Check if the
18740 property is readonly when attempting to set it.
18742 2005-03-07 Jackson Harper <jackson@ximian.com>
18744 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
18745 instead of IsSubclassOf. Pulling data now sets the value on the
18747 * PropertyManager.cs:
18748 * CurrencyManager.cs: Just need to pull data when updating now,
18749 because PullData will set the value on the control.
18751 2005-03-04 Jackson Harper <jackson@ximian.com>
18753 * Binding.cs: Implement data type parsing and converting on pulled
18754 data. TODO: Are there more ways the data can be converted?
18756 2005-03-04 Jackson Harper <jackson@ximian.com>
18758 * Binding.cs: Support <Property>IsNull checks. Also bind to the
18759 controls Validating method so we can repull the data when the
18760 control loses focus.
18762 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
18765 - Fixes null string format
18768 - Adds enum type checks
18769 - Fixes redrawing and recalc need after changing some properties
18770 - Fixes on focus_item set after the event
18771 - Fixes adding columns after the control has been created
18773 * ThemeWin32Classic.cs:
18774 - Fixes CheckBox focus rectangle
18775 - Fixes ColumnHeader drawing
18778 2005-03-03 Jackson Harper <jackson@ximian.com>
18780 * Binding.cs: Bind to <Property>Changed events so we can detect
18781 when properties are changed and update the data.
18783 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
18786 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
18787 - Fixes ImageList constructor with ImageList container
18788 - Fixes image scaling (wrong parameters at DrawImage)
18790 2005-02-02 Jackson Harper <jackson@ximian.com>
18792 * Binding.cs: Make property searches case-insensitive. Eliminate
18793 some duplicated code.
18795 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
18798 - Handle focus event
18799 - Fix scrollbar events
18800 - Discard highlighted item if remove it
18801 - Fixes SelectedItem with strings
18803 2005-03-01 Peter Bartok <pbartok@novell.com>
18806 - Fixed Visible property, now follows (once again) parent chain
18807 to return false if any control in the chain is visible=false
18808 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
18809 - Fixed several places where is_visible instead of Visible was used
18810 - Implemented FIXME related to focus selection when setting focused
18811 control to be invisible
18813 * XplatUIWin32.cs: Now using proper method to find out if window is
18814 visible. Thanks to Jordi for pointing it out
18816 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
18818 * ComboBox.cs: show/hide scrollbar instead of creating it
18820 2005-02-27 Jackson Harper <jackson@ximian.com>
18822 * CurrencyManager.cs: Add PositionChanged stuff.
18824 2005-02-27 Peter Bartok <pbartok@novell.com>
18826 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
18827 * XplatUIOSX.cs: Added GetMenuOrigin() stub
18828 * XplatUIWin32.cs: Implemented GetMenuOrigin()
18830 - Implemented GetMenuDC()
18831 - Implemented GetMenuOrigin()
18832 - Implemented ReleaseMenuDC()
18833 - Implemented generation of WM_NCPAINT message
18834 - Implemented generation and handling of WM_NCCALCSIZE message
18835 * Form.cs: Added debug helper message for Jordi's menu work
18837 - Modified ClientRect property; added setter, fixed getter to handle
18838 setting of ClientRect
18839 - Added MenuOrigin property
18841 2005-02-26 Peter Bartok <pbartok@novell.com>
18844 - Destroys the caret if a window that's being destroyed contains it
18845 - Ignores expose events coming from the X11 queue for windows that
18846 already are destroyed
18847 - Now uses the proper variable for handling DestroyNotify, before we
18848 marked the wrong window as destroyed
18849 - Improved/added some debug output
18851 2005-02-26 Peter Bartok <pbartok@novell.com>
18853 * X11Keyboard.cs: Fixes to work on 64bit systems
18855 2005-02-26 Peter Bartok <pbartok@novell.com>
18858 - Now calling OnHandleDestroyed from DestroyHandle()
18859 instead of Dispose()
18860 - Removed bogus call to controls.Remove() from DestroyHandle()
18862 2005-02-26 Peter Bartok <pbartok@novell.com>
18864 * Control.cs: Properly destroy child windows when our handle is
18867 2005-02-25 Peter Bartok <pbartok@novell.com>
18870 - Added 'DriverDebug' define to allow tracing XplatUI API calls
18871 - Alphabetized Static Methods and Subclasses
18874 - Added XException class to allow custom handling of X11 exceptions
18875 - Created custom X11 error handler, tied into XException class
18876 - Added support for MONO_XEXCEPTIONS env var to allow the user
18877 to either throw an exception on X errors or continue running
18878 after displaying the error
18879 - Added handling of DestroyNotify message
18880 - Added handler for CreateNotify message (still disabled)
18881 - Improved (tried to at least) Where method to provide file and lineno
18883 - Added XErrorHandler delegate
18884 - Added XRequest enumeration (to suppor translation of errors)
18886 2005-02-25 Jackson Harper <jackson@ximian.com>
18888 * PropertyManager.cs: Implement editing features
18889 * CurrencyManager.cs:
18890 * Binding.cs: First attempt at UpdateIsBinding
18891 * BindingManagerBase.cs: Call UpdateIsBinding before
18892 pushing/pulling data.
18894 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
18896 * MenuAPI.cs: Respect disabled items
18897 * ThemeWin32Classic.cs
18898 - Caches ImageAttributes creation for DrawImageDisabled
18899 - Fixes vertical menu line drawing
18900 - Draws disabled arrows in disable menu items
18902 2005-02-24 Peter Bartok <pbartok@novell.com>
18905 - Added UserData property to allow associating arbitrary objects
18907 - Fixed leak; now removing Hwnd references from static windows array
18909 - Fixed Graphics leak in PaintEventEnd
18910 - Removed usage of HandleData, switched over to Hwnd class
18911 * HandleData.cs: Removed, obsoleted by Hwnd.cs
18913 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
18915 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
18916 * ScrollBar.cs: Fixes bug
18917 * TrackBar.cs: removes death code, clipping, mimize refreshes,
18918 keyboard navigation enhancements
18920 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
18922 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
18923 * GroupBox.cs: Add control styles
18924 * Label.cs: Add control styles
18925 * UpDownBase.cs: Add control styles
18926 * ListBox.cs: Add control styles
18927 * XplatUIWin32.cs: Fixes wrong parameter order
18930 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
18932 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
18934 2005-02-23 Jackson Harper <jackson@ximian.com>
18936 * PropertyManager.cs: Implement property binding. This doesn't
18937 seem to work yet though as (I think) there are some bugs in
18938 System.ComponentModel.PropertyDescriptor.
18939 * BindingContext.cs: Use new PropertyManager constructor.
18941 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
18943 * ProgressBar.cs: use clip region in ProgressBar
18944 * ThemeWin32Classic.cs: use clip region in ProgressBar
18946 2004-02-22 Jackson Harper <jackson@ximian.com>
18948 * BindingsCollection.cs: Remove some debug code.
18950 2005-02-22 Jackson Harper <jackson@ximian.com>
18952 * BindingContext.cs:
18953 * ControlBindingsCollection.cs:
18954 * CurrencyManager.cs:
18956 * BindingManagerBase.cs: Initial implementation
18957 * BindingsCollection.cs: Add an internal contains method that the
18958 BindingManagerBase uses to ensure bindings aren't added twice to
18960 * PropertyManager.cs: Stubbed out.
18962 * ContainerControl.cs: Hook up databinding
18964 2005-02-22 Geoff Norton <gnorton@customerdna.com>
18967 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
18968 Fixed Invalidate/Update chain.
18969 Fixed tons of other minor bugs (this is almost a complete rewrite).
18971 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
18973 * ComboBox.cs: do subcontrol creation when the control is created
18975 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
18977 * Label.cs: fixes image drawing (image and imagelist)
18978 * ThemeWin32Classic.cs: cache brushes
18980 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
18982 * Form.cs: Move menu drawing code to Theme class
18983 * ComboBox.cs: Move ComboBox drawing code to Theme class
18984 * MenuItem.cs: Move menu drawing code to Theme class
18985 * MenuAPI.cs: Move menu drawing code to Theme class
18986 * ThemeWin32Classic.cs: New methods
18987 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
18988 * ListBox.cs: Move Listbox drawing code to Theme class
18989 * Theme.cs: New methods
18991 2005-02-20 Peter Bartok <pbartok@novell.com>
18994 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
18995 only process mnemonics on those)
18996 - Fixed event sequence for key handling; first calling
18997 ProcessKeyEventArgs now
18999 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
19000 for processing non-character keys
19001 - Fixed WM_CHAR to generate proper event sequence before processing
19002 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
19005 2005-02-19 Peter Bartok <pbartok@novell.com>
19007 * UserControl.cs: Added TextChanged event; added attributes
19008 * SizeGrip.cs: Implemented resizing and optional display of grip
19009 * Form.cs: Fixed attribute
19010 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
19011 Changed meaning of ScrollWindow bool argument; instead of the
19012 clear attribute (which will be true usually anyway), it gives the
19013 option of moving child controls as well.
19015 - Changed to match new ScrollWindow argument
19016 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
19017 now handles the implicit parent window a WM puts around us
19018 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
19020 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
19021 * TreeView.cs: Adjusted to new ScrollWindow arguments
19023 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
19025 * Form.cs: Menu integration with non-client area
19026 * MenuItem.cs: Menu integration with non-client area
19027 * MenuAPI.cs: Menu integration with non-client area
19029 2005-02-18 Peter Bartok <pbartok@novell.com>
19031 * MethodInvoker.cs: Added
19032 * MdiLayout.cs: Added
19033 * SendKeys.cs: Started implementation
19034 * ErrorIconAlignment.cs: Added
19036 2005-02-18 Peter Bartok <pbartok@novell.com>
19038 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
19039 * Form.cs: Added handling for Menu-related Non-client messages
19041 2005-02-17 Peter Bartok <pbartok@novell.com>
19043 * UpDownBase.cs: Fixed typo, compilation errors
19044 * DomainUpDown.cs: Fixed attribute value
19046 2005-02-16 Miguel de Icaza <miguel@novell.com>
19048 * UpDownBase.cs: Attach entry events.
19050 Add ForeColor property, Focused, InterceptArrowKeys (interception
19051 does not work yet).
19053 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
19056 - Redraw non client are on Setmenu
19057 - Calc proper menu starting point
19059 2005-02-17 Peter Bartok <pbartok@novell.com>
19061 * Application.cs: Fixed message_filter check
19063 2005-02-17 Peter Bartok <pbartok@novell.com>
19065 * Application.cs: Now calls registered message filters
19066 * DockStyle.cs: Fixed attribute
19067 * Form.cs: Fixed attribute
19068 * Menu.cs: Fixed attribute
19069 * ToolTip.cs: Fixed attribute
19070 * TreeNode.cs: Added missing attributes and arranged in regions
19071 * PropertyGrid.cs: Fixed signatures
19072 * TreeNodeCollection.cs: Added attributes
19073 * Splitter.cs: Added missing attributes; arranged into regions
19074 * TabPage.cs: Added missing attributes; arranged into regions
19075 * TextBoxBase.cs: Added missing attributes
19076 * TextBox.cs: Added missing attributes
19077 * ArrangeDirection.cs: Added missing attributes
19078 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
19079 * ToolBarButton.cs: Fixed attributes
19080 * AnchorStyles.cs: Fixed attribute
19081 * TrackBar.cs: Fixed attributes
19082 * TabControl.cs: Added missing attributes and arranged into regions
19083 * ToolBar.cs: Fixed attribute
19084 * StatusBar.cs: Fixed signature, organized into regions and added
19086 * StatusBarPanel.cs: Fixed attributes
19087 * ContentsResizedEventArgs.cs: Implemented
19088 * ContentsResizedEventHandler.cs: Implemented
19089 * DateBoldEventArgs.cs: Implemented
19090 * DateBoldEventHandler.cs: Implemented
19091 * UpDownEventArgs.cs: Implemented
19092 * UpDownEventHandler.cs: Implemented
19094 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
19096 * Form.cs: first Menu NC refactoring
19097 * MenuAPI.cs: first Menu NC refactoring
19099 2005-02-16 Peter Bartok <pbartok@novell.com>
19101 * ImeMode.cs: Added missing attributes
19102 * Menu.cs: Fixed attribute
19103 * GroupBox.cs: Fixed attribute
19104 * Label.cs: Fixed attribute
19105 * ColorDialog.cs (RunDialog): Removed TODO attribute
19106 * ComboBox.cs: Fixed attributes
19107 * ListControl.cs: Added missing attributes
19108 * PropertyGrid.cs: Fixed attributes
19109 * Control.cs: Fixed attributes
19110 * ListViewItem.cs: Added TypeConverter attribute
19111 * NotifyIcon.cs: Fixed attributes
19112 * ListView.cs: Fixed attributes
19113 * ButtonBase.cs: Fixed attribute
19114 * ImageList.cs: Added missing attributes
19115 * ContainerControl.cs: Fixed signature
19116 * CheckedListBox.cs: Fixed attribute; added missing attributes
19117 * Panel.cs: Fixed attributes
19118 * PropertyTabChangedEventArgs.cs: Added missing attribute
19119 * PropertyValueChangedEventArgs.cs: Added missing attribute
19120 * Binding.cs: Fixed attribute
19121 * ListViewItemConverter: Implemented ListViewSubItemConverter class
19122 * ListBox.cs: Fixed attribute; added missing attributes;
19123 * ScrollableControl.cs: Added missing attributes
19124 * PictureBox.cs: Added missing attributes; implemented missing property
19125 * DateTimePicker.cs: Added missing attributes
19126 * Theme.cs (ToolWindowCaptionHeight): Fixed type
19127 * MonthCalendar.cs: Fixed attributes
19128 * StatusBarPanel.cs: Added missing attributes
19129 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
19131 2005-02-16 Peter Bartok <pbartok@novell.com>
19133 * TextBoxBase.cs: The previous method to enforce height yet remember
19134 the requested high was less than ideal, this is an attempt to do
19136 * Control.cs: Added comment about possible problem
19137 * Copyright: Updated format
19138 * GridItemType.cs: Fixed swapped values
19140 2005-02-15 Jackson Harper <jackson@ximian.com>
19142 * BaseCollection.cs: Use property so we never access an
19143 uninitialized list. Also initialize the list in the property.
19145 2005-02-15 Peter Bartok <pbartok@novell.com>
19147 * GroupBox.cs (ProcessMnemonic): Implemented
19148 * Label.cs (ProcessMnemonic): Implemented
19149 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
19152 2005-02-15 Peter Bartok <pbartok@novell.com>
19154 * RadioButton.cs (ProcessMnemonic): Implemented
19155 * CheckBox.cs (ProcessMnemonic): Implemented
19157 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
19159 - Added internal method to allow calling ProcessMnemonic from other
19161 * ContainerControl.cs:
19162 - Started support for handling validation chain handling
19163 - Implemented ProcessMnemonic support
19164 - Added Select() call to Active, to make sure the active control
19166 * Form.cs: Setting toplevel flag for Forms (this was lost in the
19167 FormParent rewrite)
19168 * ThemeWin32Classic.cs:
19169 - DrawCheckBox(): Fixed stringformat to show hotkeys
19170 - DrawRadioButton(): Fixed stringformat to show hotkeys
19171 * CommonDialog.cs: Removed WndProc override, not needed
19173 2005-02-14 Peter Bartok <pbartok@novell.com>
19175 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
19176 missed those in the rewrite
19178 2005-02-14 Miguel de Icaza <miguel@novell.com>
19180 * NumericUpDown.cs (Increment, ToString): Add.
19181 (DecimalPlaces): implement.
19185 * UpDownBase.cs: Add the designer attributes.
19187 2005-02-13 Peter Bartok <pbartok@novell.com>
19189 * Panel.cs: Removed border_style, now in Control
19190 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
19191 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
19193 2005-02-13 Peter Bartok <pbartok@novell.com>
19195 * MouseButtons.cs: Added missing attributes
19196 * XplatUIStructs.cs: Added enumeration for title styles
19197 * LeftRightAlignment.cs: Added missing attributes
19198 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
19199 it compatible with Graphics.FromHwnd()
19200 * SelectedGridItemChangedEventArgs.cs: Fixed property type
19201 * Keys.cs: Added missing attributes
19202 * SelectionRange.cs: Added missing attributes
19203 * SelectionRangeConverter.cs: Added
19205 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
19206 ReleaseMenuDC methods
19207 - Renamed ReleaseWindow to UngrabWindow
19208 - Added proper startup notice to allow version identification
19210 - Added missing attributes
19211 - Removed FormParent concept
19212 * Label.cs: Removed border_style field, now in Control
19213 * RadioButton.cs: Now properly selects RadioButton when focus is
19215 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
19217 - Added missing attributes
19218 - Added borderstyle handling
19219 - Removed FormParent concept support
19220 - Fixed calls to XplatUI to match changed APIs
19221 - Fixed bug that would case us to use disposed Graphics objects
19222 - Removed unneeded internal methods
19223 - PerformLayout(): Fixed to handle DockStyle.Fill properly
19224 - SelectNextControl(): Fixed to properly check common parents
19225 * TextBoxBase.cs: Removed border_style field (now in Control)
19227 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
19228 fixed calculations for form size
19229 - Added support for localized strings and icons
19230 - Improved form size calculations, added border
19231 * ListView.cs: Removed border_style field (now in Control)
19232 * X11Structs.cs: Moved several structs from X11 driver here
19233 * X11Keyboard.cs: Changed debug message
19234 * Application.cs: Removed FormParent concept support
19236 - Resetting end_modal flag
19237 - Removed FormParent concept support
19238 * NativeWindow.cs: Removed FormParent concept support
19239 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
19240 Client area and Non-Client whole window to allow support for WM_NC
19242 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
19243 prevent using it until it supports Hwnd as per Geoff Norton's request
19244 * ToolBar.cs: Fixed drawing, was not doing proper drawing
19245 * PictureBox.cs: Removed border_style field, now in Control
19246 * XplatUIWin32.cs: Added new driver methods
19248 2005-02-12 Peter Bartok <pbartok@novell.com>
19250 * OpacityConverter.cs: Implemented
19251 * Hwnd.cs: Internal class to support drivers that need to emulate
19252 client area/non-client area window behaviour
19254 2005-02-11 Peter Bartok <pbartok@novell.com>
19256 * KeysConverter.cs: Implemented
19258 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
19260 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
19261 * LinkLabel: Added missing attributes
19262 * MainMenu.cs: fixes ToString
19263 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
19264 * ListBox.cs: fixes event position
19265 * TrackBar.cs: adds missing attributes and events
19267 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
19269 * MenuItem.cs: Use SystemInformation and bug fixes
19270 * MenuAPI.cs: Use SystemInformation and bug fixes
19272 2005-02-09 Jackson Harper <jackson@ximian.com>
19274 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
19275 their keystate otherwise things like VK_MENU get stuck "on".
19277 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
19279 * ListBox.cs: Fixes AddRange bug
19281 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
19284 - Add missing attributes
19285 - Add missing method
19287 * CheckedListBox.cs: Added missing attributes
19288 - Add missing attributes
19289 - Remove extra method
19291 * ComboBox.cs: Added missing attributes
19292 * VScrollBar.cs: Added missing attributes
19293 * ScrollBar.cs: Added missing attributes
19294 * ListBox.cs: Fixes signature, add missing consts
19295 * LinkArea.cs: Added missing attributes
19298 2005-02-08 Peter Bartok <pbartok@novell.com>
19300 * Menu.cs: Added missing attributes
19301 * MainMenu.cs: Added missing attributes
19302 * GroupBox.cs: Added missing attributes
19303 * Label.cs: Added missing attributes
19304 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
19306 - Added Instance and Options properties
19307 - Added missing attributes
19308 * Cursor.cs: Made Serializable
19309 * NotifyIcon: Added missing attributes
19310 * MenuItem.cs: Added missing attributes
19311 * TextBoxBase.cs: Implemented AppendText() and Select() methods
19312 * Panel.cs: Added Missing attributes
19313 * MonthCalendar.cs: Fixed CreateParams
19315 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
19319 - Fixes issues with links
19320 - Adds the class attributes
19322 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
19325 - Fixes button when no items available in dropdown
19326 - Fixes repainting problems
19327 - Adds the class attributes
19329 2005-02-07 Geoff Norton <gnorton@customerdna.com>
19331 * XplatUIOSX.cs: Detect the menu bar and title bar height from
19332 the current theme. Cache these on startup.
19334 2005-02-07 Jackson Harper <jackson@ximian.com>
19336 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
19337 the scrollbar buttons when they are depressed.
19339 2005-02-07 Geoff Norton <gnorton@customerdna.com>
19341 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
19342 Get the display size from the main displayid. We currently dont
19343 support multiple display configurations.
19345 2005-02-07 Geoff Norton <gnorton@customerdna.com>
19347 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
19349 2005-02-07 Miguel de Icaza <miguel@novell.com>
19351 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
19353 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
19355 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
19357 2005-02-04 Jackson Harper <jackson@ximian.com>
19359 * ThemeWin32Classic.cs: Respect the clipping rect when
19360 drawing. Only fill the intersection of clips and rects so there
19361 isn't a lot of large fills.
19362 * ScrollBar.cs: Pass the correct clipping rect to the theme
19363 engine. Remove some debug code.
19365 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
19367 * DateTimePicker.cs:
19368 - Fixed crash on DateTime.Parse, use Constructor instead
19370 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
19374 - Owner draw support (MeasureItem and DrawItem)
19376 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
19379 - Implements FindMergePosition and MergeMenu functions (very poor documented)
19380 - Fixes MenuItems.Add range
19382 - MergeMenu and Clone and CloneMenu functions
19384 2005-02-03 Jackson Harper <jackson@ximian.com>
19386 * ScrollBar.cs: Make abstract
19387 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
19390 2005-02-03 Jackson Harper <jackson@ximian.com>
19392 * ScrollBar.cs: First part of my scrollbar fixups. This removes
19393 all the unneeded refreshes and uses invalidates with properly
19396 2005-02-03 Peter Bartok <pbartok@novell.com>
19398 * ComponentModel.cs: Added
19399 * IDataGridEditingService.cs: Added
19400 * Timer.cs: Added missing attributes
19401 * ToolTip.cs: Added missing attributes
19403 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
19405 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
19407 2005-02-03 Peter Bartok <pbartok@novell.com>
19409 * ListBox.cs: Added missing attributes
19411 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
19414 - Fixes font height after font change
19415 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
19417 2005-02-02 Peter Bartok <pbartok@novell.com>
19419 * HandleData.cs: Introduced static methods to allow class
19420 to be more self-contained and track it's own HandleData objects
19421 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
19422 HandleData to use new static methods
19424 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
19427 - Fixes default size and PreferredHeight
19429 - ObjectCollection.Insert implementation
19435 - ObjectCollection.Insert implementation
19436 - No selection after clean
19439 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
19441 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
19443 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
19446 - Caches ItemHeight calculation for OwnerDrawVariable
19447 - Handles dropdown properly
19448 - Fixes several minor bugs
19450 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
19453 - Fixes 71946 and 71950
19454 - Fixes changing Multicolumn on the fly
19455 - Fixes keyboard navigation on Multicolumn listboxes
19457 2005-01-31 Geoff Norton <gnorton@customerdna.com>
19459 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
19460 crash reporter log.
19462 2005-01-31 Geoff Norton <gnorton@customerdna.com>
19464 * XplatUIOSX.cs: Allow applications to actually exit.
19466 2005-01-31 Geoff Norton <gnorton@customerdna.com>
19468 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
19469 their parent at creation time rather than lazily later. Fixes a major
19470 regression we were experiencing.
19472 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
19474 * ThemeWin32Classic.cs: more date time picker painting fixes
19475 * DateTimePicker.cs: more monthcalendar drop down fixes
19476 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
19478 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
19481 - When moving the thumb going outside the control should stop the moving
19482 - Adds the firing of missing events
19483 - Fixes no button show if Size is not specified
19484 - End / Home keys for keyboard navigation
19486 2005-01-30 Peter Bartok <pbartok@novell.com>
19488 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
19489 sanity check to prevent theoretical loop
19490 * XplatUIWin32.cs (SetVisible): Removed debug output
19491 * XplatUIX11.cs (SystrayChange): Added sanity check
19492 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
19493 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
19494 behaviour, valid until the X11 client window rewrite is done
19495 * TextBox.cs (ctor): Setting proper default foreground and background
19498 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
19500 * Theme: Added DrawDateTimePicker to interface
19501 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
19502 * DateTimePicker.cs: Created (still needs keys and painting code)
19503 * DateTimePickerFormat.cs: added
19504 * MonthCalendar.cs: fixed CreateParams for popup window mode
19506 2005-01-29 Peter Bartok <pbartok@novell.com>
19508 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
19509 this should also the calculations for ligher/darker
19510 * Theme.cs: Fixed defaults for ScrollBar widths/heights
19512 2005-01-29 Peter Bartok <pbartok@novell.com>
19514 * ArrangeDirection.cs: Added
19515 * ArrangeStartingPositon.cs: Added
19516 * SystemInformation.cs: Implemented
19517 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
19518 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
19519 used by SystemInformation class
19520 * X11Strucs.cs: Added XSizeHints structure
19522 - Fixed CreateParams to make sure the menu window is always visible
19523 - TrackPopupMenu: Added check to make sure we don't draw the
19526 2005-01-29 Peter Bartok <pbartok@novell.com>
19528 * HandleData.cs: Added method for altering invalid area
19529 * TextBoxBase.cs: Implemented TextLength
19531 2005-01-28 Peter Bartok <pbartok@novell.com>
19533 * XplatUIX11.cs: Improvement over last patch, not sending
19534 the WM_PAINT directly anymore, instead we scroll any pending
19535 exposed areas and let the system pick out the WM_PAINT later
19537 2005-01-28 Peter Bartok <pbartok@novell.com>
19539 * SWF.csproj: Deleted, no longer used. Instead,
19540 Managed.Windows.Forms/SWF.csproj should be used
19541 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
19542 directly, to avoid a potential race condition with the next
19545 2005-01-28 Peter Bartok <pbartok@novell.com>
19547 * XplatUI.cs: Made class internal
19549 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
19551 * CheckedListBox.cs:
19554 - Missing methods and events
19556 2005-01-27 Peter Bartok <pbartok@novell.com>
19558 * Application.cs (Run): Don't use form if we don't have one
19560 2005-01-27 Peter Bartok <pbartok@novell.com>
19562 * TextBoxBase.cs (get_Lines): Fixed index off by one error
19564 2005-01-27 Peter Bartok <pbartok@novell.com>
19566 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
19567 * GridItem.cs: Added; Patch by Jonathan S. Chambers
19568 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
19569 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
19570 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
19571 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
19572 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
19573 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
19574 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
19575 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
19576 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
19577 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
19579 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
19582 - Draw focus on Simple Combobox
19583 - Fixes drawing issues
19586 2005-01-27 Peter Bartok <pbartok@novell.com>
19589 - Place window in default location, instead of hardcoded 0/0
19590 - Send initial LocationChanged event
19592 - UpdateBounds after creation to find out where the WM placed us
19593 - Make sure that if the ParentForm changes location the Form
19595 * XplatUIX11.cs: XGetGeometry will not return the coords relative
19596 to the root, but to whatever the WM placed around us.
19597 Translate to root coordinates before returning toplevel
19599 * XplatUIWin32.cs: Removed debug output
19600 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
19601 flag to GetWindowPos, to allow translation of coordinates on X11
19603 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
19605 * ListBox.cs: connect LostFocus Event
19607 2005-01-27 Peter Bartok <pbartok@novell.com>
19609 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
19610 XplatUIX11.cs: Extended the Systray API
19611 * Form.cs: Removed debug output
19612 * Application.cs: Fixed focus assignment, always need to call
19613 XplatUI.Activate() since Form.Activate() has rules that may
19615 * NotifyIcon.cs: Should be complete now
19616 * ToolTip.cs: Worked around possible timer bug
19618 2005-01-27 Jackson Harper <jackson@ximian.com>
19621 - Only invalidate the effected tabs when the
19622 selected index changes. This reduces drawing and gets rid of some
19624 - Only refresh if the tabs need to be shifted, otherwise only
19625 invalidate the slider button.
19626 - On windows the tabs are not filled to right if the slider is
19629 2005-01-27 Jackson Harper <jackson@ximian.com>
19631 * TabControl.cs: Only refresh on mouseup if we are showing the
19632 slider. Also only invalidate the button whose state has changed.
19634 2005-01-26 Peter Bartok <pbartok@novell.com>
19636 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
19637 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
19638 and SystrayRemove() methods
19639 * XplatUIOSX.cs: Stubbed Systray methods
19641 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
19643 - Fixed broken XChangeProperty calls (marshalling messed up things)
19644 * X11Structs.cs: Added enums and structs required for Size hinting
19645 * NotifyIcon.cs: Added & implemented
19647 2005-01-26 Jackson Harper <jackson@ximian.com>
19649 * TabControl.cs: Space vertically layed out tabs properly.
19651 2005-01-26 Peter Bartok <pbartok@novell.com>
19653 * Form.cs (CreateClientParams): Always set the location to 0,0
19654 since we're a child window.
19656 * Control.cs (SetVisibleCore): Always explicitly setting the location
19657 of a toplevel window, apparently X11 doesn't like to move windows
19658 while they're not mapped.
19660 2005-01-26 Jackson Harper <jackson@ximian.com>
19662 * TabControl.cs: Implement FillToRight size mode with vertically
19665 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
19667 * ControlPaint.cs, ThemeWin32Classic.cs
19668 - Fixes DrawFocusRectangle
19670 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
19673 - MenuBar tracking only starts when item is first clicked
19674 - Fixes menu hidding for multiple subitems
19675 - Unselect item in MenuBar when item Executed
19678 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
19681 - IsInputKey for ListBox
19684 - Shift and Control item selection
19685 - Implement SelectionMode.MultiExtended
19686 - Fixes RightToLeft
19688 - IsInputKey implemented
19689 - Do not generate OnTextChangedEdit on internal txt changes
19691 2005-01-23 Peter Bartok <pbartok@novell.com>
19693 * AccessibleObject.cs: Partially implemented Select()
19694 * MonthCalendar.cs: Added missing attributes and events
19695 * Form.cs: Fixed CreateParams behaviour, now controls derived from
19696 form can properly override CreateParams.
19697 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
19698 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
19699 Control performs Invalidate & Update
19700 * NativeWindow (CreateHandle): Added special handling for Form
19701 and Form.FormParent classes to allow overriding of From.CreateParams
19703 - ControlNativeWindow: Renamed 'control' variable to more intuitive
19705 - ControlNativeWindow: Added Owner property
19706 - Removed usage of Refresh() on property changes, changed into
19707 Invalidate(), we need to wait until the queue is processed for
19708 updates, direct calls might cause problems if not all vars for
19709 Paint are initialized
19710 - Added call to UpdateStyles() when creating the window, to set any
19711 styles that CreateWindow might have ignored.
19712 - Added support for Form CreateParent overrides to UpdateStyles()
19713 * MessageBox.cs: Removed no longer needed FormParent override stuff,
19714 CreateParams are now properly overridable
19715 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
19716 CreateParams are now properly overridable
19718 2005-01-23 Miguel de Icaza <miguel@ximian.com>
19720 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
19723 Capture LostFocus and OnTextBoxChanged. The later introduces a
19724 recursive invocation that I have not figured out yet.
19726 Reset the timer when not using (it was accumulating).
19729 (OnTextBoxChanged): Set UserEdit to true here to track whether the
19730 user has made changes that require validation.
19732 Reset changing to avoid loops.
19734 2005-01-22 Miguel de Icaza <miguel@ximian.com>
19736 * NumericUpDown.cs: Display value at startup.
19738 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
19741 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
19742 filled in. Added some basic parsing of text.
19744 Still missing the OnXXX method overrides, and figuring out the
19745 events that must be emitted.
19747 * UpDownBase.cs: Handle UserEdit on the Text property.
19749 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
19752 - Fixes IntegralHeight
19755 2005-01-21 Jackson Harper <jackson@ximian.com>
19757 * TabControl.cs: Set the SelectedIndex property when SelectedTab
19758 is set so that the page visibility is updated and the tabs are
19761 2005-01-21 Jackson Harper <jackson@ximian.com>
19763 * TabControl.cs: Use cliping rectangle for blitting. Give the
19764 theme the clipping rect so we can do clipping while
19765 drawing. Remove some debug code.
19767 2005-01-21 Jackson Harper <jackson@ximian.com>
19769 * TabPage.cs: Add a new method so tab pages can force the tab
19770 control to recalculate the tab page sizes.
19771 * TabControl.cs: UpdateOwner needs to make the tab control recalc
19774 2005-01-20 Jackson Harper <jackson@ximian.com>
19776 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
19778 2005-01-20 Jackson Harper <jackson@ximian.com>
19780 * TreeView.cs: Set the bounds for nodes properly. They were
19781 getting screwed up when checkboxes were not enabled, but images
19784 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
19787 - Owner draw support
19790 2005-01-20 Jackson Harper <jackson@ximian.com>
19792 * XplatUIStructs.cs: More misc keys
19793 * X11Keyboard.cs: Ignore some control keys.
19795 2005-01-20 Jackson Harper <jackson@ximian.com>
19797 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
19798 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
19800 2005-01-19 Peter Bartok <pbartok@novell.com>
19802 * Control.cs: Un-selecting the control when it is loosing focus
19804 2005-01-19 Jackson Harper <jackson@ximian.com>
19806 * TreeView.cs: Hook up to the text controls leave event so we can
19807 end editing when the users clicks outside the text box.
19809 2005-01-19 Jackson Harper <jackson@ximian.com>
19811 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
19812 get set in the conversion array.
19814 2005-01-19 Peter Bartok <pbartok@novell.com>
19816 * Application.cs (ModalRun): Added a call to CreateControl to ensure
19817 focus is properly set
19819 - Added missing attributes
19820 - removed styles, those are already set in the base class
19822 - Added missing attributes
19823 - Added clip window styles
19824 * CheckBox.cs: Added missing attributes
19826 - FormParentWindow.CreateParams: Added required clip styles
19827 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
19828 also filters modifier keys
19830 - Added assignment of Accept and Cancel button to enable Enter
19831 and Esc keys in MessageBox dialogs
19832 - FormParentWindow.CreateParams: Added required clip styles
19833 * RadioButton.cs: Added missing attributes
19834 * TextControl.cs: No longer draws selection if control does not
19837 - Now draws simple rectangle around test area to make it obvious
19838 there's a control. This is a hack until we properly support borders
19839 - A few simple fixes to support selections better, now erases selected
19840 text when typing, and resets selection when using movement keys
19842 2005-01-19 Miguel de Icaza <miguel@ximian.com>
19844 * UpDownBase.cs: Added some new properties.
19846 * DomainUpDown.cs: Implement a lot to get my test working.
19848 2005-01-19 Geoff Norton <gnorton@customerdna.com>
19850 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
19852 2005-01-19 Geoff Norton <gnorton@customerdna.com>
19854 * OSXStructs (WindowAttributes): Fixed csc complaints
19856 2005-01-19 Geoff Norton <gnorton@customerdna.com>
19859 OSXStructs.cs: Initial refactor to move enums and consts into
19860 OSXStructs and use them in the driver for greater readability.
19862 2005-01-19 Geoff Norton <gnorton@customerdna.com>
19864 * XplatUIOSX.cs: Initial support for Standard Cursors.
19865 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
19867 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
19869 * ComboBox.cs: ability to change style when the ctrl is already
19870 created, missing methods and events, bug fixes, signature fixes
19872 2005-01-19 Peter Bartok <pbartok@novell.com>
19874 * Cursors.cs (ctor): Added ctor to fix signature
19876 2005-01-18 Peter Bartok <pbartok@novell.com>
19878 * Button.cs: Implemented DoubleClick event
19880 - Fixed keyboard handling to behave like MS, where the press of
19881 Spacebar is equivalent to a mousedown, and the key release is
19882 equivalent to mouseup. Now a spacebar push will give the same
19883 visual feedback like a mouse click.
19884 - Added missing attributes
19885 - Added ImeModeChanged event
19886 - Added support for generating DoubleClick event for derived classes
19888 - Implemented DoubleClick event
19889 - Added missing attributes
19890 * CommonDialog.cs: Added missing attribute
19891 * ContextMenu.cs: Added missing attributes
19893 - AutoChecked buttons do not allow to be unselected when clicked
19894 (otherwise we might end up with no selected buttons in a group)
19895 - Added missing attributes
19896 - Implemented DoubleClickEvent
19897 * ThreadExceptionDialog.cs: Enabled TextBox code
19899 2005-01-18 Peter Bartok <pbartok@novell.com>
19901 * Form.cs: Removed debug output
19902 * Button.cs: Added support for DoubleClick method
19904 2005-01-18 Peter Bartok <pbartok@novell.com>
19907 - Added method to parent window that allows triggering size
19908 calculations when a menu is added/removed
19909 - set_Menu: Cleaned up mess from early days of Form and Control,
19910 now properly triggers a recalc when a menu is added/removed
19911 - Added case to select form itself as focused form if no child
19913 - Added PerformLayout call when showing dialog, to ensure properly
19916 - Select(): Made internal so Form can access it
19917 - Focus(): Only call Xplat layer if required (avoids loop), and sets
19919 * Application.cs (Run): Removed hack and calls PerformLayout instead
19920 to trigger calculation when Form becomes visible
19922 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
19924 * ComboBox.cs: fixes for ownerdraw
19926 2005-01-18 Peter Bartok <pbartok@novell.com>
19929 - Sentinel is no longer static, each Document gets it's own, this
19930 avoids locking or alternatively overwrite problems when more
19931 than one text control is used simultaneously.
19932 - Switched to use Hilight and HilightText brushes for text selection
19934 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
19936 2005-01-18 Peter Bartok <pbartok@novell.com>
19939 - Hooked up the following events:
19947 o SystemColorsChanged
19948 o ParentFontChanged
19950 - Removed debug output
19951 - Added a call to the current theme's ResetDefaults when a color change
19953 * Form.cs: Now setting the proper ImeMode
19954 * Theme.cs: Defined a method to force recreation of cached resources
19955 and rereading of system defaults (ResetDefaults())
19956 * ThemeWin32Classic.cs: Added ResetDefaults() stub
19958 2005-01-17 Peter Bartok <pbartok@novell.com>
19960 * Control.cs: Added missing attributes
19962 2005-01-17 Jackson Harper <jackson@ximian.com>
19964 * TreeNode.cs: Implement editing. Add missing properties selected
19966 * TreeView.cs: Implement node editing. Also some fixes to use
19967 Invalidate (invalid area) instead of Refresh when selecting.
19969 2005-01-17 Peter Bartok <pbartok@novell.com>
19972 - Implemented InvokeGotFocus() method
19973 - Implemented InvokeLostFocus() method
19974 - Implemented InvokePaint() method
19975 - Implemented InvokePaintBackground() method
19976 - Implemented InvokeClick() method
19977 - Implemented FindForm() method
19978 - Implemented RectangleToClient() method
19979 - Implemented ClientToRectangle() method
19980 - Implemented ResetBackColor() method
19981 - Implemented ResetCursor() method
19982 - Implemented ResetFont() method
19983 - Implemented ResteForeColor() method
19984 - Implemented ResetImeMode() method
19985 - Implemented ResetLeftToRight() method
19986 - Implemented ResetText() method
19987 - Implemented Scale() methods
19988 - Implemented ScaleCore() method
19989 - Implemented Update() method
19990 - Removed unused variables
19991 - Stubbed AccessibilityNotifyClients and
19992 ControlAccessibleObject.NotifyClients() methods (dunno what to do
19994 - Now setting proper default for RightToLeft property
19995 - Fixed bug in SetClientSizeCore that would cause windows to get
19997 - Now sending Click/DoubleClick events
19998 - Now selecting controls when left mouse button is clicked on
20000 * AccessibleEvents.cs: Added
20001 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
20002 * XplatUIOSX.cs: Stubbed UpdateWindow() method
20003 * XplatUIWin32.cs: Implemented UpdateWindow() method
20004 * XplatUIX11.cs: Implemented UpdateWindow() method
20005 * Form.cs: Removed stray semicolon causing CS0162 warning
20006 * ThemeWin32Classic.cs: Fixed unused variable warnings
20007 * ScrollableControl.cs: Now calls base method for ScaleCore
20008 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
20009 style to avoid interference with internal click handler (which is
20010 different than standard Control click handling)
20012 - Now unchecks all sibling radio buttons when control is
20013 selected (Fixes #68756)
20014 - Removed internal tabstop variable, using the one inherited from
20017 2005-01-17 Jackson Harper <jackson@ximian.com>
20019 * NavigateEventArgs.cs: Fix base type.
20020 * LinkLabel.cs: Sig fix
20022 2005-01-17 Jackson Harper <jackson@ximian.com>
20024 * TreeView.cs: Only invalidate the effected nodes bounds when
20027 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
20029 * XplatUIWin32.cs: fixes Win32 marshaling
20030 * XplatUIX11.cs: fixes method signature
20032 2005-01-17 Peter Bartok <pbartok@novell.com>
20034 * XplatUIX11.cs: Clean up resources when we no longer need them
20036 2005-01-17 Peter Bartok <pbartok@novell.com>
20038 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
20039 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
20040 and DestroyCursor() methods.
20041 * Cursor.cs: Partially implemented, now supports standard cursors;
20042 still contains some debug code
20043 * Cursors.cs: Implemented class
20045 - WndProc(): Added handling of WM_SETCURSOR message, setting the
20047 - Implemented Cursor property
20048 - Replaced break; with return; more straightforwar and possibly
20050 - Now properly setting the result for WM_HELP
20051 * X11Structs.cs: Added CursorFontShape enum
20052 * XplatUIStructs.cs:
20053 - Added StdCursor enum (to support DefineStdCursor() method)
20054 - Added HitTest enum (to support sending WM_SETCURSOR message)
20056 - Now sends the WM_SETCURSOR message
20057 - Implemented new cursor methods
20058 * XplatUIOSX.cs: Stubbed new cursor methods
20060 - Implemented new cursor methods
20061 - Added GetSystemMetrics function and associated enumeration
20063 2005-01-15 Peter Bartok <pbartok@novell.com>
20066 - WndProc(): Now handles EnableNotifyMessage
20067 - SelectNextControl(): Fixed bug where if no child or sibling
20068 controls exist we looped endlessly
20070 2005-01-14 Jackson Harper <jackson@ximian.com>
20072 * TreeView.cs: Recalculate the tab pages when a new one is added
20073 so that the proper bounding rects are created.
20075 2005-01-14 Jackson Harper <jackson@ximian.com>
20077 * TreeView.cs: Draw a gray box instead of a grip in the lower
20078 right hand corner when there are both horizontal and vertical
20081 2005-01-14 Jackson Harper <jackson@ximian.com>
20083 * Control.cs: When erasing backgrounds use FromHwnd instead of
20084 FromHdc when there is a NULL wparam. This occurs on the X driver.
20085 * XplatUIX11.cs: Set the wparam to NULL.
20087 2005-01-13 Jackson Harper <jackson@ximian.com>
20089 * PictureBox.cs: Implement missing methods (except ToString, need
20090 to test that on windows) and events. When visibility is changed we
20091 need to redraw the image because the buffers are killed. When size
20092 is changed refresh if the sizemode needs it.
20094 2005-01-13 Peter Bartok <pbartok@novell.com>
20096 * Control.cs (SelectNextControl): Was using wrong method to select
20099 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
20101 * ComboBox.cs: fixes dropstyle
20103 2005-01-13 Peter Bartok <pbartok@novell.com>
20106 - Implemented Select() override
20107 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
20108 - Now sets keyboard focus on startup
20109 * Control.cs (SelectNextControl): Now properly handles directed=true
20111 - WndProc: Now passes tab key on to base if AcceptTabChar=false
20112 - Added (really bad) focus rectangle (mostly for testing)
20113 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
20114 to enforce redraw on focus changes
20115 * ContainerControl.cs:
20116 - Fixed detection of Shift-Tab key presses
20117 - Fixed traversal with arrow keys
20118 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
20119 gonna keep this or if it's complete yet
20121 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
20123 * ComboBox.cs: missing properties, fixes
20125 2005-01-13 Peter Bartok <pbartok@novell.com>
20127 * Panel.cs (ctor): Setting Selectable window style to off
20128 * Splitter.cs (ctor): Setting Selectable window style to off
20129 * GroupBox.cs (ctor): Setting Selectable window style to off
20130 * Label.cs (ctor): Setting Selectable window style to off
20132 2005-01-12 Miguel de Icaza <miguel@ximian.com>
20134 * UpDownBase.cs (InitTimer): If the timer has been already
20135 created, enable it.
20137 Use a TextBox instead of a Label.
20139 2005-01-12 Jackson Harper <jackson@ximian.com>
20141 * TreeView.cs: Refresh the tree after sorting the nodes. Always
20142 draw the connecting node lines (when ShowLines is true).
20143 * TreeNode.cs: The nodes index can now be updated. This is used
20144 when a node collection is sorted.
20145 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
20146 insert or an existing unsorted node collection can be sorted.
20148 2005-01-12 Peter Bartok <pbartok@novell.com>
20150 * ContainerControl.cs: Implemented ProcessDialogKeys()
20152 2005-01-12 Peter Bartok <pbartok@novell.com>
20155 - Implemented SelectNextControl() method
20156 - Several focus related bug fixes
20157 - Fixed Docking calculations to match MS documentation and
20160 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
20162 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
20165 2005-01-12 Peter Bartok <pbartok@novell.com>
20168 - Fixed broken Contains() method
20169 - Implemented GetNextControl() method. Finally. This is the pre-
20170 requisite for focus handling.
20172 2005-01-12 Peter Bartok <pbartok@novell.com>
20174 * OSXStrucs.cs: Added
20176 2005-01-12 Peter Bartok <pbartok@novell.com>
20179 - Removed PeekMessageFlags
20180 - Implemented SetWindowStyle() method
20181 * XplatUIStructs.cs: Added PeekMessageFlags
20182 * X11Structs: Added missing border_width field to XWindowChanges struct
20184 - PeekMessage: Now throws exception if flags which are not yet
20185 supported are passed
20186 - Implemented SetWindowStyle() method
20187 - Fixed SetZOrder to handle AfterHwnd properly
20188 * XplatUI.cs: Added SetWindowStyle() method
20189 * XplatUIDriver.cs: Added SetWindowStyle() abstract
20191 - Implemented UpdateStyles() method
20192 - Implemented UpdateZOrder() method
20193 * XplatUIOSX.cs: Added SetWindowStyle() stub
20195 2005-01-12 Geoff Norton <gnorton@customerdna.com>
20197 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
20201 2005-01-11 Jackson Harper <jackson@ximian.com>
20203 * TreeView.cs: Still need to draw lines to siblings even if out of
20204 the current node is out of the clip.
20206 2005-01-11 Jackson Harper <jackson@ximian.com>
20208 * TreeView.cs: When setting the hbar/vbar/grip position use
20209 SetBounds so that perform layout is only called once. Also suspend
20210 and resume layout so layout is only done once for all controls.
20211 - Removed some debug fluff
20212 * SizeGrip.cs: Call base implmentation in overriding methods.
20213 - When visibility is changed the drawing buffers are killed so we
20216 2005-01-11 Jackson Harper <jackson@ximian.com>
20218 * TreeView.cs: Calculate the open node count while drawing. This
20219 saves us an entire tree traversal for every paint operation. Use
20220 a member var for the open node count so less vars are passed around.
20222 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
20224 * MonthCalendar.cs:
20225 - fixed selection to use mousemove, not mouse polling on timer
20226 * ThemeWin32Classic.cs
20227 - removed redundant unused variable "no_more_content"
20229 2005-01-11 Peter Bartok <pbartok@novell.com>
20231 * XplatUIX11.cs (DoEvents): Needs to return when no more events
20232 are pending, so it now calls PeekMessage instead of GetMessage;
20233 implemented a incomplete version of PeekMessage
20235 2005-01-11 Peter Bartok <pbartok@novell.com>
20237 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
20239 * TextBoxBase.cs: Added sending of TextChanged event
20241 2005-01-10 Jackson Harper <jackson@ximian.com>
20243 * TreeView.cs: Try not to draw outside the clipping rectangle on
20246 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
20248 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
20250 2005-01-10 Jackson Harper <jackson@ximian.com>
20253 - Implement fast scrolling. Now only the newly
20254 exposed nodes are drawn and the old image is moved using the
20255 XplatUI::ScrollWindow method.
20256 - Factor in height of nodes when calculating whether or not the
20257 node is in the clipping rect.
20259 2005-01-10 Jackson Harper <jackson@ximian.com>
20261 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
20263 2005-01-10 Peter Bartok <pbartok@novell.com>
20265 * Application.cs: Added temporary hack to resolve all our resize
20266 required issues on startup. This will get fixed properly at
20267 some point in the future
20269 2005-01-10 Jackson Harper <jackson@ximian.com>
20271 * SizeGrip.cs: New internal class that is used as a sizing
20272 grip control...hence the name.
20274 2005-01-10 Peter Bartok <pbartok@novell.com>
20276 * Control.cs: Implemented proper TabIndex handling, now assigning
20277 a tabindex when a control is added to a container
20278 * GroupBox.cs (ctor): Now sets the Container style bit, required
20279 for Control.GetNextControl()
20281 2005-01-09 Jackson Harper <jackson@ximian.com>
20283 * TextBoxBase.cs: Clear window when scrolling (fixes build).
20285 2005-01-09 Peter Bartok <pbartok@novell.com>
20287 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
20288 XplatUIX11.cs: Added ability to control ScrollWindow expose and
20289 an overload for ScrollWindow to allow only scrolling a rectangle
20291 2005-01-09 Peter Bartok <pbartok@novell.com>
20294 - Implemented SetDesktopBounds method
20295 - Implemented SetDesktopLocation method
20297 2005-01-08 Jackson Harper <jackson@ximian.com>
20299 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
20300 the node count has changed, this removes to VScroll::Refresh calls
20303 2005-01-08 Geoff Norton <gnorton@customerdna.com>
20305 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
20307 2005-01-07 Jackson Harper <jackson@ximian.com>
20309 * TreeNode.cs: Just update the single node when it is
20310 checked. Don't refresh after toggling, the Expand/Collapse already
20312 * TreeView.cs: Respect clipping a little more when drawing. Try
20313 not to redraw things that don't need to be redrawn. Just hide the
20314 scrollbars when they are no longer needed instead of removing
20315 them, so they don't have to be created again and again.
20317 2005-01-07 Geoff Norton <gnorton@customerdna.com>
20319 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
20320 coordinates to window space to place the caret properly, FIXED.
20321 Implement GetWindowState & SetWindowState
20323 2005-01-06 Peter Bartok <pbartok@novell.com>
20326 - Implemented ClientSize property
20327 - Implemented DesktopBounds property
20328 - Implemented DesktopLocation property
20329 - Implemented IsRestrictedWindow property
20330 - Implemented Size property
20331 - Implemented TopLevel property
20332 - Implemented FormWindowState property
20334 - Implemented GetTopLevel() method
20335 - Implemented SetTopLevel() method
20336 * X11Structs.cs (Atom):
20337 - Added AnyPropertyType definition
20338 - Added MapState definiton and updated XWindowAttribute struct
20339 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
20340 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
20341 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
20343 - Implemented GetWindowState() and SetWindowState() methods
20344 - Fixed Win32GetWindowLong return type
20346 - Introduced central function for sending NET_WM messages
20347 - Implemented GetWindowState() and SetWindowState() methods
20348 * TextBoxBase.cs (set_Lines):
20349 - Now uses Foreground color for text added via Text property (Duh!)
20350 - Added code to remember programmatically requested size (fixes
20351 behaviour when Multiline is set after Size)
20352 - Added AutoSize logic
20354 2005-01-06 Jackson Harper <jackson@ximian.com>
20356 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
20358 2005-01-06 Jackson Harper <jackson@ximian.com>
20360 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
20361 set to less then 0.
20363 2005-01-06 Jackson Harper <jackson@ximian.com>
20365 * ScrollableControl.cs: Lazy init the scrollbars.
20367 2005-01-06 Jackson Harper <jackson@ximian.com>
20369 * Theme.cs: Speed up getting pens and solid brushes, by using
20370 their ARGB as a hash instead of tostring and not calling Contains.
20372 2005-01-06 Peter Bartok <pbartok@novell.com>
20375 - Implemented OnActivated and OnDeactivate event trigger
20376 - Implemented Activate() method
20377 - Fixed ShowDialog() to activate the form that was active before
20378 the dialog was shown
20380 - Added global active_window var that tracks the currently active
20382 - Now always grabs Property changes from the root window to always
20383 catch changes on the active window property
20384 - Added code to PropertyNotify handler to send Active/Inactive
20385 messages when state changes. This puts X11 and Win32 en par on
20386 WM_ACTIVATE notifications (except for double notifications when
20387 the user clicks away from our modal window to another one of our
20390 2005-01-05 Jackson Harper <jackson@ximian.com>
20392 * ImageList.cs: Implment ctor
20394 2005-01-05 Geoff Norton <gnorton@customerdna.com>
20396 * XplatUIOSX.cs: Implement Activate/SetTopmost
20398 2005-01-05 Geoff Norton <gnorton@customerdna.com>
20400 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
20402 2005-01-05 Geoff Norton <gnorton@customerdna.com>
20404 * XplatUIOSX.cs: Implement GetActive/SetFocus.
20406 2005-01-05 Peter Bartok <pbartok@novell.com>
20408 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
20409 XplatUIOSX.cs: Added GetActive method to return the currently
20410 active window for the application (or null, if none is active)
20412 - Implemented ActiveForm
20413 - Commented out owner assignment for modal dialogs (causes problems
20414 on Win32, since the owner will be disabled)
20415 - Reworked some Active/Focus handling (still incomplete)
20416 * CommonDialog.cs: Commented out owner assignment for modal dialogs
20417 (causes problems on Win32, since the owner will be disabled)
20418 * IWin32Window: Added ComVisible attribute
20420 2005-01-05 Peter Bartok <pbartok@novell.com>
20422 * ToolTip.cs (WndProc): Enable setting focus now that we have the
20423 required XplatUI functions.
20425 2005-01-05 Peter Bartok <pbartok@novell.com>
20427 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
20428 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
20429 to implement focus and activation handling; still incomplete and
20432 2005-01-04 Peter Bartok <pbartok@novell.com>
20434 * TextBoxBase.cs: Changed access level for Document property to
20435 match switch to internal for TextControl
20437 2005-01-04 Peter Bartok <pbartok@novell.com>
20439 * AccessibleObject: Added ComVisible attribute
20441 2005-01-04 Jackson Harper <jackson@ximian.com>
20443 * X11Keyboard.cs: Remove unneeded var.
20445 2005-01-04 Jackson Harper <jackson@ximian.com>
20447 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
20449 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
20450 ClientMessage. This makes apps exit cleanly (more often).
20452 2005-01-04 Jackson Harper <jackson@ximian.com>
20454 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
20455 handling focus, return correct colors and fonts,
20456 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
20457 handle selection, horizontal scrolling, and mouse interaction.
20459 2005-01-04 Peter Bartok <pbartok@novell.com>
20461 * ICommandExecutor.cs: Added
20462 * IDataGridColumnStyleEditingNotificationService.cs: Added
20463 * IFeatureSupport.cs: Added
20464 * IFileReaderService.cs: Added
20465 * IDataObject.cs: Added ComVisible attribute
20466 * AmbientProperties.cs: Added
20467 * BaseCollection.cs: Added missing attributes
20468 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
20469 * BaseCollection.cs: Added missing attributes
20470 * Binding.cs: Added TypeConverter attribute
20471 * BindingContext.cs: Added DefaultEvent attribute
20472 * BindingsCollection.cs: Added DefaultEvent attribute
20473 * Button.cs: Added DefaultValue attribute
20474 * DragEventArgs.cs: Added ComVisible attribute
20475 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
20476 * KeyEventArgs.cs: Added ComVisible attribute
20477 * KeyPressEventArgs.cs: Added ComVisible attribute
20478 * MouseEventArgs.cs: Added ComVisible attribute
20479 * NavigateEventArgs.cs: Added
20480 * NavigateEventHandler.cs: Added
20481 * FeatureSupport.cs: Added
20482 * OSFeature.cs: Added
20483 * Theme.cs: Added abstract Version property to support OSFeature
20484 * ThemeWin32Classic.cs: Added Version property to
20485 support OSFeature.Themes
20486 * ProgressBar.cs: Removed OnPaintBackground override, not required since
20487 the proper styles to avoid background drawing are set, also doesn't
20489 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
20490 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
20491 * ScrollEventArgs.cs: Added ComVisible attribute
20492 * SplitterEventArgs.cs: Added ComVisible attribute
20493 * AccessibleSelection.cs: Added Flags attribute
20494 * Appearance.cs: Added ComVisible attribute
20495 * Border3DSide.cs: Added ComVisible attribute
20496 * Border3DStyle.cs: Added ComVisible attribute
20497 * BorderStyle.cs: Added ComVisible attribute
20498 * DragAction.cs: Added ComVisible attribute
20499 * ErrorBlinkStyle.cs: Added
20500 * ScrollEventType.cs: Added ComVisible attribute
20501 * AnchorStyles.cs: Added Editor attribute
20502 * DockStyle.cs: Added Editor attribute
20503 * HorizontalAlignment.cs: Added ComVisible attribute
20504 * HelpEventArgs.cs: Added ComVisible attribute
20505 * PaintEventArgs.cs: Added IDisposable
20507 2005-01-04 Peter Bartok <pbartok@novell.com>
20509 * TextControl.cs: Switched Line, LineTag and Document classes to
20512 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
20514 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
20515 Simple mode, fixes, IntegralHeight, etc.
20517 2005-01-04 Peter Bartok <pbartok@novell.com>
20519 * TextBoxBase.cs: Using proper font variable now
20521 2005-01-04 Peter Bartok <pbartok@novell.com>
20523 * Form.cs (ShowDialog): Set parent to owner, if provided
20524 * GroupBox.cs: Removed unused vars
20526 - Added GetHashCode() for Document and LineTag classes
20527 - Removed unused variables
20528 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
20529 to allow translation between continuous char position and line/pos
20530 * CheckBox.cs: Removed vars that are provided by base class
20531 * RadioButton.cs: Removed vars that are provided by base class, added
20532 new keyword where required
20533 * LinkLabel.cs: Added new keyword where required
20534 * Control.cs (WndProc): Removed unused variable
20536 - Finished SelectionLength property
20537 - Implemented SelectionStart property
20538 - Implemented Text property
20539 - Removed unused vars
20540 * MessageBox.cs: Added new keyword where required
20541 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
20543 * MenuAPI.cs: Added new keyword where required
20544 * ButtonBase.cs: Removed vars that are provided by base class, added
20545 new keyword where required
20546 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
20547 argument to double, to allow compiling with csc 2.0 (Atsushi ran
20549 * Application.cs (Run): Now triggers the ThreadExit event
20550 * CommonDialog.cs: Added new keyword where required; now properly sets
20551 parent (owner) for dialog
20552 * XplatUIX11.cs: Commented out unused vars
20553 * StatusBar.cs: Fixed signature for Text property
20554 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
20556 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
20558 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
20559 TrackBar.cs, MonthCalendar.cs: remove unused vars
20561 2005-01-03 Jackson Harper <jackson@ximian.com>
20563 * ThemeWin32Classic.cs:
20564 * X11Keyboard.cs: Remove unused vars.
20566 2005-01-03 Peter Bartok <pbartok@novell.com>
20569 - set_Text: Tied into TextControl
20570 - set_TextAlignment: Tied into TextControl
20572 - Added alignment properties and implemented alignment handling
20573 and drawing (still has a bug, not generating proper expose events)
20574 - Added new Line() constructor to allow passing the line alignment
20575 - Fixed selection setting, properly handling end<start now
20576 - Added aligment considerations to RecalculateDocument()
20578 - Now properly enforces control height for single line controls
20579 - Added support for CharacterCasing
20580 - Added IsInputKey override
20581 - Fixed Keys.Enter logic
20582 - Added SetBoundsCore override
20583 - Fixed mouse selection handling
20585 2005-01-03 Jackson Harper <jackson@ximian.com>
20588 - Collapse and uncheck all nodes when CheckBoxes is disabled.
20589 - Checkboxes are always aligned to the bottom of the node,
20590 regardless of item height.
20591 - Use the node bounds to draw the text so we can center it when
20592 the item height is greater then the font height.
20593 - Node::Bounds are only the text part of the node.
20594 * TreeNode.cs: New method to combine collapsing and unchecking all
20597 2005-01-02 Jackson Harper <jackson@ximian.com>
20599 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
20600 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
20601 tree when a check is changed. TODO: Only refresh the checked node.
20603 2004-12-30 Jackson Harper <jackson@ximian.com>
20605 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
20606 * TreeNode.cs: When collapsing make sure to never collapse the
20609 2004-12-29 Jackson Harper <jackson@ximian.com>
20611 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
20613 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
20615 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
20617 2004-12-28 Peter Bartok <pbartok@novell.com>
20619 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
20622 2004-12-28 Peter Bartok <pbartok@novell.com>
20624 * Control.cs (WndProc): Added WM_HELP handler, now generates
20625 HelpRequested event
20626 * Form.cs: Added HelpButton property and required support code
20627 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
20629 2004-12-28 Peter Bartok <pbartok@novell.com>
20632 - Made DialogForm.owner variable internal
20633 - Added check to ensure owner form is set before setting
20634 owner properties in CreateParams
20636 2004-12-28 Geoff Norton <gnorton@customerdna.com>
20638 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
20639 swizzling. Implement ClientToScreen and ScreenToClient. Implement
20640 GetCursorPos. Fix major visibility issues. Rework the windowing
20641 system to support borderless/titleless windows (implements menus).
20642 Fix GetWindowPos. Implement initial background color support for
20645 2004-12-28 Peter Bartok <pbartok@novell.com>
20647 * Form.cs (get_CreateParams): Make sure we have an owner before using
20648 the owner variable. Implement proper default if no owner exists
20650 2004-12-28 Peter Bartok <pbartok@novell.com>
20652 * In preparation for making Managed.Windows.Forms the default build target
20653 for System.Windows.Forms, the following stubbed files were added.
20654 Dialogs are currently being implemented by contributors and are only
20655 short-term place holders.
20656 * ColorDialog.cs: Initial check-in (minmal stub)
20657 * DataGrid.cs: Initial check-in (minimal stub)
20658 * DataGridLineStyle.cs: Initial check-in (minimal stub)
20659 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
20660 * DataGridTableStyle.cs: Initial check-in (minimal stub)
20661 * FontDialog.cs: Initial check-in (minimal stub)
20662 * FileDialog.cs: Initial check-in (minimal stub)
20663 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
20664 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
20665 * OpenFileDialog: Initial check-in (minimal stub)
20666 * IComponentEditorPageSite.cs: Initial check-in
20667 * Splitter.cs: Initial check-in (for Jackson)
20668 * SplitterEventArgs.cs: Initial check-in (for Jackson)
20669 * SplitterEventHandler.cs: Initial check-in (for Jackson)
20670 * TextBox.cs: Initial check-in; still needs some wiring to
20671 TextControl backend
20672 * Form.cs: Implemented ControlBox property
20673 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
20674 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
20675 * TextControl.cs: Added selection functionality; added todo header
20677 - Implemented Lines property
20678 - Implemented TextHeight property
20679 - Implemented SelectedText property
20680 - Implemented SelectionLength property
20681 - Implemented SelectAll method
20682 - Implemented ToString method
20683 - Removed and cleaned up some debug code
20684 - Implemented (still buggy) mouse text selection
20686 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
20688 * ComboBox.cs: Complete DropDownList implementation, fixes.
20690 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
20692 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
20693 * ComboBoxStyle.cs: ComboBoxStyle enum
20694 * ComboBox.cs: Initial work on ComboBox control
20696 2004-12-21 Peter Bartok <pbartok@novell.com>
20698 * Control.cs (ctor, CreateParams): Moved setting of is_visible
20699 forward so that anything that creates a window gets the default,
20700 also no longer uses Visible property in CreateParams to avoid
20701 walking up the parent chain and possibly get the wrong visible
20702 status. Fixed IsVisible to no longer walk up to the parent.
20704 2004-12-21 Peter Bartok <pbartok@novell.com>
20706 * Form.cs (ShowDialog): Unset modality for the proper window
20708 2004-12-20 Peter Bartok <pbartok@novell.com>
20710 * CommonDialog.cs: Initial check-in
20712 2004-12-20 Peter Bartok <pbartok@novell.com>
20714 * Control.cs (Visible): Now uses the parent window instead of the
20715 client area window for the property
20718 - ShowDialog(): Now uses the proper window for modality
20719 - The default visibility state for the form parent is now false. This
20720 will prevent the user from seeing all the changes to the form and
20721 its controls before the application hits Application.Run()
20722 - Removed some stale commented out code
20725 - Added FindWindow() method to have a method to check for existence
20727 - Added ability to override default exception handling (for example
20728 when debugging with VS.Net; to do this the ExternalExceptionHandler
20730 - Removed some useless debug output
20733 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
20734 not working as expected
20735 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
20736 property to allow switching back to the modal window if focus is
20737 given to another one of our windows (Application Modal)
20738 - Now only sets override_redirect if we create a window
20740 - Moved EventMask selection before mapping of newly created window
20741 so we can catch the map event as well
20742 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
20743 - Added various Atom related DllImports
20744 - Implemented Exit() method
20745 - .ctor() : No longer shows window if WS_VISIBLE is not defined
20746 in the CreateParams
20748 * MessageBox.cs: Now properly deals with the FormParent window by
20749 providing an override the FormParent CreateParams property to
20750 set as POPUP instead of OVERLAPPED window.
20752 2004-12-19 Geoff Norton <gnorton@customerdna.com>
20754 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
20755 Minor code cleanup.
20757 2004-12-19 Geoff Norton <gnorton@customerdna.com>
20759 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
20761 2004-12-18 Peter Bartok <pbartok@novell.com>
20763 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
20764 implementing SetModal() method
20766 2004-12-18 Peter Bartok <pbartok@novell.com>
20768 * X11Structs.cs (XGCValues): Fixed type of function element
20769 * XplatUI.cs: Added ScrollWindow() method
20770 * XplatUIDriver.cs: Added ScrollWindow() abstract
20771 * XplatUIWin32.cs: Implemented ScrollWindow() method
20772 * XplatUIX11.cs: Implemented ScrollWindow() method
20773 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
20775 2004-12-17 Geoff Norton <gnorton@customerdna.com>
20777 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
20778 Some more keyboard support (INCOMPLETE)
20780 2004-12-17 Peter Bartok <pbartok@novell.com>
20783 - Added color attribute to line tags.
20784 - Added color argument to all functions dealing with tags
20785 - Added color argument support to various functions
20786 - Fixed miss-calculation of baseline/shift in certain circumstances
20788 * TextBoxBase.cs: Added new color option to test code
20790 2004-12-17 Jackson Harper <jackson@ximian.com>
20793 * MonthCalendar.cs: Signature fixes
20795 2004-12-17 Geoff Norton <gnorton@customerdna.com>
20797 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
20798 keyboard event moved it. Create a new graphics context for each paint resolves this
20800 2004-12-17 Geoff Norton <gnorton@customerdna.com>
20802 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
20803 Make caret exist and go blink blink. Initial keyboard support.
20804 Fix exception handler, Add Invalidate support. Change way RefreshWindow
20807 2004-12-17 Jackson Harper <jackson@ximian.com>
20809 * XplatUIStructs.cs: Updated set of virtual keycodes.
20810 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
20812 2004-12-17 Jackson Harper <jackson@ximian.com>
20814 * XplatUIX11.cs: Prune old keyboard code.
20816 2004-12-17 Jackson Harper <jackson@ximian.com>
20818 * XplatUIX11.cs: When generating mouse wparams get the modifier
20819 keys from the ModifierKeys property.
20821 2004-12-17 Jackson Harper <jackson@ximian.com>
20823 * X11Keyboard.cs: Send up/down input when generating
20824 messages. Remove some unused vars.
20826 2004-12-17 Jackson Harper <jackson@ximian.com>
20829 * TreeView.cs: get rid of warnings.
20831 2004-12-17 Jackson Harper <jackson@ximian.com>
20833 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
20835 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
20837 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
20838 CheckedListBox.cs: Implementation
20840 2004-12-17 Peter Bartok <pbartok@novell.com>
20842 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
20844 2004-12-16 Peter Bartok <pbartok@novell.com>
20847 - InsertCharAtCaret(): Fixed start pos fixup
20848 - CaretLine_get: No longer derives the line from the tag, the tag
20849 could be stale if lines in the document have been added or deleted
20850 - RebalanceAfterDelete(): Fixed bug in balancing code
20851 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
20852 - Line.Streamline(): Now can also elminate leading empty tags
20853 - DumpTree(): Added a few more tests and prevented exception on
20855 - Added Debug section for Combining lines
20856 - Delete(): Now copies all remaining properties of a line
20859 - Left mousebutton now sets the caret (and middle button still acts
20860 as formatting tester, which must go away soon)
20861 - Added Debug section for Deleting/Combining lines
20862 - Fixed calculations for UpdateView after Combining lines
20864 2004-12-16 Peter Bartok <pbartok@novell.com>
20866 * TextControl.cs: Now properly aligns text on a baseline, using the
20867 new XplatUI.GetFontMetrics() method. Simplified several calculations
20868 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
20871 2004-12-16 Peter Bartok <pbartok@novell.com>
20873 * XplatUI.cs: Added GetFontMetrics() method
20874 * XplatUIDriver.cs: Added GetFontMetrics() abstract
20875 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
20876 into libgdiplus, our private GetFontMetrics function
20877 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
20878 * XplatUIWin32.cs: Implemented GetFontMetrics() method
20880 2004-12-16 Jackson Harper <jackson@ximain.com>
20882 * XplatUIStruct.cs: Add enum for dead keys
20883 * X11Keyboard.cs: Map and unmap dead keys.
20885 2004-12-16 Jackson Harper <jackson@ximian.com>
20887 * X11Keyboard.cs: Detect and use the num lock mask.
20889 2004-12-16 Peter Bartok <pbartok@novell.com>
20891 * Control.cs (CreateGraphics): Added check to make sure the
20892 handle of the window exists before calling Graphics.FromHwnd()
20894 2004-12-16 Peter Bartok <pbartok@novell.com>
20896 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
20897 contains a lot of code that's not supposed to be there for the
20898 real thing, but required for developing/testing the textbox
20901 2004-12-16 Peter Bartok <pbartok@novell.com>
20904 - Fixed Streamline method
20905 - Added FindTag method to Line
20906 - Added DumpTree method for debugging
20907 - Added DecrementLines() method for deleting lines
20908 - Fixed UpdateView to update the cursor to end-of-line on single-line
20910 - Added PositionCaret() method
20911 - Fixed MoveCaret(LineDown) to move into the last line, too
20912 - Added InsertChar overload
20913 - Fixed InsertChar tag offset calculations
20914 - Added DeleteChar() method
20915 - Added Combine() method for folding lines
20916 - Fixed Delete() method, no longer allocates wasted Line object and
20917 now copies all properties when swapping nodes
20918 - Delete() method now updates document line counter
20920 2004-12-15 Jackson Harper <jackson@ximian.com>
20922 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
20923 * X11Keyboard.cs: Expose the currently selected modifier keys
20924 through a property.
20926 2004-12-15 Peter Bartok <pbartok@novell.com>
20928 * TextControl.cs: Initial check-in. Still incomplete
20930 2004-12-15 Jackson Harper <jackson@ximian.com>
20933 * TreeView.cs: Fix build on csc (second time today ;-))
20935 2004-12-15 Jackson Harper <jackson@ximian.com>
20937 * TreeView.cs: Store the treenodes plus/minus box bounds when it
20938 is calculated and use this for click testing.
20939 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
20941 2004-12-15 Jackson Harper <jackson@ximian.com>
20943 * TreeView.cs: Pass the nodes image index to the image list when
20944 drawing that image.
20946 2004-12-15 Jackson Harper <jackson@ximian.com>
20948 * X11Keyboard.cs: Set messages hwnd.
20949 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
20950 post_message calls.
20952 2004-12-15 Jackson Harper <jackson@ximian.com>
20954 * X11Keyboard.cs: Fix to compile with csc.
20956 2004-12-15 Jackson Harper <jackson@ximian.com>
20958 * X11Structs.cs: Add key mask values
20959 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
20960 * X11Keyboard.cs: New file - Extrapolates and interpolates key
20961 down/up foo into WM_CHAR foo
20962 * KeyboardLayouts.cs: Common keyboard layouts
20963 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
20964 post messages into the main queue.
20966 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
20968 * Button.cs: implement ProcessMnemonic
20969 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
20971 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
20972 * ButtonBase.cs: Show HotkeyPrefix (not the &)
20974 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
20976 * MonthCalendar.cs: Implemented click-hold for next/previous month
20979 2004-12-11 Peter Bartok <pbartok@novell.com>
20982 - Added XKeyboardState (moved from XplatUIX11.cs)
20983 - Added XCreateGC related enums and structures
20984 - Added GXFunction for XSetFunction
20986 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
20988 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
20989 CaretVisible() calls
20991 * ToolTip.cs: Added code to prevent stealing focus from app windows
20993 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
20994 DestroyCaret, SetCaretPos and CaretVisible)
20997 - Added implementation for caret functions
20998 - Moved hover variables into a struct, to make it a bit easier
20999 on the eyes and to debug
21000 - Removed XKeyboardState (moved to XplatUIX11.cs)
21001 - Moved Keyboard properties into the properties region
21003 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
21004 call to get a graphics context for our control
21006 * XplatUIOSX.cs: Added empty overrides for the new caret functions
21008 * TreeView.cs: Fixed bug. No matter what color was set it would always
21009 return SystemColors.Window
21011 * XplatUIWin32.cs: Implemented caret overrides
21013 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
21015 * ListBox.cs: fire events, implement missing methods and properties,
21018 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
21020 * MonthCalendar.cs: invalidation bug fixing
21021 * ThemeWin32Classic.cs: paint fixing
21023 2004-12-09 Geoff Norton <gnorton@customerdna.com>
21025 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
21026 prepare the CGContextRef there now.
21028 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
21030 * MonthCalendar.cs:
21031 - optimisationL only invalidate areas that have changed
21032 * ThemeWin32Classic.cs:
21033 - only paint parts that intersect with clip_area
21035 2004-12-09 Peter Bartok <pbartok@novell.com>
21037 * Application.cs: Undid changes from r37004 which cause problems
21040 2004-12-09 Ravindra <rkumar@novell.com>
21042 * ToolBar.cs: Added support for displaying ContextMenu
21043 attached to a button on ToolBar.
21044 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
21047 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
21049 * Label.cs: autosize works in text change and removes unnecessary
21052 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
21054 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
21057 2004-12-08 Geoff Norton <gnorton@customerdna.com>
21059 * XplatUIOSX.cs: Added mouse move/click/grab support
21060 Remove some debugging WriteLines not needed anymore.
21061 Add window resizing/positioning.
21062 Fix visibility on reparenting.
21064 2004-12-08 Peter Bartok <pbartok@novell.com>
21066 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
21068 2004-12-07 Geoff Norton <gnorton@customerdna.com>
21070 * XplatUIOSX.cs: Initial checkin
21071 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
21073 2004-12-03 Ravindra <rkumar@novell.com>
21075 * ListView.cs: Added some keybindings and fixed scrolling.
21076 ScrollBars listen to ValueChanged event instead of Scroll
21077 Event. This would let us take care of all changes being
21078 done in the scrollbars' values programmatically or manually.
21079 * ListView.cs (CanMultiselect): Added a check for shift key.
21080 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
21081 * ListViewItem.cs (Clone): Fixed. We need to make a copy
21082 of ListViewSubItemCollection as well.
21084 2004-12-06 Peter Bartok <pbartok@novell.com>
21086 * Control.cs (Parent): Added check and exception to prevent
21089 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
21091 * ListBox.cs: implemented clipping, selection single and multiple,
21094 2004-12-03 Ravindra <rkumar@novell.com>
21096 * ListView.cs (ListView_KeyDown):
21097 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
21098 when CTRL key is pressed.
21099 * ListViewItem.cs (Selected): Fixed setting the property.
21101 2004-12-03 Marek Safar <marek.safar@seznam.cz>
21103 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
21105 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
21106 MinimizeBox, ShowInTaskbar, TopMost properties.
21108 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
21109 will be implemented).
21111 2004-12-03 Marek Safar <marek.safar@seznam.cz>
21113 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
21115 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
21118 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
21120 * TreeView.cs: BackColor is Colors.Window.
21122 2004-12-01 Jackson Harper <jackson@ximian.com>
21124 * TreeView.cs: When resizing the tree if the user is making it
21125 smaller we don't get expose events, so we need to handle adding
21126 the horizontal scrollbar in the size changed handler as well as
21127 the expose handler.
21129 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
21131 * DrawItemState.cs: fixes wrong enum values
21133 2004-12-01 Jackson Harper <jackson@ximian.com>
21135 * TreeView.cs: Resize the hbar as well as the vbar on resize.
21137 2004-12-01 Jackson Harper <jackson@ximian.com>
21139 * NodeLabelEditEventArgs.cs:
21140 * NodeLabelEditEventHandler.cs:
21141 * OpenTreeNodeEnumerator.cs:
21143 * TreeNodeCollection.cs:
21145 * TreeViewAction.cs:
21146 * TreeViewCancelEventArgs.cs:
21147 * TreeViewCancelEventHandler.cs:
21148 * TreeViewEventArgs.cs:
21149 * TreeViewEventHandler.cs: Initial implementation.
21151 2004-12-01 Ravindra <rkumar@novell.com>
21153 * ListView.cs (CalculateListView): Fixed scrolling related
21154 calculations. Also, removed some debug statements from other
21156 * ListViewItem.cs: Changed access to 'selected' instance variable
21157 from private to internal.
21158 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
21160 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
21162 * ThemeWin32Classic.cs: remove cache of brush and pens for
21163 specific controls and use the global system, fixes scrollbutton
21164 bugs (for small sizes, disabled, etc)
21166 * ScrollBar.cs: does not show the thumb for very small controls
21167 (as MS) and allow smaller buttons that the regular size
21169 2004-12-01 Miguel de Icaza <miguel@ximian.com>
21171 * UpDownBase.cs: Add abstract methods for the interface.
21172 Add new virtual methods (need to be hooked up to TextEntry when it
21174 Add override methods for most features.
21175 Computes the size, forces the height of the text entry.
21177 * NumericUpDown.cs: Put here the current testing code.
21179 * Set eol-style property on all files that do not have mixed line
21180 endings, to minimize the future problems. There are still a few
21181 files with mixed endings, and someone should choose whether they
21182 want to move it or not.
21184 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
21186 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
21189 2004-11-30 Ravindra <rkumar@novell.com>
21191 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
21192 drawing and replaced use of SystemColors by theme colors.
21193 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
21194 * ListView.cs (ListViewItemCollection.Add): Throw exception when
21195 same ListViewItem is being added more than once.
21197 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
21199 * MonthCalendar.cs:
21200 - ControlStyles love to make the control not flicker
21202 2004-11-30 Peter Bartok <pbartok@novell.com>
21204 * CharacterCasing.cs: Added
21206 2004-11-29 Peter Bartok <pbartok@novell.com>
21208 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
21209 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
21210 I am removing these files as they conflict with already completed
21211 work. While it is fantastic to get contributions to MWF, I
21212 respectfully ask that everyone please coordinate their contributions
21213 through mono-winforms-list or #mono-winforms at this time. We're
21214 explicitly avoiding stubbing and don't want controls that don't have
21215 their basic functionality implemented in svn. Please also see
21216 http://www.mono-project.com/contributing/winforms.html
21219 2004-11-29 Marek Safar <marek.safar@seznam.cz>
21221 * Application.cs (ModalRun): Don't hang after exit.
21223 * Theme.cs: New TreeViewDefaultSize property.
21225 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
21226 with less hardcoded SystemColors constant.
21227 Implemented TreeViewDefaultSize.
21229 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
21230 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
21233 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
21235 * MonthCalendar.cs:
21236 - Fix NextMonthDate and PrevMonthDate click moving calendar
21238 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
21240 * MonthCalendar.cs:
21241 - Fix usage of ScrollChange Property when scrolling months
21243 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
21245 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
21246 - Fixes menu destroying
21247 - Support adding and removing items on already created menus
21249 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
21251 * MonthCalendar.cs:
21252 - Re-worked all bolded dates handling to match win32
21253 * ThemeWin32Classic.cs:
21254 - Fixed rendering with bolded dates
21256 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
21258 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
21259 - Horizontal scroolbar
21264 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
21266 * MonthCalendar.cs:
21267 - Fix Usage of MaxSelectionCount from SelectionRange
21268 - Fixed Shift + Cursor Selection
21269 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
21270 - Fixed normal cursor selection to be compat with win32
21271 - Fixed Shift + Mouse Click selection
21273 2004-11-24 Peter Bartok <pbartok@novell.com>
21275 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
21276 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
21278 - CreatedKeyBoardMsg now updates keystate with Alt key
21279 - Added workaround for timer crash to CheckTimers, Jackson will
21280 develop a proper fix and check in later
21281 - Implemented DispatchMessage
21282 - Removed calling the native window proc from GetMessage (call
21283 now moved to DispatchMessage)
21285 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
21286 the keydata (Fixes bug #69831)
21289 - (DispatchMessage): Switched to return IntPtr
21290 - Added DllImport for SetFocus
21292 2004-11-24 Ravindra <rkumar@novell.com>
21294 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
21295 background drawing.
21296 * ListViewItem.cs: Fixed various properties, calculations
21297 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
21298 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
21299 and some internal properties. Fixed MouseDown handler and Paint
21302 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
21304 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
21306 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
21308 * ContainerControl.cs: correct accidental check in of local changes
21310 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
21312 * ThemeWin32Classic.cs:
21313 - Fixed Drawing Last month in grid (sometimes not showing)
21314 * MonthCalendar.cs:
21315 - Fixed title width calculation bug (makeing title small)
21317 2004-11-23 Peter Bartok <pbartok@novell.com>
21320 - Added generation of WM_MOUSEHOVER event
21321 - Added missing assignment of async_method atom
21322 - Fixed WM_ERASEBKGND; now only redraws the exposed area
21324 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
21326 * ThemeWin32Classic.cs:
21327 - Fixed Drawing of today circle when showtodaycircle not set
21328 - fixed drawing of first and last month in the grid (gay dates)
21329 * MonthCalendar.cs:
21330 - Fixed Drawing of today circle
21331 - Fixed drawing of grady dates
21332 - Fixed HitTest for today link when ShowToday set to false
21333 - Fixed DefaultSize to obey ShowToday
21335 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
21337 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
21338 * System.Windows.Forms/Theme.cs
21339 * MonthCalendar.cs: added for MonthCalendar
21340 * SelectionRange.cs: added for MonthCalendar
21341 * Day.cs: added for MonthCalendar: added for MonthCalendar
21342 * DateRangeEventArgs.cs: added for MonthCalendar
21343 * DateRangeEventHandler.cs: added for MonthCalendar
21345 2004-11-22 Ravindra <rkumar@novell.com>
21347 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
21350 2004-11-22 Miguel de Icaza <miguel@ximian.com>
21352 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
21355 * NumericUpDown.cs: Added new implementation.
21356 * UpDownBase.cs: Added new implementation.
21358 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
21361 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
21364 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
21367 2004-11-21 Miguel de Icaza <miguel@ximian.com>
21369 * Timer.cs (Dispose): Should call the base dispose when
21372 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
21374 * ScrollBar.cs: updates thumb position when max, min or increment
21377 2004-11-21 Ravindra <rkumar@novell.com>
21379 * ListView.cs: Implemented item selection, activation and
21380 column header style. Fixed properties to do a redraw, if
21381 required. Added support for MouseHover, DoubleClick, KeyDown
21382 and KeyUp event handling and some minor fixes.
21383 * ListViewItem.cs: Fixed constructor.
21384 * ThemeWin32Classic.cs: Improved drawing for ListView.
21386 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
21388 * ThemeWin32Classic.cs: initial listbox drawing code
21389 * DrawMode.cs: new enumerator
21390 * ListControl.cs: stubbed class
21391 * ListBox.cs: initial implementation
21392 * Theme.cs: new methods definitions
21393 * SelectionMode.cs: new enumerator
21395 2004-11-17 Peter Bartok <pbartok@novell.com>
21397 * XplatUIWin32.cs: Added double-click events to the class style
21398 * Control.cs (WndProc):
21399 - Added handling of click-count to MouseDown/ MouseUp events.
21400 - Added handling of middle and right mouse buttons
21401 - Removed old debug code
21403 2004-11-17 Jackson Harper <jackson@ximian.com>
21405 * XplatUIX11.cs: Use the new Mono.Unix namespace.
21407 2004-11-17 Ravindra <rkumar@novell.com>
21409 * ListView.cs: Added event handling for MouseMove/Up/Down.
21410 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
21411 * ThemeWin32Classic.cs: We need to clear the graphics context and
21412 draw column header in a proper state.
21415 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
21417 * Menu.cs: fixes signature
21419 2004-11-16 Peter Bartok <pbartok@novell.com>
21421 * XplatUIX11.cs (GetMessage): Implemented generation of
21422 double click mouse messages
21424 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
21426 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
21429 2004-11-11 Peter Bartok <pbartok@novell.com>
21431 * HandleData.cs: Added Visible property
21432 * XplatUIX11.cs (IsVisible): Now uses Visible property from
21434 * XplatUIX11.cs: Removed old debug leftovers
21435 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
21436 * Control.cs (WndProc): Removed old debug leftovers,
21437 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
21438 needed WM_SIZE handling
21440 2004-11-11 Jackson Harper <jackson@ximian.com>
21442 * OwnerDrawPropertyBag.cs:
21443 * TreeViewImageIndexConverter.cs: Initial implementation
21445 2004-11-10 Jackson Harper <jackson@ximian.com>
21447 * ThemeWin32Classic.cs:
21448 * TabControl.cs: instead of moving tabs by the slider pos just
21449 start drawing at the tab that is offset by the slider. This way
21450 scrolling always moves by exactly one tab.
21452 2004-11-10 Jackson Harper <jackson@ximian.com>
21454 * TabControl.cs: You can only scroll left when the slider has
21455 already ben moved right.
21457 2004-11-10 Jackson Harper <jackson@ximian.com>
21459 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
21462 2004-11-10 Jackson Harper <jackson@ximian.com>
21464 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
21467 2004-11-09 Jackson Harper <jackson@ximian.com>
21469 * TabControl.cs (CalcXPos): New helper method so we can determine
21470 the proper place to start drawing vertical tabs.
21471 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
21473 2004-11-09 Jackson Harper <jackson@ximian.com>
21475 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
21476 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
21477 and Bottom, left and right are illegal values for this and
21478 multiline is enabled when the alignment is set to left or right.
21479 (DrawTab): Each alignment block should draw the text itself now
21480 because Left requires special love. Also add rendering for Left
21483 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
21485 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
21486 does not destroy the windows, removes debugging messages
21488 2004-11-09 jba <jba-mono@optusnet.com.au>
21490 * ThemeWin32Classic.cs
21491 (DrawButtonBase): Fix verticle text rect clipping in windows
21492 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
21493 rendering and incorrect text rect clipping
21494 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
21495 rendering and incorrect text rect clipping
21497 2004-11-08 Jackson Harper <jackson@ximian.com>
21499 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
21500 bottom when they are bottom aligned so the bottoms of the tabs get
21502 * TabControl.cs (DropRow): Move rows up instead of down when the
21503 tab control is bottom aligned.
21505 2004-11-08 13:59 pbartok
21508 - Added handling for various window styles
21509 - Added handling for popup windows
21510 - Added SetTopmost handling
21512 2004-11-08 13:55 pbartok
21515 - Added argument to SetTopmost method
21516 - Fixed broken ClientToScreen function
21518 2004-11-08 13:53 pbartok
21520 * XplatUIStructs.cs:
21521 - Added missing WS_EX styles
21523 2004-11-08 13:53 pbartok
21525 * XplatUI.cs, XplatUIDriver.cs:
21526 - Added argument to SetTopmost
21528 2004-11-08 13:52 pbartok
21531 - Added XSetWindowAttributes structure
21532 - Improved XWindowAttributes structure
21533 - Added SetWindowValuemask enum
21534 - Added window creation arguments enum
21535 - Added gravity enum
21536 - Added Motif hints structure
21537 - Added various Motif flags and enums
21538 - Added PropertyMode enum for property functions
21540 2004-11-08 13:50 pbartok
21543 - Fixed arguments for updated SetTopmost method
21545 2004-11-08 13:49 pbartok
21548 - Fixed arguments for updated SetTopmost function
21549 - Fixed usage of PointToClient
21551 2004-11-08 13:44 pbartok
21554 - Added Clipping of children and siblings
21556 2004-11-08 13:41 pbartok
21559 - Removed SetMenuBarWindow call. We do this in Form.cs
21561 2004-11-08 13:40 jackson
21563 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
21564 scrolling jimmi in the correct location with bottom aligned tabs
21566 2004-11-08 13:36 pbartok
21568 * ContainerControl.cs:
21569 - Implemented BindingContext
21570 - Implemented ParentForm
21572 2004-11-08 12:46 jackson
21574 * TabControl.cs: Put bottom rendered tabs in the right location
21576 2004-11-08 07:15 jordi
21578 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
21581 2004-11-05 17:30 jackson
21583 * TabControl.cs: When selected tabs are expanded make sure they
21584 don't go beyond the edges of the tab control
21586 2004-11-05 14:57 jackson
21588 * TabControl.cs: Reset show_slider so if the control is resized to
21589 a size where it is no longer needed it's not displayed anymore
21591 2004-11-05 13:16 jackson
21593 * TabControl.cs: Make tab pages non visible when added to the
21596 2004-11-05 12:42 jackson
21598 * TabControl.cs: Implement SizeMode.FillToRight
21600 2004-11-05 12:16 jackson
21602 * Control.cs: Do not call CreateHandle if the handle is already
21605 2004-11-05 11:46 jackson
21607 * TabControl.cs: Remove superflous call to CalcTabRows
21609 2004-11-05 09:07 jackson
21611 * XplatUIX11.cs: Update for Mono.Posix changes
21613 2004-11-05 07:00 ravindra
21615 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
21618 2004-11-04 22:47 jba
21620 * ThemeWin32Classic.cs:
21621 - Fix Button rendering for FlatStyle = Flat or Popup
21622 - Fix RadioButton and CheckBox rendering when Appearance = Button
21623 (normal and flatstyle).
21624 - Correct outer rectangle color when drawing focus rectangle
21625 - Adjust button bounds to be 1 px smaller when focused
21626 - Make button not draw sunken 3d border when pushed (windows compat)
21627 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
21628 - Offset the text in RadioButton and Checkbox when being rendered as
21630 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
21632 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
21633 - Fixed disabled text rendering for normally rendered radiobuttons
21635 2004-11-04 10:26 jackson
21637 * TabControl.cs: Recalculate tab rows when resizing
21639 2004-11-04 07:47 jordi
21641 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
21642 collection completion, drawing issues, missing features
21644 2004-11-04 05:03 ravindra
21647 - We need to recalculate the Thumb area when
21648 LargeChange/maximum/minimum values are changed.
21649 - We set the 'pos' in UpdatePos() method to minimum, if it's less
21650 than minimum. This is required to handle the case if large_change is
21651 more than max, and use LargeChange property instead of large_change
21653 - We return max+1 when large_change is more than max, like MS does.
21655 2004-11-04 04:29 ravindra
21657 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
21658 - Changed default value signatures (prefixed all with ListView).
21659 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
21661 - Fixed calculations for ListViewItem and implemented Clone()
21664 2004-11-04 04:26 ravindra
21666 * Theme.cs, ThemeWin32Classic.cs:
21667 - Changed default ListView values signatures (prefixed all with
21669 - Fixed default size values for VScrollBar and HScrollBar.
21670 - Fixed DrawListViewItem method.
21672 2004-11-04 04:05 ravindra
21674 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
21676 2004-11-04 04:04 ravindra
21678 * ImageList.cs: Implemented the missing overload for Draw method.
21680 2004-11-03 19:29 jackson
21682 * TabControl.cs: Handle dropping rows on selection properly
21684 2004-11-03 11:59 jackson
21686 * TabControl.cs: remove debug code
21688 2004-11-03 11:52 jackson
21690 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
21691 the scrolly widgerywoo
21693 2004-11-02 13:52 jackson
21695 * TabControl.cs: Resize the tab pages and tabs when the tab control
21698 2004-11-02 13:40 jackson
21700 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
21701 selected tab to the bottom
21703 2004-11-02 13:39 jackson
21705 * TabPage.cs: Store the tab pages row
21707 2004-11-02 12:33 jordi
21709 * MenuItem.cs: fixes handle creation
21711 2004-11-02 11:42 jackson
21713 * TabControl.cs: signature fix
21715 2004-11-02 08:56 jackson
21717 * TabControl.cs: Calculate whether the tab is on an edge properly.
21718 Remove top secret debugging code
21720 2004-11-01 19:57 jackson
21722 * TabControl.cs: Add click handling, and proper sizing
21724 2004-11-01 19:47 jackson
21726 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
21729 2004-11-01 19:39 jackson
21731 * TabPage.cs: add internal property to store the bounds of a tab
21734 2004-10-30 04:23 ravindra
21736 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
21739 2004-10-30 04:21 ravindra
21741 * ListView.cs, ListViewItem.cs: Added support for scrolling and
21742 fixed calculations.
21744 2004-10-30 03:06 pbartok
21747 - Removed extension of DllImported libs
21749 2004-10-29 09:55 jordi
21751 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
21752 navigation, itemcollection completion, menu fixes
21754 2004-10-27 22:58 pbartok
21757 - Now throws a nice error message when no X display could be opened
21759 2004-10-26 13:51 jordi
21761 * ListView.cs: removes warning
21763 2004-10-26 03:55 ravindra
21765 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
21766 ThemeWin32Classic.cs: Some formatting for my last checkins.
21768 2004-10-26 03:36 ravindra
21770 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
21771 control and default values.
21773 2004-10-26 03:35 ravindra
21775 * Theme.cs: Added some default values for ListView control.
21777 2004-10-26 03:33 ravindra
21779 * ToolBar.cs: ToolBar should use the user specified button size, if
21780 there is any. Added a size_specified flag for the same.
21782 2004-10-26 03:33 ravindra
21784 * ColumnHeader.cs: Added some internal members and calculations for
21787 2004-10-26 03:32 ravindra
21789 * ListViewItem.cs: Calculations for ListViewItem.
21791 2004-10-26 03:31 ravindra
21793 * ListView.cs: Added some internal members and calculations for
21796 2004-10-22 13:31 jordi
21798 * MenuAPI.cs: speedup menus drawing
21800 2004-10-22 13:16 jackson
21802 * XplatUIX11.cs: Make sure to update exposed regions when adding an
21805 2004-10-22 11:49 jackson
21809 2004-10-22 11:41 jackson
21811 * Control.cs: Check to see if the window should have its background
21812 repainted by X when drawing.
21814 2004-10-22 11:31 jackson
21816 * XplatUIX11.cs: When invalidating areas only use XClearArea if
21817 clear is true, this way we do not get flicker from X repainting the
21820 2004-10-22 11:28 jackson
21822 * XEventQueue.cs: Queue properly
21824 2004-10-21 09:38 jackson
21826 * XEventQueue.cs: Fix access modifier
21828 2004-10-21 09:36 jackson
21830 * XEventQueue.cs: Don't loose messages
21832 2004-10-21 09:22 jackson
21834 * XEventQueue.cs: Don't loose messages
21836 2004-10-20 04:15 jordi
21838 * BootMode.cs: enum need it by SystemInfo
21840 2004-10-19 21:58 pbartok
21843 - Small sanity check
21845 2004-10-19 21:56 pbartok
21848 - Added private FormParentWindow class which acts as the container
21849 for our form and as the non-client area where menus are drawn
21850 - Added/Moved required tie-ins to Jordi's menus
21851 - Fixed/Implemented the FormStartPosition functionality
21853 2004-10-19 21:52 pbartok
21856 - Removed unneeded locals
21857 - Added code to all size and location properties to understand and
21858 deal with the parent container of Form
21860 2004-10-19 21:33 pbartok
21863 - Fixed to deal with new Form subclasses for menus
21865 2004-10-19 17:48 jackson
21867 * XEventQueue.cs: commit correct version of file
21869 2004-10-19 16:50 jackson
21871 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
21873 2004-10-19 16:15 jordi
21875 * MenuAPI.cs: MenuBarCalcSize returns the height
21877 2004-10-19 08:31 pbartok
21880 - Added missing call to PreProcessMessage before calling OnXXXKey
21883 2004-10-19 00:04 ravindra
21885 * ToolTip.cs: Fixed constructor.
21887 2004-10-18 09:31 jordi
21889 * MenuAPI.cs: menuitems in menubars do not have shortcuts
21891 2004-10-18 09:26 jordi
21893 * MenuItem.cs: fixes MenuItem class signature
21895 2004-10-18 08:56 jordi
21897 * MenuAPI.cs: prevents windows from showing in the taskbar
21899 2004-10-18 00:28 ravindra
21901 * ToolTip.cs: Suppressed a warning message.
21903 2004-10-18 00:27 ravindra
21905 * Control.cs: Default value of visible property must be true.
21907 2004-10-17 23:19 pbartok
21910 - Complete implementation
21912 2004-10-17 23:19 pbartok
21915 - Added EnableWindow method
21916 - Added SetModal stub
21917 - Added generation of WM_ACTIVATE message (still needs testing)
21918 - Added SetTopMost stub
21919 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
21921 2004-10-17 23:17 pbartok
21924 - Removed VirtualKeys to XplatUIStructs
21925 - Implemented SetTopMost method
21926 - Implemented EnableWindow method
21927 - Bugfix in ScreenToClient()
21928 - Bugfixes in ClientToScreen()
21930 2004-10-17 22:51 pbartok
21932 * XplatUIStructs.cs:
21933 - Added WS_EX styles to WindowStyles enumeration
21935 2004-10-17 22:50 pbartok
21937 * XplatUI.cs, XplatUIDriver.cs:
21938 - Added method for enabling/disabling windows
21939 - Added method for setting window modality
21940 - Added method for setting topmost window
21942 2004-10-17 22:49 pbartok
21944 * ThemeWin32Classic.cs:
21945 - Added ToolTip drawing code
21947 2004-10-17 22:49 pbartok
21950 - Added ToolTip abstracts
21952 2004-10-17 22:47 pbartok
21955 - Fixed Form.ControlCollection to handle owner relations
21956 - Added Owner/OwnedForms handling
21957 - Implemented Z-Ordering for owned forms
21958 - Removed unneeded private overload of ShowDialog
21959 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
21961 - Fixed Close(), had wrong default
21962 - Added firing of OnLoad event
21963 - Added some commented out debug code for Ownership handling
21965 2004-10-17 22:16 pbartok
21968 - Fixed/implemented flat list of controls
21970 2004-10-17 22:14 pbartok
21973 - Added code to simulate modal dialogs on Win32
21975 2004-10-17 16:11 jordi
21977 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
21980 2004-10-17 13:39 jordi
21982 * MenuAPI.cs: menu drawing fixes
21984 2004-10-15 09:10 ravindra
21986 * StructFormat.cs: General Enum.
21988 2004-10-15 09:09 ravindra
21990 * SizeGripStyle.cs: Enum for Form.
21992 2004-10-15 09:08 ravindra
21994 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
21995 in Theme for ListView.
21997 2004-10-15 09:06 ravindra
21999 * ColumnHeader.cs: Flushing some formatting changes.
22001 2004-10-15 09:05 ravindra
22003 * ListViewItem.cs: Implemented GetBounds method and fixed coding
22006 2004-10-15 09:03 ravindra
22008 * ListView.cs: Implemented Paint method and fixed coding style.
22010 2004-10-15 07:34 jordi
22012 * MenuAPI.cs: fix for X11
22014 2004-10-15 07:32 ravindra
22016 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
22017 - Renamed Paint() method to Draw() for clarity. Also, moved
22018 DrawImage() to OnPaint().
22020 2004-10-15 07:25 ravindra
22022 * CheckBox.cs, RadioButton.cs:
22023 - Removed Redraw (), we get it from ButtonBase.
22024 - Implemented Paint (), to do class specific painting.
22026 2004-10-15 07:16 ravindra
22029 - Redraw () is not virtual now.
22030 - Added an internal virtual method Paint (), so that
22031 derived classes can do their painting on their own.
22032 - Modified OnPaint () to call Paint ().
22034 2004-10-15 06:43 jordi
22036 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
22037 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
22039 2004-10-15 00:30 ravindra
22042 - MessageBox on windows does not have min/max buttons.
22043 This change in CreateParams fixes this on Windows. We
22044 still need to implement this windowstyle behavior in
22047 2004-10-14 05:14 ravindra
22050 - Changed Redraw () to do a Refresh () always.
22051 - Fixed the MouseMove event handling when mouse is pressed,
22052 ie drag event handling.
22053 - Replaced the usage of ToolBarButton.Pressed property to
22054 ToolBarButton.pressed internal variable.
22056 2004-10-14 05:10 ravindra
22058 * ToolBarButton.cs:
22059 - Added an internal member 'inside' to handle mouse move
22060 with mouse pressed ie mouse drag event.
22061 - Changed 'Pressed' property to return true only when
22062 'inside' and 'pressed' are both true.
22063 - Some coding style love.
22065 2004-10-14 00:17 ravindra
22067 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
22070 2004-10-14 00:15 ravindra
22072 * ButtonBase.cs: Redraw () related improvements.
22074 2004-10-14 00:14 ravindra
22076 * MessageBox.cs: Moved InitFormSize () out of Paint method and
22077 removed unnecessary calls to Button.Show () method.
22079 2004-10-13 17:50 pbartok
22083 - Removed destroying of window until we solve the problem of X
22084 destroying the window before us on shutdown
22086 2004-10-13 16:32 pbartok
22089 - Now Redraws on MouseUp for FlatStyle Flat and Popup
22091 2004-10-13 14:18 pbartok
22094 - Added code to destroy the X window
22096 2004-10-13 14:18 pbartok
22099 - Added code to destroy a window
22101 2004-10-13 14:12 pbartok
22104 - Added the Redraw on Resize that got dropped in the last rev
22106 2004-10-13 09:06 pbartok
22108 * ThemeWin32Classic.cs:
22109 - Path from John BouAntoun:
22110 * Fix check rendering (centre correctly for normal style, offset
22111 correctly for FlatStyle).
22112 * Fix border color usage (use backcolor) for FlatStyle.Popup
22113 * Use checkbox.Capture instead of checkbox.is_pressed when
22114 rendering flatstyle states.
22116 2004-10-12 21:48 pbartok
22118 * ThemeWin32Classic.cs:
22119 - Removed all occurences of SystemColors and replaced them with the
22120 matching theme color
22122 2004-10-12 21:41 pbartok
22124 * ThemeWin32Classic.cs:
22125 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
22126 him using the function for flatstyle drawing
22127 - Changed functions to use the new version of CPDrawBorder3D
22129 2004-10-12 21:15 pbartok
22132 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
22133 match MS documentation. They need to return defined colors if the
22134 passed color matches the configured control color. Thanks to John
22135 BouAntoun for pointing this out.
22137 2004-10-12 20:57 pbartok
22140 - Fix from John BouAntoun: Raise ForeColorChanged event when text
22143 2004-10-12 20:46 pbartok
22146 - Fix from John BouAntoun: Now properly sets the Appearance property
22148 2004-10-12 20:45 pbartok
22150 * ThemeWin32Classic.cs:
22151 - Fixes from John BouAntoun: now handles forecolors and backcolors
22152 for flatstyle rendered controls much better; It also fixes normal
22153 checkbox rendering when pushed or disabled.
22155 2004-10-08 02:50 jordi
22157 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
22160 2004-10-07 08:56 jordi
22162 * ThemeWin32Classic.cs: Removes deletion of cached brushes
22164 2004-10-06 03:59 jordi
22166 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
22167 XplatUIWin32.cs: removes warnings from compilation
22169 2004-10-05 12:23 jackson
22171 * RadioButton.cs: Fix ctor
22173 2004-10-05 11:10 pbartok
22176 - Partial implementation by Benjamin Dasnois
22178 2004-10-05 10:15 jackson
22180 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
22183 2004-10-05 03:07 ravindra
22186 - Removed a private method, Draw ().
22187 - Fixed the ButtonDropDown event handling.
22188 - Fixed MouseMove event handling.
22190 2004-10-05 03:04 ravindra
22192 * ThemeWin32Classic.cs:
22193 - Added DrawListView method and ListViewDefaultSize property.
22194 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
22195 - Changed DOS style CRLF to Unix format (dos2unix).
22197 2004-10-05 03:03 ravindra
22200 - Added DrawListView method and ListViewDefaultSize property.
22202 2004-10-05 02:42 ravindra
22204 * ToolBarButton.cs: Added an internal member dd_pressed to handle
22205 clicks on DropDown arrow.
22207 2004-10-04 22:56 jackson
22209 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
22210 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
22211 Control handle the buffers, derived classes should not have to
22212 CreateBuffers themselves.
22214 2004-10-04 21:20 jackson
22216 * StatusBar.cs: The control handles resizing the buffers now.
22218 2004-10-04 21:18 jackson
22220 * Control.cs: When resizing the buffers should be invalidated. This
22221 should be handled in Control not in derived classes.
22223 2004-10-04 14:45 jackson
22227 2004-10-04 02:14 pbartok
22229 * LeftRightAlignment.cs:
22232 2004-10-04 01:09 jordi
22234 * ThemeWin32Classic.cs: fixes right button position causing right
22235 button not showing on horizontal scrollbars
22237 2004-10-02 13:12 pbartok
22240 - Simplified the Invalidate method by using an X call instead of
22241 generating the expose ourselves
22242 - Added an expose when the window background is changed
22243 - Implemented ClientToScreen method
22245 2004-10-02 13:08 pbartok
22248 - Added Win32EnableWindow method (test for implementing modal
22250 - Added ClientToScreen method and imports
22252 2004-10-02 13:07 pbartok
22254 * XplatUI.cs, XplatUIDriver.cs:
22255 - Added ClientToScreen coordinate translation method
22257 2004-10-02 13:06 pbartok
22259 * KeyPressEventArgs.cs:
22260 - Fixed access level for constructor
22262 2004-10-02 13:06 pbartok
22265 - Changed access level for the window_collection hash table
22267 2004-10-02 13:05 pbartok
22270 - Added KeyPreview property
22271 - Added Menu property (still incomplete, pending Jordi's menu work)
22272 - Implemented ProcessCmdKey
22273 - Implemented ProcessDialogKey
22274 - Implemented ProcessKeyPreview
22276 2004-10-02 13:02 pbartok
22279 - Added private method to get the Control object from the window
22281 - Implemented ContextMenu property
22282 - Implemented PointToScreen
22283 - Implemented PreProcessMessage
22284 - Implemented IsInputChar
22285 - Implemented IsInputKey
22286 - Implemented ProcessCmdKey
22287 - Completed ProcessKeyEventArgs
22288 - Fixed message loop to call the proper chain of functions on key
22290 - Implemented ProcessDialogChar
22291 - Implemented ProcessDialogKey
22292 - Implemented ProcessKeyMessage
22293 - Implemented ProcessKeyPreview
22294 - Added RaiseDragEvent stub (MS internal method)
22295 - Added RaiseKeyEvent stub (MS internal method)
22296 - Added RaiseMouseEvent stub (MS Internal method)
22297 - Added RaisePaintEvent stub (MS Internal method)
22298 - Added ResetMouseEventArgs stub (MS Internal method)
22299 - Implemented RtlTranslateAlignment
22300 - Implemented RtlTranslateContent
22301 - Implemented RtlTranslateHorizontal
22302 - Implemented RtlTranslateLeftRight
22303 - Added generation of KeyPress event
22305 2004-10-02 05:57 ravindra
22307 * ListViewItem.cs: Added attributes.
22309 2004-10-02 05:32 ravindra
22311 * ListView.cs: Added attributes.
22313 2004-10-01 11:53 jackson
22315 * Form.cs: Implement the Close method so work on MessageBox can
22318 2004-09-30 14:06 pbartok
22323 2004-09-30 11:34 jackson
22325 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
22327 2004-09-30 07:26 ravindra
22329 * ListViewItemConverter.cs: Converter for ListViewItem.
22331 2004-09-30 07:26 ravindra
22333 * SortOrder.cs: Enum for ListView control.
22335 2004-09-30 07:25 ravindra
22337 * ColumnHeader.cs: Supporting class for ListView control.
22339 2004-09-30 07:24 ravindra
22341 * ListView.cs, ListViewItem.cs: Initial implementation.
22343 2004-09-30 07:20 ravindra
22345 * ItemActivation.cs: Enum for ListView Control.
22347 2004-09-29 20:29 pbartok
22350 - Added lookup of pixel value for background color; tries to get a
22351 color 'close' to the requested color, it avoids having to create a
22352 colormap. Depending on the display this could mean the used color
22353 is slightly off the desired color. Might have to change it to a more
22354 resource intensive colormap approach, but it will work as a
22355 workaround to avoid red screens.
22357 2004-09-29 14:27 jackson
22359 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
22361 2004-09-28 12:44 pbartok
22363 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
22364 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
22365 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
22366 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
22367 TrackBar.cs, VScrollBar.cs:
22368 - Streamlined Theme interfaces:
22369 * Each DrawXXX method for a control now is passed the object for
22370 the control to be drawn in order to allow accessing any state the
22371 theme might require
22373 * ControlPaint methods for the theme now have a CP prefix to avoid
22374 name clashes with the Draw methods for controls
22376 * Every control now retrieves it's DefaultSize from the current
22379 2004-09-28 12:17 jackson
22381 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
22384 2004-09-24 14:57 jackson
22386 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
22387 Gives us a nice little performance boost.
22389 2004-09-24 12:02 jackson
22391 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
22392 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
22393 Control and supporting classes. Initial checkin
22395 2004-09-23 13:08 jackson
22397 * Form.cs: Temp build fixage
22399 2004-09-23 01:39 ravindra
22401 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
22402 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
22403 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
22404 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
22405 EventHandlers needed by ListView Control.
22407 2004-09-22 14:12 pbartok
22409 * ScrollableControl.cs:
22410 - Implemented DockPadding property
22411 - Implemented AutoScroll property
22412 - Implemented AutoScrollMargin property
22413 - Implemented AutoScrollMinSize property
22414 - Implemented AutoScrollPosition property
22415 - Implemented DisplayRectangle property (still incomplete)
22416 - Implemented CreateParams property
22417 - Implemented HScroll property
22418 - Implemented VScroll property
22419 - Implemented OnVisibleChanged property
22421 2004-09-22 14:09 pbartok
22424 - Added Form.ControllCollection class
22425 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
22426 RemoveOwnedForm (still incomplete, missing on-top and common
22427 minimize/maximize behaviour)
22428 - Added StartPosition property (still incomplete, does not use when
22430 - Added ShowDialog() methods (still incomplete, missing forcing the
22433 2004-09-22 14:05 pbartok
22436 - Added message loop for modal dialogs
22438 2004-09-22 14:02 pbartok
22441 - Fixed wrong types for events
22443 2004-09-22 14:00 pbartok
22445 * Shortcut.cs, FormWindowState.cs:
22446 - Fixed wrong values
22448 2004-09-22 12:01 jackson
22450 * Control.cs: Text is never null
22452 2004-09-20 22:14 pbartok
22455 - Fixed accessibility level for Idle handler
22457 2004-09-20 18:54 jackson
22459 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
22460 XplatUIX11.cs: New message loop that uses poll so we don't get a
22463 2004-09-17 10:43 pbartok
22466 - Fixed behaviour of arrow buttons. Now properly behaves like
22467 Buttons (and like Microsoft's scrollbar arrow buttons)
22469 2004-09-17 10:14 pbartok
22472 - Added missing release of keyboard/mouse capture
22474 2004-09-17 06:18 jordi
22476 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
22477 Theme.cs: Very early menu support
22479 2004-09-16 17:45 pbartok
22482 - Fixed sending a window to the front
22483 - Added overload for SetWindowPos to avoid casting
22485 2004-09-16 17:44 pbartok
22488 - Added SendToBack and BringToFront methods
22490 2004-09-16 07:00 ravindra
22492 * Copyright: Added Novell URL.
22494 2004-09-16 07:00 ravindra
22496 * ToolBar.cs: Invalidate should be done before redrawing.
22498 2004-09-15 21:19 ravindra
22500 * ColumnHeaderStyle.cs: Enum for ListView Control.
22502 2004-09-15 21:18 ravindra
22504 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
22507 2004-09-13 18:26 jackson
22509 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
22512 2004-09-13 18:13 jackson
22514 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
22515 a second thread and post messages into the main threads message
22516 queue. This makes timing much more consistent. Both win2K and XP
22517 have a minimum timer value of 15 milliseconds, so we now do this
22520 2004-09-13 15:18 pbartok
22522 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
22524 - Added Z-Ordering methods
22526 2004-09-13 10:56 pbartok
22529 - Fixed #region names
22530 - Moved properties and methods into their proper #regions
22532 2004-09-13 10:51 pbartok
22535 - Added Accept and CancelButton properties
22536 - Added ProcessDialogKey() method
22538 2004-09-13 08:18 pbartok
22540 * IWindowTarget.cs:
22543 2004-09-10 21:50 pbartok
22546 - Added DoDragDrop() [incomplete]
22547 - Properly implemented 'Visible' handling
22548 - Added SetVisibleCore()
22549 - Implemented FindChildAtPoint()
22550 - Implemented GetContainerControl()
22551 - Implemented Hide()
22553 2004-09-10 19:28 pbartok
22556 - Moved methods into their appropriate #regions
22557 - Reordered methods within regions alphabetically
22559 2004-09-10 18:57 pbartok
22561 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
22562 - Added method to retrieve text from window
22564 2004-09-10 18:56 pbartok
22567 - Moved some internal functions into the internal region
22568 - Implemented FontHeight
22569 - Implemented RenderRightToLeft
22570 - Implemented ResizeRedraw
22571 - Implemented ShowFocusCues
22572 - Implemented ShowKeyboardCues
22573 - Implemented FromChildHandle
22574 - Implemented FromHandle
22575 - Implemented IsMnemonic
22576 - Implemented ReflectMessage
22577 - All public and protected Static Methods are now complete
22579 2004-09-10 16:54 pbartok
22582 - Implemented remaining missing public instance properties
22583 - Alphabetized some out of order properties
22585 2004-09-10 05:51 ravindra
22587 * PictureBox.cs: Added a check for null image.
22589 2004-09-10 00:59 jordi
22591 * GroupBox.cs: remove cvs tag
22593 2004-09-09 05:25 ravindra
22595 * ToolBar.cs: Make redraw accessible from ToolBarButton.
22597 2004-09-09 05:23 ravindra
22599 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
22602 2004-09-09 02:28 pbartok
22604 * ThemeWin32Classic.cs:
22605 - Improve disabled string look
22607 2004-09-09 01:15 jordi
22609 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
22612 2004-09-08 23:56 ravindra
22614 * ItemBoundsPortion.cs: It's enum, not a class!
22616 2004-09-08 23:47 ravindra
22618 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
22621 2004-09-08 21:13 ravindra
22623 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
22626 2004-09-08 21:03 ravindra
22628 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
22631 2004-09-08 21:01 ravindra
22633 * ScrollableControl.cs: Removed unreachable code.
22635 2004-09-08 06:45 jordi
22637 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
22639 2004-09-08 01:00 jackson
22641 * XplatUIX11.cs: Only run the timers when updating the message
22642 queue. This effectively gives X messages a higher priority then
22643 timer messages. Timers still need love though
22645 2004-09-07 14:01 jackson
22647 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
22648 this for us and the handle is no longer valid.
22650 2004-09-07 13:59 jackson
22652 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
22653 loop that manages to not crash. TODO: Add poll and cleanup timers
22655 2004-09-07 11:12 jordi
22657 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
22659 2004-09-07 03:40 jordi
22661 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
22662 fixes, methods, multiple links
22664 2004-09-06 06:55 jordi
22666 * Control.cs: Caches ClientRectangle rectangle value
22668 2004-09-05 02:03 jordi
22670 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
22673 2004-09-04 11:10 jordi
22675 * Label.cs: Refresh when font changed
22677 2004-09-02 16:24 pbartok
22680 - Added sanity check to creation of double buffer bitmap
22682 2004-09-02 16:24 pbartok
22685 - Fixed selection of text color
22686 - Fixed handling of resize event; now properly recreates double
22688 - Added missing assignment of TextAlignment
22689 - Added proper default for TextAlignment
22691 2004-09-02 14:26 pbartok
22694 - Added missing RadioButton.RadioButtonAccessibleObject class
22696 2004-09-02 14:26 pbartok
22699 - Added missing Control.ControlAccessibleObject class
22700 - Started to implement Select()ion mechanisms, still very incomplete
22702 2004-09-02 14:25 pbartok
22704 * AccessibleObject.cs:
22705 - Added missing methods
22707 2004-09-02 14:23 pbartok
22709 * AccessibleNavigation.cs, AccessibleSelection.cs:
22712 2004-09-02 10:32 jordi
22714 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
22715 pool for pens, brushes, and hatchbruses
22717 2004-09-01 15:30 jackson
22719 * StatusBar.cs: Fix typo
22721 2004-09-01 14:44 pbartok
22726 2004-09-01 14:39 pbartok
22728 * Button.cs, RadioButton.cs:
22729 - Functional initial check-in
22731 2004-09-01 14:01 pbartok
22734 - Added missing default
22735 - Added missing region mark
22737 2004-09-01 09:10 jordi
22739 * Label.cs: fixes method signatures, new methods, events, fixes
22742 2004-09-01 07:19 jordi
22744 * Control.cs: Init string variables with an empty object
22746 2004-09-01 04:20 jordi
22748 * Control.cs: fires OnFontChanged event
22750 2004-08-31 20:07 pbartok
22753 - Enabled display of strings
22755 2004-08-31 20:05 pbartok
22758 - Added (partial) implementation of DialogResult; rest needs to be
22759 implemented when the modal loop code is done
22761 2004-08-31 19:55 pbartok
22764 - Fixed to match the removal of the needs_redraw concept
22766 2004-08-31 19:55 pbartok
22769 - Removed the rather odd split between 'needs redraw' and redrawing
22770 - Now handles the events that require regeneration (ambient
22771 properties and size)
22773 2004-08-31 19:41 pbartok
22776 - Added firing of BackColorChanged event
22777 - Added TopLevelControl property
22778 - Fixed handling of WM_ERASEBKGRND message
22780 2004-08-31 12:49 pbartok
22786 2004-08-31 12:48 pbartok
22789 - Finished (famous last words)
22791 2004-08-31 04:35 jordi
22793 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
22794 scrolling bugs, adds new methods
22796 2004-08-30 14:42 pbartok
22799 - Implemented CheckBox drawing code
22801 2004-08-30 14:42 pbartok
22804 - Made Redraw() and CheckRedraw() virtual
22805 - Improved mouse up/down/move logic to properly track buttons
22807 2004-08-30 09:44 pbartok
22810 - Updated to fix broken build. Not complete yet.
22812 2004-08-30 09:28 pbartok
22817 2004-08-30 09:17 pbartok
22822 2004-08-27 16:12 ravindra
22824 * ToolBarButton.cs: Added TypeConverter attribute.
22826 2004-08-27 16:07 ravindra
22828 * ImageIndexConverter.cs: Implemented.
22830 2004-08-27 14:17 pbartok
22833 - Removed unneeded stack vars
22834 - First attempt to fix sizing issues when layout is suspended
22836 2004-08-25 15:35 jordi
22838 * ScrollBar.cs: more fixes to scrollbar
22840 2004-08-25 14:04 ravindra
22842 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
22843 Added the missing divider code and grip for ToolBar Control.
22845 2004-08-25 13:20 pbartok
22848 - Control now properly passes the ambient background color to child
22851 2004-08-25 13:20 jordi
22853 * ScrollBar.cs: small bug fix regarding bar position
22855 2004-08-25 12:33 pbartok
22858 - Now only calls SetTimer or KillTimer if the enabled state has
22861 2004-08-25 12:33 pbartok
22864 - Fixed timer handling, now seems to work
22865 - Improved error message for window creation
22867 2004-08-25 12:32 pbartok
22870 - Fixed generation of MouseUp message
22872 2004-08-25 12:29 jordi
22874 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
22875 and fixes for progressbar
22877 2004-08-24 18:43 ravindra
22879 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
22880 in ToolBar control.
22882 2004-08-24 17:15 pbartok
22886 - Added missing events
22889 2004-08-24 17:14 pbartok
22891 * StatusBar.cs, PictureBox.cs:
22892 - Now uses Control's CreateParams
22894 2004-08-24 16:36 pbartok
22897 - Fixed background color handling
22898 - Fixed sending of enter/leave events on a grab
22900 2004-08-24 16:35 pbartok
22903 - Refined definitions for CrossingEvent
22905 2004-08-24 12:37 jordi
22907 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
22908 formmating, methods signature, and adds missing events
22910 2004-08-24 12:24 jordi
22912 * Control.cs: fire OnEnabledChanged event
22914 2004-08-24 11:17 pbartok
22917 - Implemented SetTimer() and KillTimer()
22919 2004-08-24 11:16 pbartok
22922 - Now uses Remove instead of Add to kill the timer
22924 2004-08-24 10:16 jackson
22926 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
22927 picture boxes in the theme now. Draw picture box borders and obey
22930 2004-08-24 05:49 jackson
22932 * Timer.cs: Remove top secret debugging code
22934 2004-08-24 05:34 jackson
22936 * PictureBox.cs: Temp hack to make picture boxes draw their full
22939 2004-08-24 05:29 jackson
22941 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
22942 XplatUIX11.cs: Move timers to the driver level. On X they are
22943 queued by the driver and checked on idle.
22945 2004-08-24 01:07 jackson
22947 * XplatUIX11.cs: Use a queue for async messages instead of passing
22948 them as ClientMessages since that was totally broken. Also simply
22949 check for events and return an idle message if none are found. This
22950 gives us an idle handler, and prevents deadlocking when no messages
22953 2004-08-23 18:19 ravindra
22955 * XplatUIWin32.cs: Removed the unwanted destructor.
22957 2004-08-23 17:27 pbartok
22960 - Finishing touches. Works now, just needs some optimizations.
22962 2004-08-23 16:53 jordi
22964 * ScrollBar.cs: small fix
22966 2004-08-23 16:45 pbartok
22969 - Removed debug output
22972 2004-08-23 16:43 jordi
22974 * ScrollBar.cs: [no log message]
22976 2004-08-23 16:10 pbartok
22979 - Fixed handling of WM_CLOSE message
22980 - Removed debug output
22982 2004-08-23 16:09 pbartok
22985 - Added handling of Idle event
22986 - Added handling of form closing
22987 - Fixed reporting of MessageLoop property
22988 - Removed some unneeded code, should provide a bit of a speedup
22990 2004-08-23 15:22 pbartok
22993 - Added InitLayout() method
22994 - Added code to properly perform layout when Anchor or Dock property
22996 - Changed 'interpretation' of ResumeLayout. MS seems to have a
22997 LAMESPEC, tried to do it in a way that makes sense
22999 2004-08-23 14:10 jordi
23001 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
23002 properties and methods
23004 2004-08-23 13:55 pbartok
23007 - Properly fixed Jordi's last fix
23008 - Now uses Cursor's Position property instead of calling XplatUI
23011 2004-08-23 13:44 jordi
23013 * PaintEventHandler.cs: Adding missing attribute
23015 2004-08-23 13:39 pbartok
23018 - Implemented Position property
23020 2004-08-23 13:39 pbartok
23022 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
23023 - Added method to move mouse cursor
23025 2004-08-23 13:39 pbartok
23028 - Fixed setting of background color
23029 - Added method to move mouse cursor
23031 2004-08-23 13:16 jordi
23033 * Control.cs: avoids null exception
23035 2004-08-22 17:46 jackson
23037 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
23040 2004-08-22 17:40 jackson
23042 * XplatUIX11.cs: Add some missing locks
23044 2004-08-22 15:10 pbartok
23046 * Control.cs, Form.cs:
23047 - Removed OverlappedWindow style from Control, instead it's default
23049 - Made form windows OverlappedWindow by default
23051 2004-08-22 13:34 jackson
23053 * ScrollBar.cs: Update the position through the Value property so
23054 the OnValueChanged event is raised.
23056 2004-08-22 12:04 pbartok
23059 - Added Cursor.cs and UserControl.cs
23061 2004-08-22 12:03 pbartok
23064 - Started implementation, not usable yet
23066 2004-08-22 12:00 pbartok
23069 - Implemented UserControl (complete)
23071 2004-08-21 19:20 ravindra
23073 * ToolBar.cs: Correcting the formatting mess of VS.NET.
23075 2004-08-21 18:49 ravindra
23077 * ToolBar.cs: Probably this completes the missing attributes in
23080 2004-08-21 18:03 ravindra
23082 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
23083 Fixed toolbar control signatures.
23085 2004-08-21 16:32 pbartok
23090 2004-08-21 16:30 pbartok
23095 2004-08-21 16:19 pbartok
23097 * Control.cs, Label.cs:
23100 2004-08-21 15:57 pbartok
23103 - Added loads of debug output for development
23104 - Fixed typo in method name
23106 2004-08-21 15:52 pbartok
23108 * ToolBarButtonClickEventArgs.cs:
23109 - Added missing base class
23111 2004-08-21 14:53 pbartok
23114 - Updated to match new GrabWindow signature
23116 2004-08-21 14:51 pbartok
23118 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
23119 - Added method to get default display size
23121 2004-08-21 14:23 pbartok
23123 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
23124 - Added method to query current grab state
23125 - Added argument to allow confining a grab to a window
23127 2004-08-21 14:22 pbartok
23130 - Added [Flags] attribute so that modifiers can be used in bitwise
23133 2004-08-21 14:21 pbartok
23135 * TrackBar.cs, ScrollBar.cs:
23136 - Replaced direct XplatUI calls with their Control counterpart
23138 2004-08-21 13:32 pbartok
23141 - Implemented Created property
23143 2004-08-21 13:28 pbartok
23146 - Implemented ContainsFocus
23148 2004-08-21 13:26 pbartok
23151 - Implemented CausesValidation
23153 2004-08-21 13:21 pbartok
23156 - Implemented CanFocus
23157 - Implemented CanSelect
23158 - Implemented Capture
23160 2004-08-21 12:35 pbartok
23163 - Fixed bug with Async message handling
23164 - Implemented getting the ModifierKeys
23166 2004-08-21 12:32 jackson
23168 * AsyncMethodResult.cs: Make sure we have the mutex before we
23169 release it. Fixes BeginInvoke on windows
23171 2004-08-21 11:31 pbartok
23173 * XplatUIWin32.cs, XplatUIX11.cs:
23174 - Drivers now return proper mouse state
23176 2004-08-21 10:54 jackson
23178 * Control.cs: Implement EndInvoke
23180 2004-08-21 10:48 jackson
23182 * Timer.cs: Remove unneeded finalizer
23184 2004-08-20 19:52 ravindra
23186 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
23187 in mouse event handling in the ToolBar control.
23189 2004-08-20 19:50 ravindra
23191 * ImageList.cs: Changed draw method to use the arguments passed in
23194 2004-08-20 18:58 pbartok
23196 * XplatUIStructs.cs:
23197 - Added private message for async communication
23199 2004-08-20 17:38 ravindra
23201 * Control.cs: Made RightToLeft property virtual and removed a
23204 2004-08-20 14:39 jordi
23206 * ThemeGtk.cs: use style_attach
23208 2004-08-20 14:39 pbartok
23211 - Added jackson's Async code from X11 to Win32
23213 2004-08-20 14:09 pbartok
23216 - Added all new files
23218 2004-08-20 14:09 pbartok
23221 - Added call to set window background color
23223 2004-08-20 14:03 pbartok
23225 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
23226 - Added method for setting the window background
23228 2004-08-20 14:02 pbartok
23231 - Added method for setting the background color
23232 - Added handling for erasing the window background
23234 2004-08-20 13:45 jordi
23236 * TrackBar.cs: fixes timer, new properties and methods
23238 2004-08-20 13:34 jackson
23240 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
23243 2004-08-20 13:22 jackson
23245 * Timer.cs: Timer Tick events are now handed through Controls Async
23246 mechanism so the callbacks are executed in the same thread as X
23248 2004-08-20 13:19 jackson
23250 * XplatUIDriver.cs: Expose functionality to send async messages
23253 2004-08-20 13:18 jackson
23255 * Control.cs: Implement Begininvoke
23257 2004-08-20 13:14 jackson
23259 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
23260 messages through the driver
23262 2004-08-20 13:12 jackson
23264 * XplatUIX11.cs: Lock before all X operations. Also added Async
23265 method functionality through XSendEvent
23267 2004-08-20 13:11 jackson
23269 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
23270 This will screw up on 64 bit systems)
23272 2004-08-20 13:10 jackson
23274 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
23275 Async messages through X/Win32
23277 2004-08-19 19:39 pbartok
23280 - Updated code to match new HandleData.DeviceContext type
23282 2004-08-19 19:38 pbartok
23285 - Made DeviceContext a generic object to allow usage from various
23287 - Added support for queueing Windows messages
23289 2004-08-19 19:37 pbartok
23292 - Added generation of MouseEnter, MouseLeave and MouseHover events
23293 - Added cleanup on EndPaint
23295 2004-08-19 19:17 pbartok
23298 - Added handling of WM_MOUSEHOVER
23299 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
23302 2004-08-19 18:55 jordi
23304 * ThemeGtk.cs: fixes button order
23306 2004-08-19 18:12 jordi
23308 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
23310 2004-08-19 17:09 pbartok
23313 - Added Right property
23314 - Added RightToLeft property
23316 2004-08-19 16:27 jordi
23318 * ThemeGtk.cs: experimental GTK theme support
23320 2004-08-19 16:26 jordi
23322 * ITheme.cs, Theme.cs: move themes from an interface to a class
23324 2004-08-19 16:25 jordi
23326 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
23329 2004-08-19 16:04 pbartok
23332 - Added colormap basics
23333 - Added a way to re-initialize with a different display handle
23334 - Fixed setting of the window background color
23335 - Added various X11 imports related to colors and colormaps
23337 2004-08-19 15:51 pbartok
23340 - Removed packing hints (Paolo suggested this a while back)
23341 - fixed colormap type
23342 - Added default Atom types
23343 - Added Screen and color structs and enums
23345 2004-08-19 15:39 pbartok
23348 - Added missing Draw() method
23349 - Added missing RecreateHandle event
23351 2004-08-19 15:30 pbartok
23354 - Added handling of WM_CLOSE
23356 2004-08-18 13:16 jordi
23358 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
23361 2004-08-18 09:56 jordi
23363 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
23365 2004-08-17 15:31 ravindra
23367 * SWF.csproj: Updated project.
23369 2004-08-17 15:25 pbartok
23372 - Drawing improvement; don't call UpdateBounds if we are not visible
23373 (or have been minimized)
23375 2004-08-17 15:24 pbartok
23378 - Finished IsVisible
23379 - Added Win32GetWindowPlacement
23381 2004-08-17 15:08 jackson
23383 * Panel.cs: Initial checkin of the Panel
23385 2004-08-17 14:25 pbartok
23388 - Fixed broken handling of default window sizes
23390 2004-08-17 13:29 jackson
23392 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
23393 has a large startup time.
23395 2004-08-17 10:25 jackson
23397 * HandleData.cs: union areas properly
23399 2004-08-17 10:12 jackson
23401 * HandleData.cs: union areas properly
23403 2004-08-16 20:00 ravindra
23405 * ToolBar.cs, ToolBarButton.cs: Added attributes.
23407 2004-08-16 18:48 ravindra
23409 * ToolBar.cs: Added attributes.
23411 2004-08-16 17:17 ravindra
23413 * SWF.csproj: Updated project.
23415 2004-08-16 17:16 jackson
23417 * XplatUIX11.cs: Check for more expose events before sending a
23418 WM_PAINT so they can all be grouped together. This makes dragging a
23419 window across another window redraw in a sane way.
23421 2004-08-16 15:47 pbartok
23424 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
23425 support OnMouseEnter/Leave()
23426 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
23429 2004-08-16 15:46 pbartok
23431 * XplatUIStructs.cs, XplatUIX11.cs:
23432 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
23433 OnMouseEnter/Leave()
23435 2004-08-16 15:34 jackson
23437 * XplatUIX11.cs: Group multiple expose events in HandleData, make
23438 sure messages get the message field set to WM_NULL if they are not
23441 2004-08-16 15:24 jackson
23443 * HandleData.cs: HandleData is used for storing message information
23446 2004-08-15 17:23 ravindra
23448 * ColorDepth.cs: Added attribute.
23450 2004-08-15 17:23 ravindra
23452 * SWF.csproj: Updated project for ToolBar Control.
23454 2004-08-15 17:20 ravindra
23456 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
23457 control and also dos2unix format.
23459 2004-08-15 17:13 ravindra
23461 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
23462 ToolBarButtonClickEventArgs.cs,
23463 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
23464 ToolBarTextAlign.cs: First Implementation of ToolBar control.
23466 2004-08-15 15:31 pbartok
23469 - First (mostly) working version
23471 2004-08-13 16:15 pbartok
23474 - Fixed Anchor default
23476 2004-08-13 15:43 pbartok
23479 - Changed GetCursorPos signature
23481 2004-08-13 15:42 pbartok
23483 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
23484 - Changed signature for GetCursorPos
23486 2004-08-13 15:25 pbartok
23490 - Fixed resizing/exposure handling
23492 2004-08-13 15:22 jordi
23494 * ThemeWin32Classic.cs: removes redundant code and fixes issues
23497 2004-08-13 14:55 jordi
23499 * TrackBar.cs: change from wndproc to events
23501 2004-08-13 13:00 jordi
23503 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
23504 XplatUIX11.cs: implements PointToClient (ScreenToClient)
23506 2004-08-13 12:53 pbartok
23509 - Changed GetWindowPos to also provide client area size
23510 - Fixed broken prototypes for several win32 functions
23512 2004-08-13 12:53 pbartok
23514 * XplatUI.cs, XplatUIDriver.cs:
23515 - Changed GetWindowPos to also provide client area size
23517 2004-08-13 12:52 pbartok
23520 - Added generation of WM_POSCHANGED
23521 - Changed GetWindowPos to also provide client area size
23523 2004-08-13 12:52 pbartok
23526 - Added Dispose() and destructor
23527 - Fixed resizing and bounds calculation
23529 - Added memory savings for invisible windows
23531 2004-08-13 12:46 jordi
23533 * TrackBar.cs: adds timer and grap window
23535 2004-08-13 10:25 jackson
23537 * Timer.cs: SWF Timer
23539 2004-08-12 16:59 pbartok
23541 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
23542 - Implemented method to get current mouse position
23544 2004-08-12 14:29 jordi
23546 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
23547 enhancement, fix mouse problems, highli thumb, etc
23549 2004-08-12 13:31 pbartok
23552 - Fixed Anchoring bugs
23554 2004-08-12 13:01 jackson
23556 * StatusBar.cs: Don't forget things
23558 2004-08-12 12:54 jackson
23560 * ThemeWin32Classic.cs: Handle owner draw status bars
23562 2004-08-12 12:54 jackson
23564 * StatusBar.cs: Implement missing properties, events, and methods.
23565 Handle mouse clicking
23567 2004-08-12 10:19 jackson
23569 * StatusBarPanelClickEventArgs.cs,
23570 StatusBarPanelClickEventHandler.cs: Classes for handling status
23571 bar panel click events
23573 2004-08-12 10:10 jackson
23575 * Control.cs: Add missing properties
23577 2004-08-12 09:46 pbartok
23579 * BindingsManagerBase.cs:
23580 - Name changed to BindingManagerBase.cs
23582 2004-08-12 09:25 jordi
23584 * ScrollableControl.cs: calls ctrlbase instead of exeception
23586 2004-08-11 16:28 pbartok
23588 * InputLanguageChangingEventArgs.cs:
23589 - Never check in before compiling. Fixes the last check-in
23591 2004-08-11 16:26 pbartok
23593 * InputLanguageChangingEventArgs.cs:
23594 - More signature fixes
23596 2004-08-11 16:20 pbartok
23598 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
23599 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
23600 ImageListStreamer.cs, InputLanguage.cs,
23601 InputLanguageChangedEventArgs.cs,
23602 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
23603 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
23604 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
23605 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
23608 2004-08-11 16:16 pbartok
23612 - Added .Net 1.1 method
23614 2004-08-11 15:25 pbartok
23617 - Fixed BindingManagerBase.cs filename
23619 2004-08-11 15:22 pbartok
23621 * BindingManagerBase.cs:
23622 - Was checked in with wrong filename
23624 2004-08-11 14:50 pbartok
23629 2004-08-11 13:41 jordi
23631 * XplatUIWin32.cs: Fixes ClientRect
23633 2004-08-11 13:19 pbartok
23635 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
23637 - We had SetWindowPos and MoveWindow to set window positions and
23638 size, removed MoveWindow. We have GetWindowPos, so it made sense to
23639 keep SetWindowPos as matching counterpart
23640 - Added some X11 sanity checking
23642 2004-08-11 12:59 pbartok
23645 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
23646 (It seems that SetBounds is just a front for SetBoundsCore and
23647 SetBoundsCore updates the underlying window system and
23648 UpdateBounds is responsible for updating the variables associated
23649 with the Control and sending the events)
23650 - Major cleanup of Size handling; we now have two sizes, client_size
23651 and bounds. Bounds defines the window with decorations, client_size
23654 2004-08-11 12:55 pbartok
23656 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
23657 - Added method to calculate difference between decorated window and
23660 2004-08-11 12:54 pbartok
23663 - Forcing redraw on resize
23665 2004-08-11 11:43 pbartok
23668 - Removed disposing of the actual images when the list is disposed
23670 2004-08-11 09:13 pbartok
23673 - Now properly reparents windows
23675 2004-08-11 08:37 pbartok
23680 2004-08-11 07:47 pbartok
23683 - Rewrote the collection stuff. Might not be as fast now, not
23684 keeping the number of children around and accessible directly, but
23685 it's more straightforward
23687 2004-08-11 07:44 pbartok
23689 * AccessibleObject.cs:
23690 - Fixed to match ControlCollection rewrite
23692 2004-08-11 07:43 pbartok
23695 - Added missing creation of the collection list
23697 2004-08-10 20:08 jackson
23699 * StatusBar.cs: Get the paint message from WndProc
23701 2004-08-10 19:31 jackson
23703 * ThemeWin32Classic.cs: Create Brushes as little as possible
23705 2004-08-10 19:20 jackson
23707 * UICues.cs: Add Flags attribute
23709 2004-08-10 19:19 jackson
23711 * StatusBarPanel.cs: Signature cleanup
23713 2004-08-10 19:10 jackson
23715 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
23716 Initial implementation of status bar item drawing
23718 2004-08-10 17:27 jordi
23720 * TrackBar.cs: add missing methods, properties, and restructure to
23723 2004-08-10 16:24 jackson
23725 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
23726 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
23729 2004-08-10 13:21 jordi
23731 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
23732 enhancements and standarize on win colors defaults
23734 2004-08-10 12:52 jackson
23736 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
23737 ThemeWin32Classic.cs: Implement DrawItem functionality
23739 2004-08-10 12:47 jordi
23741 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
23743 2004-08-10 12:32 jordi
23745 * Control.cs: throw ontextchange event
23747 2004-08-10 11:43 pbartok
23750 - Added more to the still unfinished Dock/Anchor layout code
23752 2004-08-10 11:39 pbartok
23754 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
23755 - Added GetWindowPos method
23757 2004-08-10 11:36 pbartok
23760 - Implemented several methods
23762 2004-08-10 09:47 jackson
23764 * TrackBar.cs: Allow control to handle buffering
23766 2004-08-10 09:41 jackson
23768 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
23770 2004-08-10 09:24 jackson
23772 * Label.cs, LinkLabel.cs: Let Control handle buffering.
23774 2004-08-10 09:09 jackson
23776 * StatusBar.cs: Let Control handle all the buffering.
23778 2004-08-10 09:08 jackson
23780 * Control.cs: Control will now handle the buffering code, so each
23781 control does not have to implement this.
23783 2004-08-10 08:34 jackson
23785 * XplatUIDriver.cs: Use default colors from the theme
23787 2004-08-09 17:12 pbartok
23790 - Fixed several bugs Ravindra pointed out
23792 2004-08-09 16:11 pbartok
23795 - Added incomplete dock layout code
23796 - Added support for mouse wheel
23798 2004-08-09 16:09 pbartok
23801 - Added handling for middle and right mousebutton
23802 - Added handling for mouse wheel
23803 - Added handling for key state and mouse state and position
23804 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
23807 2004-08-09 15:40 jackson
23809 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
23810 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
23813 2004-08-09 15:37 jackson
23815 * StatusBar.cs: Initial implementation of StatusBar
23817 2004-08-09 15:36 jackson
23819 * ITheme.cs: Add support for drawing status bar and getting status
23822 2004-08-09 15:35 pbartok
23827 2004-08-09 15:34 jackson
23829 * ThemeWin32Classic.cs: Add support for drawing status bar and get
23830 status bar item sizes
23832 2004-08-09 15:21 jackson
23834 * ThemeWin32Classic.cs: Use known colors for default control
23837 2004-08-09 15:12 jackson
23839 * ThemeWin32Classic.cs: Make the default font static, it is static
23840 in control so this doesn't change functionality and creating fonts
23843 2004-08-09 14:56 pbartok
23846 - Added GrabMode enum
23848 2004-08-09 14:55 pbartok
23850 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
23851 - Removed Run method, was only required for initial development
23853 2004-08-09 14:51 pbartok
23855 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
23856 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
23859 2004-08-09 13:48 pbartok
23862 - Fixed default sizing for child windows
23864 2004-08-09 12:56 pbartok
23867 - Added generation of WM_DESTROY message
23868 - Added handling of window manager induced shutdown
23870 2004-08-09 11:31 jackson
23872 * ThemeWin32Classic.cs: New names for control properties
23874 2004-08-09 11:25 jackson
23876 * Control.cs: Use new color names
23878 2004-08-09 11:02 jackson
23880 * XplatUI.cs: Get default window properties from the theme
23882 2004-08-09 11:01 jackson
23884 * ITheme.cs: The theme engine now controls default window
23887 2004-08-09 11:00 jackson
23889 * ThemeWin32Classic.cs: Add default window color properties
23891 2004-08-09 10:17 jackson
23893 * ThemeWin32Classic.cs: Use correct default back color
23895 2004-08-09 10:05 jackson
23897 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
23900 2004-08-09 09:56 jackson
23902 * XplatUI.cs: Remove defaults, these are handled by the theme now.
23904 2004-08-09 09:54 jackson
23906 * Control.cs: Get default properties from the theme.
23908 2004-08-09 09:53 jackson
23910 * ITheme.cs: Themes now handle default control properties
23912 2004-08-09 09:53 jackson
23914 * ThemeWin32Classic.cs: Themes now handle default control
23915 properties so coloring will be consistent
23917 2004-08-08 16:54 jordi
23919 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
23921 2004-08-08 15:08 jordi
23923 * XplatUIX11.cs: fixes keyboard crash
23925 2004-08-08 13:47 jordi
23927 * Label.cs: add cvs header info
23929 2004-08-08 12:09 jackson
23931 * ThemeWin32Classic.cs: Add pen_buttonface
23933 2004-08-08 11:52 jordi
23935 * Label.cs, LinkLabel.cs: [no log message]
23937 2004-08-08 11:34 jordi
23939 * ThemeWin32Classic.cs: Use Windows Standard Colours
23941 2004-08-07 17:32 jordi
23943 * TrackBar.cs: throw exceptions of invalid enums values
23945 2004-08-07 17:31 jordi
23947 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
23950 2004-08-07 16:56 jackson
23952 * HorizontalAlignment.cs: Initial checkin
23954 2004-08-07 13:16 jordi
23956 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
23959 2004-08-07 13:05 jordi
23961 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
23962 GetSysColor defines
23964 2004-08-06 18:01 pbartok
23966 * ThemeWin32Classic.cs:
23967 - Fixed some rounding issues with float/int
23969 2004-08-06 18:00 jackson
23971 * DockStyle.cs, AnchorStyles.cs:
23973 Add flags and serializable attributes.
23975 2004-08-06 17:46 pbartok
23978 - Implemented GetParent
23980 2004-08-06 17:18 pbartok
23983 - Fixed some rounding issues with float/int
23985 2004-08-06 17:17 pbartok
23987 * X11Structs.cs, XplatUIX11.cs:
23988 - Fixed Refresh and Invalidate
23990 2004-08-06 15:30 pbartok
23992 * Control.cs, X11Structs.cs, XplatUIX11.cs:
23993 - Fixed recursive loop when resizing
23994 - Improved/fixed redrawing on expose messages
23996 2004-08-06 09:53 jordi
23998 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
23999 keyboard navigation
24001 2004-08-06 08:02 pbartok
24003 * X11Structs.cs, XplatUIX11.cs:
24004 - Fixed reparenting
24005 - Fixed window border creation
24007 2004-08-05 15:38 pbartok
24010 - Attempted fix for reparenting problems
24012 2004-08-04 15:14 pbartok
24015 - Fixed Invalidation bug (calculated wrong client area)
24016 - Added ClientSize setter
24018 2004-08-04 15:13 pbartok
24021 - Added AutoScale properties
24023 2004-08-04 15:13 pbartok
24026 - Added latest files
24028 2004-08-04 14:11 pbartok
24030 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
24032 - Added Invalidate handling
24034 2004-08-03 17:09 jordi
24036 * XplatUIDriver.cs: fixes spelling mistake
24038 2004-07-27 09:53 jordi
24040 * TrackBar.cs: fixes trackbar events, def classname, methods
24043 2004-07-27 09:29 jordi
24045 * ScrollBar.cs: fixes scrollbar events
24047 2004-07-27 04:38 jordi
24049 * Control.cs: changes to be able to run winforms samples
24051 2004-07-26 11:42 jordi
24053 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
24054 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
24056 2004-07-26 05:41 jordi
24058 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
24059 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
24062 2004-07-22 09:22 jordi
24064 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
24065 check link overlapping, implement events, and fixes
24067 2004-07-21 10:28 jordi
24069 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
24071 2004-07-21 10:19 jordi
24073 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
24074 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
24075 LinkLabelLinkClickedEventArgs.cs,
24076 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
24077 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
24080 2004-07-19 13:09 jordi
24082 * Control.cs, Label.cs: label control re-written: added missing
24083 functionlity, events, and properties
24085 2004-07-19 10:49 jordi
24087 * Control.cs: fixes SetBounds logic
24089 2004-07-19 01:29 jordi
24091 * Control.cs: Call RefreshWindow only if the window has created
24093 2004-07-15 14:05 pbartok
24095 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
24096 - Implemented ImageList and ImageList.ImageCollection classes
24097 - Added ColorDepth enumeration
24098 - Updated SWF VS.Net project
24100 2004-07-15 11:06 jordi
24102 * XplatUIStructs.cs: added MsgButons enum
24104 2004-07-15 11:03 jordi
24106 * Control.cs: added basic mouse handeling events
24108 2004-07-15 03:38 jordi
24110 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
24111 Vertical TrackBar control implementation
24113 2004-07-13 09:33 jordi
24115 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
24117 2004-07-13 09:31 jordi
24119 * Control.cs, Form.cs: commit: new properties and fixes form size
24122 2004-07-09 14:13 miguel
24124 * ProgressBar.cs: Spelling
24126 2004-07-09 11:25 pbartok
24129 - Removed usage of Rectangle for drawing. Miguel pointed out it's
24132 2004-07-09 11:17 miguel
24134 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
24136 * ProgressBar.cs: Fixed spelling for `block'
24138 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
24141 Avoid using the += on rect.X, that exposed a bug in the compiler.
24143 2004-07-08 23:21 pbartok
24145 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
24146 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
24147 BaseCollection.cs, Binding.cs, BindingContext.cs,
24148 BindingMemberInfo.cs, BindingsCollection.cs,
24149 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
24150 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
24151 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
24152 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
24153 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
24154 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
24155 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
24156 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
24157 FrameStyle.cs, GiveFeedbackEventArgs.cs,
24158 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
24159 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
24160 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
24161 InputLanguageChangedEventArgs.cs,
24162 InputLanguageChangedEventHandler.cs,
24163 InputLanguageChangingEventArgs.cs,
24164 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
24165 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
24166 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
24167 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
24168 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
24169 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
24170 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
24171 QueryAccessibilityHelpEventArgs.cs,
24172 QueryAccessibilityHelpEventHandler.cs,
24173 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
24174 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
24175 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
24176 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
24177 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
24178 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
24179 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
24180 XplatUIX11.cs, lang.cs: