Results 1 to 2 of 2

hi, I am new to blackberry.I want to add a contextmenu to a field.I wrote ... Software & Theme Development forum

  1. #1
    balaji6969's Avatar
    balaji6969 no está en línea Stack level 1
    Join Date
    Nov 2006
    Posts
    12

    Thumbs up Regarding Context menu

    Advertisement



    hi,
    I am new to blackberry.I want to add a contextmenu to a field.I wrote the following code.But the values are not added i think default context menu is appearin.Can any one please provide an example of this.

    contextMenu = un.getContextMenu();
    MenuItem raj = new MenuItem("raj",200000, 10)
    {
    public void run()
    {
    Dialog.alert("enterd rajmenu!");
    }
    };
    MenuItem raj1 = new MenuItem("Haidar",200000, 10)
    {
    public void run()
    {
    Dialog.alert("enterd Haidar menu!");
    }
    };


    contextMenu.addItem(raj);
    contextMenu.addItem(raj1);
    contextMenu.setTarget(un);

  2. #2
    hayden's Avatar
    hayden no está en línea Stack Mod
    Join Date
    Jul 2004
    PIN/ID
    ask
    Posts
    12,440

    Re: Regarding Context menu

    Moving this to the developers forum

Tags for this Thread

Posting Permissions

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