How can I tell which column Header was clicked ? |
Post Reply |
Author | |
LeeHayton
Senior Member Joined: 25 November 2005 Location: United Kingdom Status: Offline Points: 102 |
Post Options
Thanks(0)
Posted: 31 October 2007 at 9:52am |
I need to know which column header has been clicked (has focus). I see there is a "ColumnClick" event for the report control but this is only triggered if you "Right Click" on the column.
Thanks
Lee
|
|
Baldur
Senior Member Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
Post Options
Thanks(0)
|
You must use the MouseDown (e.g. MouseUp)-Event and test with the HitTest-Method.
In the HittestInfo-Object:
if Item is nothing and not Column is nothing then -> Columheader Clicked
else -> SingleItem in this Column is clicked
endif
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |