$this->SetItem($item); is necessary), I succeeded in changing an item's font in Wx::ListCtrl. Here is the font-changing sub:sub OnBold {
my $this = shift;
my $item = $this->GetItem(1);
my $f = Wx::Font->new(12, -1, wxNORMAL, wxBOLD, 0, 'times new roman
+');
say "In OnBold, \$this= $this, \$item = $item, \$f= $f";
$item->SetFont($f);
$this->SetItem($item);
} #1 end sub OnBold
and the entire program (tested): Stefan, hdb and James: the object pointers were fine originally (as you can see). My next problem: how do you set/change size and font of ListCtrl column headers. (As usual, no documentation). I'll start a new post for that: http://www.perlmonks.org/?node_id=1025489 Many thanks to all the responders, who spent time on this thread. - Helen |