Hey,
I would do this with a small snippet of JavaScript code; e.g. a single
function that you can call with a line edit and a text.
fillAnimate(edit, text) { ... }
This code itself could use JavaScipt setTimeout() to perform the animation.
You can put this file in a JS file which you load using
WApplication::require(), and then you can use it for a particular line edit:
WLineEdit *ed = ... ;
WString text = ... ;
ed->doJavaScript("fillAnimate(" + ed->jsRef() + ", " +
text.jsStringLiteral() + ");");
Regards,
koen
2015-01-01 20:10 GMT+01:00 K. Frank <kfrank2...@gmail.com>:
> Hello List!
>
> What would be a good way -- the Wt way -- to animate filling
> in a WLineEdit? What I have in mind is having code write
> characters to the WLineEdit (and display them) one by one
> at a rate of three or four characters per second.
>
> What tools does Wt provide to do something like this, and
> how should the manipulations be divided up between the
> browser and the server?
>
> If I were doing this on a desktop app, I would probably lock
> the line-edit, use a timer to trigger writing each character
> into the line-edit, and then unlock the line-edit when I was
> done.
>
> Any thoughts would be appreciated.
>
>
> Thanks.
>
>
> K. Frank
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is
> your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest