Jump to content

uniclientevent ext event fade in


CITASys Automation

Recommended Posts

Hello, 

I found a problem when add an unilabel with client event extevent on show like

function show(sender, eOpts)
{
     var el = sender.getEl();
 
    el.setOpacity(0);
    el.setY(el.getY()-20);
    el.fadeIn({
        duration: 800,
        y: el.getY()+20
    });
}

It work to add fade in effect with some motion, the problem is "Y" value increase automatically by time.. how to get it fixed?

please help.. 

Link to comment
Share on other sites

I use unitimer ontimer event to start the procedure,

TMainForm.UniTimer1Timer(Sender: TObject);

begin

unilabel1.hide;

unilabel1.show;

unilabel1.top:=60;

unilabel1.left:=60;

end;

On unilabel ext event onshow :

function show(sender, eOpts)
{
     var el = sender.getEl();
 
    el.setOpacity(0);
    el.setY(el.getY()-20);
    el.fadeIn({
        duration: 800,
        y: el.getY()+20
    });
}

 

Link to comment
Share on other sites

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