Jump to content
uniGUI Discussion Forums
arilotta

Dock and Align layout and ScreenMask

Recommended Posts

Hi all,

I'm trying to show the screen mask on a form with the Dock and Align layout. It seems that the screen mask covers just

the panel aligned to Client (alClient).

To reproduce just add the following event to the UniPanelClient panel (UniPanel2) on the Dock&Align demo:

 

procedure TMainForm.UniPanel2Click(Sender: TObject);
begin
  self.ShowMask('test');
end;
 
Is there a workaround ?
 
Thanks
Andrea

 

 

Share this post


Link to post
Share on other sites

Hi,

 

As a workaround, maybe you need to use this approach for now, for example:

procedure TMainForm.UniPanel2Click(Sender: TObject);
begin
  //self.ShowMask('test');
  UniSession.AddJS('MainForm.form.mask("Test")');
end;

Best regards,

Share this post


Link to post
Share on other sites

Thank you Delphi Dev super as always.

For anyone interested, to applyt the mask to a form different than the main form:

 

UniSession.AddJS(self.Name+'.form.mask("'+UniServerModule.ServerMessages.LoadingMessage+'")');
 
And to unmask:
 
UniSession.AddJS(self.Name+'.form.unmask()');

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×