PREV UP NEXT Writing Form-Files

Chapter 2: Form-Files

The files describing the general layout of an application's GUI are the so-called form-files. Such a form-file consists of a set of `object-definitions', concerning either the layout of the form or is as well connected with a mapper-variable, and attributes defined with these objects.

An object-definition e.g. looks like this:

name:   object-type
        (
            attribute-list
        )

If an object has been given a name, one could refer to this object later on using this name.

FOO:    double
        (
            ...
        );

BAR:    frame
        (
            ...
            presentation=scrolled_window;
            component=FOO;
            ...
        );

name="Nice try!";
component=BAR;

This example would open a window named "Nice try!", containing a single object, that as well contains another object. See Presentations for a detailed description of presentations.

The attributes that could be set for an object split into five groups:

  • Flags
  • integer Attributes
  • double Attributes
  • string Attributes

    and

  • special Attributes

    there is as well a small example of a simple form-file

  • Example Form-File
  • Some of these attributes only make sense in combination with certain object-types. In other cases, some attributes may have a very special meaning differing from the standard meaning.