ListCtrl with CheckBoxes

Hi !

I want to create an mp3 tagger application.
When I search on freedb/allmp3, and get the titles, I need to order the files and titles like this:

Nr FileName Title
01. Red Hot C. P - Blood 03. Breaking the Girl 02. Under The Bridge 11. Under The Bridge

<up><down><set><unset>

Ok, it is working with Grid, and ListCtrl.

But...

I want to check, what files are I NOT WANT TO SET.

Some cases many files in a directory, and some files are not placed in the actual album. In this time I don't want to set them mp3 tags, so this time needed the checkboxes to I choose the needed elements.

See this image, and the ListCtrl at bottom:
http://www.wensoftware.com/MusicLibrary/image/AIE1.jpg

Anyone have an little example to show, how to I show an checkbox-like things in ListCtrl with state images ?

Sorry, but the demos are not containing an example with this problem. How to I set the state image, and how to handle the clicks on the images to change the state ?

Thanx for every help:
FT

PS:
Please send the answer to my private mail also, because I'm in digest mode. Thanx.

fowlertrainer wrote:
[...]

Some cases many files in a directory, and some files are not placed
in the actual album. In this time I don't want to set them mp3 tags,
so this time needed the checkboxes to I choose the needed elements.

See this image, and the ListCtrl at bottom: http://www.wensoftware.com/MusicLibrary/image/AIE1.jpg

Anyone have an little example to show, how to I show an checkbox-like
things in ListCtrl with state images ?

Sorry, but the demos are not containing an example with this problem.
How to I set the state image, and how to handle the clicks on the
images to change the state ?

Create a set of images, one with an empty box and one with a checked box. Set each item's image based on if it is selected or not. Bind a handler for the mouse events from the listctrl and use HitTest to find out if the image was clicked or not. If so then toggle that item's image.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!