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 » Accessing controls in layout within ArrayCtrl
Re: Accessing controls in layout within ArrayCtrl [message #35031 is a reply to message #35030] Fri, 30 December 2011 14:02 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3360
Registered: August 2008
Senior Veteran
Welcome unknown

I am not an ArrayCtrl expert, but I would do this:

- Imagine your small layout is of class MyRow to be included in ArrayCtrl arr
- In the class where ArrayCtrl arr is included, I would add an Array<MyRow> myRows
- Every time you add a row in your ArrayCtrl arr with arr.Add(data1, data2, ...), you should have to do a arr.SetCtrl(row, col, myRows.Add().SizePos());
- To access a particular data in a row, just do myRows[i].data = "My data";

Is it right?



Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: U++ App for linux
Next Topic: First time with upp
Goto Forum:
  


Current Time: Sun May 05 13:37:43 CEST 2024

Total time taken to generate the page: 0.01318 seconds