CVS update was: RE: [lazarus] Enable/CheckMenuItem

Marc Weustink marc at dommelstein.net
Tue Nov 25 13:56:16 EST 2003


At 14:45 25-11-2003, Mattias Gaertner wrote:
>On Tue, 25 Nov 2003 14:26:02 +0100  Micha Nelissen
><M.Nelissen at student.tue.nl> wrote:
>
> > Marc Weustink wrote:
> >
> > > OK, the new layout is in CVS now.
> > >
> > > The winapi inc files have been sorted out and split up into winapi and
> > > lclintf
> > > The interfacebase.inc is splitup in 3 parts, only interfacebase, winapi
> > > and lcl.
> > > The moves for gtkwinapi aren't finished yet.
> >
> > I think the comment at the top of the lclapi.inc and winapi.inc to be a
> > little confusing:
> >
> > (************************************************************************
> > ******
> >    All Winapi related stuff goes here.
> >    This file is used by both LCLIntf.pas and InterfaceBase.pp
> >    If a procedure is platform dependent then it should have the
> > following tail:
> >      {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
> >    If a procedure isn't platform dependent, it is no part of
> > InterfaseBase and
> >    should be surrounded by:
> >      {$IFNDEF IF_BASE_MEMBER}
> >        procedure MyProc;
> >      {$ENDIF}
> > ****************
> >
> > AFAIK, those ifdefs don't have anything to do with platform dependency,
> > just so that they can be included within a class and declared as a
> > global procedure by using the same inc file. Both files should be
> > platform independant
>
>Right.

No,
It means that they will become part of the interfaceobject and that they 
need a per widgetset implementation. (platform is maybe the confusing term)

Marc

> > , no? Ie. functionality provided by interface should
> > be the same for all platforms.
>
>Yes.
>With a few exceptions (e.g. clipboard). The interface is the same on all
>platforms, but the functionality for the user differs.
>
>
>Mattias
>
>_________________________________________________________________
>      To unsubscribe: mail lazarus-request at miraclec.com with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives






More information about the Lazarus mailing list