I have a Roku application using roPinEntryDialog
, like so:
function EnterCode() as Boolean
screen = CreateObject("roPinEntryDialog")
mp = CreateObject("roMessagePort")
screen.SetMessagePort(mp)
screen.SetNumPinEntryFields(8)
screen.SetTitle("Enter Code")
screen.AddButton(0, "Next")
screen.AddButton(1, "Cancel")
screen.Show()
while true
msg = wait(0, screen.GetMessagePort())
if type(msg) = "roPinEntryDialogEvent"
print "Show Code: Index: ";msg.GetIndex();" Data: ";msg.GetData()
if msg.isScreenClosed()
return false
else if msg.isButtonPressed()
token=screen.Pin()
print "token: ";token
if msg.GetIndex() = 0 then return true
if msg.GetIndex() = 1 then return false
endif
endif
end while
end function
When I use this dialog, it shows the entered numbers as asterisks. I tried using, screen.SetSecureText(false)
, but unfortunately that only works for text boxes. Is there a way to show the numbers inputted? If not, is there an alternative numerical dialog I should try that would?