Jump to content


Photo

Animate Label and DBGrid


  • Please log in to reply
7 replies to this topic

#1 JDDEV

JDDEV

    Member

  • Members
  • PipPip
  • 22 posts

Posted 13 June 2018 - 03:03 PM

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


  • 0

#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 5312 posts

Posted 13 June 2018 - 06:20 PM

Hi,

 

Can you please specify which edition and build are you using?!


  • 0

#3 JDDEV

JDDEV

    Member

  • Members
  • PipPip
  • 22 posts

Posted 14 June 2018 - 07:57 AM

Delphi Tokyo : 10.2 Version 25.0.29899.2631

UNIGUI 1.10.0.1460


  • 0

#4 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 5312 posts

Posted 14 June 2018 - 08:13 AM

Edition?


  • 0

#5 JDDEV

JDDEV

    Member

  • Members
  • PipPip
  • 22 posts

Posted 14 June 2018 - 01:02 PM

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


  • 0

#6 JDDEV

JDDEV

    Member

  • Members
  • PipPip
  • 22 posts

Posted 14 June 2018 - 01:04 PM

FMSoft_uniGUI_Complete_Professional_1.10.0.1460


  • 0

#7 erich.wanker

erich.wanker

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 543 posts
  • LocationEurope / Austria / Salzburger Land / Bad Hofgastein

Posted 18 June 2018 - 12:17 PM

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


  • 0

Best Regards

Erich

 

Uses:

UniGui Version 1.0.0.1425

Delphi XE4 Professional 

ReportBuilder 15 / Update 18

Zeos7  / Firebird 2.5

 

Testserver:

Win10 32bit german / Apache 2.4.3 mod_isapi 

 

MyBaby:

Maintenance Software

 

 

... i ♥ uniGUI


#8 JDDEV

JDDEV

    Member

  • Members
  • PipPip
  • 22 posts

Posted 26 June 2018 - 07:43 AM

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


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users