Eric C. Hansen wrote:
> Aldo, I tried using the -gridlines => 1 property and I still don't see
> gridlines in my ListView? I also don't see full row select when I set
> property -fullrowselect => 1. I added these properties to my DBGRID.pl
> application which shows rows and columns of data from a database table. I
> hoped to be able to see gridlines separating each table row. I also hoped
to
> see a row fully selected when I clicked on it. But I still only see the
item
> highlighted and none of the subitems on a row, which makes it difficult to
> tell which item is selected when I use the horizontal scroll bar and
> navigate right in the ListView. Can you help?
there's a little quirk in the APIs here that I have overlooked.
ListView extended styles can not be set normally, but they require
instead a specific message (called LVM_SETEXTENDEDLISTVIEWSTYLE).
it will be solved with the next version.
if you can't live without it, here is a temporary workaround
found by inspecting the header files:
$LVM_SETEXTENDEDLISTVIEWSTYLE = 0x1000 + 54;
$LVS_EX_GRIDLINES = 0x001;
$LVS_EX_CHECKBOXES = 0x004;
$LVS_EX_TRACKSELECT = 0x008;
$LVS_EX_FULLROWSELECT = 0x020;
$Window->ListView->SendMessage(
$LVM_SETEXTENDEDLISTVIEWSTYLE,
0, $LVS_EX_GRIDLINES | $LVS_EX_FULLROWSELECT,
);
cheers,
Aldo
__END__
# Aldo Calpini
%_ = split undef, join ' ', qw(fahokem
xritajbugne csuctawer jhdtlrnpqloevkshpr
); print map $_{$_}, sort keys %_;