I've looked at the "ScrollView.b4a" project but it doesn't answer my questions.
Please look at the attached image.
I'm pulling rows from a database.
Each row has a few fields, including Name, ShortDescription, CaptionDate, and Date. <-- I'll be using "row" to describe all this data from now on.
(1) Am I doing the right thing by putting a bunch of labels in Panel1, with Panel1 as their parent?
(2) How does ScrollView1 know Panel1 is inside it? I notice when I click properties of Panel1 in the designer, it doesn't allow ScrollView1 to be set as its parent.
(3) Do I even need Panel1? Does ScrollView1.Panel.Addview(...) refer to Panel1 or a sort of built in Panel that is part of ScrollView1?
(4) Once I get all this set up in the designer, what code do I need to use to add a row of data so that the user can then scroll through rows? I see it is best to use ScrollView1.Panel.Addview(...) but how exactly would I do that in my loop that is reading from the database, as far as filling those labels with text? How do those labels become like an array?
Thanks for any help you can give me!
Please look at the attached image.
I'm pulling rows from a database.
Each row has a few fields, including Name, ShortDescription, CaptionDate, and Date. <-- I'll be using "row" to describe all this data from now on.
(1) Am I doing the right thing by putting a bunch of labels in Panel1, with Panel1 as their parent?
(2) How does ScrollView1 know Panel1 is inside it? I notice when I click properties of Panel1 in the designer, it doesn't allow ScrollView1 to be set as its parent.
(3) Do I even need Panel1? Does ScrollView1.Panel.Addview(...) refer to Panel1 or a sort of built in Panel that is part of ScrollView1?
(4) Once I get all this set up in the designer, what code do I need to use to add a row of data so that the user can then scroll through rows? I see it is best to use ScrollView1.Panel.Addview(...) but how exactly would I do that in my loop that is reading from the database, as far as filling those labels with text? How do those labels become like an array?
Thanks for any help you can give me!