Re: x window programming

From: Last2Know (grokkalot_at_yahoo.com)
Date: 08/24/04


Date: Mon, 23 Aug 2004 20:39:19 -0500

On Mon, 23 Aug 2004 18:17:27 +0100, scott wrote:

>
> "Last2Know" <grokkalot@yahoo.com> wrote in message
> news:pan.2004.08.23.16.23.08.563251@yahoo.com...
>> On Mon, 23 Aug 2004 16:46:59 +0100, news.freeserve.com wrote:
>>
>>> thx for any help that is given.
>>>
>>> iv been programming in Microsoft windows for some time now but want to
>>> move
>>> over to Linux using x windows.
>>>
>>> I can write simple command prompt type programs in Linux but iv yet to
>>> figure out how to do windows programming in x window(I don't even know
>>> how
>>> to compile an x windows program)
>>>
>>> is there a site some one could point me to plz to make me better
>>> understand
>>> what I have to do ?
>>>
>>> thx for any help
>>
>> One of the first things to realize is that from the viewpoint of
>> actually programming a modern GUI app, using the X11 (core XWindows)
>> API is is analogous to programming at the assembly language level.
>> It is helpful to have a fundamental understanding of how it works
>> but it is isn't the best route to productivity. It has commands
>> at the level of drawing lines and boxes rather than working with
>> widgets.
>>
>> So in order to answer your question effectively, it would helpful
>> if you could specify whether
>> 1) you want to learn the low level X11 API or work with a modern
>> toolkit
>> 2) you prefer to program in C, C++, or some other higher level
>> interpreted language.
>>
>>
>>
>>
>
> hi thx for the replys. i would be doing it in c++ but using the lowe level
> X11 API. If i could just figure out how to create a window and compile it,
> it would be a step in the right direction.

For a tutorial introduction to the Xlib C API and concepts, Adrian
Nye's O'Reilly Book, Volume 1 : Xlib Programming Manual is still
probably the best source.
You can download the source code examples from the O'Reilly
website: http://www.oreilly.com/catalog/v1/index.html

Postscript versions of the various specs are here:
ftp://ftp.x.org/pub/R6.6/xc/doc/hardcopy/
(can be read with the gv program or printed directly).

Be sure to install the X11 development man pages on your
machine.

Kenton Lee has a lot of good links:
http://www.rahul.net/kenton/xsites.html
including some tutorials.

Here is a nice book on using the most common
Linux C/C++ compiler that you can buy or download
in pdf form:
http://www.network-theory.co.uk/gcc/intro/

Three other tools that you will want to be acquainted
with are gdb, a source level debugger, gprof, a
profiler, and valgrind, a tool for detecting memory
access violations and leaks (somewhat similar to
Rational's Purify product).



Relevant Pages

  • Re: CreatePatternBrush(), brush in multiline editbox + scroll?
    ... MORE important in raw Win32 API programming than it is in MFC. ... Note that raw API programming is a really difficult way to write code. ...
    (microsoft.public.win32.programmer.gdi)
  • Re: The Dolphin Brief
    ... proprietary API (like Dolphin) ... The API is the only access point to it... ... Does tha mean I can not do any Win API programming under Vista? ... adhered to standards, and evolved them further. ...
    (comp.lang.smalltalk.dolphin)
  • Re: Slider Bar in eVB?
    ... > answer "your solution is in CreateWindowEx API Call, ... questioners level of programming skills to be. ... do xxx and yyy, but cant find the API way to accomplish zzz", then the asker ... > Assembler" just can be a final word of a argue. ...
    (microsoft.public.windowsce.embedded.vb)
  • Re: How to open a Reviewing toolbar
    ... What is the api that i need to call and what parameters ... written for the native programming language. ... the object model Help files. ... New Macro). ...
    (microsoft.public.office.developer.automation)
  • Re: x window programming
    ... > iv been programming in Microsoft windows for some time now but want to move ... > over to Linux using x windows. ... API is is analogous to programming at the assembly language level. ...
    (comp.os.linux.development.apps)