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.