U++ framework
Do not panic. Ask here before giving up.

Home » Community » Newbie corner » The right way to use CoDo with GuiLock? (The app freeze when trying to update the GUI while CoDo)
Re: The right way to use CoDo with GuiLock? [message #58549 is a reply to message #58544] Sun, 12 June 2022 16:40 Go to previous messageGo to previous message
Mountacir is currently offline  Mountacir
Messages: 49
Registered: November 2021
Member
One more question please.

Is there any approach to CoWork for updating the ColumnList as every worker finish? instead of waiting till all of them are finished to update.

void CoTest::CoForTest2()
{
	list.Clear();
	
	for(int i = 0 ;i < 100 ;++i )
		list.Add("Calculating");	
	
	GuiUnlock __;
	CoFor(100, [=](int i) {
		
		//Some Calculation
		
		GuiLock __;
		list.Set(i,"Result"); //How to make this show now?
	});
}



Thank you!
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Different File List
Next Topic: SVG for tool icon
Goto Forum:
  


Current Time: Wed Apr 29 06:38:50 GMT+2 2026

Total time taken to generate the page: 0.00477 seconds