TFrame descendants in d.t. package don't work
Original Reporter info from Mantis: tk
-
Reporter name: TK
Original Reporter info from Mantis: tk
- Reporter name: TK
Description:
When I create a TFrame descendant and place it into a package using RegisterComponents, then this frame does not drop to form correctly or at all (with exceptions) later, when this package is installed into Lazarus.
Steps to reproduce:
- Create new package, e.g. mypackage.lpk.
- Create new TFrame, e.g. TMyFrame. Add e.g. two TButtons to it.
- Add TMyFrame to mypackage.lpk, with RegisterComponents('Sample', [TMyFrame]);
- Install this package to Lazarus.
- Start new project with fresh form.
- Drop TMyFrame from 'Samples' palette to form - the two buttons not shown.
Additional information:
In Delphi such kind of visual inheritance works fully. With more complex frames exceptions are raised such as Error creating component: TMyFrame Access Violation.
Mantis conversion info:
- Mantis ID: 28450
- Version: 1.4.2
- Monitored by: » @JuhaManninen (Juha Manninen)