I'm writing Chess game with visual Basic 6.
Now I have difficulty on understanding which image selected.
Please see code below.
Private sub Form_Load()
Pic(1).Picutre=LoadPicture(“Rook.jpg”)
Pic(2).Picutre=LoadPicture(“Knight.jpg”)
Pic(3).Picutre=LoadPicture(“Bishop.jpg”)
Pic(4).Picutre=LoadPicture(“Queen.jpg”)
Pic(5).Picutre=LoadPicture(“King.jpg”)
Pic(6).Picutre=LoadPicture(“Bishop.jpg”)
Pic(7).Picutre=LoadPicture(“Kinght.jpg”)
Pic(8).Picutre=LoadPicture(“Rook.jpg”)
End Sub
Now, when player wanna drag-drop, how can find out that
player selected white/black Square or on of the Queen, Knight,King images ?
Thanks, Afshin
This is very important with me, please help me.
Respectfully, Afshin_Z@Yahoo.Com
[Edited by Afshin_Zavar on 22-09-2003 at 06:31 AM GMT]
____________________________
Persia
21-09-2003 at 04:32 PM
|
JLRodgers Level: Moderator Registered: 04-04-2002 Posts: 1621
Re: Wich image selected on chess game?
If the picture controls have a "Tag" property you could store it there.
____________________________ Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
21-09-2003 at 10:41 PM
|
steve_w Level: Moderator Registered: 18-04-2003 Posts: 1156