Just a ready-made example

Project:Progress Window
Version:IGOR.6.20.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

This is cool. I just extended your example code to make the package easier to check out for lazy folks...

function Example()
	string dataList="data1;data2;data3;data4"
	string tasklist="make;duplicate;analyze;kill"
	make/O/N=4 taskDuration = {3, 2, 9, 2}
	variable i,j,k,kmax
	variable sleepTime= 0.1	// in seconds
	variable numData=itemsinlist(dataList)
	variable numTasks=itemsinlist(taskList)
	ProgWinOpen()
	for(i=0;i<numData;i+=1)
		string data=stringfromlist(i,dataList)
		ProgWin((i+1)/numData,0,status=data)
 		for(j=0;j<numTasks;j+=1)
			string task=stringfromlist(j,taskList)
			kmax = taskDuration[j]
			for(k=0;k<kmax;k+=1)
				ProgWin((k+1)/kmax,1,status=task)
				Sleep/Q/S sleepTime
			endfor
		 endfor
	 endfor
	 ProgWinClose()
end

Cheers,
Wolfgang

Back to top