Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7889101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:00:37+00:00 2026-06-03T06:00:37+00:00

I had implemented menu in my app successfully. But I am facing one another

  • 0

I had implemented menu in my app successfully.
But I am facing one another problem,
When I click on the button menu appears as context menu.
I don’t want that menu to be appear while I am clicking on button field.

in constructor

addMenuItem(_mnu_showresult);
addMenuItem(_mnu_quit);

/declared menu item/

private MenuItem _mnu_showresult = new MenuItem(new StringProvider(
        "Show Result"), 110, 1) {
    public void run() {      
        Dialog.alert("You had scored ");
    }
};
private MenuItem _mnu_quit = new MenuItem(new StringProvider("Quit"), 110, 2) {
    public void run() {

    }
};

How I can solve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T06:00:38+00:00Added an answer on June 3, 2026 at 6:00 am

    You didn’t paste the initialization code of the ButtonField. You may need to add the style bit ButtonField.CONSUME_CLICK on that ButtonField (which triggers the context menu to appear).

    Use something like the following to create that button:

    ButtonField myButton = new ButtonField("My Button", ButtonField.CONSUME_CLICK);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have implemented mail composer. But it opens mail composer whenever user had implemented
Need some help with this problem in implementing with XSLT, I had already implemented
I had started working on GPGPU some days ago and successfully implemented cholesky factorization
I have implemented antiforgery token on my login page. Now I had one user
I have come across BugSense which I had implemented in one of my recent
I had implemented the possibilty for multiple textures for while now... but yesterday I
I have a form with 3 text fields and 3 checkboxes. I had implemented
I've got a UITableView with custom tablecells. First I had a version which implemented
I had try to implement the send me log feature into my apps but
In Flex 3.2 I had implemented a tooltip manager and I used the topLevelSystemManager

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.