BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Dynamic VCL objects.

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
Mark Ravelle
Guest





PostPosted: Tue Jan 27, 2004 10:09 am    Post subject: Dynamic VCL objects. Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.