BMP colors on Win98 with 256 colors are wierd

Hi Ray,

Ray Schumacher wrote:

I'm developing on a high color WIn2K box for 256 color Win98 machines; all the BMPs looks OK on Win2k (and in Paint on the Win98 machines ), but the wx.StaticBitmap is badly colored (16 colors?) in the wx app...

class Frame2(wx.Frame):
   def _init_ctrls(self, prnt):
       wx.Frame.__init__(self, id=wxID_FRAME2, name='', parent=prnt,
             pos=wx.Point(0, 0), size=wx.Size(1032, 780),
             style=wx.FRAME_TOOL_WINDOW | wx.NO_BORDER | wx.MAXIMIZE,
             title='KC10 shell')
       self.SetClientSize(wx.Size(1024, 753))

       self.staticBitmap1 = wx.StaticBitmap(bitmap=wx.Bitmap('imagery/KC10.bmp',
             wx.BITMAP_TYPE_BMP), id=wxID_FRAME2STATICBITMAP1,
             name='staticBitmap1', parent=self, pos=wx.Point(0, 0),
             size=wx.Size(1024, 753), style=0)

Suggestions appreciated...

I run into something similar on Win98 (also the 64x64 limit was an issue) and a background problem on Windows 2000 with StaticBitmap, so I switched it out with this:

http://wiki.wxpython.org/index.cgi/DoubleBufferedDrawing?action=edit

I converted it over to the new namespace, hopefully later today or tomorrow I will update that wiki.

See you
Werner

···

Ray Schumacher

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