Jump to content

Recommended Posts

Posted

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.


 
Posted
2 minutes ago, Hayri ASLAN said:

Então, o que está acontecendo quando você usa esse código?

você pode criar um caso de teste simples?

 

not loading the message "Loading data please wait ..."

Posted
6 minutes ago, Hayri ASLAN said:

Você não pode usar a sincronização onAfterShow. 

I have a load of data in the AfterShow event, where could I call the method? I need to put a message to wait.

Posted
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.

Posted
12 minutes ago, Hayri ASLAN said:

Use  onbeforeshow para carregar seus dados. 

Como você está chamando, mostrando esse formulário?

how can i send a link in private?

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...