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

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...

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...