View Issue Details

IDProjectCategoryView StatusLast Update
0028450PackagesPackagespublic2021-06-11 21:04
ReporterTK Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version1.4.2 
Summary0028450: TFrame descendants in d.t. package don't work
DescriptionWhen 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 Reproduce1. Create new package, e.g. mypackage.lpk.
2. Create new TFrame, e.g. TMyFrame. Add e.g. two TButtons to it.
3. Add TMyFrame to mypackage.lpk, with RegisterComponents('Sample', [TMyFrame]);
4. Install this package to Lazarus.
5. Start new project with fresh form.
6. Drop TMyFrame from 'Samples' palette to form - the two buttons not shown.
Additional InformationIn Delphi such kind of visual inheritance works fully. With more complex frames exceptions are raised such as Error creating component: TMyFrame Access Violation.
TagsNo tags attached.
Fixed in Revision
LazTarget
Widgetset
Attached Files

Relationships

related to 0020026 acknowledged Lazarus Updating TFrame outside form will not update the frame in parent form 

Activities

Juha Manninen

2021-06-11 18:34

developer   ~0131262

Last edited: 2021-06-11 21:04

View 3 revisions

In procedure TComponentSearch.Gather in unit Designer the csInline flag is correctly in a Frame's ComponentState.
Then procedure TCustomFrame.GetChildren is called. There ComponentCount is 0. The 2 added buttons are not there.

A ComponentClass, in this case TFrame, passed to function RegisterComponents() does not carry information about sub-components.
Are you sure it works in Delphi as you described? Maybe there should be a new function RegisterFrame() or similar?

Issue History

Date Modified Username Field Change
2015-07-31 14:22 TK New Issue
2017-10-11 15:50 Juha Manninen Relationship added related to 0020026
2021-06-11 18:34 Juha Manninen Note Added: 0131262
2021-06-11 19:38 Juha Manninen Note Edited: 0131262 View Revisions
2021-06-11 21:04 Juha Manninen Note Edited: 0131262 View Revisions