button image

drfjm

Member
Licensed User
Longtime User
Is it possible to add an image to a button? For example the button looks
like a playing card.
 

drfjm

Member
Licensed User
Longtime User
I did it and inserted the following line:
movebtn.SetBackgroundImage(k212.bmp)
the name of the button is movebtn, of course
but I get the message:
Error description: Undeclared variable 'movebtn' is used before it was assigned any value.
 
Upvote 0

marcick

Well-Known Member
Licensed User
Longtime User
B4X:
dim movebtn as button

any view you create in the designer, must be declared in the activity before using it
 
Upvote 0
Top