roku - Text overlowing in roParagraphScreen -


i have text section on roku being cut off due length. there 2 possible solutions.

  • what seem easist make text smaller on 1 page.
  • make text section scrollable

my page roparagraphscreen in add paragraph. if need pass value theme fine that. havent found property of yet handles text size. know there whole font creation aspect, seems little much.

here code working

screen = createobject("roparagraphscreen") screen.setmessageport(port)  themeopts = {fontsize: 100} 'this new code thinking possible solution settheme(themeopts)  if valid(opts.breadcrumb)     screen.setbreadcrumbtext(opts.breadcrumb, "") end if  screen.addheadertext(getcopy().system_status_screen.results_title)  screen.addparagraph(getcopy().system_status_screen.sustained_bandwidth + " " + opts.bandwidthresult.roundedasstring + " mps") 

then in theme section

if valid(opts.fontsize)     'change font size 

i havent looked scrollable text solution yet. wanted feedback on here first.

i couldnt find way change font size. changed component rotextscreen. allows overflow , scrolling.

there issue ran into. dont know length of content since coming db. had add line breaks. if dont down button not buttons.

here code

screen = createobject("rotextscreen") screen.setmessageport(port)  settheme()  screen.setheadertext("header text") screen.addtext(getcopy().system_status_screen.text_1) screen.addtext(getcopy().system_status_screen.text_2)  'ensure section long enough use can press down button buttons screen.addtext(chr(10)) screen.addtext(chr(10)) screen.addtext(chr(10)) screen.addtext(chr(10)) screen.addtext(chr(10))  screen.addbutton(1, "begin")  screen.show()  while true     msg = wait(0, screen.getmessageport())      if type(msg) = "rotextscreenevent"          if msg.isbuttonpressed()          end if          if msg.isscreenclosed()             exit while         end if     end if end while 

Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -