How to show options with current value

When you setup the 920xt you can sometimes see the current value for options as shown below



Are there anyway to do that in the current API?

  • Former Member
    Former Member over 10 years ago
    The current menu API does not support that layout.
  • I have implemented a menu that does this. It behaves like the built-in Ui.Menu in most ways except addItem() returns a menu item that has a setValue() method which you can used to change the value associated with that menu item. I also have accessors to modify the value via the menu itself. Something like this...

    class MenuItem
    {
    hidden var label;
    hidden var value;
    hidden var symbol;

    function initialize(label, symbol);

    function getValue();
    function setValue(value);
    }

    class Menu extends Ui.View
    {
    // returns a MenuItem
    function addItem(label, symbol);

    // access the value of the given item
    function getValue(symbol);
    function setValue(symbol, value);
    }

    class MenuInputDelegate extends Ui.InputDelegate
    {
    }


    I can provide the code tonight.