changing the style of a wxListCtrl

Folks

I have a ListCtrl that I wish to allow the user to view in several
different ways similar to MSW directory explorer. On MSW, I can
use the SetWindowStyleFlag and the ListCtrl changes to the new
style. On GTK, however, the ListCtrl goes blank.

Do I need to send an event?

Nigel

···

--
Nigel W. Moriarty
Building 4R0230
Physical Biosciences Division
Lawrence Berkeley National Laboratory
Berkeley, CA 94720-8235
Phone : 510-486-5709
Fax : 510-486-5909
Email : NWMoriarty@LBL.gov
Web : CCI.LBL.gov

Nigel Moriarty wrote:

Folks

I have a ListCtrl that I wish to allow the user to view in several
different ways similar to MSW directory explorer. On MSW, I can
use the SetWindowStyleFlag and the ListCtrl changes to the new
style. On GTK, however, the ListCtrl goes blank.

Do I need to send an event?

Looks like you have to delete all your items and add them again. The C++ listctrl sample destroys and recreates the whole wxListCtrl when switching modes, but that may not be neccessary.

···

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