Notebook gradient background in custom control

Are you writing your own components and need help with how to set them up or have questions about the components you are deriving from ? Ask them here.
Post Reply
ahoyle
Earned a small fee
Earned a small fee
Posts: 19
Joined: Wed Jan 17, 2007 8:38 am
Location: Devon, UK

Notebook gradient background in custom control

Post by ahoyle »

Hi All

I am trying to develop a control that I want to use on a Notebook page. I have developed most of the control and it looks fine on a normal dialogue and window frame. However, when it is placed on a wxPanel which is added to a Notebook control you can see the background of the control. On windows XP the background of a Notebook page has a slight gradient.

My question is how can use the same gradient for the background of my control. Note my control is used to display dynamic data, so I need to clear what was previously displayed before drawing the new image.

Any suggestions welcome

AHoyle

Windows XP, wxWidgets 2.8.8, MS 2008 express
Post Reply