` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Thread limiter template
1998-05-08 -- Jim DeFabia
 
Here it is! (watch out for any word-wrapping) #TEMPLATE(ThreadLimiter,' Thread Limiter '),FAMILY('ABC') #!---------------------------------------------------------------- #! Thread Limiter #! By Jim DeFabia (EMAIL: jim-d@topspeed.com) #! #! Please Do Not redistribute without permission from Author #!--------------------------------------------------------------- #EXTENSION(LimitStarts,'Limit Procedure to One Start'),PROCEDURE #AT(%GlobalData) GLO:RUNNING:%Procedure BYTE #ENDAT #LOCALDATA LOC:RUNNING BYTE #ENDLOCALDATA #AT(%WindowManagerMethodCodeSection,'Init','(),BYTE'),FIRST IF GlobalRequest <> SelectRecord IF NOT GLO:RUNNING:%Procedure GLO:RUNNING:%Procedure=THREAD() LOC:RUNNING= GLO:RUNNING:%Procedure ELSE POST(EVENT:GainFocus,,GLO:RUNNING:%Procedure) RETURN(Level:Fatal) END END #ENDAT #AT (%WindowEventHandling,'GainFocus'),FIRST %window{PROP:Active}=TRUE IF %window{PROP:Iconize}=TRUE %window{PROP:Iconize}='' END #ENDAT #AT(%WindowManagerMethodCodeSection,'Kill','(),BYTE'),LAST IF LOC:RUNNING GLO:RUNNING:%Procedure=0 END #ENDAT


Today is May 5, 2024, 11:45 pm
This article has been viewed 35116 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: