 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Mark Ravelle Guest
|
Posted: Tue Jan 27, 2004 10:09 am Post subject: Dynamic VCL objects. |
|
|
Hi All...
I have a need to create VCL objects on the fly...
I use this code:
class TEd: public TEdit
{
public:
__fastcall TEd(void);
};
__fastcall TEd::TEd(void):TEdit((TComponent*) NULL)
{
Visible=true;
}
Then I instanciate....
TEd te= new TEd;
te.Width=99;
te.ParentWindow=WinHan;
te.Text="Hello";
This all works OK, and the controls appear, but how do I assign the callback
functions for "Change", Mouse clicks etc.
Regards...
Mark Ravelle
[email]mark (AT) siliconwold (DOT) com[/email]
www.siliconwold.com
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|