Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TxTbuttons class doesn't enable objects.
Message
De
13/11/1996 17:10:44
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00012180
Message ID:
00012184
Vues:
36
>Hi guys, is me again.
>I have a form, which have a pageframe with 5 pages
>and then I added to the form the class
>'txtbuttons' from the wizard visual class library,
>all my text boxes are contained in the page, that is
>the hierarchy of one of my text boxes in page1 would be:
>thisform.pageframe1.page1.txtFieldName1
>where txtFieldName1 is disabled by default.
>Then here is my problem, when I click on 'Edit' or
>'Add' in my txtButtons class it doesn't enable any of my
>text boxes, I looked at the code in the click event of
>the visual class txtButtons and it looks fine to me,
>I don't know what to do.
>Any suggestion ?
>Thanks in advance.
>luisg@netrunner.net

If the parent class method is supposed to disable/enable any other
objects on the form, then make sure it uses a relative reference
to those objects. In this case ensure that hierarchy of the class
structure that is assumed in the parent class remains the same in
your derived class. Also see if you added any code in Click method
of your derived txtButtons class. If you did, then insert DODEFAULT()
statement at the beginning of the method to let the parent class
method execute itself, otherwise you are simply overwriting the
functionality of the parent class.
Some things are better be left unknown...NOT!!!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform