def Create(self, parent):
self.log.write("ListCtrlComboPopup.Create")
wx.ListCtrl.Create(self, parent,
- style=wx.LC_LIST|wx.LC_SINGLE_SEL|
- wx.LC_SORT_ASCENDING|wx.SIMPLE_BORDER)
+ style=wx.LC_LIST|wx.LC_SINGLE_SEL|wx.SIMPLE_BORDER)
self.Bind(wx.EVT_MOTION, self.OnMotion)
self.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown)
return True
wx.combo.ComboCtrl.__init__(self, *args, **kw)
# make a custom bitmap showing "..."
- bw, bh = 16, 16
+ bw, bh = 14, 16
bmp = wx.EmptyBitmap(bw,bh)
dc = wx.MemoryDC(bmp)
# clear to a specific background colour
- bgcolor = wx.Colour(255,0,255)
+ bgcolor = wx.Colour(255,254,255)
dc.SetBackground(wx.Brush(bgcolor))
dc.Clear()
font.SetWeight(wx.FONTWEIGHT_BOLD)
dc.SetFont(font)
tw,th = dc.GetTextExtent(label)
- print tw, th
dc.DrawText(label, (bw-tw)/2, (bw-tw)/2)
del dc
overview = """<html><body>
<h2><center>wx.combo.ComboCtrl</center></h2>
+A combo control is a generic combobox that allows a totally custom
+popup. In addition it has other customization features. For instance,
+position and size of the dropdown button can be changed.
+
</body></html>
"""