Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Write code to a method
Message
 
 
À
02/07/2003 11:06:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00806108
Message ID:
00806114
Vues:
24
>hi all
>a have a class with a label in it - in this class i add object as label by addobject'mylabel,'label') and set all property by main label in class but i can not write a event for it by a function
>example: i want to have this code [mylabel.forecolor=rgb(255,255,255)] in
>mylabel.mousedown event but i do not know how to put that code in mousedown event in mylabel.mousedown
>please help me
>tanks all

Hi,
Realistically, you can't create methods on-the-fly. A better, IMO, method would be to create a subclass and have the necessary code in the MouseDown event to read a property value and use it assign the forecolor. You could AddObject your subclass.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform