I need 26 sweet image buttons for a keyboard in Hangman game. Therefore I created 1 dummy StateListDrawable dummy button with nice images in the designer. Now I want to create 26 new buttons in software by copying the dummy button from the designer. Seems not possible?
dim Letter(27) as Button
For n=1 to 26
..Letter(n) = DesignerButton
Next
It seems only the reference is assigned, which I can understand with my C background. But in C/C++ you could dereference an object by *Letter(n) = *DesignerButton effectively making a copy of the source object. Is such a thing possible in B4A?
Thanks in advance for your patience,
Bas Hamstra
dim Letter(27) as Button
For n=1 to 26
..Letter(n) = DesignerButton
Next
It seems only the reference is assigned, which I can understand with my C background. But in C/C++ you could dereference an object by *Letter(n) = *DesignerButton effectively making a copy of the source object. Is such a thing possible in B4A?
Thanks in advance for your patience,
Bas Hamstra