Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Double click on an image control
Message
 
À
23/01/2007 22:35:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 6
Divers
Thread ID:
01184899
Message ID:
01338563
Vues:
8
>Hi, so if I have multiple images in the form created using the addobject, how will I know which image was clicked?

Put your click event in the parent class.

In that click event ask the name of the the calling object.
define class imgParent as image
procedure click
if this.name="MYIMG_1"
 *** do this
else
if this.name="MYIMG_2"
*** do that
endif
endif
endproc
enddefine

define class MYIMG_1 as imgParent
enddefine

define class MYIMG_2 as imgParent
enddefine
Imagination is more important than knowledge
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform