Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp50 - Visual MaxFrame (Newbie question)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00038925
Message ID:
00039032
Vues:
33
Hi Jose,

Before I start I should mention that there is an exellent article in the May issue of Object magazine that covers the strategic and tactical issues of modifying libraries for your own use. Highly recommended.

Here's a great trick in VFP. The structures like .SCX, .VCX, MNX, .PJX and so on are all really .DBF files! Try it -- USE MYLIB.VCX then BROWSE. Therein you'll see CLASS, NAME, CLASSLOC, and other fields. Just find the appropriate records, change those fields (make a backup first) and when done do a COMPILE CLASSLIB MYLIB.VCX.

It works like a charm!

I've written or participated in several dozen multi-lingual FP and VFP projects and I've created a tool called INTL which takes care of creating multilingual versions for you. You might consider that route (no pressure) because it neatly solves the whole problem in a few lines of code. Just click the advertisement you occasionally see at the top here...


>Hi,
>
>I'm starting to learn VFP 5.0, using Visual MaxFrame Professional framework.
> I'm have some difficulties on when and where sub-class the original framework.
> I have to translate the framework to Portuguese. Let me give an example, I
> want to create a form based on a class called frmDEGridNav2Pages that has the
> following hierarchy :
>
>Form - Visual Foxpro base form class.
>frmBase - Visual MaxFrame base form class.
>frmData - Abstract class for modeless forms that manage data.
>frmDataEntry - Abstract class for (modeless) data-entry forms.
>frmDataEntrySCADO - Abstract class for modeless data entry forms, includes
> Save/Cancel and Print, Find, Add, Delete, OK commandbuttons.
>frmDEGridNav - Abstract class for data-entry forms, navigation is via an
> incremental-search grid.
>frmDEGridNav2Pages - Data-entry form with a search/navigation grid on page 1 of
> a pageframe.
>
>On frmDataEntrySCADO I have some buttons to Add/Delete and so on. I want to
> translate everything in these command buttons (sub-classing the original
> classes), create frmGCDEGridNav2Pages (sub-classed from frmDEGridNav2Pages).
> My problem now is how to change the class of the command button. I want to
> change from cmddataadd in X3FWCTRL.VCX to cmdgcdataadd in GCFWCTRL.VCX.
>Could I explain my problem ? Sorry for the bandwidth.
>
>TIA
>
>José Augusto Cavalcanti
>Global Connection
>jcavalcanti@ax.apc.org
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform