[wx-dev] Query for helps, patch to add right click support of
wxDataViewCtrl.
Belgabor
belgabor at gmx.de
Tue Mar 4 04:30:14 PST 2008
Drizt schrieb:
> Robert Roebling wrote:
>> Drizt wrote:
>>
>>
>>> Hi,ereryone, I am a newbie in this mailing list and wxwidgets 2.9. I
>>> found wxDataViewCtrl a bit more power than 2.8.7, but unfortunately
>>> is incomplete.
>>>
>>
>> It would be nice to hear from you what you think is missing or
>> what is most important in that respect.
>>
>>
>>> Belgabor have said he has made a patch for right click support of
>>> wxDataViewCtrl, but I cannot find it, can somebody post it again,
>>> thank you!
>>>
>>
>> I applied it to SVN.
>>
>> Robert
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: wx-dev-unsubscribe at lists.wxwidgets.org
>> For additional commands, e-mail: wx-dev-help at lists.wxwidgets.org
>>
>>
>>
> Thank you ,I updated the SVN and context menu really work,
> But I found this in wx/dataview.h
>
> // for wxEVT_DATAVIEW_CONTEXT_MENU only
> wxPoint GetPosition() const;
>
> this function is not implemented, Should I implemented it by myself :)?
> like this?
> {return m_pos;}
>
I don't think there is the corresponding setter function, so that would
be pretty much pointless (pun intended :-) ). According to the docs you
can simply call PopupMenu on your window without coordinates and it
should use the current mouse position, so I don't see much use in
GetPosition() for the dataview event.
Cheers
Tobias
More information about the wx-dev
mailing list