Page 1 of 2
Anothe drag and drop question
Posted: Fri Jun 02, 2006 8:37 am
by Andy72
Just got purebasic, so i'm very new, (haven't programmed anything serious since turbo pascal 5.5 in the early 90's!)
anyway, how can i drag say a gadget list item(s) to another app,
heres what i want, create a list of "files" in a gadget list and drag them to another app, when dropped to the new app import the files that my list point to?
Dont know if I explaned that at all well!!
Posted: Fri Jun 02, 2006 9:17 am
by Fangbeast
Have a look in the forums for a product called EasyVent. It's by srod and is the best way to provide drag and drop functionality for all your gadgets (and other things).
Posted: Fri Jun 02, 2006 9:23 am
by Andy72
Cheers mate, I'll check it out
Sweet

Posted: Fri Jun 02, 2006 10:30 am
by srod
Hi Andy,
As brilliant as EasyVENT is (

) it will only allow for dragging between gadgets in the same application.
Dragging between applications really requires a delve into COM and OLE and is not for the feint of heart! To do it you have to use interfaces and implement quite a number of methods. I've not as yet seen it done in Purebasic, but I read somewhere that Freak is working on a drag/drop library. If so, this might be what you're looking for.
Regards.
Posted: Fri Jun 02, 2006 10:34 am
by Fangbeast
srod yes, freak is. He actually released a test version to some of us but no idea when it will be fully released.
Posted: Fri Jun 02, 2006 10:37 am
by srod
Fangbeast wrote:srod yes, freak is. He actually released a test version to some of us but no idea when it will be fully released.
The privileged few!

(Gimme gimme gimme...

)
Does it allow for dragging between different apps?
Posted: Fri Jun 02, 2006 11:13 am
by traumatic
Fangbeast wrote:srod yes, freak is. He actually released a test version to some of us but no idea when it will be fully released.
You didn't fully read the NDA, did you?

Posted: Fri Jun 02, 2006 11:17 am
by srod
traumatic wrote:Fangbeast wrote:srod yes, freak is. He actually released a test version to some of us but no idea when it will be fully released.
You didn't fully read the NDA, did you?

What's an NDA?

Posted: Fri Jun 02, 2006 11:21 am
by eriansa
OR : if you can't wait : Make a C++ DLL. I did and it works great.
PM me if you want the source.
Posted: Fri Jun 02, 2006 11:31 am
by traumatic
Posted: Fri Jun 02, 2006 11:38 am
by srod
Oh dear, fangs is for the chop!
Actually, I read about the library in a post by Freak anyhow. He was responding to some question or other; so no harm done I reckon!
Eriansa: would your source convert over to PB easily? This is a question from someone with only a 'functional' knowledge of c++.
Posted: Fri Jun 02, 2006 11:41 am
by traumatic
srod wrote:Actually, I read about the library in a post by Freak anyhow. He was responding to some question or other; so no harm done I reckon!
Oh well, I was trying to be funnny but didn't succeed (as always).
I should definitely stop trying to - pure waste of time.
Posted: Fri Jun 02, 2006 11:49 am
by srod
Posted: Fri Jun 02, 2006 11:56 am
by Dare
traumatic wrote:srod wrote:Actually, I read about the library in a post by Freak anyhow. He was responding to some question or other; so no harm done I reckon!
Oh well, I was trying to be funnny but didn't succeed (as always).
I should definitely stop trying to - pure waste of time.
Keep trying, you can only improve!

(and Just Kidding!)
Don't stop, humour and music are what life is all about.
Posted: Fri Jun 02, 2006 12:01 pm
by eriansa
srod wrote:Eriansa: would your source convert over to PB easily? This is a question from someone with only a 'functional' knowledge of c++.
I couldn't.
