drawing a popup

I’m having some trouble drawing a popup box over a panel that has many different widgets in it. Right now I’m just using BufferedDC and DrawRectangle to draw the popup box at the position of the mouse whenever it is clicked. However, instead of it being drawn over all of the widgets in the panel it’s drawn under them. Is there a way that I can draw it so that it will be displayed over the widgets instead of under them? Or is there something else I can use to implement a popup box (other than drawing it myself using a DC)?

Thank you

Greg,

From: Greg H [mailto:gregh7@gmail.com]
Sent: Friday, February 01, 2008 11:33 PM
To: wxpython-users@lists.wxwidgets.org
Subject: drawing a popup

I'm having some trouble drawing a popup box over a panel that
has many different widgets in it. Right now I'm just using
BufferedDC and DrawRectangle to draw the popup box at the
position of the mouse whenever it is clicked. However,
instead of it being drawn over all of the widgets in the
panel it's drawn under them. Is there a way that I can draw
it so that it will be displayed over the widgets instead of
under them? Or is there something else I can use to implement
a popup box (other than drawing it myself using a DC)?

Thank you

Why not just use a wx.Dialog? You could just subclass it and make it look
however you want, then create it in your onClick event and have it display
over all your other widgets using ShowModal().

Andrea has BalloonTips and a Toaster script that might also be worth
looking at depending on what you need the dialog to do:

http://xoomer.alice.it/infinity77/main/freeware.html#buttonpanel

Mike

···

-----Original Message-----