2 User-defined Attributes
In this chapter we describe methods to separate dialog and application completely, i.e. the application does not need any information about the dialog. (See chapter "Using user-defined attributes and object-oriented programming" in "Programming Techniques")
The existing limit of 16 parameters per application is still valid. However each parameter can be a structure of its own.
On the one hand, the attribute .userdata provided by the Dialog Manager for each object could be used to define application-specific information. For "normal" objects, like e.g. statictext, this attribute can be used only once per object. For objects with listing character (e.g. listbox, poptext, tablefield), it can be used per item/entry.
On the other hand, user-defined attributes have been made available. These attributes are treated in the same way as internal DM attributes, i.e. they can also be inherited from a model or a default. There are the following possibilities to define these attributes:
- scalar attributes
- indexed attributes
- attributes referencing to other attributes (shadow attributes)