JDDEV Posted June 13, 2018 Posted June 13, 2018 Hi, I have to develop a form viewing on a TV (no user action is possible). 1) I would like to scroll a label from the right of his parent panel to the left, to look at a message. 2) i would like to scroll a DBGrid (with large number of lines) from the first line to the last, to look for all the lines of the grid. Thanks a lot to help me how can i use "animate" function... ex: UniSession.AddJS(UniLabelMsgInfo.JSName + '.animate({???}, 3000);');UniSession.AddJS(UniDBGrid1.JSName + '.animate({???}, 3000);'); Quote
Sherzod Posted June 13, 2018 Posted June 13, 2018 Hi, Can you please specify which edition and build are you using?! Quote
JDDEV Posted June 14, 2018 Author Posted June 14, 2018 Delphi Tokyo : 10.2 Version 25.0.29899.2631 UNIGUI 1.10.0.1460 Quote
JDDEV Posted June 14, 2018 Author Posted June 14, 2018 Product Name(s) : uniGUI, uniGUI Plus, uniGUI Complete Is it the waiting answer ? Quote
JDDEV Posted June 14, 2018 Author Posted June 14, 2018 FMSoft_uniGUI_Complete_Professional_1.10.0.1460 Quote
erich.wanker Posted June 18, 2018 Posted June 18, 2018 Hy .. if it helps: This line move the UniImage4 in 300ms to the position x/yUniSession.AddJS(UniImage4.JSName + '.animate({ duration: 300, to: { x: '+inttostr(x)+', y: '+inttostr(y)+', opacity:100 }});'); Quote
JDDEV Posted June 26, 2018 Author Posted June 26, 2018 Thank's This is the solution : In the FormCreate function : UniLabelMsgInfo.ClientEvents.ExtEvents.Values['beforeshow']:='function window.beforeshow(sender, eOpts) {' +' sender.animate({ duration: 0, to: { x:2000, opacity: 0} }); ' +' sender.animate({ duration: 10000, to: { x:'+IntToStr(UniLabelMsgInfo.left)+', opacity: 100} }); ' +'}'; Quote
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.