Главная страница | назад





Article #15121: Problems with creating new VCL components

 Question and Answer Database

FAQ121C.txt   Problems with creating new VCL components
Category   :VCL
Platform    :All
Product    :C++Builder  1.x

Question:
Why is it when I dynamically create a VCL object, 
it does not show up on my form?

Answer:
VCL objects have a property called "Parent", which must be set
so the framework knows where to put it. ie:

TButton *ButtonX = new TButton(this);
ButtonX->Parent = this;


7/2/98 10:32:32 AM
 

Last Modified: 01-SEP-99