[fpc-pascal] Simple X11 program

Graeme Geldenhuys graemeg.lists at gmail.com
Sat Mar 15 10:09:20 CET 2008


On 14/03/2008, Rainer Stratmann <RainerStratmann at t-online.de> wrote:
>
>  How is it possible to draw (put) Bitmaps in this Window?
>  Here is a 800x600 pixel Bitmap (array[0..800x600-1] of dword) which I want to
>  put in the Window (or parts of the Bitmap). With 24 bit color depth (32
>  bit/pixel).
>
>  Exists there documentation of the (for example) XNextEvent's ?

You should really look for the X11 Programmers Guide which explains
pretty much everything Xlib.
I think some of those books are now freely available on the net.

http://www.oreilly.com/catalog/v1/

http://www.google.co.za/url?sa=t&ct=res&cd=1&url=http%3A%2F%2Fwww.oreilly.com%2Fcatalog%2Fv1%2F&ei=9ZDbR_qMMZ_8wwGXgNWsCA&usg=AFQjCNE_wbJC40-K2_HuyYln6DOEkXhnEg&sig2=pLbdbKU7GUyzc_oLzvK9SA

The above link explains every line of that example program in details.
You can view the 'Basic Window Program' (chapter 3) freely online.


Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the fpc-pascal mailing list