Jump to content


Photo

Dock and Align layout and ScreenMask

ScreenMask Dock Align

  • Please log in to reply
2 replies to this topic

#1 arilotta

arilotta

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 100 posts
  • LocationTrieste, Italy

Posted 08 January 2018 - 10:38 AM

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

 

 


  • 0

#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 5011 posts

Posted 08 January 2018 - 12:34 PM

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,


  • 0

#3 arilotta

arilotta

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 100 posts
  • LocationTrieste, Italy

Posted 08 January 2018 - 01:54 PM

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()');

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users