Solved

XWindows

Posted on 1998-11-15
12
420 Views
Last Modified: 2010-04-20
Hi,
I used to write programs using MFC until I changed over to Linux.  I haven't been able to find any 'tutorials' on programming XWindows.  Where should I get started on learning how to program for XWindows ?
Thanks
0
Comment
Question by:bod_1
  • 6
  • 2
  • 2
  • +2
12 Comments
 

Expert Comment

by:dochench
Comment Utility
XFree 86 Consortium, Gimp Tool Kit, and possibly Windowmaker home page.

www.xfree86.org
www.gtk.org
and
www.windowmaker.org
0
 

Author Comment

by:bod_1
Comment Utility
Thanks for the links dochench.
0
 

Author Comment

by:bod_1
Comment Utility
After a bit of reading, and I'm a bit confusded.  Am I right to say that XF86 provides the low level API's for drawing lines, curves etc., and the window managers (After Step, FVWM, etc) supply the widgets?
Comparing to Microsoft - XF86 would be sort of like the windows API's and the window managers would supply common controls?
0
 

Expert Comment

by:dochench
Comment Utility
That is the way i understand it.. However, I've only been playing around with this stuff for a few months. Also, I found another link that you find find informative.
http://www.geek-girl.com/unix.html#x11
The geek girl site has quite a load of info on pretty much everything... just remove the #x11 from the URL to get the main section of the page.
0
 

Expert Comment

by:gatkinso
Comment Utility
The architecture (spelling?) of X Windows is a bit different than that of MS Windows,  but thankfully many of the concepts are the same.  Xlib (the W Windows API if you will) roughly corresponds to the WIN32API.  Like you stated, the window manager dictates the *policy* of how the desktop will look and feel, as well as provide (sometimes!) a toolkit of controls.  

Unlike in MS Windows where the window manager is tightly coupled with the windowing system, it is possible if hideous to create a complete app using only the API, in X you pretty much have to have a window manager present. Or you could write your own (no thanks!).

Note that (most of) these window managers are written upon yet another layer known as the Xt Intrinsics.  Now you have three layers: X11R6 (Xlib), XT, and (say) Motif, all with their own endearing strangeness.

I dont know how newer systems (such as KDE) work:  I couldn't tell you if they follow the traditional X Window model or not, but KDE is pretty cool: http://www.kde.org.

References:  
Any of the O'Rielly X books.  
Young's "X Window System Programming"

Also, check out the colleges in your area:  there are a couple of good X Window Programming classes in the Washington D.C. area (but I have no clue where YOU live).

Peace out!
0
 

Expert Comment

by:gatkinso
Comment Utility
0
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 

Author Comment

by:bod_1
Comment Utility
That puts a little perspective on it for me.
Thanks again guys
0
 

Author Comment

by:bod_1
Comment Utility
Who do I give the points to ?
0
 

Expert Comment

by:natmak
Comment Utility
0
 

Author Comment

by:bod_1
Comment Utility
0
 

Accepted Solution

by:
joch earned 10 total points
Comment Utility
just try man X11
this introduces you to most things you might want to know about Xwindows
0
 

Author Comment

by:bod_1
Comment Utility
I have no man entry for X11.
The source code for X11 has a doc section I was looking for.
Thanks
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now