Next: Changing Many Attributes, Previous: Tool Tips, Up: Changing Attributes [Contents][Index]
A word of caution is required. It is possible to change the attributes
of an object at any time. But when the form is already displayed on the
screen some care has to be taken. Whenever attributes change the
system redraws the object. This is fine when drawing the object erases
the old one but this is not always the case. For example, when placing
labels outside the box (not using FL_ALIGN_CENTER
) they are not
correctly erased. It is always possible to force the system to redraw an
object using
void fl_redraw_object(FL_OBJECT *obj);
When the object is a group it redraws the complete group. To redraw an entire form, use
void fl_redraw_form(FL_FORM *form);
Use of these routines is normally not necessary and should be kept to an absolute minimum.