Changeset 1679 for cprs/trunk/CPRS-Chart/uInit.pas
- Timestamp:
- May 7, 2015, 12:34:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/uInit.pas
r830 r1679 22 22 function TimedOut: boolean; 23 23 procedure ShutDownTimeOut; 24 procedure SuspendTimeout; 25 procedure ResumeTimeout; 24 26 25 27 implementation … … 44 46 timTimeout: TCPRSTimeoutTimer = nil; 45 47 FTimedOut: boolean = FALSE; 48 uSuspended: boolean = False; 46 49 47 50 function TimeoutKeyHook(Code: Integer; wParam: WPARAM; lParam: LPARAM): LRESULT; StdCall; forward; … … 150 153 end; 151 154 152 153 155 { TCPRSTimeoutTime } 154 156 … … 164 166 { when the timer expires, the application is closed after warning the user } 165 167 begin 168 if uSuspended then 169 begin 170 ResetTimeout; 171 exit; 172 end; 166 173 Enabled := False; 167 174 if(assigned(FUserCondition)) then … … 177 184 end; 178 185 186 procedure SuspendTimeout; 187 begin 188 uSuspended := True; 189 end; 190 191 procedure ResumeTimeout; 192 begin 193 if assigned(timTimeout) then 194 timTimeout.ResetTimeout; 195 uSuspended := False; 196 end; 197 179 198 initialization 180 199
Note:
See TracChangeset
for help on using the changeset viewer.