I want to display a list of reminders in a ScrollView. Each reminder will be displayed on a panel that contains three labels, in various fonts and colors. I have successfully added two panels with the same data onto the ScrollView, but I don't know how to access the labels on the panel so I can set the text I want to display.
Here is my code
Here is my code
B4X:
Dim rs As Cursor
Dim SQL As String
SQL = "SELECT ID, [Description], [When], [Trigger], PlaceID, Mon, Tue, Wed, Thu, Fri, Sat, Sun, StartTimeWindowHours, StartTimeWindowMinutes, StopTimeWindowHours, StopTimeWindowMinutes FROM Reminder ORDER BY [Name]"
rs = SQLiteUtils.DbExecQuery(SQL)
Dim i As Int
For i = 0 To rs.RowCount-1
rs.Position = i
Dim p As Panel
p.Initialize("PanelReminder")
p.LoadLayout("ReminderListPanel")
p.Tag = "1"
p.lblReminderName.Text = ' This doesn't work
svReminders.Panel.AddView(p, 0, 0, InsideTabWidth, 95dip)
MyPlaces.Add(p)
Next