Angus Leeming wrote: > On Thursday 26 September 2002 5:39 am, R. Lahaye wrote: > >>In most Xforms (and Qt dialogs as well), I find this function: >> >> bc().addReadOnly(FL_OBJECT * ob) >> >>I don't see any effect when commenting it out in the Xforms >>dialog code. What is it supposed to do? Is it still useful >>and/or relevant? > > > When the document has (or attains) read only status, then these > buttons are disabled automatically. So yes, it is both used and > useful.
Angus, Why does this function only work on check and button widgets? When I do, for example: bc().addReadOnly(dialog_->choice_width_unit) the choice widget is not disabled for a readonly document! Does this function only apply to a limited set of Xforms widgets? If so, why? Thanks, Rob.