buttons over image

Hi,

is there a solution available to lay a button (or any other widget(s)) over a (background-) picture?
Normally I use a gridbagsizer, so all the elements are displayed side by side, but I want the
“button over the pic” effect.

greetings
joh

Do you want the whole Window to have the pic in the background? If so,
this comes up now and again on this list, some careful googling should
find it.

But in short: catch the EVT_ERASE_BACKGROUND event, and draw your
picture with a DC in the event handler.

-Chris

···

On Fri, Mar 29, 2013 at 1:47 PM, joh# <joerg-haas@t-online.de> wrote:

is there a solution available to lay a button (or any other widget(s)) over
a (background-) picture?
Normally I use a gridbagsizer, so all the elements are displayed side by
side, but I want the
"button over the pic" effect.

--

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

Yes, I found this and it works. Thanks for your answer.
joh

···

Am Freitag, 29. März 2013 22:11:45 UTC+1 schrieb Chris Barker - NOAA Federal:


Do you want the whole Window to have the pic in the background? If so,

this comes up now and again on this list, some careful googling should

find it.

But in short: catch the EVT_ERASE_BACKGROUND event, and draw your

picture with a DC in the event handler.