Refresh problem with a ComboPopup and a PopupMenu

Hello,

I have a ComboCtrl (a generic combobox). When the dropdown button is pressed, the ComboPopup of this ComboCtrl creates a wx.Panel. From this panel, I create a PopupMenu when I click inside the panel.

My problem: when the panel is refreshed, it paints over the PopupMenu. I have this problem with windows XP, with windows Vista its o.k. My wx version: 2.8.12.1.

A sample code is attached.

Erwin

combo.py (1.35 KB)

ErwinP wrote:

Hello,

I have a ComboCtrl (a generic combobox). When the dropdown button is
pressed, the ComboPopup of this ComboCtrl creates a wx.Panel. From this
panel, I create a PopupMenu when I click inside the panel.
My problem: when the panel is refreshed, it paints over the PopupMenu. I
have this problem with windows XP, with windows Vista its o.k. My wx
version: 2.8.12.1.

I don't see anything obviously wrong in your code, but I seem to recall that XP could have refresh glitches like that when the Classic (Win2k style) theme was being used instead of the default Luna theme. Is that what is being used in this case?

···

--
Robin Dunn
Software Craftsman

Hello Robin,

It makes no difference. The error occurs both in classic theme and in windows-xp theme.

Erwin

···

Am Donnerstag, 9. Mai 2013 23:13:57 UTC+2 schrieb Robin Dunn:

ErwinP wrote:

Hello,

I have a ComboCtrl (a generic combobox). When the dropdown button is

pressed, the ComboPopup of this ComboCtrl creates a wx.Panel. From this

panel, I create a PopupMenu when I click inside the panel.

My problem: when the panel is refreshed, it paints over the PopupMenu. I

have this problem with windows XP, with windows Vista its o.k. My wx

version: 2.8.12.1.

I don’t see anything obviously wrong in your code, but I seem to recall
that XP could have refresh glitches like that when the Classic (Win2k
style) theme was being used instead of the default Luna theme. Is that
what is being used in this case?