Next: Font, Up: Generic Attributes [Contents][Index]

#### 10.8.1 Basic Attributes

The basic attributes include the type, boxtype, name, label string, the callback function with its arguments associated with the object and a shortcut.

For most object classes several different types exist. The type of the object under consideration can be selected via a choice object.

Most objects can also be drawn using different boxtypes. Normally, the default should do, but using the choice object labeled "BoxType" you can switch to a different box type (but note that not all choices may result in a different way the object is drawn and some may look rather ugly).

Nearly all objects have a label that can be drawn at different positions within or outside of the object. The input field labeled "Label" lets you set the label string (it may also include return characters, i.e., `\n`, for line breaks).

An object may have a name by which it can be accessed within the program. This name must be a valid C (or simple C++) variable identifier and can be set via the input field labeled "Name". You need to make sure that there are no objects with the same name!

If instead of having e.g., the function `fl_do_forms()` return when an object is triggered a callback may be invoked instead. You can set the name of the callback function in the input field labeled "Callback". Obviously, this must be a valid C or C++ function name. When a callback function is set you must also specify the argument passed to the callback function together with the object’s address via the input field labeled "Argument". This normally will be a (long) integer (defaulting to 0 if not specified). Using this value it is e.g., possible to distinguish between different objects when all use the same callback function.

Next: Font, Up: Generic Attributes [Contents][Index]