Adding color to a notebook header text

Hi to all of you,

Does anyone know if there is a way to have a notebook header text (the one you change with a notebook.SetPageText) or any wxString, using several colors. I would like to add a colour star at the end of a tab title actually.

Thanks very much!

Raphael

Hi to all of you,
  
Does anyone know if there is a way to have a notebook header text (the one
you change with a notebook.SetPageText) or any wxString, using several
colors. I would like to add a colour star at the end of a tab title
actually.
  
If you can settle for it being in a platform-dependent spot on the tab
instead (it's in front of the text on Windows), then you can use an
image. See wx.Notebook.SetImageList and wx.Notebook.SetPageImage

If it *must* be behind, I don't think there is any guaranteed way to
do this short of implementing your own custom-drawn tab widget.

···

On 8/17/05, Raphaël ARBUZ <raphaelarbuz@netcourrier.com> wrote:

Thanks very much!
  
Raphael

Thanks a lot! I'm using Windows and it does work pretty well. The only thing
is that I would like to have a point (as a bitmap or an icon) and being able
to give it any colour dynamically. The other problem is that my bitmap does
not appear in the proper colour when I load it as a tab image.

Does anyone has a clue?

Thanks a lot for your help

Raphael

···

----- Original Message -----
From: "Chris Mellon" <arkanes@gmail.com>
To: <wxPython-users@lists.wxwidgets.org>
Sent: Thursday, August 18, 2005 1:32 AM
Subject: Re: [wxPython-users] Adding color to a notebook header text

On 8/17/05, Raphaël ARBUZ <raphaelarbuz@netcourrier.com> wrote:

Hi to all of you,

Does anyone know if there is a way to have a notebook header text (the one
you change with a notebook.SetPageText) or any wxString, using several
colors. I would like to add a colour star at the end of a tab title
actually.

If you can settle for it being in a platform-dependent spot on the tab
instead (it's in front of the text on Windows), then you can use an
image. See wx.Notebook.SetImageList and wx.Notebook.SetPageImage

If it *must* be behind, I don't think there is any guaranteed way to
do this short of implementing your own custom-drawn tab widget.

Thanks very much!

Raphael

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org