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

  • Home
  • SEARCH
  • 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 8153471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:01:34+00:00 2026-06-06T16:01:34+00:00

I had a GUI application with the following layout: wxFrame –> wxBoxSizer –> wxImagePanel

  • 0

I had a GUI application with the following layout:

wxFrame --> wxBoxSizer --> wxImagePanel

The wxImagePanel is a custom control (available here). I’ve modified it slightly to handle mouse events (using EVT_MOTION) like dragging that allows me to pan the image.

Now, unfortunately, this looks ugly on Windows — there’s a dark gray background. The recommended approach is to add a wxPanel to the wxFrame — this makes the ugly background go away. The app is now layed out like this:

wxFrame --> wxBoxSizer --> wxPanel --> wxBoxSizer --> wxImagePanel (a custom control)

It looks a lot better, but now the wxPanel I’ve added is grabbing all the mouse motion events. They don’t get through to the child wxImagePanel, so I can’t pan my image anymore.

How can I make sure the mouse motion events make it through to the child wxImagePanel?

  • 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-06T16:01:36+00:00Added an answer on June 6, 2026 at 4:01 pm

    I’ve solved the problem by asking on the wxWidgets forums.

    Basically, my problem was the wxImagePanel was a child of the wxFrame, whereas it should have been a child of the wxPanel instead.

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

Sidebar

Related Questions

So I'm implementing a svg-editor-like GUI on one application I'm working here. These are
I had a gui (swing) project developed using netbeans 7 and JDK 6. Then
I had a huge file for creating this GUI and I have shortened it
Had a good search here but can't see anything that gets my mind in
Had this working; at one stage. The problem is the following text is now
I have a java application which has a GUI in both English and French,
I've developed a Python application that runs both in the GUI mode and the
I’d like to develop an application with a complex GUI (combobox with animation, charts
I am making a small C# GUI application that reads table-like (cells, rows, columns)
I'm in the process of designing a Java GUI driven application that runs a

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.