R. Lahaye wrote: > > Hi, > > 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?
Another, possibly related, question: fl_set_input_return(FL_OBJECT * ob, FL_RETURN_CHANGED); is for activating ok/apply/restore immediately upon typing into an input field. Correct? setPrehandler(FL_OBJECT * ob); is for triggering a cut&paste with middle mouse button as an input event. Correct? These two functions are always paired in the dialog code (only few times they are not). Obviously you want a cut&paste event triggered on an input field, when it activates the ok/apply buttons! So I wonder, why the "fl_set_input_return()" is not added into the setPrehandler() function in FormBase.C? Two lines could then merge into one in the dialog code. Regards, Rob.