[wx-dev] Query about wxDataViewCtrl, right click patch
Belgabor
belgabor at gmx.de
Tue Feb 26 20:28:14 PST 2008
Here is a patch to add right click support. I implemented it as I =
suggested. First the RightClick function of the cell is called and if =
that returns false, a CONTEXT event is generated. I admit that I didn't =
test the RightClick (my 2.9 compatible code isn't that far to implement =
a test case), but for the CONTEXT event I hacked the wx sample a bit and =
it seems to work ok.
The patch was created with TortoiseSVN and unfortunately it seems to =
have added a lot of noise, no idea why. The datavgen.cpp part seems =
pretty clean though and the only thing I changed in the sample is the =
log call for the OnContextMenu handler.
I'll probably implement LeftClick later, when I can properly test =
whether it works correctly.
Cheers,
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wxWidgets-trunk-wxDataViewCtrl-ContextEvent.patch.bz2
Type: application/octet-stream
Size: 5165 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wx-dev/attachments/20080227/85d3=
ccd2/wxWidgets-trunk-wxDataViewCtrl-ContextEvent.patch.obj
More information about the wx-dev
mailing list