I'm developing a component called TBitmapStringGrid. Inside that component, I declare another component in this way:
The TListBox component is created inside one of the cells in the grid. The problem is that I need that the TBitmapStringGrid detects when an user clicks into the TlistBox. The OnClick event generated falls into TListBox, and not into TBitmapStringGrid, so TBitmapStringGrid never knows if someone has clicked into a cell.
ListBox= new TListBox(this);
I tried to call a TBitmapStringGrid's member function from the TListBox, overriding the MouseDown event as follows:
But it tells me that MyOwnFunction is not a member of TWinControl. I'd like to know if something like this is possible to do.
void __fastcall TListBox::MouseDown(TMouseButton Button, TShiftState Shift, int x, int y)
if (aux == "TBitmapStringGrid")
What I want to do is to execute one TBitmapStringGrid's class member function when someone clicks in the child component.
thanks and regards,