VSTGUI drag
-
Karbon L. Forms Karbon L. Forms https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=29033
- KVRian
- Topic Starter
- 1372 posts since 10 Jun, 2004 from Inverness, Scotland
Is there a way to do a drag using vstgui that anyone knows of? What I mean is not actually moving anything visually, but when a control (button, bitmap whatever) is clicked and dragged stuff is fired onto the clipboard (or whatever it is for such operations) ready to be dropped on another app.
edit: Am I looking at platform specifics here?
I could use wxWidgets but then I cant have custom sliders etc. (I believe)
edit: Am I looking at platform specifics here?
I could use wxWidgets but then I cant have custom sliders etc. (I believe)
.................................
"Hell is other People" J.P.Sartre
.................................
"Hell is other People" J.P.Sartre
.................................
-
- KVRist
- 166 posts since 8 Mar, 2004
The thing you're asking for is usually known as "drag-n-drop".Karbon L. Forms wrote:Is there a way to do a drag using vstgui that anyone knows of? What I mean is not actually moving anything visually, but when a control (button, bitmap whatever) is clicked and dragged stuff is fired onto the clipboard (or whatever it is for such operations) ready to be dropped on another app.
edit: Am I looking at platform specifics here?
I could use wxWidgets but then I cant have custom sliders etc. (I believe)
Actually there is a onDrop() method in the VST SDK, but it is -as far as I know- limited to dragging files from outside the host app onto the plug-in window. It gets passed a pointer to a list of strings, containing the file names.
However, I don't think there is a broad range of host applications supporting onDrag() out there.
The other way round, dragging items from your plug-in elsewhere, is not in the VSTSDK afaik.
So you would have to use the platform API for this anyway.
Best,
Stefan
http://www.stefan-kuhn.net
Home of Vivaldi MX and Ganymed
Home of Vivaldi MX and Ganymed
-
Karbon L. Forms Karbon L. Forms https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=29033
- KVRian
- Topic Starter
- 1372 posts since 10 Jun, 2004 from Inverness, Scotland
stefankuhn: "The thing you're asking for is usually known as "drag-n-drop".
No. You don't say! Really? Wow! "drag n drop" eh? What will they come up with next.
Sorry. Sarcy bastard I am.
Yeah, it's looking like platform specifics. Don't want to do too much work on GUI until I've got this nailed.
Like all good (ahem) programmers I'm a lazy bastard looking for an easy solution.
No. You don't say! Really? Wow! "drag n drop" eh? What will they come up with next.
Sorry. Sarcy bastard I am.
Yeah, it's looking like platform specifics. Don't want to do too much work on GUI until I've got this nailed.
Like all good (ahem) programmers I'm a lazy bastard looking for an easy solution.
.................................
"Hell is other People" J.P.Sartre
.................................
"Hell is other People" J.P.Sartre
.................................
-
- KVRist
- 166 posts since 8 Mar, 2004
I was just trying to help, not trying to step on your feet here.Karbon L. Forms wrote:stefankuhn: "The thing you're asking for is usually known as "drag-n-drop".
No. You don't say! Really? Wow! "drag n drop" eh? What will they come up with next.
Sorry. Sarcy bastard I am.
Yeah, it's looking like platform specifics. Don't want to do too much work on GUI until I've got this nailed.
Like all good (ahem) programmers I'm a lazy bastard looking for an easy solution.
Your post / description of the process made me think you weren't sure how it's called.
Best
Stefan
http://www.stefan-kuhn.net
Home of Vivaldi MX and Ganymed
Home of Vivaldi MX and Ganymed
-
Karbon L. Forms Karbon L. Forms https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=29033
- KVRian
- Topic Starter
- 1372 posts since 10 Jun, 2004 from Inverness, Scotland
Jesus, I'd be up shit creek as a programmer if I'd never heard of DnD!
Help appreciated Stefan, was just having a laugh.
klf
x
Help appreciated Stefan, was just having a laugh.
klf
x
.................................
"Hell is other People" J.P.Sartre
.................................
"Hell is other People" J.P.Sartre
.................................