Ed Leafe wrote:
On Oct 7, 2005, at 12:41 PM, Carl Karsten wrote:
Using http://dabo.leafe.com/wiki/DemoScreenshots "Criteria selection
page (Win32):" as an example, can someone explain how the controls
are stored in A) the source of that form, B) at runtime when that
form is live.
The form is data-driven. The controls are instantiated at runtime
based upon the data in FieldSpecs.fsxml. IOW, the AppWizard doesn't
spit out a form with code for each control; it spits out an XML file
that is read at runtime, and whose contents are used to create the
controls. Take a look at dabo.lib.datanav.Page - it has several
'createItems()' methods where the actual control creation occurs.
Ok, that takes care of A but not B. well, kinda.
Somewhere should be some (x,y) quardenetss, right? I thought I would find them
here:
[EMAIL PROTECTED]:/home/carl/dabodemo/appRecipes # vi fieldSpecs.fsxml
...
<field name="ctitle" type="char" caption="Title"
searchInclude="1" searchOrder="10" wordSearch="0"
listInclude="1" listColWidth="-1" listOrder="10"
editInclude="1" editReadOnly="0" editOrder="10" />
^C
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users