====== Format of Form Files ====== The format of Koda's form (.kxf) files has been designed to be as simple as the powerful features of Koda will allow. It conforms to XML rules, so importing forms from, and exporting forms to, other applications is possible. Indeed, a code generator has been written to generate Corel PerfectScript dialogs from Koda form files. This page describes the .kxf file format. A general understanding of XML is assumed. **Note that:** * All tags and attribute names are case-sensitive * All property and component nodes must be present in every object, even if they are empty. #remarks_header[Common structure]# ... ... . . . denotes a scalar value. It may also denote a list of strings or a collection: see below. #remarks_header[object]# object has two attributes: |type|classname of object, e.g. TALabel| |name|unique name of object.| name is an application controlled attribute, so Koda's parser will not fix it if it is not unique! The only exception is an empty name: you can have any number of objects with an //empty name//. #remarks_header[property]# property has two attributes: |name|name of the object property, e.g. Caption| |vt |variant type, i.e. type of value| vt is one of: | |Binary|binary data (see below)| | |Collection|collection (see below)| | |Extended|floating point number (double precision)| | |False|boolean| | |Ident|object identifier| | |Int8|short 8-bit integer;| | |Int16|short 16-bit integer;| | |Int32|long 32-bit integer;| | |List|list of strings (see below)| | |Set|set of identifiers| | |Single|floating point number| | |String|ANSI string| | |True|boolean| | |UTF8String,\\ WString|Unicode string, handled as ANSI string| \\ #remarks_header[Variant types requiring special handling]# \\ **List of strings** __Example__: lines of Items property of a ListBox control
  • ...
  • ...
  • **Collection** __Example__: Column headings of a ListView control Col 1 Col 2 **Binary** __Example__: an icon ... ... Binary data is split into 32-byte pieces and converted to hexadecimal, so every . . . contains 64 hexadecimal symbols (except possibly the last one).