roImageCanvas.ClearButtons() ?

Most screens have a ClearButtons() method that can be used to rename buttons while the screen is being displayed. For instance, changing the text of a button from “Play” to “Pause” when an audio track starts playing. roImageCanvas has no ClearButtons() method. Is there a way to change the text of a button on a roImageCanvas on the fly?

There’s no way to do this currently… This is really an oversight on our part that we will rectify in v2.7

–Kevin

Wow, I really need to read the documentation more thoroughly. I’ve been redrawing the whole screen to rename buttons. :oops:

-JT

“renojim” wrote:
Wow, I really need to read the documentation more thoroughly. I’ve been redrawing the whole screen to rename buttons. :oops:

-JTI thought I noticed that on your time and weather screensaver app, but assumed that was just a by-product of how screensaver channels interact with the Roku settings area. :slightly_smiling_face:

I’m just getting started with Brightscript, and coming from a background working with hypercard, basic, php, JS, and other more esoteric scripting languages I have to say I really like it so far. The feedback from the Roku devs is great, and just reading over other people’s questions has given me a lot of insight.

“gonzotek” wrote:

“renojim” wrote:
Wow, I really need to read the documentation more thoroughly. I’ve been redrawing the whole screen to rename buttons. :oops:

-JTI thought I noticed that on your time and weather screensaver app, but assumed that was just a by-product of how screensaver channels interact with the Roku settings area. :slightly_smiling_face:

I’m just getting started with Brightscript, and coming from a background working with hypercard, basic, php, JS, and other more esoteric scripting languages I have to say I really like it so far. The feedback from the Roku devs is great, and just reading over other people’s questions has given me a lot of insight.

HyperCard rocks! Just sayin’. :grinning_face_with_smiling_eyes:

“gonzotek” wrote:
I thought I noticed that on your time and weather screensaver app, but assumed that was just a by-product of how screensaver channels interact with the Roku settings area. :slightly_smiling_face:
While I do redraw the whole screen for the various settings, that’s not because of the buttons. It’s because there’s no way to change the text on an roParagraphScreen without redrawing the whole screen. I also have to take it back - I do use ClearButtons() on my Springboard screens. I just had the Paragraph screen issue fresh on my mind.

“gonzotek” wrote:
I’m just getting started with Brightscript, and coming from a background working with hypercard, basic, php, JS, and other more esoteric scripting languages I have to say I really like it so far. The feedback from the Roku devs is great, and just reading over other people’s questions has given me a lot of insight.
This is really my first foray into a scripting language. I always thought they were for script kiddies and not worthy of a serious programmer like myself. :wink:

Have fun gonzotek! I know I have been.

-JT