[fpc-pascal] Simple X11 program

ik idokan at gmail.com
Fri Mar 14 14:56:15 CET 2008


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
<graemeg.lists at gmail.com> wrote:
> 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/
>  _______________________________________________
>
>
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
>  http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>



-- 
http://ik.homelinux.org/



More information about the fpc-pascal mailing list