Sure, at the top of the button click event:
$button->Disable();
At the bottom of the button click event (and whereever you do a premature
return):
$button->Enable();
Regards,
Eric Hansen
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Doan, Khoa
Sent: Monday, January 24, 2000 1:44 PM
To: '[EMAIL PROTECTED]'
Subject: [perl-win32-gui] problem with Button Event
Hi,
I have a problem encountered in using the button event. When the button is
clicked and its event is processing, the button is re-clicked accidentally
during that. After the event is done processing, it processes another
event right away due to the button was being re-clicked. I thought when a
button is clicked, it should be disabled entirely while its event is
processing. Is a way to disable the button when it is being clicked for
an event to process?.
Thanks for help.
Khoa Doan.