[fpc-pascal] Simple X11 program
ik
idokan at gmail.com
Fri Mar 14 14:58:51 CET 2008
The fix :)
On Fri, Mar 14, 2008 at 3:56 PM, ik <idokan at gmail.com> 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
> <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/
>
--
http://ik.homelinux.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xwin.pp
Type: application/octet-stream
Size: 2438 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20080314/5a805c1f/attachment.obj>
More information about the fpc-pascal
mailing list