Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamically display Controls from XML
Message
 
À
25/05/2006 22:52:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01125138
Message ID:
01125192
Vues:
23
Hi Mike,

>Is it possible to dynamically create controls in a form based on XML?

Yes. What you would do is:

- Load the XML definition either in the DOM parser, the CursorAdapter or a plain cursor. Which options are available to you depends on the format of the XML definition.

- Loop through all items in the defintiion.

- Create objects using the NewObject() method

- Apply all properties as specified in the XML file.

Most likely you want to create your own set of classes for this purposes, because you can't add code to any method of the controls this way. Your only options are setting properties and using BINDEVENT().
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform