 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Martin Harrison Guest
|
Posted: Sat Dec 31, 2005 2:10 am Post subject: Trapping VCL events in BCB5 from components in components. |
|
|
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 |
|
 |
|
|
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
|
|