>The "BASE" classes are built into Visual FoxPro and, therefore, do not have .VCX files associated with them. The idea when you create a subclass is to create a .VCX with your initial subclasses which you can work with.
>
>For example, if you wanted to subclass the base textbox and put the subclass into a .VCX called CONTROLS.VCX, you would:
>
>CREATE CLASS myTextBox OF Controls.vcx AS TextBox
>
>As opposed to creating a subclass of myTextBox (called mySubtextBox and stored in SubControls.VCX) which would look like this:
>
>CREATE CLASS mySubTextBox OF SubControls.vcx AS myTextBox FROM Controls.VCX
>
>Hope this helps.
I tell ya, I was stumped on how to create a .vcx to begin with for a while until I realized it would do it for you. I ended up just typing CREATE CLASS, because then it came up with a list of things to base it on, which meant I didn't have to try and remember all the base classes.
Thanks,
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement