Image click to return the name and position of that image ?
Posted on 2003-03-10
I have a panel with 16 small images 50 * 50. They are 4 wide and 4 deep.
The last image has no picture (blank). Images are named Image1 through to Image15 and the last one is named 'Imblank'.
I want to create a puzzel that when you click on an image next to the blanl one, the image and blank slide places. Just like the number squares game (only I'm using a picture all diced up).
The GUI is all set up but the coding for this one I'm having difficulty with.
If you can't help with an idea, then can you tell me how to get the Image name returned to a variable once an image is clicked and to work out if the blank image is next to it and able to be moved there ?