EnTerr
12 years agoRoku Guru
roOneLineDialogEVENT - what's the point of it?
I tried using roOneLineDialog and the documentation for its event says
Sounds like the dialog supports buttons. In particular it mentions AddButton() - but when i try .addButton(1,""), i get "Member function not found in BrightScript Component". Also it does not respond to Back remote button, nor does it have EnableBackButton().
So now it seems the component does not support buttons. But if that is the case, isButtonPressed() and GetIndex() are useless and documentation is misleading in mentioning AddButton(). Moreover, there is no use to isScreenClosed() either, because the only way that dialog can be closed is by manually invoking .close(). So the existence of roOneLineDialogEvent is pointless - and in addition so are roOneLineDialog.ifSetMessagePort()/ifGetMessagePort().
Am i missing something or there is semantic failure in that component?
"roOneLineDialogEvent" wrote:
Sends the roOneLineDialogEvent with the following predicates that indicate its valid event types:
- isButtonPressed() as Boolean - A button on the screen was selected.
- GetIndex() as Integer - Returns the ID of the button which was selected (the first parameter to AddButton).
- isScreenClosed() as Boolean - The screen was closed and is no longer displayed to the user.
Sounds like the dialog supports buttons. In particular it mentions AddButton() - but when i try .addButton(1,""), i get "Member function not found in BrightScript Component". Also it does not respond to Back remote button, nor does it have EnableBackButton().
So now it seems the component does not support buttons. But if that is the case, isButtonPressed() and GetIndex() are useless and documentation is misleading in mentioning AddButton(). Moreover, there is no use to isScreenClosed() either, because the only way that dialog can be closed is by manually invoking .close(). So the existence of roOneLineDialogEvent is pointless - and in addition so are roOneLineDialog.ifSetMessagePort()/ifGetMessagePort().
Am i missing something or there is semantic failure in that component?