通过单击文本框中的单词来触发音频播放 [英] Triggering audio play out of clicking on a word in a textbox

查看:152
本文介绍了通过单击文本框中的单词来触发音频播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很抱歉再次问这个问题(最新的论坛帖子是2009年1月9日刚刚出现但是我想要做的是有一个文本框填充了一段文字。在那段我想要的能够点击说出单词5,20和32并让每个单词点击
触发一个不同的音频文件。这可能吗?我将如何去做?

谢谢,


ted7

Sorry to ask this again (the latest Forum thread is January 9, 2009 just came up but
What I want to do is have a textbox filled with a paragraph of text.  In that paragraph
I want to be able to click on say word 5, 20 and 32 and have each of those word click
trigger a different audio file.   Is that possible?  How would I go about doing it? 

Thanks,


ted7

推荐答案

您好,

解决方法是将"隐形按钮"放在特定字词上方如果TextBox中的文本是固定的,将触发播放音频。如果不是,则需要编写代码以确定在TextBox中单击哪个单词以触发哪个音频文件。

我不喜欢我认为这与Expression Blend有关,所以也许你可以在MSDN中发布这个问题 C#VB.NET 论坛。

干杯
Hi ted,

A workaround would be to have "invisible buttons" placed above the specific words that will trigger the playing of the audio if the text within the TextBox is fixed. If its not, you would need to write code to determine which word is being clicked within the TextBox to trigger which audio file.

I don't think this has anything to do with Expression Blend so maybe you could post this question in the MSDN C# or VB.NET forums.

Cheers


这篇关于通过单击文本框中的单词来触发音频播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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