Why then, I wonder, does it not show the selection if you do a $Window->ListBox->SetFocus() or even $Window->ListBox->SelectedItem->SetFocus() ? I tried both with a sub of Window_GotFocus and Window_Restore.
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 26 October 2001 10:36 > To: Dave > Cc: perl-win32-gui-users@lists.sourceforge.net > Subject: Re: [perl-win32-gui-users] ListView loses selection > > > > Dave, > > Actually it does not lose the selection in the list view, it > only appears > that way. If you go to an outside application and then back > to the gui > window the item is still selected but not highlighted. If you put the > focus back on the list view itself and not on the main gui > window you will > see the selection still there. You can do that by clicking > on the list > view headers for example. > > Joe > > > > > > "Dave" <[EMAIL PROTECTED]>@lists.sourceforge.net on 10/26/2001 > 09:13:16 AM > > Sent by: [EMAIL PROTECTED] > > > To: <perl-win32-gui-users@lists.sourceforge.net> > cc: (bcc: Joseph Vieira/DMR/CA) > Subject: [perl-win32-gui-users] ListView loses selection > > I have a program with a listview, very often the user needs to use an > outside application then return to the GUI window, only everytime you > reactivate the GUI, it loses the current selection in the ListView. > > Is there an easy way to avoid this and have it "remember" the current > selection when the window goes into the background? > > > Thanks in advance. > > Dave McLaughlin > [EMAIL PROTECTED] > > > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Perl-Win32-GUI-Users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > > > > > > > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Perl-Win32-GUI-Users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users >