Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » ProgressIndicator issue
Re: ProgressIndicator issue [message #53225 is a reply to message #53223] Tue, 24 March 2020 12:39 Go to previous messageGo to previous message
Xemuth is currently offline  Xemuth
Messages: 387
Registered: August 2018
Location: France
Senior Member
Hello Idkfa46,

Put this at begining of Load function :
GuiLock __;


Like that's :
void test::load()
{
        GuiLock __;
	Progress p;
	p.Create();
	
	pi.Show();
	pi.Set(0,1000000);
	
	for(int i = 0; i <=1000000; i++)
	{
		pi.Set(i);
		p.SetPos(i);
	}
	p.Close();
	pi.Close();
}


It Should allow the thread created by callback to interract with the GUI wich is stick to the main thread
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Help & Topics (in tab)
Next Topic: [SOLVED] Cloning Array of complexe type
Goto Forum:
  


Current Time: Sun Aug 24 13:28:56 CEST 2025

Total time taken to generate the page: 0.06466 seconds