Can you post a code fragment?

  I am using a listview in my application, it toggles the name when a row is
clicked, (adds a (*) to the front if clicked on, and removes it when clicked
on again, it toggles fine back and forth) there is a slight delay (about 1
sec) before I can click on it again though.

This is the code I'm using:

#-------------Code Fragment Start------------------------------

sub Folder1_ItemClick
 {
  my $item = shift;
  if ($clicked1 != -1)
   {
   if ($item == $clicked1)
    {
    $list1->ChangeItem(
      -item => $clicked1,
     -text => $files1[$clicked1][0],
    );
    $clicked1 = -1;
    return;
   }
   else
    {
    $list1->ChangeItem(
          -item  => $clicked1,
       -text  => $files1[$clicked1][0],
      );
      $clicked1 = -1;
   }
  }

  $list1->ChangeItem(
   -item  =>  $item,
  -text => "(*) $files1[$item][0]"
  );
  $clicked1 = $item;
  print "Clicked on $files1[$item][0] (Index $item)\n";
 }

#-----------Code fragment End----------------------------------


  Don't suppose anyone knows if there's a way to *set* the checkbox status
for a listbox entry ( with -checkboxs => 1) My program is useless without
that facility :(

Yours,

    Chris

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <perl-win32-gui-users@lists.sourceforge.net>
Sent: Tuesday, August 14, 2001 8:07 PM
Subject: Perl-Win32-GUI-Users digest, Vol 1 #205 - 1 msg


> Send Perl-Win32-GUI-Users mailing list submissions to
> perl-win32-gui-users@lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
> or, via email, send a message with subject or body 'help' to
> [EMAIL PROTECTED]
>
> You can reach the person managing the list at
> [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Perl-Win32-GUI-Users digest..."
>
>
> Today's Topics:
>
>    1. Help - Listview Itemclick Fatigue (Gross, Stephan)
>
> --__--__--
>
> Message: 1
> From: "Gross, Stephan" <[EMAIL PROTECTED]>
> To: 'Perl GUI' <perl-win32-gui-users@lists.sourceforge.net>
> Date: Mon, 13 Aug 2001 19:45:32 -0400
> Subject: [perl-win32-gui-users] Help - Listview Itemclick Fatigue
> Reply-To: perl-win32-gui-users@lists.sourceforge.net
>
> In my application, clicking on a row in a listview displays information in
> another window.  I have a separate button that clears the display window.
> However, I noticed that if I click on the same row again, the display is
not
> reset.  What happens is that the listview does not detect multiple clicks
on
> the same row; it gets "fatigued".  Is there a way to reset this behavior?
>
> _______________________________________________________
> Stephan Gross       Loral Skynet     908-470-2388     [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
>
> _______________________________________________
> Perl-Win32-GUI-Users mailing list
> Perl-Win32-GUI-Users@lists.sourceforge.net
> http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
>
>
> End of Perl-Win32-GUI-Users Digest
>


Reply via email to