Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modifying scx files at run time
Message
De
28/04/1999 15:38:14
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Modifying scx files at run time
Divers
Thread ID:
00213162
Message ID:
00213162
Vues:
58
My end users need to add/remove, position and resize a label, textbox and
combobox based objects in forms, change their controlsources.
Unfortunately, MODIFY FORM command will not work in standalone exe.

Previously, I stored those form object specification in separate table and
use this.addobject(), .top=, .controlsource= etc. in form init to create those objects.
However, controlsource binding seems to be very slow in vfp: it takes 4 seconds every time to open EACH invoice!

I studied the scx file and found that I need to add a record for each
object and set its properties in the properties memo field.
Also, last record in the scx file must be special, of type comment.

So I plan to make a program which allows user to add/remove fields by deleting and adding records in scx file.
I don't need to change events/methods, so there is no need to compile.

Is object instantion from scx file, without addobject, faster?
I discovered that special COMMENT record must be always last in scx file.
Are there some other restrictions to scx order?
Are there such kind of screen designer for available for end user?
Andrus
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform