[fpc-pascal] Simple X11 program

Graeme Geldenhuys graemeg.lists at gmail.com
Fri Mar 14 14:52:15 CET 2008


On 14/03/2008, ik <idokan at gmail.com> 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

Simply changing your classl name from TWindow to TMyWindow should do the trick.

eg:

type
  TWindow = class
  private
    display       : pDisplay;
    RootWindow    : TWindow;  //   <<<---- conficting
    CurrentWindow : TWindow;  //   <<<---- conficting
  public
....

becomes

type
  TMyWindow = class
  private
    display       : pDisplay;
    RootWindow    : TWindow;
    CurrentWindow : TWindow;
  public
...




Regards,
  - Graeme -


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



More information about the fpc-pascal mailing list