HMS

Home Media Server for Roku Players
git clone https://www.brianlane.com/git/HMS
Log | Files | Refs | README | LICENSE

SetupServerDialog.brs (778B)


      1 '********************************************************************
      2 '**  Home Media Server Application - SetupServerDialog
      3 '**  Copyright (c) 2022 Brian C. Lane All Rights Reserved.
      4 '********************************************************************
      5 function init()
      6     print "SetupServerDialog->Init()"
      7     m.top.title   = "Setup HMS Server URL"
      8     m.top.message = ["Enter server name or IP address"]
      9     m.top.buttons = ["OK"]
     10 
     11     m.top.observeFieldScoped("buttonSelected", "dismissDialog")
     12     m.top.observeFieldScoped("wasClosed", "wasClosedChanged")
     13 end function
     14 
     15 sub wasClosedChanged()
     16     print "Example StandardKeyboardDialog Closed"
     17     print "FINAL TEXT: "; m.top.text
     18     m.top.serverurl = m.top.text
     19 end sub
     20 
     21 sub dismissDialog()
     22     m.top.close = true
     23 end sub