the scroll position.
- ExpandAll needs to compute the scrollbars so it knows which
position to set the bar too.
* TreeNode.cs:
* TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
svn path=/trunk/mcs/; revision=76152
* TreeNodeCollection.cs: New Add() methods, ContainsKey and
IndexOfKey() for 2.0
Tests:
* BindingTest.cs (BindingContextChangedTest2): Added 2.0-specific check,
was failing under ms.net.
* ComboBoxText.cs (FindStringExactMatchException): Add check for exception
only for 1.1 - was failing under ms.net
* ControlTest.cs:
- AnchorDockTest: Fix incorrect assertion #5 - was failing
under ms.net
- TestForm: Fix incorrect assertion #4 - was failing
under ms.net
* TreeNodeCollectionTest.cs: Add new tests for 2.0
2007-01-23 Andreia Gaita <[email protected]>
svn path=/trunk/mcs/; revision=71515
of Exception in FullPath property if no TreeView is associated with
the TreeNode.
* TreeNodeTest.cs: Fixed FullPathException test on 2.0 profile.
svn path=/trunk/mcs/; revision=70206
- compute left edge of checkboxes correctly
- when expanding/collapsing move the bottom down one pixel, so
we
aren't moving part of the node
svn path=/trunk/mcs/; revision=67783
* detecting when
the edit box has lost focus (duh).
- Just make the edit box not visible when we get return, that
will
take the focus, which will call EndEdit
* TreeNode.cs When we start editing, notify the treeview.
svn path=/trunk/mcs/; revision=62575
Expand/Collapse Below calls, because those calls generate an
expose.
- Reduce calls to the TreeView property, which is mildly
expensive
by using a local var.
svn path=/trunk/mcs/; revision=61600
collection can change it without firing the whole event chain.
* TreeNodeCollection.cs: When clearing all the child nodes make
sure to recalc the visible order.
- Improve algo for remove the top node
svn path=/trunk/mcs/; revision=61387
SVN.
* TreeNode.cs: We get the indent level dynamically right now, so
don't track it as a member.
* TreeNodeCollection.cs: Make sure all nodes added to the list
have parents, treeviews/topnodes setup properly.
- Don't attempt to track indent level.
svn path=/trunk/mcs/; revision=61349
* allows
treenode calculations to be independant of the painting code. To
do this nodes track a visible order which is calculated by the
treeview.
- Call new methods for expanding/collapsing nodes. These
methods
use scrollwindow so we don't have to update everything below the
node.
* TreeView.cs: Refactored drawing and scrolling code. We don't
need to update nodes when drawing anymore or calculate scrollbar
stuff.
- Added new methods for expanding/collapsing nodes. These
methods
use ScrollWindow so as to not have to redraw all the nodes
below.
* TreeNodeCollection.cs: Recalc visible order and scrollbars
* when
we add/remove nodes or sort.
- Handle removing the selected and the top node properly.
svn path=/trunk/mcs/; revision=61021
* TreeNode.cs: Changed serialization .ctor to not require every field
to be present. (#78265)
* OwnerDrawPropertyBag.cs: Added serialization .ctor
svn path=/trunk/mcs/; revision=60416
that nodes can be moved from tree to tree easily this just causes
all sorts of problems.
* TreeNodeCollection: Don't need to give treenodes an index and
treeview anymore when they are added, these are computed on the
fly. Also make sure to remove a node before its added.
svn path=/trunk/mcs/; revision=52522
needs to be moved for visibility. Don't use Begin/End edit. This
calls a full refresh when its done.
* TreeView.cs: New SetBottom works correctly. Make the viewport
rect property internal so the treenodes can see it. When clicking
on a node we need to ensure that its visible because it might just
be partly visible when clicked.
svn path=/trunk/mcs/; revision=52014
are reduced when adding nodes.
* TreeNode.cs:
* TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
tree.
svn path=/trunk/mcs/; revision=51959
apps needed to grow the queue).
* Hwnd.cs: No finalizer so we don't need to suppress
finalization. Compute the invalid area manually so a new rectangle
does not newto be created.
* ScrollableControl.cs: Don't set any params (otherwise visibility
isn't set correctly).
* MdiChildContext.cs: New constructor takes the mdi parent so it
doesn't have to be computed and avoids a crash on windows. Draw
the window icon properly, and allow the text to be seen.
* Form.cs: Use new MdiChildContext constructor. Make sure the
child context isn't null in wndproc.
* TabControl.cs: Don't set focus, this is muddling keyboard
behavoir. Expand the tab rows when a window size increase will
allow extra tabs to be seen. Don't allow tabs smaller than the
width of a window to be scrolled out of view.
* TreeNode.cs:
* TreeView.cs: Use measure string to calculate a nodes width, the
width is cached and only updated when the text or the font is
changed. Don't check for expand/collapse clicks on the first level
nodes if root lines are disabled.
svn path=/trunk/mcs/; revision=51769
* TreeNode.cs: The root node should be expanded by default. Also
added a utility prop to tell if we are the root node.
* TreeNodeCollection.cs: Only refresh if the node we are being
added to is expanded. Also added a comment on a potential
optimization.
svn path=/trunk/mcs/; revision=51231
there is a click. This handles offsets for scrolling properly
and reduces memory. Also fixed GetNode to not offset now that
TopNode works properly.
* TreeNode.cs: No longer need to track the plus minus or
checkbox bounds.
svn path=/trunk/mcs/; revision=43191
click. This handles offsets for scrolling properly and reduces
memory. Also fixed GetNode to not offset now that TopNode works
properly.
* TreeNode.cs: No longer need to track the plus minus bounds.
svn path=/trunk/mcs/; revision=43183
and visible.
* TreeView.cs: Implement node editing. Also some fixes to use
Invalidate (invalid area) instead of Refresh when selecting.
svn path=/trunk/mcs/; revision=39066
draw the connecting node lines (when ShowLines is true).
* TreeNode.cs: The nodes index can now be updated. This is used
when a node collection is sorted.
* TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
insert or an existing unsorted node collection can be sorted.
svn path=/trunk/mcs/; revision=38837
checked. Don't refresh after toggling, the Expand/Collapse already
handles this.
* TreeView.cs: Respect clipping a little more when drawing. Try
not to redraw things that don't need to be redrawn. Just hide the
scrollbars when they are no longer needed instead of removing
them, so they don't have to be created again and again.
svn path=/trunk/mcs/; revision=38516
- Collapse and uncheck all nodes when CheckBoxes is disabled.
- Checkboxes are always aligned to the bottom of the node,
regardless of item height.
- Use the node bounds to draw the text so we can center it when
the item height is greater then the font height.
- Node::Bounds are only the text part of the node.
* TreeNode.cs: New method to combine collapsing and unchecking all
nodes recursively.
svn path=/trunk/mcs/; revision=38285
* TreeNode.cs: Add a bounding box for the checkbox, refresh the
tree when a check is changed. TODO: Only refresh the checked node.
svn path=/trunk/mcs/; revision=38243
is calculated and use this for click testing.
* TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
svn path=/trunk/mcs/; revision=37805