In a Delphi 10.4.2 32-bit VCLApplication, I RESIZE a TPanel
(align = alClient
) by moving a TSplitter
control with the mouse. However, the Panel could also be resized by other actions. In this scenario, I need an automatic action to be taken ONCE AFTER the resizing of the Panel has occurred. So I wrote this OnResize
action:
procedure TForm1.TPanel1Resize(Sender: TObject);
begin
CodeSite.Send('TForm1.TPanel1Resize: ');
end;
However, this OnResize
event-handler randomly is called once or twice! So I need a TPanel.OnEndResize
event that occurs only once. Also, a TPanel.OnStartResize
event would be useful. How can I achieve this?