Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Superclass ~ Subclass question
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00097195
Message ID:
00097289
Vues:
21
Perry,

If you copied the container class that has buttons in it you need to add the container class name when using the :: to call the inherited code:

txtBtns.cmdPrev::Click()
* your code goes here

>I'm using VFP30b and I copied The buttons class from the
>VFP30\samples. I then added this library to a project
>
>I created another class in this library based on the
>'VCR' class called 'SCVCR'. Now I modified this class to
>have a Text object in the center of the 4 buttons, making
>room for the new text object. I wanted to update this
>text object when the database record pointer moved. with
>9/125 on record 9 of 125 records. I'm trying to do this
>in the Click() of the 'Prev' button. I don't see any code
>in this method. I put code in this method to update the
>text object
>
>'Prev' button.click() method
>r = ALLTRIM(STR(recno()))
>t = ALLTRIM(STR(reccount()))
>this.parent.textobjName.value = r +" / ""+ t
>this.parent.textobjName.refresh()
>
>* End of code
>
>during a trace this code is getting executed, but the
>default button's code is not.
>
>How can I get the default behavior to execute before my
>code executes.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform