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 » ArrayCtrl, HeaderCtrl & GridCtrl » ArrayCtrl with ProgressIndicator [SOLVED]
Re: ArrayCtrl with ProgressIndicator [message #13994 is a reply to message #13991] Tue, 05 February 2008 18:52 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
#include <CtrlLib/CtrlLib.h>

using namespace Upp;

class MyWindow : public TopWindow {
public:
	typedef Color CLASSNAME;
	MyWindow();
private:
	ArrayCtrl arrayctrl;
	Array<ProgressIndicator> ind;
};


MyWindow::MyWindow()
{
	arrayctrl.AddColumn("Text");
	arrayctrl.AddColumn("Option").Ctrls<Option>();
	arrayctrl.AddColumn("Progress");
	
	arrayctrl.Add("One", false);
	arrayctrl.SetCtrl(0, 2, ind.Add());
	arrayctrl.Add("Two", true);
	arrayctrl.SetCtrl(1, 2, ind.Add());
	
	ind[0].Set(25, 100);
	ind[1].Set(50, 100);
	
	Add(arrayctrl.SizePos());
	
	Sizeable().Zoomable();
	SetRect(100, 100, 500, 400);
}


GUI_APP_MAIN
{
	MyWindow().Title("Test App").Run();
}


Mirek
 
Read Message
Read Message
Read Message icon14.gif
Read Message
Read Message
Previous Topic: ArrayCtrl: how to set label for embedded controls?
Next Topic: Copy from GridCtrl to Excel
Goto Forum:
  


Current Time: Tue May 14 14:08:08 CEST 2024

Total time taken to generate the page: 0.02351 seconds