Tagged: update text
- AuthorPosts
I am building an application that has a message center that has 5 lines of text. (There will be another menu on a different page but I can use the same method) I need to be able to change the text, the text color and the background color. See pics of current product for an example. I have tried different methods of adding label and lists. It seems like I should add a container label widget to the page and then add sub widget labels for each line. That looks right on the screen but when I load it to the display.
I have not been able to update text on widgets within widgets
I am confused on what the “type” should be. In this example from your instruction set manual it is “label”
ST<{“cmd_code”:”set_text”,”type”:”label”,”widget”:”label”,”text”:”Hello Stone”}>ETST<{“cmd_code”:”set_color”,”type”:”widget”,”widget”:”AlertText”,”color_object”:”bg_color”, “color”:00000000}>ET
When do you use the type “widget” verses the actual “type” of widget?In general, can any property of a widget be changed or only the ones that there are commands for in the instruction set manual?
Can you recommend the best solution to do what I am attempting to do and provide example commands to achieve it?
Great. I just wanted to make sure it was received. No you have 2 copies. ?
First, please open the dialog1 window with the attached project, then send the following commands to test if you can have the same effect as mine.
ST<{“cmd_code”:”set_color”,”type”:”widget”,”widget”:”label8″,”color_object”:”text_color”, “color”:4278190335}>ET
ST<{“cmd_code”:”set_enable”,”type”:”widget”,”widget”:”label5″,”enable”:false}>ET
ST<{“cmd_code”:”set_enable”,”type”:”widget”,”widget”:”label4″,”enable”:false}>ET
And I have alao attached the document about how to change the logo, please kindly check.I am able to change the colors of labels now. Part of my problem was the font size was too large and the text displayed in Stone Designer but not on the actual hardware. I think I have worked through it.
I am still not able to update the logo. I tried copying the example right from the demo application <640480> and it still doesn’t work.
Is it possible that the version I have does not support this function. sys_version returns V2.1.02.211221RC
The logo can not be updated may be because your firmware version is too old, please unzip the zip file I attached in the root directory of the U disk and then insert the LCD to update the firmware automatically.
After the firmware update is complete, please try again to g update the logo.
Success! Thanks!
- AuthorPosts
- You must be logged in to reply to this topic.