完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好,您现在可以使用API修改图形文本字符串。一个很快的例子可以在“阿里亚计数器”演示中看到,我们有一个计数器运行显示。当然,这种输入可能来自任何地方,而不仅仅是数字数据。这个演示还演示了如何在处理这些字符串时防止内存问题。
以上来自于百度翻译 以下为原文 Hello, You can modify a graphics text string using APIs now. A quick example of this can be seen in the 'aria_counter' demo, where we have a counter running for display. Of course this input could come from anywhere, and not just numerical data. This demo also shows how to prevent memory issues when dealing with those strings. |
|
|
|
我发现了函数LaSTRIGIN追加。这不能用于在显示文本之前追加文本吗?清除文本?如果他们取代你在阿里亚伯爵的演示,你会做什么?特别是对于5个有自己标签的数字?
以上来自于百度翻译 以下为原文 I've found the function laString_Append. Can't this be used to append text before displaying it? And laString_Clear to clear the text? What would these do if they replace what you have in aria_count demo? Especially for the 5 numbers that have their own labels? |
|
|
|
嗨,RBISMC,是的,你应该能够使用LASTRIGIN清除和LASTRIGPENG来清除和附加文本字段小部件中的字符串。请尝试下面的示例代码,让我知道它是如何工作的。
以上来自于百度翻译 以下为原文 Hi rbmisc, Yes, you should be able to use laString_Clear and laString_Apped to clear and append strings in a text field widget. Please try the sample code below, and let me know how it works. To Clear: laString_Clear(&TextFieldWidget1->text); laWidget_Invalidate((laWidget*)TextFieldWidget1); To Append: laString str = laString_CreateFromID(string_ID); //See gfx_assets.h for the string IDs laString_Append(&TextFieldWidget1->text, &str); laWidget_Invalidate((laWidget*)TextFieldWidget1); Thanks, Ed@Microchip |
|
|
|
这就是我所需要的。谢谢。有趣的是,文本字段必须有初始文本,在其中被清除或追加不起作用。现在,这是工作,我似乎有字体问题。我将开始另一个职位。
以上来自于百度翻译 以下为原文 This is what I needed. Thanks. One thing that is interesting is that the text field has to have initial text in it that was cleared out or append doesn't work. Now that this is working, I seem to have issues with fonts. I'll start another post. |
|
|
|
只有小组成员才能发言,加入小组>>
4904 浏览 9 评论
1865 浏览 8 评论
1809 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3006 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2094 浏览 5 评论
502浏览 1评论
359浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
413浏览 0评论
301浏览 0评论
1055浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-6-29 09:42 , Processed in 1.182987 second(s), Total 83, Slave 67 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191