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