Jump to content

Creating Controls at Runtime


Mauri

Recommended Posts

Hello there, I have a form that has controls created at runtime, if I run the project using the Standalone it works fine, but when I deploy it to Apache 32bits when I try to open the form I get an exception "Control '' has no parent Window"

 

Does anyone know what might it be?

 

Thank you.

 

 

Link to comment
Share on other sites

Solved it, the problem was not in my components, it was actually a function that I had in my legacy software that used a TLabel to get the Canvas.TextWidth to set the Width of some components, just replaced the TLabel for a TUniBitMap and it's working fine, thanks for the help.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...