MFC Ticker

Posted on 2006-05-02
Last Modified: 2013-11-20
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??
Question by:cophi
    LVL 3

    Expert Comment

    LVL 3

    Expert Comment

    LVL 22

    Expert Comment

    This may be helpful to you 'Scrolling Banners -- the MFC Way ' <==


    Author Comment

    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?
    LVL 22

    Accepted Solution

    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 : <== 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 )


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Suggested Solutions

    Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
    Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now