嗨,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
嗨,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
举报