[Lazarus] Non-lcl-designer design question

Joost van der Sluis joost at cnoc.nl
Wed Apr 18 14:42:58 CEST 2012


On Wed, 2012-04-18 at 14:16 +0200, Mattias Gaertner wrote:

> Joost van der Sluis <joost at cnoc.nl> hat am 18. April 2012 um 13:45
> geschrieben: 
> > To circumvent this problem I created a unit with TComponent
> descendants 
> > with the same name as the objcclasses I really want to use. I
> thought 
> > that the Lazarus designer uses the classes which are compiled into
> the 
> > IDE. But this is not everywhere the case. Sometimes the codetools
> are 
> > used. They look up the unit sources and then see completely
> different 
> > classes then the 'fake' TComponent descendants that I used. 
> > 
> > Does anyone see another approach? How could I handle this? 
>  
> 
> Sounds similar to KOL.

Indeed, somewhat. But I want to use the designer-mediator to make it
better looking. 

> The designer needs components and that can not be changed easily. Many
> places only require TPersistent but that does not help with
> objcclasses. Your approach of creating fake TComponents is probably
> the easiest way.  
> 
> I will create a test example so we can check what is possible and what
> is needed. 

Perfect. I can send you what I have this evening, I don't have my
macbook with me right now. 

Joost.







More information about the Lazarus mailing list