MarBar77 Posted January 27, 2018 Share Posted January 27, 2018 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. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 28, 2018 Share Posted January 28, 2018 Hi, How can we reproduce this? Quote Link to comment Share on other sites More sharing options...
MarBar77 Posted January 28, 2018 Author Share Posted January 28, 2018 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; Quote Link to comment Share on other sites More sharing options...
MarBar77 Posted February 1, 2018 Author Share Posted February 1, 2018 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.