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
ProgressIndicator issue [message #53223] Tue, 24 March 2020 11:21 Go to previous message
idkfa46 is currently offline  idkfa46
Messages: 155
Registered: December 2011
Experienced Member
Hallo guys,
I have a problem with my ProgressIndicator included in StatusBar.

My ProgressIndicator do not show the indicator increase till the end of the cicle (where displaying 100%)... it seems like the statusbar is not refreshed everytime, isn't it?

If I add a progress too, it works perfectly! Why?

How can I fix it removing the progress?


Here is a little example:

class test : public WithtestLayout<TopWindow> {
	StatusBar status;
	ProgressIndicator pi;
	
public:
	void load();
	typedef test CLASSNAME;
	test();
};

test::test()
{
	CtrlLayout(*this, "Window title");
	
	AddFrame(status);
	pi.Hide();
	pi.Percent();
	status.Add(pi.RightPos(5, 200).TopPos(2, 15));

	goBtn <<= THISBACK(load);	
}

void test::load()
{
	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();
}

GUI_APP_MAIN
{
	test().Run();
}
 
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: Thu Apr 18 23:00:47 CEST 2024

Total time taken to generate the page: 0.04990 seconds