Hi All,
I'm learning to programmatically create my screens in B4A rather than use the designer.
I have started by writing a simple 2-D game and I've got to the point that I want to have some click events for the images I've placed on the screen.
The images use DrawBitmap, with one of the the canvases as the "owner" of the method I use to draw them. E.g. cvsMove.DrawBitmap(bmpArrowUp,Null,rect1)
I have had no problem working out how to add the click event for my one "real" button, a Quit button, but can't work out how to define a click event for the images.
Can I do this? Or can I only have click events for the panels that the buttons are drawn over? I guess I could create one panel per image, if that is what it takes?
Sorry if I haven't described this very well. Any suggestions appreciated.
Thanks.
I'm learning to programmatically create my screens in B4A rather than use the designer.
I have started by writing a simple 2-D game and I've got to the point that I want to have some click events for the images I've placed on the screen.
The images use DrawBitmap, with one of the the canvases as the "owner" of the method I use to draw them. E.g. cvsMove.DrawBitmap(bmpArrowUp,Null,rect1)
I have had no problem working out how to add the click event for my one "real" button, a Quit button, but can't work out how to define a click event for the images.
Can I do this? Or can I only have click events for the panels that the buttons are drawn over? I guess I could create one panel per image, if that is what it takes?
Sorry if I haven't described this very well. Any suggestions appreciated.
Thanks.