Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hacking .VCX file
Message
De
15/05/2009 17:34:54
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01304583
Message ID:
01400222
Vues:
70
>>>>>If I change the parent class name to a new name, e.g. MY_TABLE_MAINTENANCE_FORM_NEW_NAME, I need to hack the TABLE_1_FORMLIB.VCX. Is there a one record in the .VCX where I need to change the name? Or I would have to make the change in many records?
>>>>
>>>>I found that no hacking of .VCX is necessary if simply using VFP Redefine feature.
>>>
>>>That's if you need to do it to the class being edited. If you need to change the parent class of any member object on it (say, a button on a form, or a grid on a page), then your best bet is to either hack the vcx or to write a builder.
>>
>>There is also a free VFP tool called NewClass that will allow redefining from a selected classlib. Works on SCX and VCX.
>>
>>I use it often. Says it was written by Glenn Domeracki. I think I downloaded it here on UT, not sure.
>
>Matt,
>
>Does it allow to redefine several textboxes on the form to a different textbox class?
>
>At the moment I can not get HackFox to work - being dumb, as usual.


For instance, *ALL* textboxes of type ClassA are redefined to ClassB, etc. It works by class ref, not by individual objects.

Another example: All command buttons of type BtnCustomWhatever are redefined to BtnSomethingNew.

I even use it to add a class type to objects that were based on the naitive base classes

See?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform