Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
nowhereman
Visitor

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?
twitter:nowhereman
http://www.thenowhereman.com/roku
http://www.thenowhereman.com/netflix
0 Kudos
5 REPLIES 5
RokuKevin
Visitor

Re: roImageCanvas.ClearButtons() ?

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

--Kevin
0 Kudos
renojim
Community Streaming Expert

Re: roImageCanvas.ClearButtons() ?

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

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
gonzotek
Visitor

Re: roImageCanvas.ClearButtons() ?

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

-JT
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. 🙂

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.
Remoku.tv - A free web app for Roku Remote Control!
Want to control your Roku from nearly any phone, computer or tablet? Get started at http://help.remoku.tv
by Apps4TV - Applications for television and beyond: http://www.apps4tv.com
0 Kudos
nowhereman
Visitor

Re: roImageCanvas.ClearButtons() ?

"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:

-JT
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. 🙂

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'. 😄
twitter:nowhereman
http://www.thenowhereman.com/roku
http://www.thenowhereman.com/netflix
0 Kudos
renojim
Community Streaming Expert

Re: roImageCanvas.ClearButtons() ?

"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. 🙂

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. 😉

Have fun gonzotek! I know I have been.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos