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 #2018 is a reply to message #2014] Wed, 29 March 2006 23:22 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
hojtsy wrote on Wed, 29 March 2006 14:55

I have an ArrayCtrl and would like to take some action when a row is clicked. It is easy to assign a callback to WhenLeftClick. But the callback should find out which row was clicked. GetCursor is not good enough, because the click could be below the last row, and the cursor is not moved then, so it would appear as if the user clicked the row which has the cursor.


Interesting trouble.... I guess it will require another interface improvement... (I guess WhenLeftClick only for items and WhenLeftClickNoItem for "free" area with default proxy to WhenLeftClick?)

Mirek
 
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:58 CEST 2025

Total time taken to generate the page: 0.05890 seconds