After resize form event

Asked

Viewed 258 times

0

I have a project in delphi 2010 in which I am trying to create an event after resize. Is there any way to create the event in a project form?

The goal would be to execute a code only after resizing the form be completed, and not always be executing which is what happens in the onresize of form.

  • Put the code that is in resize,

  • @Junior, the code can be a showmessage, if you need the code even more soon I can post

1 answer

1


Implement in the declarations:

procedure WMEnterSizeMove(var Message: TMessage); message WM_ENTERSIZEMOVE;
procedure WMExitSizeMove(var Message: TMessage); message WM_EXITSIZEMOVE;

procedure TForm9.WMEnterSizeMove(var Message: TMessage);
begin
  {Aqui ele entrou no laço que monitora o redimensionamento, então não Faça nada}
end;

procedure TForm9.WMExitSizeMove(var Message: TMessage);
begin
  {Aqui ele terminou de redimensionar}
  ShowMessage('terminou');
end;

Detail, do not implement the code and then run the shortcut to auto declare procedures, Delphi will declare without some details, has to be done manually same!

In the OS

Browser other questions tagged

You are not signed in. Login or sign up in order to post.