I have an application with custom DataViewCtrl, DataViewModel and DataViewCustomRenderer which should allow the user to edit items only via the F2 key or the windows context menu key and NOT with (slowly) clicking on the item. Is this possible?
In the docs I’ve seen the LeftClick() and ActivateCell() methods which seem to allow me to override the behaviour but they only work with the DATAVIEW_CELL_ACTIVATABLE cell mode. Combining DATAVIEW_CELL_EDITABLE and DATAVIEW_CELL_ACTIVATABLE doesn’t seem to work because then editing isn’t working at all. Is this maybe a bug?
I tried binding EVT_LEFT_DOWN in the DataViewCtrl to veto the EVT_DATAVIEW_ITEM_START_EDITING event, but it doesn’t get called.
I’m using the Phoenix Build 4.0.1 with python 2.7.14 and Windows 7 64-bit.
Thanks for any help!