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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:36:55+00:00 2026-06-14T03:36:55+00:00

I have a button inside a panel that once clicked will call out a

  • 0

I have a button inside a panel that once clicked will call out a child window. I already created it and there are already items inside it. Once the child window is opened the parent panel will be disabled.

Inside the child window I have a Button that closes the window which will then enables the parent panel.

  childWindow.close();
  parent.enable();

My problem is the default close button on the Window on the upper right side of the window. If I click it it, I cannot enable the parent panel. it stays disabled, because of course I disabled it.

How do I enable the parent panel once it is closed using the default close button?

  • 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-14T03:36:56+00:00Added an answer on June 14, 2026 at 3:36 am

    Place a listener to the close event of the “child” window inside your “main” window. The listener will work, even if it is disabled. In the following example I assume that the win ref is a reference of your “main” window while “child” is the one of your child.

    openWin: function(child) {
        child.on('close', reactivate, this);
        child.show();
        this.disable();
    },
    reactivate: function() {
        this.enable();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

so I have this jFrame with a Panel. Inside that panel there are two
i have one label out of update panel and one button inside update panel.
I have a button in a panel which gets rendered inside a window. And
i have a label and button inside update panel, when i try to get
I have a button inside of a stackpanel that has to be pressed twice
I have a panel that slides down when you click on a button. I
I have a panel that is located at the bottom of the page. Inside
I have a WinForm application that has a panel and two buttons inside the
I have included 4 buttons inside a panel. The panel is docked to the
I have: Textbox(Multi-line) Panel Different controls inside panel (buttons,textbox) Scenario: I need to add

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.