I have a series of thumbnails, which are wx.BitmapButtons. What I want to achieve is something similar to PDF viewers/PowerPoint, where the current slide in a side-panel of thumbnails is highlighted by some blue colour
i.e. - http://clarkbw.net/portfolio/images/evince/pdf-reference.png
I just don't have a clue how to go about creating the actual bitmap of one pasted onto the other.
I've tried:
copy = self.GetBitmapLabel()
mask = wx.BufferedDC(None, wx.EmptyBitmapRGBA(150, 150, 0, 0, 255, 25))
dc = wx.MemoryDC()
dc.SelectObject(copy)
dc.Blit(0, 0, 150, 150, mask, 0, 0, useMask=True)
dc.SelectObject(wx.NullBitmap)
self.SetBitmapLabel(copy)
or:
copy = wx.ImageFromBitmap(self.GetBitmapLabel())
temp = wx.ImageFromBitmap(wx.EmptyBitmapRGBA(150, 150, 0, 0, 255, 25))
temp.ConvertAlphaToMask()
copy.Paste(temp, 0, 0)
bmp = wx.BitmapFromImage(copy)
self.SetBitmapLabel(bmp)
to no avail. Does anyone have any pointers? Currently my thumbnails update when a panel is drawn upon, so my aim is to preserve that feature while still highlighting the current tab, but I'll solve that once I implement the highlighting
cheers,
Steven