View previous topic :: View next topic |
Author |
Message |
rp
Joined: 25 Jan 2006 Posts: 6
|
Posted: Mon Feb 13, 2006 9:48 pm Post subject: DoubleClick |
|
|
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 |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue Feb 14, 2006 9:44 am Post subject: |
|
|
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 |
|
|
|