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:
Robin Dunn
2001-08-28 19:21:45 +00:00
parent 555d502faf
commit 00b6c4e33b
22 changed files with 2227 additions and 251 deletions

View File

@@ -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
#----------------------------------------------------------------------