Jump to content

how to show uniscreenmask manually


IRWANTO82

Recommended Posts

how to show uniscreenmask manually

 

i want to display uniscreen manually after user confirm message, not when user click button using property .ScreenMask

 

my own :

 

  uniGUIDialogs.MessageDlg(
  'Do you want preview report without filter ?',
  mtConfirmation,
  mbYesNo,
  procedure(Sender: TComponent;Res: Integer)
  begin
    case Res of
      mrYes :
        begin
           // showing mask

           screenmask.show;

           call_my_report;
         
        end;
      mrNo :
        begin

        end;
    end;
  end
);
 

 

Link to comment
Share on other sites

It won't work since you want to show a mask in the same server event with calling report generation. The easiest solution is to create your own dialog form with Yes and No buttons, and enable screen mask in Yes button properties.

Link to comment
Share on other sites

Hi irwan,

 

You can use JavaScript (with ExtEvents code or with AddJS method).

 

For example, if you have an UniScreenMask on your MainForm, and if you set its AttachedControl to UniButton1, you can write something ilke this :

MainForm.UniButton1.showMask();

If you do so, don't forget to manually hide this mask when it becomes useless:

MainForm.UniButton1.hideMask();

 

I hope it will help you.

  • Upvote 1
Link to comment
Share on other sites

  • 1 year later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...