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 

Trapping VCL events in BCB5 from components in components.

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





PostPosted: Sat Dec 31, 2005 2:10 am    Post subject: Trapping VCL events in BCB5 from components in components. Reply with quote



Hi,

I am trying to create a TStringGrid that displays a TComboBox in a given
cell when it is selected.

I have no trouble creating this by creating the TStringGrid on the form in
the IDE then creating the TComboBox in the code and setting the TStringGrid
as the parent. I can also get it to display where I want and populate the
list no problem.

The trouble starts when I want to receive and process the TComboBox OnChange
event. I set the property to the handler function but it never gets called.
If I change the combo box parent to my main form then it does get called.

Assuming that maybe the messages were going to the TStringGrid control I
created a derived component and instantiated the Combobox and handler in
that but it still refuses to receive the event message.

Is there a simple solution to this or do I have to put up with the ComboBox
being seperate to the TSrtingGrid and looking rather odd when other screen
elements are moved/resized etc.

All help appreciated.

Martin
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL) 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.