Re: [fpc-pascal] Simple X11 program

2008-03-15 Thread Felipe Monteiro de Carvalho
On Fri, Mar 14, 2008 at 12:56 PM, Rainer Stratmann <[EMAIL PROTECTED]> wrote: > Exists there documentation of the (for example) XNextEvent's ? http://www.google.com/search?hl=en&safe=active&client=firefox-a&rls=org.mozilla%3Apt-BR%3Aofficial&hs=jNU&q=xlib+XNextEvent&btnG=Search -- Felipe Montei

Re: [fpc-pascal] Simple X11 program

2008-03-15 Thread Graeme Geldenhuys
On 14/03/2008, Rainer Stratmann <[EMAIL PROTECTED]> 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). > > Ex

Re: [fpc-pascal] Simple X11 program

2008-03-15 Thread Graeme Geldenhuys
On 14/03/2008, Rainer Stratmann <[EMAIL PROTECTED]> wrote: > > Thank you very much, it works! > That's what I was looking for. That example actually shows quite a lot of features in one little program. > How is it possible to draw (put) Bitmaps in this Window? > Here is a 800x600 pixel Bitmap

Re: [fpc-pascal] Simple X11 program

2008-03-14 Thread Rainer Stratmann
Am Freitag, 14. März 2008 14:30 schrieb Graeme Geldenhuys: > On 14/03/2008, Rainer Stratmann <[EMAIL PROTECTED]> wrote: > > Exists there documentation about X11 interface? > >  Or an example program? > > Here is a basic example as show in many X11 documentation. > As I said, fpGUI will do all this

Re: [fpc-pascal] Simple X11 program

2008-03-14 Thread ik
The fix :) On Fri, Mar 14, 2008 at 3:56 PM, ik <[EMAIL PROTECTED]> wrote: > You are correct (I've translated it from an old procedural code of > mine), I'll fix it and resend it > > Ido > > > > On Fri, Mar 14, 2008 at 3:52 PM, Graeme Geldenhuys > <[EMAIL PROTECTED]> wrote: > > On 14/03/2008,

Re: [fpc-pascal] Simple X11 program

2008-03-14 Thread ik
You are correct (I've translated it from an old procedural code of mine), I'll fix it and resend it Ido On Fri, Mar 14, 2008 at 3:52 PM, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > On 14/03/2008, ik <[EMAIL PROTECTED]> wrote: > > For documentation, look for xlib, and for each specific module

Re: [fpc-pascal] Simple X11 program

2008-03-14 Thread Graeme Geldenhuys
On 14/03/2008, ik <[EMAIL PROTECTED]> wrote: > For documentation, look for xlib, and for each specific module you > require you have different documentation. > > Ido Hi Ido, That example doesn't compile because your class is defined as TWindow, which conflicts with TWindow defined in x.pp Simp

Re: [fpc-pascal] Simple X11 program

2008-03-14 Thread ik
For documentation, look for xlib, and for each specific module you require you have different documentation. Ido On Fri, Mar 14, 2008 at 3:16 PM, Rainer Stratmann <[EMAIL PROTECTED]> wrote: > That woul be great, thanks. > Where can I find information to understand the X11 keyboard and bitmap >

Re: [fpc-pascal] Simple X11 program

2008-03-14 Thread Graeme Geldenhuys
On 14/03/2008, Rainer Stratmann <[EMAIL PROTECTED]> wrote: > Exists there documentation about X11 interface? > Or an example program? Here is a basic example as show in many X11 documentation. As I said, fpGUI will do all this hard work for you. ;-) You can compile it as follows: fpc basicwin.p

Re: [fpc-pascal] Simple X11 program

2008-03-14 Thread Graeme Geldenhuys
On 14/03/2008, Rainer Stratmann <[EMAIL PROTECTED]> wrote: > Exists there documentation about X11 interface? > Or an example program? > I want to start with simply draw a bitmap and handle keyboard events. It takes some practice to use Xlib directly but it's not to bad. The C documentation is p

Re: [fpc-pascal] Simple X11 program

2008-03-14 Thread ik
Pure xlib is not that easy. I can give you an old program I made using it, but bitmap/keyboard handling is not for "beginners" in X. You must understand better how things works etc.. Ido On Fri, Mar 14, 2008 at 2:49 PM, Rainer Stratmann <[EMAIL PROTECTED]> wrote: > Exists there documentation abou

[fpc-pascal] Simple X11 program

2008-03-14 Thread Rainer Stratmann
Exists there documentation about X11 interface? Or an example program? I want to start with simply draw a bitmap and handle keyboard events. Kind regards Rainer ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mail