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.
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Customising components

Hey i am new at roku development. I need help in developing sliding control in a small part of screen.Please check selected part of below image.I was thinking of using sliding panel if someone have a better idea or any example ? ... V80ckpEeEE
0 Kudos
Roku Guru

Re: Customising components

You could use onKeyEvent to change the label:

function onKeyEvent(key as String, press as Boolean) as Boolean
  handled = false  
  if press then
    if (key = "right") then
   ' here goes your code 
        handled = true
    else if (key = "left") then
   ' here goes your code 
        handled = true
    end if
  end if
  return handled
end function
0 Kudos