Closed wxtrac closed 3 years ago
There is/are no file(s) attached to this patch. Maybe you hadn't logged in before attaching them? Please note that you must be logged in to be able to attach any files (this is a SF feature). Please retry attaching the files after logging in. Thank you!
checklist_position_wx.patch
(2.5 KiB)wxCheckList GetItemAtPosition patch
Sorry Vadim, I forgot to check the box saying "Attach a file", I onlly browsed for the file with the browse button. Appears to be there now for me.
I've applied it now but I renamed the method to HitTest() for consistency with the other classes. BTW, I see quiet a few improvements to this patch:
a) this method should be in wxListBox, not wxCheckListBox b) it should be implemented for the other ports... c) it should be documented
So if you have some free time, please feel welcome to improve it! :-)
Issue migrated from trac ticket # 5508
component: wxMSW | priority: normal
2002-08-13 11:35:51: frabcus created the issue
Adds a function to wxCheckList to get the item at a given mouse position.
I'm using this so right clicking can perform a selection (so I can have right click menus in my wxCheckList).
This also will enable some code to be moved to be more cross platform. In particular I think if GetItemAtPosition implemented on all platforms, wxCheckListBox::OnLeftClick would then be sharable.