[lazarus] InterfaceBase public procedures

Marc Weustink marc at dommelstein.net
Sun Dec 15 08:42:03 EST 2002


A bit late reaction :)

At 10:35 3-12-2002 +0100, Mattias Gaertner wrote:
>On Tue, 3 Dec 2002 05:55:13 +0100
>"Vincent Snijders" <vslist at zonnet.nl> wrote:
>
> > InterfaceBase has the following public procedures and function which are
> > not called from LCL:
> >
> > SetCallBack
> > RemoveCallBack
> > RecreateWnd
> >
> > Can they be removed from TInterfaceBase? Can they be moved to protected or
> > private scope in the TGTKobject and TWin32Object Class?
>
>I think so. Done.
>
>
> > If this is done, I see two odd functions:
> > GetText and UpdateHint.
> > Can they be replaced by messages like LM_GETTEXT and LM_SETHINT (new), so
> > that we have a more consistent interface for TInterfaceBase.
>
>The UpdateHint procedure is currently not used. So, I don't think that we
>should add a LM_SETHINT.
>Plz send me a patch.
>
>
> > Or is the long
> > term target to have all messages converted to procedures and functions of
> > the interface object.
>
>Yes. That's important for smart linking and IMO it also improves
>readability.

That was indeed the idea when GetText was introduced

Marc







More information about the Lazarus mailing list