Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - How can I tell which column Header was clicked ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How can I tell which column Header was clicked ?

 Post Reply Post Reply
Author
Message
LeeHayton View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 November 2005
Location: United Kingdom
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote LeeHayton Quote  Post ReplyReply Direct Link To This Post Topic: How can I tell which column Header was clicked ?
    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
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post Posted: 31 October 2007 at 12:39pm
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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.234 seconds.