Jump to content

Recommended Posts

Posted

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

 

Posted

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.

Posted

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
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...