Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » how to dispaly moving text has any idea?
icon7.gif  how to dispaly moving text has any idea? [message #36633] Fri, 22 June 2012 04:26 Go to next message
akebee is currently offline  akebee
Messages: 90
Registered: August 2011
Location: China
Member
such as fly text,the text is moving on the window.

how to achieve it?

The only way I can think of to achieve this is
drawtext in ::Paint and change the text int other Timer callback,
has any idea? Shocked
Re: how to dispaly moving text has any idea? [message #36634 is a reply to message #36633] Fri, 22 June 2012 07:55 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello Akebee

Quote:

The only way I can think of to achieve this is
drawtext in ::Paint and change the text int other Timer callback


For me it is the simplest way. However perhaps there is a softer way.


Best regards
Iñaki
Re: how to dispaly moving text has any idea? [message #36676 is a reply to message #36634] Sun, 24 June 2012 18:51 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

If you want *good* and 100% guaranteed unflickered animation you SHOULD bypass system GUI drawing. This means using OpenGL/DirectX.
OpenGL is more portable way and it is supported by U++.
Re: how to dispaly moving text has any idea? [message #36683 is a reply to message #36633] Mon, 25 June 2012 14:28 Go to previous messageGo to next message
akebee is currently offline  akebee
Messages: 90
Registered: August 2011
Location: China
Member
i think i should still try timercallback
its simple Laughing
Re: how to dispaly moving text has any idea? [message #36684 is a reply to message #36683] Mon, 25 June 2012 17:50 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello Akebee

It is a good choose.

In addition to Mindtraveller advice, in Example/SDLExample and in Bazaar/SDLCtrl_demo you have nice examples of softly scrolling texts even with effects.


Best regards
Iñaki
Re: how to dispaly moving text has any idea? [message #36733 is a reply to message #36633] Fri, 29 June 2012 14:43 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
akebee wrote on Thu, 21 June 2012 22:26

such as fly text,the text is moving on the window.

how to achieve it?

The only way I can think of to achieve this is
drawtext in ::Paint and change the text int other Timer callback,
has any idea? Shocked


Yep, this is the simplest way, check examples/AnimatedHello.
Previous Topic: Problem in dasher.cpp and proposed solution
Next Topic: How to change color of selected text in DropList ?
Goto Forum:
  


Current Time: Fri Apr 19 21:24:28 CEST 2024

Total time taken to generate the page: 0.03563 seconds