JDDEV Posted June 13, 2018 Share 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);'); Link to comment Share on other sites More sharing options...
Sherzod Posted June 13, 2018 Share Posted June 13, 2018 Hi, Can you please specify which edition and build are you using?! Link to comment Share on other sites More sharing options...
JDDEV Posted June 14, 2018 Author Share Posted June 14, 2018 Delphi Tokyo : 10.2 Version 25.0.29899.2631 UNIGUI 1.10.0.1460 Link to comment Share on other sites More sharing options...
Sherzod Posted June 14, 2018 Share Posted June 14, 2018 Edition? Link to comment Share on other sites More sharing options...
JDDEV Posted June 14, 2018 Author Share Posted June 14, 2018 Product Name(s) : uniGUI, uniGUI Plus, uniGUI Complete Is it the waiting answer ? Link to comment Share on other sites More sharing options...
JDDEV Posted June 14, 2018 Author Share Posted June 14, 2018 FMSoft_uniGUI_Complete_Professional_1.10.0.1460 Link to comment Share on other sites More sharing options...
erich.wanker Posted June 18, 2018 Share 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 }});'); Link to comment Share on other sites More sharing options...
JDDEV Posted June 26, 2018 Author Share 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} }); ' +'}'; Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now