Re: XForms: Using X selections

Steve Lamont (spl@szechuan.ucsd.edu)
Tue, 8 Jul 97 08:17:52 PDT

To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> I am having trouble getting [selection] to work. The X selection
> routines require parameters like an X widget (of type Widget),
> the time of the event (of type Time), etc. Does anyone have an example
> of how I claim ownership of the selection, and then copy data to
> the clipboard? ...

You don't need to use Widgets (and, in fact, in XForms, you can't
since XForms is not Xt based but Xlib based).

There are Xlib routines which allow you to perform selections and pass
them between clients. Refer to your favorite Xlib manual. There
should be a section on Interclient Communication. The O'Reilly _Xlib
Programming Manual_ has a lengthy chapter. In my edition, section
12.4 covers selection. There are code snippets.

spl

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/