How do I specify a mouseDown eventhandler to dynaically creted Tpanels? My intention is to create a number of panels, like tiles, and move them around on the Form
I have created a design time TPanel and copied its OnMouseDown event and saved it as PanelMouseDown.
Sorry bothering you all! I had put a label over the panel and the label covered the whole Panel so the Label was clicked instead of the Panel. Increasing the panel and clicking outside the label all worked well and the cration cod for the panel was correct. Thanks pritaeas for your engagement. Case closed.