Hi wxPerl-users
I am using wxPerl with wxWidgets 2.9.5. I am using TreeListCtrl, and need
to implement triggering EVT_COMMAND_TREELIST_ITEM_CHECKED
programmatically.
Here is a code excerpt:
------------------------
# ...
use Wx qw( :treectrl :listctrl wxDefaultPosition wxDefaultSize
# ...
wxEVT_TREELIST_ITEM_CHECKED);
# ...
my $tree = Wx::TreeListCtrl->new( $panel_tree, -1, wxDefaultPosition,
[400,200], wxTL_CHECKBOX|wxTL_MULTIPLE);
# ...
# Create an EVT_COMMAND_TREELIST_ITEM_CHECKED artificially, and
# trigger it
my $evt = Wx::CommandEvent->new(wxEVT_COMMAND_TREELIST_ITEM_CHECKED,
$tree->GetId);
$evt->SetEventObject($tree);
$evt->SetId($tree->GetId);
$tree->GetEventHandler->ProcessEvent($evt);
# ...
---------------------------
For either wxEVT_TREELIST_ITEM_CHECKED or
wxEVT_COMMAND_TREELIST_ITEM_CHECKED, compilation fails with the error:
------------
"wxEVT_TREELIST_ITEM_CHECKED" is not exported by the Wx module
------------
Your advice will be appreciated.
Many TIA - Helen
System: Windows XP SP3, Citrus Perl 5.16.4, wxWidgets 2.9.5