Set the DC font before drawing the label
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25104 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -100,6 +100,7 @@ class ColourSelect(wx.BitmapButton):
 | 
			
		||||
        bmp = wx.EmptyBitmap(width-bdr, height-bdr)
 | 
			
		||||
        dc = wx.MemoryDC()
 | 
			
		||||
        dc.SelectObject(bmp)
 | 
			
		||||
        dc.SetFont(self.GetFont())
 | 
			
		||||
        label = self.GetLabel()
 | 
			
		||||
        # Just make a little colored bitmap
 | 
			
		||||
        dc.SetBackground(wx.Brush(self.colour))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user