huang zhimin wrote:> The only way I know to use ListCtrl is to call ListCtrl#set_item_count
> and define a callback function on_get_item_text(item, col)
This is only necessary if using a ListCtrl that is created with the
style LC_VIRTUAL. This is only really useful for managing very large
lists where it would be inefficient to load everything in
advance.> How can I insert Listitem one by one, that each Listitem is composed
> with several string
Use ListCtrl.insert_item. This accepts a string, optionally with an
integer specifying the image icon that should be used for this item.
Alternatively you can pass it an instance of Wx::ListItem. This allows
very fine-grained control of the text style and colour of individual
elements.
hth
alex