Brian Fredette wrote:
All,
How do I set the focus to a particular item in a ListView once the ListView receives the focus? So far I have:

[snip]

# list view for roles
$Window->AddListView(
   -name => "lbRoles",
   -pos  => [ 15, 90 ],
   -size => [ 245, 145 ],
   -fullrowselect => 1,
   -nocolumnheader => 1,
   -visible => 1,
   -tabstop => 1,
   -onGotFocus => sub {
                        $Window->lbRoles->SetSelectionMark(3);
                          $Window->lbRoles->Select(3);
                        return;
                  },
 );

If I understand your question correctly.

Regards,
Rob.

Reply via email to