[Lazarus] Challenge of converting a Delphi project

Juha Manninen juha.manninen at phnet.fi
Thu May 6 10:53:09 CEST 2010


Martin Schreiber wrote:
> uses
>  classes,mseclasses,msegui;
> type
>  twidget1 = class(twidget);
>  tcustomframe1 = class(tcustomframe);
> 
> [...]
> 
>  twidget1(thewidget).dosomething();
>  tcustomframe1(frame).dosomeother();

It is kind of dirty trick but now when think of it, it is rather reliable if 
the class structure doesn't change completely.
Like in case of EssModel, it was used to reach the members of TControl. All 
visual components are derived from TControl and that is not likely to change.

So, this trick is not something that will break the code at any moment in 
future, after all.


Juha




More information about the Lazarus mailing list