On Thu, 29 Nov 2001, Jonathan Gardner wrote:
> I am trying to learn the X protocol and how to program using X, and I am
> having a bit of a difficult time finding good free documentation on the
> subject. Anyone have links I should look at? If you'd like, I'll summarize
> what I have after a while, maybe it'd be good to put on the site (if it isn't
> there already...)

Are you sure?

If what you want to do is write normal programs, you should seriously
consider using one of the many toolkits available, such as WxWindows,
Motif/Lesstif, Qt, or GTK+.

If you really want basics, look for documentation about XLib; although
it'll take a lot more work to make things look pretty. Look at the source
of programs like xedit, xev, xclock for examples.

I doubt you want to talk X-protocol with the server; unless you want to do
clever tricks like snooping mouse/keyboard/display content, deliberately
injecting mouse/keyboard/other events, or manipulate windows. Unless
you're doing something very special-purpose, or writing a window manager;
I'd suggest either Qt (KDE is written using this), at www.trolltech.com,
or GTK+ (GNOME is written using this), at www.gtk.org, or even
Motif/Lesstif (Netscape is a Motif app; nedit works with either) at
www.lesstif.org.
At least the GTK+ team have a fairly substansial document/tutorial leading
one through the creation of GTK applications.

Or, if speed isn't a main concern, but cross-platform support might be
useful, you could use Java; http://java.sun.com has lots of documentation.

Or, you could script it in TCL or somesuch...

-- 
Regards, [EMAIL PROTECTED]
My website: http://www.iain.thomas.dial.pipex.com/
XMMS now playing: The Sunflowers - Brown Eyed Girl

_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to