maihde
15 years agoVisitor
roMessageDialog AddRatingButton doesn't send events
I'm trying to display an roMessageDialog that shows a rating button; however, when I do this changes to the rating do not trigger any events. Other buttons in the dialog do trigger events. Here is a snippet of what I'm trying to accomplish
Any thoughts about why the rating button is not triggering a message? I'm currently on firmware version 3.0 build 2227.
port = CreateObject("roMessagePort")
screen = CreateObject("roMessageDialog")
screen.SetMessagePort(port)
screen.EnableOverlay(true)
screen.SetMenuTopLeft(true)
screen.SetTitle("Change Rating")
screen.SetText("Some text")
screen.AddRatingButton(1, userRating, aggregateRating, "therating") ' this doesn't trigger a msg
screen.AddButton(2, "Btn2") ' triggers a msg
screen.AddButton(3, "Btn3") ' triggers a msg
screen.EnableBackButton(true)
screen.Show()
while true
msg = wait(0, port)
if msg <> invalid then
print type(msg); " "; msg.getIndex(); " "; msg.getData()
end if
end while
Any thoughts about why the rating button is not triggering a message? I'm currently on firmware version 3.0 build 2227.