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 » detecting clicked row in ArrayCtrl [FIXED...]
Re: detecting clicked row in ArrayCtrl [message #2062 is a reply to message #2058] Fri, 31 March 2006 08:22 Go to previous messageGo to previous message
hojtsy is currently offline  hojtsy
Messages: 241
Registered: January 2006
Location: Budapest, Hungary
Experienced Member
luzr wrote on Thu, 30 March 2006 15:57

I believe there is only a little difference between this and my original "WhenLeftClickNoItem" suggestion - as long as your are not interested in "non-existing" (past the last row) rows (which I believe you should not be). WhenLeftClick -> indicates click inside, use GetCursor to get row, GetClickColumn to get column.
I am indeed not interested in clicks on non-existent rows. But can I use GetCursor if the ArrayCtrl is set to not display the cursor? If yes then "WhenLeftClickNoItem" suggestion is OK.
luzr wrote on Thu, 30 March 2006 15:57


would it be based on my actual experience, I would remove almost all ArrayCtrl callbacks except of WhenCursor, WhenLeftDouble (maybe add WhenLeftDoubleNoItem) and WhenBar. I have not used others for years....
Actually I am trying to use WhenLeftDouble. I was just thinking that refering to WhenLeftClick would simplify the discussion. None of my current apps use the callbacks you are mentioned as removal-candidates, but I suppose there may be other apps out there which does.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: edit data in arrayctrl [GOOD EXAMPLES...]
Next Topic: how to use ArrayCtrl.SetLineCy(int,int)?
Goto Forum:
  


Current Time: Tue Sep 02 00:38:39 CEST 2025

Total time taken to generate the page: 0.05499 seconds