[lazarus] InterfaceBase public procedures

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Dec 3 04:29:33 EST 2002


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.


Mattias






More information about the Lazarus mailing list