18.4.3 FORMS Objects

Besides methods specific to particular kinds of FORMS objects, all FORMS objects also have the following methods:

FORMS objectset_call_back(function, argument)
Set the object's callback function and argument. When the object needs interaction, the callback function will be called with two arguments: the object, and the callback argument. (FORMS objects without a callback function are returned by fl.do_forms()or fl.check_forms() when they need interaction.) Call this method without arguments to remove the callback function.

FORMS objectdelete_object()
Delete the object.

FORMS objectshow_object()
Show the object.

FORMS objecthide_object()
Hide the object.

FORMS objectredraw_object()
Redraw the object.

FORMS objectfreeze_object()
Freeze the object.

FORMS objectunfreeze_object()
Unfreeze the object.

FORMS objects have these data attributes; see the FORMS documentation:

Name C Type Meaning 
objclassint (read-only)object class
typeint (read-only)object type
boxtypeintbox type
xfloatx origin
yfloaty origin
wfloatwidth
hfloatheight
col1intprimary color
col2intsecondary color
alignintalignment
lcolintlabel color
lsizefloatlabel font size
labelstringlabel string
lstyleintlabel style
pushedint (read-only)(see FORMS docs)
focusint (read-only)(see FORMS docs)
belowmouseint (read-only)(see FORMS docs)
frozenint (read-only)(see FORMS docs)
activeint (read-only)(see FORMS docs)
inputint (read-only)(see FORMS docs)
visibleint (read-only)(see FORMS docs)
radioint (read-only)(see FORMS docs)
automaticint (read-only)(see FORMS docs)