Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need assistance creating a Control control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01040983
Message ID:
01042038
Vues:
30
I just retested my code I sent him. Works fine. Sets the label's caption:

I created a Control class and dropped a label on it

I added a property called 'builder' and set it to MyBuilder.prg

I created the prg MyBuilder and added the following code:
LPARAMETERS oObject, cButton

cCaption = INPUTBOX("Enter a caption")

oObject.label1.Caption = cCaption

RETURN
>Mike,
>
>>Is this something to do with the fact that I'm using a Control control and not a Container control? Any ideas?
>
>It has everything to do with it. Nothing, but the class itself can see the internal objects of a Control subclass.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform