Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » How to get a Ctrl within ArrCtrl
| How to get a Ctrl within ArrCtrl [message #61866] |
Sat, 22 November 2025 12:13 |
 |
forlano
Messages: 1216 Registered: March 2006 Location: Italy
|
Senior Contributor |
|
|
Hello
I have added several buttons to an ArrayCtrl with this code
void TournamentTiebreakDlg::AddBtn(int row, int col, int idTB, String label) {
Button& btn = gridtb.CreateCtrl<Button>(row,col);
String l = label;
btn.SetLabel(l);
btn << [&,row,col,idTB] {
SetTB(row, col, idTB);
};
}
Now I need to get some of these buttons and disable them.
I am tryng stuff like this
Button& btn = panel.gridtb.GetCtrl(4,1);
but the compiler keep complaining all my temptives.
Which is the recommended way?
Thank you very much,
Luigi
|
|
|
|
Goto Forum:
Current Time: Sat Nov 22 12:40:09 CET 2025
Total time taken to generate the page: 0.29789 seconds
|