Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Write code to a method
Message
From
19/07/2003 16:02:07
Larry Rix
Larry Rix & Associates, Inc.
Westminster, Colorado, United States
 
 
To
02/07/2003 11:06:42
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00806108
Message ID:
00811792
Views:
11
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform