Jump to content

ShowMask


picyka

Recommended Posts

Can I use the ShowMask method in the AfterShow event of a form?

 

procedure TUniFormConsultaPrestador.UniFormAfterShow(Sender: TObject);
begin
  if Self.FTipoConsulta = tpLista then
  begin
    try
      ShowMask('Carregando dados aguarde...');
      UniSession.Synchronize;
      Self.LoadPrestadores(tpLista,False,Self.FEndereco);
    finally
      HideMask;
    end;
  end;
end;

Remembering that I already use it in other system locations.


 
Link to comment
Share on other sites

11 minutes ago, Hayri ASLAN said:

Por que você não está fazendo isso antes da exibição sem mostrar uma máscara

The data load is being done when opening the form, I need a mask because the process is slow, when opening the form where I could load the data? being that it has no interest of the user to load the data.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...