I'd like to add graphics to the items of a ListCtrl (for a certain row
and a certain column, I would like to draw a rectangle to simulate a
progress bar). To do that, I retrieved the coordinates of a given item
via GetItemRect() but I'm confused about what to do next. I instantiate
a ClientDC: dc = ClientDC(list_ctrl) but each time I try to draw
something on it, the textual information of my items disappear.
Basically, it would be good if I could draw over the ListCtrl but
without modifying what has already been painted on this ListCtrl. Any
idea of how I can do that or if there is a better mean? Thanks.
I'd like to add graphics to the items of a ListCtrl (for a certain row
and a certain column, I would like to draw a rectangle to simulate a
progress bar). To do that, I retrieved the coordinates of a given item
via GetItemRect() but I'm confused about what to do next. I instantiate
a ClientDC: dc = ClientDC(list_ctrl) but each time I try to draw
something on it, the textual information of my items disappear.
Basically, it would be good if I could draw over the ListCtrl but
without modifying what has already been painted on this ListCtrl. Any
idea of how I can do that or if there is a better mean? Thanks.
What drawing operations do you do on the dc? You probably want to set the clipping region to the rect where you will be drawing so you won't mess up the rest of it.
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!