Transparent shape control overlay for container?

python@bdurham.com wrote:

Motivation: I would like to build a composite control using a container
widget (wx.Window or wx.Panel?) filled with multiple controls (static
text and bitmaps). I would like the composite control to handle all
mouse events (mouse over, mouse exit, left click, double click, right
click, drag&drop, etc).

Recommendations on a control or a technique to accomplish this?

If it's just static text and bitmaps, you can draw them directly to a wx.Panel with a DC. The only thing you'd lose is the ability to use sizers to lay them out. Search the Wiki for images and graphics to see how to do it.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

Thanks Chris,

Malcolm

···

----- Original message -----
From: "Chris.Barker" <Chris.Barker@noaa.gov>
To: wxpython-users@lists.wxwidgets.org
Date: Thu, 12 Jun 2008 23:59:43 -0700
Subject: Re: [wxpython-users] Transparent shape control overlay for
container?

python@bdurham.com wrote:

Motivation: I would like to build a composite control using a container
widget (wx.Window or wx.Panel?) filled with multiple controls (static
text and bitmaps). I would like the composite control to handle all
mouse events (mouse over, mouse exit, left click, double click, right
click, drag&drop, etc).

Recommendations on a control or a technique to accomplish this?

If it's just static text and bitmaps, you can draw them directly to a
wx.Panel with a DC. The only thing you'd lose is the ability to use
sizers to lay them out. Search the Wiki for images and graphics to see
how to do it.

-Chris

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users