0

Dynamic roTextWidget



Hi all, I am trying to display text in a roTextWidget that changes regularly, such as a countdown or a timer, but I'm finding that the text will sometimes disappear momentarily when I update the text. I'm currently doing this for the update: text.Clear() text.PushString(str) I'm aware that I could push all strings in advance and set the duration to display each string, but I need full control over when and how text changes. Same on both the HD1010 and HD210 with latest firmware. Any ideas? Regards, Earl

1 comment

  • 0
    Avatar
    RokuLyndon


    You need to change the type of text widget you created. The standard widget assumes it's going to cycle through strings on a timer. You can create a second type of widget that changes immediately, assuming it's only going to hold one string at a time.

    CreateObject("roTextWidget",r, textLineCount, textMode, { TextMode: 2, Alignment: 2 })

    Text mode 2 is what you want.
Please sign in to leave a comment.