Jump to content
uniGUI Discussion Forums
Sign in to follow this  
JDDEV

Animate Label and DBGrid

Recommended Posts

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);');
 

Share this post


Link to post
Share on other sites

Product Name(s) :    uniGUI, uniGUI Plus, uniGUI Complete
 Is it the waiting answer ?

Share this post


Link to post
Share on other sites

Hy ..

 

if it helps: 

This line move the UniImage4 in 300ms to the position x/y


UniSession.AddJS(UniImage4.JSName + '.animate({ duration: 300, to: { x: '+inttostr(x)+', y: '+inttostr(y)+', opacity:100 }});');

Share this post


Link to post
Share on other sites

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} }); '
    +'}';
 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×