View Full Version : Library(ies) to access clipboard / accept drag and drop.
Vadi
June 20th, 2008, 06:38 PM
Asking this for someone else, but how would one in C++ be able to write to the system clipboard?
Also, accept drag and drop into an SDL window?
smartbei
June 21st, 2008, 08:21 AM
The simplest way I know of to do this is to use the xsel. First install it from the repos, and then you can run it as a child process and that as a file object ... See its help.
You can also do this with gtk as well - see the clipboard_get function I believe.
Drag & Drop I am not so sure about.
Vadi
June 21st, 2008, 08:42 AM
Yeah, I know how to do the clipboard and drag & drop in gtk, but not in sdl. I'll look at xsel.
Does anyone know how to accept drag and drop with sdl though?
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.