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 -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
