Need help with inserting controls
Posted: Thu Feb 23, 2006 8:49 am
Hello,
I need to insert some components inside TRichViewEdit (TLabel & TProgressBar). I use AddControlEx function for this purpose. However, I also need to have an access to these components. Ex. I need to change a caption of one of the labels inside.
Could somebody plz give me an example of how I can find my TLabel and TProgressBar inside RichEdit, and change their properties?
The perfect case would be if you tell me how I can find the components by their names.
P.S. I tried to use FindChildControl() but it works ONLY with progress bars, but not with labels.
Thanks,
Alex.
I need to insert some components inside TRichViewEdit (TLabel & TProgressBar). I use AddControlEx function for this purpose. However, I also need to have an access to these components. Ex. I need to change a caption of one of the labels inside.
Could somebody plz give me an example of how I can find my TLabel and TProgressBar inside RichEdit, and change their properties?
The perfect case would be if you tell me how I can find the components by their names.
P.S. I tried to use FindChildControl() but it works ONLY with progress bars, but not with labels.
Thanks,
Alex.