[wx-dev] wxDataViewCtrl DnD API
Mike Arnold
mikea at salk.edu
Mon Feb 4 17:42:33 PST 2008
> class MyDialog
> {
> MyDialog(...)
> {
> my_dataviewctrl->EnableDrag( new wxTextDataObject );
> }
>
> I cannot think of anything nice right now.
>
So will the handler for BEGIN_DRAG events have to be defined in MyDialog
or are you thinking of hiding this away in wxDataViewCtrl?
I assume that the handler will check what items are selected in the
control, create and initialize a wxDropSource object with the return
from wxDataViewModel::GetData(), and then call wxDropSource::DoDragDrop()
Mike
More information about the wx-dev
mailing list