Added a new sample app that is a style editor for wxSTC.
Some other tweaks and fixes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -19,7 +19,11 @@ class TestVirtualList(wxListCtrl):
|
||||
|
||||
self.SetItemCount(1000000)
|
||||
|
||||
self.attr1 = wxListItemAttr()
|
||||
self.attr1.SetBackgroundColour("yellow")
|
||||
|
||||
self.attr2 = wxListItemAttr()
|
||||
self.attr2.SetBackgroundColour("light blue")
|
||||
|
||||
|
||||
def OnGetItemText(self, item, col):
|
||||
@@ -29,7 +33,12 @@ class TestVirtualList(wxListCtrl):
|
||||
return 0
|
||||
|
||||
def OnGetItemAttr(self, item):
|
||||
return None
|
||||
if item % 3 == 1:
|
||||
return self.attr1
|
||||
elif item % 3 == 2:
|
||||
return self.attr2
|
||||
else:
|
||||
return None
|
||||
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user