Not sure if my title is correct.
I have a Designer Screen that is LoadLayout into a panel and I set the fields in it with no problems.
I save the panel in a Grid array and later I want to do something with this panel but there seems to be no way to get references to the fields without doing another LoadLayout
If I try the following somewhere else in the program.
So every time I want to do something with this Grid panel I need to load it again.
Is there something I am missing or some way to get references to the fields without doing a LoadLayout.
Otherwise I guess there is no reason for me to save the Panel for later.
BobVal
I have a Designer Screen that is LoadLayout into a panel and I set the fields in it with no problems.
I save the panel in a Grid array and later I want to do something with this panel but there seems to be no way to get references to the fields without doing another LoadLayout
B4X:
Dim ScorePanel As Panel
Dim Column As TGridSystemInfo = mGrid.GetColumnInformation(RowID, ColID)
ScorePanel.Initialize("ScorePanel")
mGrid.SetColumnPanel(RowID, ColID, ScorePanel)
ScorePanel.LoadLayout("sShowScore")
sShowScore_Screen.Color = Column.ColumnInfo.Format.ColumnColors.BGColor
sShowScore_Score.TextColor = Column.ColumnInfo.Format.ColumnColors.FGColor
sShowScore_Putts.TextColor = Column.ColumnInfo.Format.ColumnColors.FGColor
sShowScore_Total.TextColor = Column.ColumnInfo.Format.ColumnColors.FGColor
sShowScore_SandShots.Color = Colors.Transparent
If I try the following somewhere else in the program.
B4X:
Dim ScorePanel As Panel
ScorePanel = mGrid.GetColumnPanel(RowID, ColID, ScorePanel)
' The following fields which are part of sShowScore.bal are not available unless I do a LoadLayout
sShowScore_Screen.Color = Column.ColumnInfo.Format.ColumnColors.BGColor
sShowScore_Score.TextColor = Column.ColumnInfo.Format.ColumnColors.FGColor
sShowScore_Putts.TextColor = Column.ColumnInfo.Format.ColumnColors.FGColor
sShowScore_Total.TextColor = Column.ColumnInfo.Format.ColumnColors.FGColor
sShowScore_SandShots.Color = Colors.Transparent
So every time I want to do something with this Grid panel I need to load it again.
Is there something I am missing or some way to get references to the fields without doing a LoadLayout.
Otherwise I guess there is no reason for me to save the Panel for later.
BobVal