Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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

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