Friday 21 June 2013

Delphi After Resize Event

Here is the way to handle what happens after a user has resized a form. This works fine for standard forms, but does not work for forms within a form.

procedure WMEXITSIZEMOVE(var Message: TMessage); message      WM_EXITSIZEMOVE;

procedure TForm1.WMEXITSIZEMOVE(var Message: TMessage);
begin
    ShowMessage('Just Resized');
end;

I would like to know if there is a way to capture an event when resizing a form in a form.

There is also a similar Windows message for when a user starts to resize a form, which is WM_ENTERSIZEMOVE.

No comments:

Post a Comment