|
Previous Top Next |
This class is used on a procedure that should be limited to a fixed number of instances that can be active at the same time. See the Thread Limit Global Class for more information. See also the Icetips Utilities Global extension template and the Icetips Thread Limit procedure extension template.
ITThreadLimitClass CLASS(ITUtilityClass),TYPE,Module('ITThreadLimitClass.clw'),Link('ITThreadLimitClass.clw',_ITUtilLinkMode_),DLL(_ITUtilDllMode_)
Win &Window
GlobalClass &ITThreadLimitGlobalClass
ProcedureName CString(256)
MaxRuns Byte
InstanceToSelect Byte !! Ranging between 1 to MaxRuns
TheThread Long
RestoreWindowOnActivation Byte
ActivateWindow Procedure !! Called from global class
Init Procedure(String pProcedureName)
AddProcedure Procedure(ITThreadLimitGlobalClass pGlobalClass, WINDOW pWin),Byte
RemoveProcedure Procedure
SetProcedureLimit Procedure(Long pMaxRun)
SetInstanceToSelect Procedure(Long pInstanceToSelect)
TakeLimit Procedure(),VIRTUAL
CloseWindowHandler Procedure(),BYTE
Construct Procedure
END