lfgarrido Posted April 14, 2020 Share Posted April 14, 2020 Hello Guys, How can I disable or avoid the "blink" of screen mask when user close a tab (frame) in Page Control as we can see in Desktop Demo? I tried to disable or change opacity in Main Form, Page Control, Frame, but It doesn't work. Thanks! Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 15, 2020 Share Posted April 15, 2020 17 hours ago, lfgarrido said: How can I disable or avoid the "blink" of screen mask when user close a tab (frame) in Page Control as we can see in Desktop Demo? I tried to disable or change opacity in Main Form, Page Control, Frame, but It doesn't work. Hello, The uniFMask object is used here, I will analyze and let you know. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 15, 2020 Share Posted April 15, 2020 17 hours ago, lfgarrido said: How can I disable or avoid the "blink" of screen mask when user close a tab (frame) in Page Control as we can see in Desktop Demo? Try this approach for now: ... Ts := TUniTabSheet.Create(Self); Ts.PageControl := UniPageControl1; Ts.JSInterface.JSAddListener('beforeclose', 'function (panel, eOpts){panel.uniFMask={beforeclose: false};}'); //<----- Ts.Closable := True; Ts.OnClose := TabSheetClose; ... 1 Quote Link to comment Share on other sites More sharing options...
lfgarrido Posted April 16, 2020 Author Share Posted April 16, 2020 14 hours ago, Sherzod said: Try this approach for now: ... Ts := TUniTabSheet.Create(Self); Ts.PageControl := UniPageControl1; Ts.JSInterface.JSAddListener('beforeclose', 'function (panel, eOpts){panel.uniFMask={beforeclose: false};}'); //<----- Ts.Closable := True; Ts.OnClose := TabSheetClose; ... Perfect, thanks a lot @Sherzod it works like a charm. 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.