Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 391
  • Last Modified:

MFC Ticker

I'm looking for a way to make an ActiveX control into a ticker.  Like a news or sports ticker you see on tv.  So lets say you have an activeX control on your application, its long and thin at the bottom I supposed, and it just scrolls text from left to right.  Any ideas how to go about this??
0
cophi
Asked:
cophi
  • 2
  • 2
1 Solution
 
Raj_KauCommented:
0
 
mahesh1402Commented:
This may be helpful to you 'Scrolling Banners -- the MFC Way '
http://www.codeguru.com/cpp/controls/staticctrl/article.php/c5799/ <==

-MAHESH
0
 
cophiAuthor Commented:
Say you had a label(Static), and you just wanted to move the text from the left to the right, or right to left.  Just one string.  Just to move it from the left to the right.  Would you override the static's paint class?  And if so what code would you put in?
0
 
mahesh1402Commented:
If you derive your own static control for animated text then you may just draw string with new co-ordinates on your onpaint with calculated size of static text window.

on above post link : http://www.codeguru.com/cpp/controls/staticctrl/article.php/c5799/ <== here you may refer CBannerStatic class ( BannerStatic.CPP and MultiColorStatic.CPP) how its implemented.

Its exact I said in your another post Overrider OnTimer() calculate new size of text and invalidate control
( Refer CBannerStatic::OnTimer and CBannerStatic::OnPaint functions from above code URL )

-MAHESH
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now