Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Trusted Contributor
Himanshu_berry
Posts: 138
Registered: ‎04-19-2012
My Device: No

How to disable pop up menu

[ Edited ]

I am using 6.0 jde , my code is fine with 7.0 but its creating problem with 6.0.

 

I have a listfield when ever i am clicking on its item ,its showing pop up menu.

I dont know why.

 

i am using navigationClick to go next.

Please use plain text.
Developer
rishikeshsinghpbh
Posts: 121
Registered: ‎05-31-2012
My Device: 9900

Re: Pop up menu displays after list item click.

[ Edited ]

Hi Himanshu,

override the navigationClick in your custom list--

 

protected boolean navigationClick(int status, int time) {

// do your work here and return true
      return true;
    }

 

OR if u perform action on some condition then override like following --

 

protected boolean navigationClick(int status, int time) {
  if(condition){

 

     // do your work here and return true
      return true;

}
        return super.navigationClick(status, time);
    }

Rishikesh Singh
Please use plain text.
Trusted Contributor
Himanshu_berry
Posts: 138
Registered: ‎04-19-2012
My Device: No

Re: Pop up menu displays after list item click.

i putted that in my custom list field but it was not working .

 

i putted like this .

 

protected boolean navigationClick(int status, int time) {


      return true;
    }

Please use plain text.
Developer
rishikeshsinghpbh
Posts: 121
Registered: ‎05-31-2012
My Device: 9900

Re: Pop up menu displays after list item click.

you are clicking on its item by touch or by trackpad/trackball??
Rishikesh Singh
Please use plain text.
Trusted Contributor
Himanshu_berry
Posts: 138
Registered: ‎04-19-2012
My Device: No

Re: Pop up menu displays after list item click.

[ Edited ]

I am clicking by touch.

 

 

Please use plain text.
Developer
rishikeshsinghpbh
Posts: 121
Registered: ‎05-31-2012
My Device: 9900

Re: Pop up menu displays after list item click.

sorry! but then how you clicking on items?

As you said in your post--
--------------------------------------------------------------
I have a listfield when ever i am clicking on its item ,its showing pop up menu.
Rishikesh Singh
Please use plain text.
Developer
rishikeshsinghpbh
Posts: 121
Registered: ‎05-31-2012
My Device: 9900

Re: Pop up menu displays after list item click.

For touch override the touchEvent in your custom list-

 

 

protected boolean touchEvent(TouchEvent message) {
   
      return true;


    }

 

 

OR if u perform action on some condition then override like following --

 

protected boolean touchEvent(TouchEvent message) {
     if(condition){

 

     // do your work here and return true
      return true;

}
        return super.touchEvent(message);
    }

Rishikesh Singh
Please use plain text.
Trusted Contributor
Himanshu_berry
Posts: 138
Registered: ‎04-19-2012
My Device: No

Re: Pop up menu displays after list item click.

i editted my ans. sorry

Please use plain text.