Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Write code to a method
Message
De
19/07/2003 16:02:07
Larry Rix
Larry Rix & Associates, Inc.
Westminster, Colorado, États-Unis
 
 
À
02/07/2003 11:06:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00806108
Message ID:
00811792
Vues:
12
Reza,

Create a descendent class of label and place your code into that class. Use that descendent label class in your form.

Example:

DEFINE CLASS red_label AS label


Caption = "Label1"
Height = 17
Width = 40
Name = "red_label"


PROCEDURE MouseDown
LPARAMETERS nButton, nShift, nXCoord, nYCoord

THIS.ForeColor = 255

RETURN
ENDPROC


PROCEDURE MouseUp
LPARAMETERS nButton, nShift, nXCoord, nYCoord

THIS.ForeColor = 0

RETURN
ENDPROC


ENDDEFINE
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform