From: Joseph_Vieira@DMR.COM - 2001-10-26 14:34:15
|
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 |
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: Joseph_Vieira@DMR.COM [mailto:Joseph_Vieira@DMR.COM] > 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 > |
From: Piske, H. <Har...@bo...> - 2001-10-26 15:30:19
|
> 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. Just a thought, I did not try: if you change the selection to what it already is or even actually change it and then change it back, will it show? |
From: Thomas, T. B <tim...@lm...> - 2001-10-26 15:42:58
|
There is an option for list view that does this for you: -showselalways=>1 -----Original Message----- From: Piske, Harald [mailto:Har...@bo...] Sent: Friday, October 26, 2001 9:30 AM To: 'Peter Eisengrein'; per...@li... Subject: RE: [perl-win32-gui-users] ListView loses selection > 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. Just a thought, I did not try: if you change the selection to what it already is or even actually change it and then change it back, will it show? _______________________________________________ Perl-Win32-GUI-Users mailing list Per...@li... https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users |
From: Dave <da...@sk...> - 2001-10-26 17:23:26
|
That didn't work for me in listview, does it work for anyone else? -----Original Message----- From: per...@li... [mailto:per...@li...] On Behalf Of Thomas, Timothy B Sent: Friday, October 26, 2001 11:42 AM To: 'Piske, Harald'; 'Peter Eisengrein'; per...@li... Subject: RE: [perl-win32-gui-users] ListView loses selection There is an option for list view that does this for you: -showselalways=>1 -----Original Message----- From: Piske, Harald [mailto:Har...@bo...] Sent: Friday, October 26, 2001 9:30 AM To: 'Peter Eisengrein'; per...@li... Subject: RE: [perl-win32-gui-users] ListView loses selection > 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. Just a thought, I did not try: if you change the selection to what it already is or even actually change it and then change it back, will it show? _______________________________________________ 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 |
From: Joseph_Vieira@DMR.COM - 2001-10-26 16:26:32
|
I don't think sub Window_GotFocus even works. I tried using it once and it didn't work no matter what I tried, it wasn't important so I gave up. "Thomas, Timothy B" <tim...@lm...>@lists.sourceforge.net on 10/26/2001 11:41:45 AM Sent by: per...@li... To: "'Piske, Harald'" <Har...@bo...>, "'Peter Eisengrein'" <Pet...@at...>, per...@li... cc: (bcc: Joseph Vieira/DMR/CA) Subject: RE: [perl-win32-gui-users] ListView loses selection There is an option for list view that does this for you: -showselalways=>1 -----Original Message----- From: Piske, Harald [mailto:Har...@bo...] Sent: Friday, October 26, 2001 9:30 AM To: 'Peter Eisengrein'; per...@li... Subject: RE: [perl-win32-gui-users] ListView loses selection > 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. Just a thought, I did not try: if you change the selection to what it already is or even actually change it and then change it back, will it show? _______________________________________________ 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 |
From: Joseph_Vieira@DMR.COM - 2001-10-26 17:46:51
|
Worked for me. The color of the selection changed from blue to gray, but you still see that it is selected. "Dave" <da...@sk...>@lists.sourceforge.net on 10/26/2001 01:24:00 PM Sent by: per...@li... To: "'Thomas, Timothy B'" <tim...@lm...> cc: <per...@li...> (bcc: Joseph Vieira/DMR/CA) Subject: RE: [perl-win32-gui-users] ListView loses selection That didn't work for me in listview, does it work for anyone else? -----Original Message----- From: per...@li... [mailto:per...@li...] On Behalf Of Thomas, Timothy B Sent: Friday, October 26, 2001 11:42 AM To: 'Piske, Harald'; 'Peter Eisengrein'; per...@li... Subject: RE: [perl-win32-gui-users] ListView loses selection There is an option for list view that does this for you: -showselalways=>1 -----Original Message----- From: Piske, Harald [mailto:Har...@bo...] Sent: Friday, October 26, 2001 9:30 AM To: 'Peter Eisengrein'; per...@li... Subject: RE: [perl-win32-gui-users] ListView loses selection > 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. Just a thought, I did not try: if you change the selection to what it already is or even actually change it and then change it back, will it show? _______________________________________________ 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 _______________________________________________ Perl-Win32-GUI-Users mailing list Per...@li... https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users |
From: <Eva...@ao...> - 2001-10-27 06:02:15
|
>>I don't think sub Window_GotFocus even works. I tried using it once and it didn't work no matter what I tried, it wasn't important so I gave up.<< Try Window_Activate. i believe it's the same thing. |
From: Dave <da...@sk...> - 2001-10-26 15:11:30
|
Joe, Thanks , I hadnt noticed that. If you wouldn't mind, I still have one small problem, is there another way to bring the listview back into focus? When you click on a column header in the app, it resorts the list view. Maybe something I could call from a Window_Activate event? I have had a hard time finding info on "forcing" something into focus. Thanks again, Dave -----Original Message----- From: Joseph_Vieira@DMR.COM [mailto:Joseph_Vieira@DMR.COM] Sent: Friday, October 26, 2001 10:36 AM 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 |