×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Dec 2003
    Posts
    14

    ChoiceGroup bug in Series 60 MIDP 2.1 Beta for SymbianOS

    ChoiceGroup sort of "steals" a focus. I.e. when focus arrives to ChoiceGroup it seems that user is not able to move input focus to any other component anymore (or to scroll form's content up'n'down). This happens only in a new version of MIDP emulator for Symbian OS. I hope that this particular version of emulator doesn't reflect too much any forthcoming firmware versions' behaviour. If it does then I would like to know if there is any portable / interoperable workaround for this bug. Below is a sample code:

    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;

    public class dummytest extends MIDlet implements ItemCommandListener
    {
    private static Command CMD = new Command("Label", Command.ITEM, 0);

    protected void destroyApp(boolean arg0)
    throws MIDletStateChangeException
    {
    }

    protected void startApp()
    throws MIDletStateChangeException
    {
    Form form = new Form("Test");
    StringItem tempStringItem = new StringItem(null, "sf asas fsf s fasf s fas fs fs fs fs fs fas fsa fsafasfsa asdfsf");
    tempStringItem.setLayout(Item.LAYOUT_NEWLINE_AFTER);
    form.append(tempStringItem);

    tempStringItem = new StringItem(null, "asdf asf asf asfd asdf asdf sdfasfasfasfasfsfasdfasdfsdfs af asdf asdf asdf asf asdf");
    tempStringItem.setLayout(Item.LAYOUT_NEWLINE_AFTER);
    form.append(tempStringItem);

    final String[] items = {"A", "B"};
    ChoiceGroup choiceGroup = new ChoiceGroup("Label", Choice.EXCLUSIVE, items, null);
    choiceGroup.setLayout(Item.LAYOUT_NEWLINE_AFTER);
    form.append(choiceGroup);

    tempStringItem = new StringItem(null, "Tahtoisin taman Formin toimivan sillai...tiedatte kylla millai...toivottavasti joku taman tietoonsa sai.");
    tempStringItem.setLayout(Item.LAYOUT_NEWLINE_AFTER);
    form.append(tempStringItem);

    tempStringItem = new StringItem(null, "Continue >>>", Item.HYPERLINK);
    tempStringItem.setLayout(Item.LAYOUT_NEWLINE_AFTER);
    tempStringItem.setDefaultCommand(CMD);
    tempStringItem.setItemCommandListener(this);
    form.append(tempStringItem);

    Display.getDisplay(this).setCurrent(form);
    }

    protected void pauseApp()
    {
    }

    public void commandAction(Command c, Item item)
    {
    System.out.println("Got command");
    }

    }

  2. #2
    Registered User
    Join Date
    May 2004
    Posts
    1
    I have the same problem.

    In Series 60 MIDP 2.1 Beta for SymbianOS emulator a ChoiceGroup item never transfers the focus to other Items.

    However the "Series 60 MIDP 2.0 Beta for SymbianOS" emulator works fine.

    I think this is a bug.

    Did anyone find a solution?

    thks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×