Hi , I wanna make my own component that should have the functions as follow:
contains a image component to display image
contains a label for display text
when mouse move on & move out ,change the background color
What I have done:
1.try to write a component inherited from TControl.
2. use Tcontrolcanvas to change the background color in the mouse move and mouse out event(in the paint api message)
but I can not use insertcontrol to insert the image ,panel ,label in my Tcontrol type component ,there has no insertcontrol method but insertcomponent .
and I change the component parent class to TCustompanel
1. inserting the panel ,image, label successful by insertcontrol method
2. but the color does not change when I active the mouse on and mouse out event
Anyone has the idea to create this component ??
With Details is better