I'm developing a visual component (VCL), a specialized TPanel. I need to intercept when the user moves a control dropped on my special panel while editing the form. I need to intercept the move to adjust visual properties of other controls dropped on the same special panel.
My question is: how can in intercept/detect/react to the move of a control dropped on a TCustomPanel derived component, while the user is editing the form within the IDE?
You could override AlignControls
method of the container TPanel.
the AControl
argument will tell you which child control was moved or inserted into the container and react accordingly. You could then adjust the position of other child controls if needed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With