Hi,

the trick is to use Wx::ListItem

e.g.

$li = Wx::ListItem->new;
$li->SetImage($imageindex);
$li->SetText($headertext);
$li->SetWidth($width);
$listctrl->SetColumn($colindex, $li);

For some reason, I have found it necessary to initially set the cols using the following

$listctrl->InsertColumn($ndex, $header, wxLIST_FORMAT_LEFT, $width);

then do the listitem method once and - on each refresh following a column click.


H.T.H.


Mark


On 13/10/2010 15:51, m...@roqc.no wrote:
Is it possible to include images alongside the text of a ListCtrl
header?  e.g. little up and down arrows that represent the sorting
direction of a field. Would anyone have an example of how to do this? I
see that it is possible elsewhere in the ListCtrl, but can't seem to get
it working for the headers.

Thanks,
Mike


Reply via email to