{========================================================================} {= (c) 1995-98 SwiftSoft Ronald Dittrich =} {========================================================================} {= All Rights Reserved =} {========================================================================} {= D 01099 Dresden = Tel.: +0351-8012255 =} {= Loewenstr.7a = info@swiftsoft.de =} {========================================================================} {= Actual versions on http://www.swiftsoft.de/mmtools.html =} {========================================================================} {= This code is for reference purposes only and may not be copied or =} {= distributed in any format electronic or otherwise except one copy =} {= for backup purposes. =} {= =} {= No Delphi Component Kit or Component individually or in a collection=} {= subclassed or otherwise from the code in this unit, or associated =} {= .pas, .dfm, .dcu, .asm or .obj files may be sold or distributed =} {= without express permission from SwiftSoft. =} {= =} {= For more licence informations please refer to the associated =} {= HelpFile. =} {========================================================================} {= $Date: 20.01.1998 - 18:00:00 $ =} {========================================================================} unit MMHTimer; {$I COMPILER.INC} {$C FIXED PRELOAD PERMANENT} {.$DEFINE _MMDEBUG} interface uses {$IFDEF WIN32} Windows, {$ELSE} WinTypes, WinProcs, {$ENDIF} SysUtils, Messages, Classes, Graphics, Controls, Forms, Dialogs, MMSystem, MMUtils, MMString, MMObj; type EMMHiTimerError = class(Exception); {$IFDEF WIN32} TMMHiTimer = class; {-- TMMTimerThread ---------------------------------------------------} TMMTimerThread = class(TThread) {$ENDIF} {-- TMMHiTimer -------------------------------------------------------} TMMHiTimer = class(TMMComponent) public constructor Create(AOwner:TComponent); override; destructor Destroy; override; {$IFDEF WIN32} procedure SynchronizeVCL(VCLProc: TThreadMethod); {$ENDIF} published property CallBackMode: TMMCBMode read FCallBackMode write SetCallBackMode default cmWindow; property Enabled: Boolean read FEnabled write SetEnabled default True; property Interval: integer read FInterval write SetInterval default 1000; property OnTimer: TNotifyEvent read FOnTimer write SetOnTimer; {$IFDEF WIN32} property Priority: TThreadPriority read FPriority write SetPriority default tpNormal; property Synchronize: Boolean read FSynchronize write FSynchronize default True; property WaitForTerminate: Boolean read FWaitForTerminate write FWaitForTerminate default False; {$ENDIF} end; implementation