Hello again,

Thanks for the help with forking and the ideas for using
DoEvents() as a replacement for forking. It seems I will have to
go with that route.

The latest problem I have encountered has to do with ListView
checkboxes. I searched the mailing list archives and saw that in
version .665 Aldo said:

"- ListView checkboxes can now be managed with the ItemCheck()
method;
   there's also a new ItemCheck event for ListViews that gets
fired when
   you toggle an item's checkbox."

I understand how to get the current state of each checkbox but it
is not clear to me how to change the states of checkboxes
individually.

Another archived post that I found gave a possible solution for
checking all of the checkboxes in a ListView as such:

 my $SendMsg = new Win32::API("user32", "SendMessage", "NNNP",
"N");
 use constant LVIF_STATE  => 0x8;
 use constant LVM_SETITEMSTATE  => 0x102B;
 use constant LVIS_STATEIMAGEMASK  => 0xF000;
 my $lpPoint = pack("LLLLLALLLL", LVIF_STATE, 0, 0,
 0x2000,LVIS_STATEIMAGEMASK, " ", 127, 0, 0, 0);
 my $rtn = $SendMsg->Call($ListView->{'-handle'},
LVM_SETITEMSTATE, -1,
 $lpPoint);

Does anyone know how to change the state of an individual
ListView checkbox via the ItemCheck() method?

Also, I hate to keep asking these basic questions. Is there a
better source of documentation somewhere than the pod files that
come with the distributions? If not maybe we should organize a
centralized FAQ system of some kind?

Thanks,
Michael


Reply via email to