From: Peter E. <Pet...@at...> - 2001-10-26 15:23:46
|
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: Jos...@DM... [mailto:Jos...@DM...] > Sent: 26 October 2001 10:36 > To: Dave > Cc: per...@li... > 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" <da...@sk...>@lists.sourceforge.net on 10/26/2001 > 09:13:16 AM > > Sent by: per...@li... > > > To: <per...@li...> > 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 > da...@sk... > > > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > > > > > > > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > |