Einzelnen Beitrag anzeigen

Medium

Registriert seit: 23. Jan 2008
3.679 Beiträge
 
Delphi 2007 Enterprise
 
#6

AW: delphi TadvGlowbutton

  Alt 18. Okt 2014, 02:49
You need to keep a reference to the form in a higher scope than the procedure, since local variables are not preserved during multiple calls of a procedure. A suitable place could be a member in your TMAIN class. You could then check if the form exists and is visible, and hide it if that is the case.

Please make a new thread for questions unrelated to the initial one in the future. That is a forum rule here, with the purpose of keeping topics easy to access with the search function and maintain a certain level of order.
"When one person suffers from a delusion, it is called insanity. When a million people suffer from a delusion, it is called religion." (Richard Dawkins)
  Mit Zitat antworten Zitat