Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Create components at runtime

I'm playing a bit with IntraWeb from Atozed software. I encountered a problem (maybe just my misunderstanding). For example, I can create a TIWLabel in the TIWForm.OnCreate event. Here it works the same as in Delphi, which is great. However, if I just want to create a TIWLabel when a button is pressed (AsyncClick event), the label is created but I can't force it to show.

Is there any way to do this? I just generate some text after the data is loaded from the database, and what is specifically loaded will be affected by the user. Pressing the button will then begin creating.

Hi ramiroflores,

Have a look at the following demo:

Hope this helps.

Cheers, Paul
Hi Ramiro,

Paul gave you the correct link to one of our demos that show this feature.

You didn't show any code, but the key here is to correctly set the parent of the IWLabel, the name and position.

Forum Jump:

Users browsing this thread: 1 Guest(s)