Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Rotator > Using Rotator to scroll text.

Not answered Using Rotator to scroll text.

Feed from this thread
  • Jeff Bradshaw avatar

    Posted on May 29, 2011 (permalink)

    Can I use the rotator to create a ticker on a window's program? (Ticker like the ticker on CNN at the bottom of the screen)

    TIA - Jeff.

    Reply

  • Stefan Stefan admin's avatar

    Posted on Jun 1, 2011 (permalink)

    Hi Jeff,

    Thank you for writing.

    You you can use RadRotator as a ticker to scroll text. Here are a few steps that you need to take to accomplish this behavior:
    • Dock the control to bottom and size it accordingly;
    • Add the desired text as RadLabelElements;
    • Change the LocationAnimation to (1,0) to move the items from right to left and to (-1,0) for left to right;
    • Set the desired interval between the news;
    • Start the rotator;
    Here is a sample implementation:
    public Form1()
    {
        InitializeComponent();
     
        radRotator1.LocationAnimation = new SizeF(1, 0);
        radRotator1.AnimationFrames = 30;
        radRotator1.Interval = 5000;
     
        RadLabelElement news1 = new RadLabelElement();
        news1.Text = "First news";
        RadLabelElement news2 = new RadLabelElement();
        news2.Text = "Second news";
        RadLabelElement news3 = new RadLabelElement();
        news3.Text = "Third news";
        RadLabelElement news4 = new RadLabelElement();
        news4.Text = "Forth news";
     
        radRotator1.Items.Add(news1);
        radRotator1.Items.Add(news2);
        radRotator1.Items.Add(news3);
        radRotator1.Items.Add(news4);
     
        radRotator1.Start();
         
        //if you want to hide the border, uncomment the following line
        //((BorderPrimitive)radRotator1.RotatorElement.Children[1]).Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
    }

    I hope that the provided information addresses your question. Should you have any other questions, do not hesitate to contact us.
     
    Regards,
    Stefan
    the Telerik team
    Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Rotator > Using Rotator to scroll text.
Related resources for "Using Rotator to scroll text."

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]