Jump to content

ScreenMask


MarBar77

Recommended Posts

I have noticed that .ShowMask method shows Mask only once?

 

I am using below code:

 

procedure LoadData;

begin

  MainForm.ShowMask('Loading data ...');

 

  //some database operations and data processing

 

  MainForm.HideMask;

end;

 

when I run this procedure for the first time Mask is showing, but when I use it for next times then mask does not appear?

 

I use latest trial version.

 

 

Link to comment
Share on other sites

I am runnig this in frame, which is embedded on the main form. Just similiar write procedure. First Time it works, next times not.

 

procedure LoadData;

begin

  MainForm.ShowMask('Loading data ...');

 

  ... Few second task ...

 

  MainForm.HideMask;

end;

Link to comment
Share on other sites

I found the reason why mask is not showing.

 

When showing mask I am also running code like this:

 

  UniSession.SendResponse('drawChartData(' + data + ');', true);

 

where drawChartData is JS function:

 

  function drawChartData(newData){
    myChart.data = newData;
    myChart.update();
  };
 
when I comment out
  UniSession.SendResponse('drawChartData(' + data + ');', true);
then mask is showing every time.
 
Is there any workaround for this?
 
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...