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 » U++ Library support » Slider&ProgressIndicator » ProgressIndicator in ArrayCtrl
Re: ProgressIndicator in ArrayCtrl [message #12475 is a reply to message #12359] Mon, 05 November 2007 09:41 Go to previous messageGo to previous message
malya is currently offline  malya
Messages: 27
Registered: June 2007
Promising Member

This is my code:

#ifndef _TestProgress_TestProgress_h
#define _TestProgress_TestProgress_h

#include <CtrlLib/CtrlLib.h>

using namespace Upp;

#define LAYOUTFILE <TestProgress/TestProgress.lay>
#include <CtrlCore/lay.h>



class TestProgress : public WithTestProgressLayout<TopWindow> {
public:
	typedef TestProgress CLASSNAME;
	TestProgress();
	void StartProgress();
	ProgressIndicator pr;
};

#endif

//******
.cpp   * 
//******

#include "TestProgress.h"

TestProgress::TestProgress()
{
	CtrlLayoutOK(*this, "TestProgress");
	btStartProgress.WhenAction = THISBACK(StartProgress);
	list.AddColumn("Progress", 100);
	list.Insert(0);
	list.SetCtrl(0, 0, pr);
	pr.Set(0, 100000);
	pr.Percent();
}

void TestProgress::StartProgress()
{
	for (int i = 0; i < 100000; i++)
	{
		pr.Set(i);
		ProcessEvents();
	}
}




GUI_APP_MAIN
{
	TestProgress().Run();
}


Image:
index.php?t=getfile&id=812&private=0

Thats all. Progress does not show percent.
And Progress does not move after push Button Start.

Thanks!
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Please, add SetColor function to ProgressIndicator
Next Topic: Problem with ProgressIndicator in Kubuntu Linux
Goto Forum:
  


Current Time: Tue May 07 14:14:01 CEST 2024

Total time taken to generate the page: 0.02298 seconds