BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

First right click on tree view GetNodeAt then Select selects

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Randall Parker
Guest





PostPosted: Thu Dec 11, 2003 12:15 am    Post subject: First right click on tree view GetNodeAt then Select selects Reply with 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?


Back to top
Boba
Guest





PostPosted: Fri Jan 02, 2004 10:14 pm    Post subject: Re: First right click on tree view GetNodeAt then Select sel Reply with quote



"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.