Jump to content

Screen Mask without Text and Panel


cristianotestai

Recommended Posts

Hi,

I need to have in the Screen Mask only the image(.gif) without showing the text and without the panel and edges of the screen mask.

What I need is exactly what the Recovery Failure does, if I set the MessageText in blank (' '), only the image appears.

Any idea or workaround for this with Screen Mask?

 

Thanks!

Link to comment
Share on other sites

i made a TUniContainerPanel called "mask" in MainForm  .. visible:=false;

you can make your own thing .. depending on your needs...

 

 

in ClientEvent -> ExtEvebts:

 

function afterrender(sender, eOpts)
{
  sender.getEl().setStyle('z-index','901100');
}
 
function beforerender(sender, eOpts)
{
  sender.addClass('sec-maske');
}
 
and the CSS:
 
.sec-maske{
    z-index:1000;
    position:absolute;
    width:100%;
    height:100%;
    zoom:1;
    filter:alpha(opacity=50);
    opacity:.5;
    background:#000000;
    cursor:default;
}
 
 

And i call my mask via different ways:

 

Component-onClick:

 

 ClientEvent -> ExtEvebts:
function click(sender, eOpts)
{
  MainForm.mask.show();
}

 

or via DelphiCode:

 

UniSession.AddJS('MainForm.mask.hide();');

or

unisession.AddJS('MainForm.mask.show();');

Link to comment
Share on other sites

  • 4 months 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...