Hello,
First, thanks to those who responded to my "Clearing ScrollView" question.
I have another…
I am much more familiar with C and Delphi than Basic and Java.
One thing we frequently do is create object templates and then use the template directly to instantiate a new object.
in my ScrollView, each new view in this ScrollView will be a panel with an ImageView and two labels populated from a query from a database.
I used the designer to make a "template" panel with an image view and two labels, all sized and positioned the way I want them.
If I were using Delphi or C, I would now use that template directly to create the multiple views for each result from the database in the ScrollView.
I would just have to "NewPanel = New(MyPanel)", NewPanel.label1 = "something", …, then "Add(NewPanel)" to the ScrollView.
Can I do this in Basic and B4A rather than rebuilding each object for the ScrollView from scratch. In this particular case it's easy enough to do it from scratch, but I was thinking for the future.
Thanks,
Barry.
First, thanks to those who responded to my "Clearing ScrollView" question.
I have another…
I am much more familiar with C and Delphi than Basic and Java.
One thing we frequently do is create object templates and then use the template directly to instantiate a new object.
in my ScrollView, each new view in this ScrollView will be a panel with an ImageView and two labels populated from a query from a database.
I used the designer to make a "template" panel with an image view and two labels, all sized and positioned the way I want them.
If I were using Delphi or C, I would now use that template directly to create the multiple views for each result from the database in the ScrollView.
I would just have to "NewPanel = New(MyPanel)", NewPanel.label1 = "something", …, then "Add(NewPanel)" to the ScrollView.
Can I do this in Basic and B4A rather than rebuilding each object for the ScrollView from scratch. In this particular case it's easy enough to do it from scratch, but I was thinking for the future.
Thanks,
Barry.