| View previous topic :: View next topic |
| Author |
Message |
Randall Parker Guest
|
Posted: Thu Dec 11, 2003 12:15 am Post subject: First right click on tree view GetNodeAt then Select selects |
|
|
Using BCB v6 sp4 on Win2k.
I have a TTreeView that has been built up by code and tree that has never been
touched before by a mouse. It has 3 top level entries. When I right click on it and
test and see that it is the right mouse button I do many steps but the relevant steps
are these:
TTreeNode* NodePtr = DataSetTreeView->GetNodeAt(X, Y);
NodePtr->Selected = true;
What happens is that the second item on the list gets selected.
Once any item on the list gets left-clicked or even if I do a second right-click on
the third item then the third item is correctly selected and after that it is always
correctly selected.
Anyone seen this behavior? Anyone know why this happens?
|
|
| Back to top |
|
 |
Boba Guest
|
Posted: Fri Jan 02, 2004 10:14 pm Post subject: Re: First right click on tree view GetNodeAt then Select sel |
|
|
"Randall Parker" <STOPtechiepundit (AT) EVILfuturePOXpunditSPAM (DOT) com> wrote in
message news:3fd7b720$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Using BCB v6 sp4 on Win2k.
I have a TTreeView that has been built up by code and tree that has never
been
touched before by a mouse. It has 3 top level entries. When I right click
on it and
test and see that it is the right mouse button I do many steps but the
relevant steps
are these:
TTreeNode* NodePtr = DataSetTreeView->GetNodeAt(X, Y);
NodePtr->Selected = true;
What happens is that the second item on the list gets selected.
Once any item on the list gets left-clicked or even if I do a second
right-click on
the third item then the third item is correctly selected and after that it
is always
correctly selected.
Anyone seen this behavior? Anyone know why this happens?
|
This particular glitch has been know since at least BCB v.3.
|
|
| Back to top |
|
 |
|