Jump to content


Photo

Detecting right-click on column header


  • Please log in to reply
2 replies to this topic

#1 Nonstop

Nonstop
  • Members
  • 39 posts
  • Gender:Male
  • Location:Arizona, USA

Posted 24 February 2021 - 02:24 AM

How do I detect a right-click on a column header?

 

I have my own sort and filter routines and want to override the current actions and displays.

The OnHeaderClick for the column does not let me know what column or if it was a right or left mouse click.

I need to know what column was clicked.

 

Delphi 7 with NextGrid 6.2.2

 

Steve...

 


Steve...

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 24 February 2021 - 12:49 PM

Hi,

 

From next version there will be a new event OnHeaderMouseDown where you can read the button. Sender will be the column that's clicked clicked on.

 

I hope that this is a good solution.


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 24 February 2021 - 12:55 PM

Until then, you can use OnHeaderMouseDown from ReportView. There is also Col parameter and Buton parameter.


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users