From: Jeremy B. <jb...@dj...> - 2002-10-22 16:33:29
|
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=20 -----Original Message----- From: Peter Eisengrein [mailto:Pet...@at...]=20 Sent: Tuesday, October 22, 2002 9:27 AM To: 'Magnone, Angelo'; Perl-Win32-Gui-Users@Lists. 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:ang...@rb...] Sent: Tuesday, October 22, 2002 11:30 To: Perl-Win32-Gui-Users@Lists. 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=20 that displays a window....while that window is open, any other attempts = to display the same window is ignored; including via menu. :)=20 ------------------------------------------------------------ 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.=20 Ce courriel est confidentiel et prot=E9g=E9. L'exp=E9diteur 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=E9sign=E9(s) est = interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser = imm=E9diatement, par retour de courriel ou par un autre moyen.=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D |