"maihde" wrote:
The SetStaticRatingEnabled isn't part of the ifMessageDialog interface, but I tried it anyways and here is the error message
Member function not found in BrightScript Component or interface. (runtime error &hf4) in ...
264: screen.SetStaticRatingEnabled(false)
The rating button works fine in roSpringBoard with or without the static rating enabled.
It sounds like a firmware bug, or bad documentation. From the beta 3.0 sdk Compenent Reference, under 4.10 roMessageDialog:
Boolean AddRatingButton(Integer id, Integer userRating,
Integer aggregateRating, String tip)
Adds a star rating button to the dialog. The rating is specified as a string whose value is an integer 1-100 which indicates the number of stars (1 to 5) to be displayed. Think of this as a percentage value <20% = 1 star. This button is displayed in the menu area of the screen and appears in the order added. The userRating specifies the value the user rated the title, while the aggregate Rating represents the total for all users. The userRating takes precedence and determines the color of the buttons if set. The aggregateRating may display half-stars. The button returns the userRating in the event data field.
The rating widget is only allowed on message dialogs that call SetMenuTopLeft(true).
So your code appears correct and the button should be triggering an event, but isn't.
Remoku.tv - A free web app for Roku Remote Control!
Want to control your Roku from nearly any phone, computer or tablet? Get started at http://help.remoku.tv
by Apps4TV - Applications for television and beyond: http://www.apps4tv.com