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 » edit data in arrayctrl [GOOD EXAMPLES...]
Re: edit data in arrayctrl [message #1882 is a reply to message #1879] Fri, 24 March 2006 20:25 Go to previous messageGo to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
Yes, life is difficult here... Smile You have to look at the sources. It took me 10 min this time... Not perfect, but maybe as a starting point for you.
#include <CtrlLib/CtrlLib.h>

class App : public TopWindow {
	ArrayCtrl array;
	EditField arr_edit;
public:
    typedef App CLASSNAME;
	void ArrayEdit();
    App();
};


void App::ArrayEdit() {
	array.ColumnAt(0).Edit(arr_edit);
	}


App::App() {
    Add(array.SizePos());

		array.AddColumnAt(0,"Column0",50);
		array.AddColumnAt(1,"Column1",50);

		array.Add("1textfor0","1textfor1");
		array.Add("2textfor0","2textfor1");
		
	array.WhenLeftDouble = THISBACK(ArrayEdit); //double click to edit
		
    Sizeable().Zoomable();
    Title("ArrayEdit");
}


GUI_APP_MAIN
{
    App().Run();
}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ArrayCtrl scroll position [BUG] [FIXED]
Next Topic: detecting clicked row in ArrayCtrl [FIXED...]
Goto Forum:
  


Current Time: Wed Jun 18 07:20:22 CEST 2025

Total time taken to generate the page: 0.05277 seconds