在电视上滚动文字 [英] Scrolling text on TV

查看:251
本文介绍了在电视上滚动文字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我决定开发一个将在直播电视节目上运行的新闻自动收录器。从数据库或通过网络服务获取数据,并简单地在滚动内显示内容有一件事我无法理解。这就是创造这个滚动乐队的技术或语言。

如果你们其中一个给我一个线索,我会很高兴的或者只是建议阅读一些文档?

Hi All,
I decided to develop an news ticker that will be running on live tv program.Pulling the data from a database,or through web services, and simply showing the content within a scrolling band .There is one thing I could not figure it out.That is what would be a technology or language to create this scrolling band.
I will be so glad if you one of you give me a clue or just suggest to read some docs ?

推荐答案

//从线程调用函数以在窗口窗体中显示促销

// -------------------------------------------------- ------------------------

public void Start_Ticker()

{

while(GlobalVars_LCD.g_Ticker_thread_flag == true)

{

char [] l_chars = lbl_Ticker.Text.ToCharArray();

char [] newchar = new char [l_chars.Length];

int l = l_chars.Length;

int k = 0;

for(int j = 0; j< l_chars.Length; j ++)

{

if(j + 1< l_chars.Length)

{

newchar [j ] = l_chars [j + 1];

}

其他

{

newchar [l - 1] = l_chars [k];

}

}

MethodInvoker playaction1 = delegate {lbl_Ticker.Text = new string(newchar); };

lbl_TextPromo.BeginInvoke(playaction1);

//lbl_TextPromo.Text =新字符串(newchar);

//Thread.Sleep(50);





//文本促销



char [] l_chars1 = lbl_TextPromo.Text.ToCharArray();

char [] newchar1 = new char [l_chars1.Length];

int l1 = l_chars1.Length;

int k1 = 0;

for(int j1 = 0; j1< l_chars1.Length; j1 ++)

{

if(j1 + 1< l_chars1.Length)

{

newchar1 [j1] = l_chars1 [j1 + 1];

}

其他

{

newchar1 [l1 - 1] = l_chars1 [k1];

}

}

MethodInvoker playaction2 = d elegate {lbl_TextPromo.Text = new string(newchar1); };

lbl_TextPromo.BeginInvoke(playaction2);

//lbl_TextPromo.Text = new string(newchar);

Thread.Sleep(100 );



}

}
// Function being called from thread to display the Promo in the Window Form
// --------------------------------------------------------------------------
public void Start_Ticker()
{
while (GlobalVars_LCD.g_Ticker_thread_flag == true)
{
char[] l_chars = lbl_Ticker.Text.ToCharArray();
char[] newchar = new char[l_chars.Length];
int l = l_chars.Length;
int k = 0;
for (int j = 0; j < l_chars.Length; j++)
{
if (j + 1 < l_chars.Length)
{
newchar[j] = l_chars[j + 1];
}
else
{
newchar[l - 1] = l_chars[k];
}
}
MethodInvoker playaction1 = delegate { lbl_Ticker.Text = new string(newchar); };
lbl_TextPromo.BeginInvoke(playaction1);
//lbl_TextPromo.Text = new string(newchar);
//Thread.Sleep(50);


// For Text Promo

char[] l_chars1 = lbl_TextPromo.Text.ToCharArray();
char[] newchar1 = new char[l_chars1.Length];
int l1 = l_chars1.Length;
int k1 = 0;
for (int j1 = 0; j1 < l_chars1.Length; j1++)
{
if (j1 + 1 < l_chars1.Length)
{
newchar1[j1] = l_chars1[j1 + 1];
}
else
{
newchar1[l1 - 1] = l_chars1[k1];
}
}
MethodInvoker playaction2 = delegate { lbl_TextPromo.Text = new string(newchar1); };
lbl_TextPromo.BeginInvoke(playaction2);
//lbl_TextPromo.Text = new string(newchar);
Thread.Sleep(100);

}
}


为了将电视放入此解决方案中,您需要添加一个VGA / HDMI / PS2端口,以便您可以在其上添加电视作为辅助屏幕。
In order to put TV in this solution , you need to add one more VGA/HDMI/PS2 port so that you can add TV on it as a secondary screen.


这篇关于在电视上滚动文字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆