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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T18:13:52+00:00 2026-05-29T18:13:52+00:00

In my game, I have a panelA that has checkboxes to toggle panels in

  • 0

In my game, I have a panelA that has checkboxes to toggle panels in panelA’s parent. It also has a Leave button which needs to make a call to the scene manager that only PanelA’s parent is aware of.

I’ve thought of:

  1. Making a listener just for this
  2. Have the parent make the PanelA and make its children so it has
    access to them and can receive action events from them

Neither of these feel that clean. Would there be a better way?

My game uses a gui system that I made. Sending events up to the parent wouldn’t work because the parent does not know which gui components it’s looking to handle.

Thanks

  • 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-29T18:13:55+00:00Added an answer on May 29, 2026 at 6:13 pm

    It’s a bit hard to know without knowing the design of your system, but basically you don’t want to change checkboxes in the panel, but you want to change the state and have those checkboxes reflect the state.

    Say you want to check a box for Vertical Blanking in your main-panel. Do do not want to do this

    parent->waitForVerticalBlankCheck.Checked=true
    

    instead you want this

    renderingConfiguration->isVerticalBlankEnabled=true;
    

    and in your “main panel”

    if(renderingConfiguration->isVerticalBlankEnabled)
        waitForVerticalBlankCheck.Checked=true;
    

    Uhm.. very pseudocody, but hopefully you get the idea 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a button that I touch to enter a game mode. All buttons
In my game I have a concept of resource manager, a class that stores
I have written a game (I'll give it the name Gamer) in which I
I have the mission to make a small game for a school project. Pictures
I have a parent div that is filled with multiple child divs (see here
Say I have a SlimDX based game editor. I have a DeviceContext instance which
I have a card game that I am developing and need to load card
This is a topic that has been bugging me recently. When creating a game
I'm trying to make a little game that will first show the player a
I have created a game which paints images to a JPanel. This runs with

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.