wxpythonwxwidgetsshaped-window

Window-overflowing widget in wxWidgets


I'm looking for a way to implement this design in wxPython on Linux...
I have a toolbar with a button, when the button is pressed a popup should appear, mimicking an extension of the toolbar (like a menu), and this popup should show two columns of radio buttons (say 2x5) and a text box... My main problem is that the toolbar is small in height, so the popup has to overflow the bounds of the window/client area..

I thought of two possible implementations:

My question is: am I missing something / wrong on something? :) Is this doable at all?


Solution

  • Using a menu is a no-go, because wxWidgets can't put widgets on a menu. Using the shaped frame would be possible in principle, but the problem is then to get the position of the button you clicked, to display the window at the right position. I tried to do that back then, but didn't have luck (in C++ wxWidgets). Maybe this situation changed in between though, good luck.

    You can also try a wxComboCtrl, which allows you to have a custom popup window. That one could then display the radio boxes and the input control.