完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好,我使用的是和声2.06,当文本字段被聚焦时,我想让它成为一个小键盘小部件。有人能帮我吗?谢谢你
以上来自于百度翻译 以下为原文 Hello, I'm using HARMony 2.06 and I want to make visible a keypad widget when a text field is focused. Anyone can help me with that? Thank you |
|
相关推荐
1个回答
|
|
嗨,埃内斯托,发行版V2.06没有一个机制来注册文本字段时的回调。我认为它应该是这样的,所以我们将在将来的版本中添加这个特性。同时,请参阅附件LbRiaAiWiGeDig.TraceField.c/h。我已经修改了文件,添加了一个函数LtExtFieldWistGoStFielSuxEngEdEngEnter回调(),您可以使用它来注册文本字段增益或丢失焦点时的回调。在回调函数中,可以在获得焦点时设置键盘小部件。注意,当键盘被触摸以指示文本字段失去焦点(焦点现在在键盘上)时,也会调用回调,因此您应该在回调函数中相应地处理。谢谢,Ed @ Microchip。
以上来自于百度翻译 以下为原文 Hi Ernesto, The release v2.06 doesn't have a mechanism to register a callback when the text field is focused. I think it should have that, so we'll see about adding that feature in the future releases. In the meantime, please see attached libaria_widget_textfield.c/h. I have modified the files to add a function laTextFieldWidget_SetFocusChangedEventCallback() that you can use to register a callback when the text field gains or loses focus. In the callback function, you can set the keypad widget visible when focus is gained. Note that the callback will also get called when the keypad is touched to indicate that the text field has lost focus (focus is now in keypad) so you should handle that accordingly in the callback function. Thanks, Ed @ Microchip Attachment(s) libaria_widget_textfield.zip (5.37 KB) - downloaded 19 times |
|
|
|
只有小组成员才能发言,加入小组>>
4828 浏览 9 评论
1832 浏览 8 评论
1752 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
2958 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2062 浏览 5 评论
463浏览 1评论
1113浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
367浏览 0评论
265浏览 0评论
LAN9252使用SQI通信,进行数字复位后读BYTE_TEST异常
1806浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-4-28 17:59 , Processed in 1.187990 second(s), Total 73, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号