Making overlapping panels for a custom wxChoice Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
I'mHereToBeHelped
Earned a small fee
Earned a small fee
Posts: 20
Joined: Wed Jun 01, 2022 5:49 pm

Making overlapping panels for a custom wxChoice

Post by I'mHereToBeHelped »

I want to make my own "wxChoice" with the same functionality that it already has but change up minor design aspects.

I know how to make the dropdown window, but I have no idea how I'm supposed to overlap it on top of other panels and wx components. I'm sure it's on this forum already but nothing comes up on google. Guiding me to the right component would help me out.
User avatar
doublemax
Moderator
Moderator
Posts: 19160
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Making overlapping panels for a custom wxChoice

Post by doublemax »

wxComboCtrl has the option to use a custom popup:
https://docs.wxwidgets.org/trunk/classw ... _ctrl.html

It uses wxPopupWindow which you can also use by itself if you wanted:
https://docs.wxwidgets.org/trunk/classw ... indow.html
Use the source, Luke!
Post Reply