Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » RightClick on HeaderCtrl
Re: RightClick on HeaderCtrl [message #20277 is a reply to message #20276] Fri, 06 March 2009 16:52 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
I think you can set the WhenBar callback for each column, and use that to detect right mouse clicks. It should still work even if you don't want to create a menu:
header.Add("Column 1").WhenBar = THISBACK1(OnColumnRightDown, 1)

void OnColumnRightDown(Bar &bar, int columnix) {
...
}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Question about GridCtrl
Next Topic: How to change color background of a cell?
Goto Forum:
  


Current Time: Thu Aug 28 07:07:13 CEST 2025

Total time taken to generate the page: 0.00667 seconds