Jump to content

Create component ERROR in expert in D10.2.3

Recommended Posts

A new problem on fmx.

My test is always TLabel.

On VCL If the container is Tlabel then the program creates 

The label on top of a label. Position 0,0. which is OK.

If the first label is in the middle of the form the second label

will be on top of the first in the middle of the form.

Nothing special to say about VCL.


ON fmx putting a label on top of another label is a mess.

The second label position is thrown at -500 or greater on both axes.

Which it does create but put it at a place outside of the 0,0 container.

If I RESELECT the form or pannel before creating the component , IT IS OK.


I hope I am understood.

Edited by limelect

Share this post

Link to post

I don't have any experience with FMX but I suspect we need to understand whether the currently selected control can take other child controls.

Unfortunately I don't have the time today to have a look at this but I will look into this.

  • Like 1

Share this post

Link to post

@David Hoyle I am working with BPL so I do not need to RESTART Delphi after instalation

as in DLL.

I took a different path for creating so, can you

put here your test program so I can try it.

May be your path does not do that fmx problem.



P.S I have in my software 


if not lComponent.IsTControl then

    ShowMessage('The Component of Selected is not Container Control!');

Edited by limelect

Share this post

Link to post

@David Hoyle I modified your software for FMX too and it works as it

should be.

Thanks again.


P.S BPL is easier to work with you do not need to close Delphi and restart or have

a second Delphi open.


Share this post

Link to post

@limelect Yes, BPLs can see to be easier to work with but bear in mind that if you code something wrong you can make the IDE you are working in unstable. I always use a secondary IDE using a -rNewRegKey command line and then I can kill of that session if I do something wrong.

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now