Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamically display Controls from XML
Message
 
To
25/05/2006 22:52:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01125138
Message ID:
01125192
Views:
18
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform