Create several buttons at once

noist

Member
Hi!

I want to create a couple of buttons. At the moment the code looks like this:

bt1.Initialize("Button1")
bt1.Text = "test"
ScrollView1.Panel.AddView(bt1,0,0,100%x,100)

The same for Button 2 (bt2) etc...


Is there a way to do a "loop" or something like this to create for example 20 buttons like this at once without having to code every single one?
 
Top