ArtProvider for MessageBox

Hello:

I have taken the sample from ArtProvider and made it return the same bitmap for CreateBitmap routine, still the icons on the wx.MessageBox() (the okay and the cancel icons on the buttons) are the same as the theme and not my customized bitmap. Is there a problem with Art Provider OR am I doing this the wrong way.

TIA,

Luis.

Does this also include the tree view widget? I wanted to change the folder icons on that too.

···

On 3/20/06, Robin Dunn robin@alldunn.com wrote:

Luis Cortes wrote:

Hello:

I have taken the sample from ArtProvider and made it return the same

bitmap for CreateBitmap routine, still the icons on the wx.MessageBox()
(the okay and the cancel icons on the buttons) are the same as the theme
and not my customized bitmap. Is there a problem with Art Provider OR

am I doing this the wrong way.

The wx.MessageDialog class (and therefore the wx.MessageBox function) is
not a true wx.Dialog, but is rather a simple wrapper around a native
platform API. So the dialog that is created by the API knows nothing

about the wx.ArtProvider or anything else in wx. If you need to change
those bitmaps then you’ll need to create your own MessageDialog class.


Robin Dunn
Software Craftsman

http://wxPython.org
Java give you jitters? Relax with wxPython!


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