[Implemented] Drag n Drop
Posted: Thu May 26, 2005 6:06 pm
Hi,
It would be great to be able to Drag n Drop between PB Gadgets and to/from applications...
At the mo' it looks like its only possible through propietary WinAPI callbacks (which is ok for seasoned PBers, but hard work for PB newbies & occasional coders - such as me
). Of course it isn't portable either.
- if it could be implemented like this:
- it would be really easy for bozo's like me to use these difficult techniques...
It would be great to be able to Drag n Drop between PB Gadgets and to/from applications...
At the mo' it looks like its only possible through propietary WinAPI callbacks (which is ok for seasoned PBers, but hard work for PB newbies & occasional coders - such as me

- if it could be implemented like this:
Code: Select all
repeat:
WEVENT=waitwindowevent()
select WEVENT
case #PB_EventMenu
MENU = EventMenuID()
.....
case #PB_EventGadget
GADGET = EventGadgetID()
.....
case #PB_DragDropEvent()
DRAGWID = EventDragWindow(); Dragged from WindowID
DROPWID = EventDropWindow(); Dropped onto WindowID
DRAGGID = EventDragGadget(); Dragged from GadgetID
DROPGID = EventDropGadget(); Dropped onto GadgetID
DRAGDROPDATA = GetClipboardData(#PB_DragDropData)
endSelect
until WEVENT=#PB_EventCloseWindow