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 6042953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:50:49+00:00 2026-05-23T06:50:49+00:00

I made a popup screen in which there is an EditField, and two ButtonField

  • 0

I made a popup screen in which there is an

EditField, and two ButtonField.

Now i am facing very wierd problem there is two button one is Cancel and the other one is Send button. Now the first button i am adding is not working fine and the second button working fine.For shake of simplicity in this code Cancel button will work and Send button won’t. What i am missing here can anyone will help me .


ButtonField sendButton,cancelButton;
PinPopup()//Constructor
{
super(new HorizontalFieldManager());
texts=new EditField("","",200,Field.EDITABLE);
    sendButton = new ButtonField("  Send  ");
    sendButton.setChangeListener(this);
cancelButton = new ButtonField("Cancel"); cancelButton.setChangeListener(this); VerticalFieldManager _fieldManagerContext = new VerticalFieldManager(VerticalFieldManager.USE_ALL_WIDTH | VerticalFieldManager.USE_ALL_HEIGHT) {
public void sublayout(int width,int height) {
super.sublayout(width, height); int xpos = 10; int ypos = 40; Field field = getField(0); layoutChild(field, 280, 50); setPositionChild(field, xpos, ypos); Field field1 = getField(1); layoutChild(field1, 280, 50); setPositionChild(field1, xpos+10, ypos+80); Field field2 = getField(2); layoutChild(field2, 280, 50); setPositionChild(field2, xpos+145, ypos+80); setPosition(150, 220); setExtent(300, 220); } public void paint(){ Overrided } _fieldManagerContext.add(texts); _fieldManagerContext.add(sendButton); _fieldManagerContext.add(cancelButton); public void fieldChanged(Field field, int context) {

if(field==cancelButton) { Dialog.inform("Cancel");
}

if(field){ Dialog.inform("Send"); }
}


UPDATE


if(field==sendButton){
Dialog.inform("Send");
}


UPDATE
I have tried this too but the same problem now guys what to do


cancelButton = new ButtonField("Cancel") {
protected boolean navigationClick(int status, int time) {
return true;
    }
};

  • 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-05-23T06:50:49+00:00Added an answer on May 23, 2026 at 6:50 am

    The problem i was getting because i am adding two button in a row, and i had used a VerticalFieldManager for adding the buttons that is why i got the problem. And for solution i have added the button in HorizontalFeildManager and now it is working fine

    VerticalFieldManager _fieldManagerContext = new VerticalFieldManager(VerticalFieldManager.USE_ALL_WIDTH | VerticalFieldManager.USE_ALL_HEIGHT)
    

    to this one

    HorizontalFieldManager _fieldManagerContext = new HorizontalFieldManager(USE_ALL_WIDTH)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a popup context menu on a list box, and there are two
I have made one application for epaper/emagazine in which I want to give an
I've made a popup myself to authenticate a google account. The problem is, when
I made my first jQuery plugin attempt, but I have this problem/bug which I
I made a custom popup , when the user click a button in the
I have datagrid, when press update button I made popup window. I want to
Coming from this question , I have a wxComboCtrl with a custom popup made
I've made a bookmarklet that, among other things, loads a form in a popup
I have a problem with the code below. I can't get it to popup
I'm making a flex 3.5a/air2 application and I've made a popup window but I

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.