I've always done it like this:

if (Win32::GUI::IsWindow($WINDOW)) {
  $WINDOW->BringWindowToTop();
  $WINDOW->Show();
  return;
}

That way the window is brought back to the foreground and displayed to the user.

Jeremy Blonde 

-----Original Message-----
From: Peter Eisengrein [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 22, 2002 9:27 AM
To: 'Magnone, Angelo'; [EMAIL PROTECTED] Sourceforge. Net (E-mail)
Subject: RE: [perl-win32-gui-users] double click buttons


this ought to work...


if ($Window->IsVisible)
{
    $Button->Disable();
}
-----Original Message-----
From: Magnone, Angelo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 22, 2002 11:30
To: [EMAIL PROTECTED] Sourceforge. Net (E-mail)
Subject: [perl-win32-gui-users] double click buttons




Anyone know how I can PREVENT a window from appearing more than once... for 
example: if I click on a button 
that displays a window....while that window is open, any other attempts to 
display the same window is ignored; including via menu.
:) 




------------------------------------------------------------
This e-mail may be privileged and/or confidential, and the sender does not 
waive any related rights and obligations. Any distribution, use or copying of 
this e-mail or the information it contains by other than an intended recipient 
is unauthorized. If you received this e-mail in error, please advise me (by 
return e-mail or otherwise) immediately. 

Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits 
et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce 
message ou des renseignements qu'il contient par une personne autre que le 
(les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courriel par 
erreur, veuillez m'en aviser immédiatement, par retour de courriel ou par un 
autre moyen. 


============================================================

Reply via email to