Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DoubleClick

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
rp



Joined: 25 Jan 2006
Posts: 6

PostPosted: Mon Feb 13, 2006 9:48 pm    Post subject: DoubleClick Reply with quote

How do I tell what row the mouse pointer is located at when a user double clicks?

1. User selects a row
2. User double clicks on a column header
3. DoubleClick event is raised
4. How can I know that the user double clicked a column header and not the selected row?

I tried GetChildAtPoint / PointToClient but can't seem to get it to work.
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Tue Feb 14, 2006 9:44 am    Post subject: Reply with quote

If you just want to know what part of the control the mouse is over then try:

Code:
Point point = PointToClient(MousePosition);
Widget widget = virtualTree.GetWidget(point.x, point.y);


This will return a ColumnHeaderWidget when the mouse is over the column header or a CellWidget or RowWidget when over the row area
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support 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, 2005 phpBB Group