From: Johan L. <jo...@ba...> - 2001-06-19 08:01:06
|
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 jo...@ba... http://www.bahnhof.se/~johanl/ If the only tool you have is a hammer, everything tends to look like a nail |