CITASys Automation Posted October 12, 2022 Share Posted October 12, 2022 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.. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 12, 2022 Share Posted October 12, 2022 11 minutes ago, CITASys Automation said: It work to add fade in effect with some motion, the problem is "Y" value increase automatically by time.. how to get it fixed? Hello, Sorry, I didn't quite understand your case... Quote Link to comment Share on other sites More sharing options...
CITASys Automation Posted October 12, 2022 Author Share Posted October 12, 2022 I get the unilabel Y value increase like this, never back to the inital Y value.. mainpage.mp4 Quote Link to comment Share on other sites More sharing options...
CITASys Automation Posted October 12, 2022 Author Share Posted October 12, 2022 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 }); } Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 12, 2022 Share Posted October 12, 2022 Have you tried in a simple project? Quote Link to comment Share on other sites More sharing options...
CITASys Automation Posted October 12, 2022 Author Share Posted October 12, 2022 here the simple project test, it work normally, but in my real project not work UNIGUITES1.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 12, 2022 Share Posted October 12, 2022 48 minutes ago, CITASys Automation said: UNIGUITES1.zip 8.86 MB · 0 downloads Here is the case where it works or does not work? Quote Link to comment Share on other sites More sharing options...
CITASys Automation Posted October 13, 2022 Author Share Posted October 13, 2022 it works in simple project test, but not work in my real project.. I use the same procedure and client event ext event.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.