Jump to content

unissesion.synchronize doesn't work in grid's ColumnActionClick


jaosobne

Recommended Posts

Hi ,

I have event on ColumnActionClick in grid to show window

in the onaftershow event of this window is executed this code which needs 10s to be finished  

procedure TShowURL.getDCL(sn:string);
var url,filename:string;
begin
  if (not sn.IsEmpty) then
    begin
    Caption:=sn;
    uniURL.ShowMask('Connecting ...');

    UniSession.Synchronize;
      if smartdata.esmartConnect then
      begin
        uniURL.ShowMask('Dowloading ...');
        UniSession.Synchronize;
        smartdata.checkDCL(sn);
        smartdata.getLastComm(sn);
        smartdata.AHTTPResponseStream.Position:=0;
        url := UniServerModule.LocalCacheURL+sn+'.html';
        filename := UniServerModule.NewCacheFileUrl(false, '.html', sn, '', url);
        smartdata.AHTTPResponseStream.SaveToFile(filename);
        uniURL.HideMask;
        UniURL.URL:=url;
      end;
    end;
end;

the window is shown but any mask isn't shown while procedure is executing.

the caption is not changed too.

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