wxPopupTransientWindow on MacOS problems.

25 views
Skip to first unread message

Tony Kennedy

unread,
May 23, 2025, 2:21:04 PM5/23/25
to wx-users
Hi all, 

I'm having some trouble on the Mac (running OSX 15.5) with the wxPopupTransientWindow. I'm trying to have a popup wxCheckListBox to give users the ability to select various filters.

The behaviour is strange. It seems that any mouse click is ignored if there is a control underneath the popup window (except for the button that was used to launch the popup).

In the attached screen shot, I can only click on the top two checkboxes. 

Has anyone else noticed anything like this?

I've also tried creating a series of wxCheckBoxes, the same behaviour happens. It's as if the window underneath blocks any mouse clicks (but the mouse clicks don't actually go to the window underneath).

Thanks in advance,

Tony.




Screenshot 2025-05-23 at 19.14.37.png
Screenshot 2025-05-23 at 19.14.37.png

Tony Kennedy

unread,
May 23, 2025, 2:39:46 PM5/23/25
to wx-users
A follow up to this as I've got it working, so if someone else sees the same problem, there is a fix. But I still think there is an issue.

I set the parent for the popup to be the wxPanel where the button to launch it is (I use that panel in various places). Below this panel with the button is a different wxPanel (containing things like a grid, toolbar etc).

If I set the parent for the popup to be the wxMiniFrame that holds the wxPanels, the controls in the popup now work.

Is this a bug? I think it is, it was pure luck I tried a different parent for the popup.

Tony.





Reply all
Reply to author
Forward
0 new messages