All edit controls (EditField, DocEdit, LineEdit, RichEdit) now has solid drag and drop support. Also, triple-click support was added (selects line resp. paragraph).
Small change to SetFocus - if window is not front, SetFocus (to any child) will make it so.
ArrayCtrl now also supports Drag and Drop (and in fact, I am very happy about the interface). reference/ArrayCtrlDnD is the preliminary reference example. In the process I have also fixed multiselect in ArrayCtrl.
Drag&Drop in RichEdit is awesome!(with drag image showing the dragged text).
Any chance to have it support images and drawing objects?
Wiktor
I haven't tried d&d in other controls yet.
Drag&Drop in RichEdit is awesome!(with drag image showing the dragged text).
Any chance to have it support images and drawing objects?
Wiktor
I haven't tried d&d in other controls yet.
Actually, what you supply to "DoDragAndDrop" is an Image. You can paint whatever you want into it (In ArrayCtrl, there is utility method that returns Image of current selection, looks quite good too).
mr_ped Messages: 825 Registered: November 2005 Location: Czech Republic - Praha
Experienced Contributor
So will it be possible to open files in UPP by dragging them from explorer.exe / konqueror into UPP TheIDE window?
I'm quite missing this one when I want to edit some file outside of project directory, and I must use Ctrl+O and change directories inside TheIDE (while I have the file in list in explorer/konqueror already).
So will it be possible to open files in UPP by dragging them from explorer.exe / konqueror into UPP TheIDE window?
I'm quite missing this one when I want to edit some file outside of project directory, and I must use Ctrl+O and change directories inside TheIDE (while I have the file in list in explorer/konqueror already).
Quite soon IMO, it should be trivial now. OTOH, what was community "trigger" request is D&D support in TreeCtrl, which was not trivial at all (Still working on it, but it comes to the reasonable end today....).