Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Automatic forms paint from metada
Message
De
25/11/2005 13:19:05
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
24/11/2005 10:56:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01071935
Message ID:
01072116
Vues:
27
>From a Model or Busisnes Object (or Table) definition to make a Form (in runtime) for mantain that entity.
>
>For BO definition :
>Field: Caption: InputFormat: WidgetType: ValidRuler: etc...

You probably think of some sort of object factory type of framework. Such things may have been popular once in some other languages (I think I've seen one Clipper implementation once), where the forms were built from metadata.

Nowadays, the form itself is metadata - the scx (or vcx) is a table.

You can, of course, build your own metadata, and generate .prg based classes for all your controls and forms at runtime, but I don't see any compelling reason to build such a system. The complexity of today's forms may be just too much, and you may end up inventing hot water - because the form is a table containing metadata, period.

You may have some of your metadata applied to the objects of your form at runtime, via a decorator object which would recurse your form, look for controls with controlsources described in your metadata, then set properties from metadata to these objects, or bindevent() some handler's code to them, attach a behavior or validator object to them - whatever you want.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform