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 #1890 is a reply to message #1885] Fri, 24 March 2006 23:14 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
Quote:


class robot : public WithrobotLayout<TopWindow> {
public:
.....
EditDouble x1, y1, x2, y2;
.....
};

robot::robot()
{
......
teren.lista.AddColumn("x1",0).Edit(x1);
teren.lista.AddColumn("y1",0).Edit(y1);
teren.lista.AddColumn("x2",0).Edit(x2);
teren.lista.AddColumn("y2",0).Edit(y2);
teren.lista.Appending().Removing();
......
}



...I am not sure whether Appending/Removing applies here...

(ArrayEdit is not needed here).

You can also get "direct" editing (with Ctrls always visible) by

teren.lista.AddColumn("x1",0).Ctrls<EditDouble>();

Mirek
 
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: Tue Sep 02 03:29:35 CEST 2025

Total time taken to generate the page: 0.05713 seconds