U++ framework
Do not panic. Ask here before giving up.

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: 3461
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: Tue Sep 15 04:11:28 GMT+2 2026

Total time taken to generate the page: 0.00570 seconds