U++ framework
Do not panic. Ask here before giving up.

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: 14291
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: Sat Oct 10 07:21:44 GMT+2 2026

Total time taken to generate the page: 0.22211 seconds