Henning wrote:
Could you please provide clues on how to use this code snippet? Does it need
additional modules (like Win32::API) ? How do I call the sub, what
parameters?
A condensed version, using Win32::GUI I guess, would look like this:
$lbYourListBox->SendMessage(0x0185, $isSelected, $index); #LB_SETSEL
$lbYourListBox -- well... your ListBox control :)
$isSelected -- 0|1, the selected status
$index -- which line in the ListBox to select/deselect
This only works if you have created the ListBox with -multisel set to 1 or 2.
/J
------ ---- --- -- -- -- - - - - -
Johan Lindström Boss Casinos
Sourcerer [EMAIL PROTECTED]
http://www.bahnhof.se/~johanl/
If the only tool you have is a hammer,
everything tends to look
like a nail