Hi everybody!
My project have a window which has two images.
These images have same size, same position (at the center of window) and I call them as image_1 and image_2.
Firstly, I set image_1 with bitmap data bmp11, image_2 with bitmap data bmp_21.
Then, when I press on image_1, I want to change the bitmap data of both image_1 and image 2. from bmp11 to bmp12 for image_1 and from bmp21 to bmp22 for image_2.
The problem is that when I press on image_1, the data of those images are not changed. It seems I can not catch the image_1 pressed event. I guess that happens because image_1 and image_2 are in the same position and size.
Could you please help me to fix this problem? I also attach my source code for you to check.
Thank you!
My project have a window which has two images.
These images have same size, same position (at the center of window) and I call them as image_1 and image_2.
Firstly, I set image_1 with bitmap data bmp11, image_2 with bitmap data bmp_21.
Then, when I press on image_1, I want to change the bitmap data of both image_1 and image 2. from bmp11 to bmp12 for image_1 and from bmp21 to bmp22 for image_2.
The problem is that when I press on image_1, the data of those images are not changed. It seems I can not catch the image_1 pressed event. I guess that happens because image_1 and image_2 are in the same position and size.
Could you please help me to fix this problem? I also attach my source code for you to check.
Thank you!