New topic: 

Detect if an event is happening

<http://forums.realsoftware.com/viewtopic.php?t=34556>

         Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic          Author  
Message        basil.bourque          Post subject: Detect if an event is 
happeningPosted: Thu Jul 08, 2010 7:27 pm                         
Joined: Thu Apr 15, 2010 10:41 pm
Posts: 44
Location: Seattle                Is there a way for a subroutine to know if it 
is running by being called from an event handler?

For example, is there a way for code to know it was called during the App.Open 
event handler? A method might have special work to do knowing that the program 
is in the process of launching.

--Basil      
_________________
--Basil Bourque

(Using REAL Studio 2010 release 2.1 with REAL Server 2009r1.2 on Mac OS X 
10.6.2 & .4)  
                             Top                 brisance          Post 
subject: Re: Detect if an event is happeningPosted: Thu Jul 08, 2010 8:26 pm    
                     
Joined: Tue Oct 06, 2009 2:38 am
Posts: 306                Not sure if it's possible but depending on the task 
at hand possibly similar functionality may be achieved by using 
[u=http://docs.realsoftware.com/index.php/Delegate]delegates[/u].      
_________________
Mike Ash: Getting Answers
  
                             Top                 timhare          Post subject: 
Re: Detect if an event is happeningPosted: Thu Jul 08, 2010 11:17 pm            
             
Joined: Fri Jan 06, 2006 3:21 pm
Posts: 8014
Location: Portland, OR  USA                I would add a boolean property 
somewhere and set it at the top of app.open, then clear it at the end.   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 3 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to