Hi all,
I'm not familiar with "class" technology, so I need help for following problem:
I want to programmatically add buttons like this example,
Sub Globals
Dim map1 as Map
end Sub
...
RasterAnzX = 3
RasterAnzY = 4
For x = 0 To RasterAnzX - 1
For y = 0 To RasterAnzY - 1
' i = i + 1
Dim btn As Button
btn.Initialize("Button") 'All buttons share the same event sub
Activity.AddView(btn, x*50 , y*50 , 50, 50)
Next
Next
...
each button should be draggable. What I have to change in erels example from this post:
http://www.b4x.com/forum/basic4android-updates-questions/18395-classes-soon-coming.html
Can anyone help me please. Many thanks.
Walter
I'm not familiar with "class" technology, so I need help for following problem:
I want to programmatically add buttons like this example,
Sub Globals
Dim map1 as Map
end Sub
...
RasterAnzX = 3
RasterAnzY = 4
For x = 0 To RasterAnzX - 1
For y = 0 To RasterAnzY - 1
' i = i + 1
Dim btn As Button
btn.Initialize("Button") 'All buttons share the same event sub
Activity.AddView(btn, x*50 , y*50 , 50, 50)
Next
Next
...
each button should be draggable. What I have to change in erels example from this post:
http://www.b4x.com/forum/basic4android-updates-questions/18395-classes-soon-coming.html
Can anyone help me please. Many thanks.
Walter