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.
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.
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
- it would be really easy for bozo's like me to use these difficult techniques...
naw, I'm with you on this one. I like the power of the few API calls I have successfully accomplished through P.S.; (thanks to the 'tut's' here in the forums!). however, it would be nice to see this as a lib(hope to get to the point of being to create those myself within six to twelve months)or innate to P.B.*thumbs up*
Intrigued - Registered PureBasic, lifetime updates user
I know it is possible through APIs, but Drag&Drop is pretty standard GUI facility in apps (ideally portable between Linux & Windows - but just on Windows would be good enough).
It would be a great usability enhancement to PB Apps.
Don't have notepad anymore, I replaced it with Context but I'm pretty sure it supports drag and drop too. Open it up and drag and drop a text file in the window. think it should work.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
GeoTrail wrote:Don't have notepad anymore, I replaced it with Context but I'm pretty sure it supports drag and drop too. Open it up and drag and drop a text file in the window. think it should work.
So are you talking about drag and drop filename (text file)?