Rob Lahaye wrote: > } else if (ob == dialog_->browser_styles && ob_value == 2) { > // double clicked in styles browser > string const style = getString(dialog_->browser_styles); > if (style.empty()) { > return ButtonPolicy::SMI_NOOP; > } else { > fl_set_input(dialog_->input_style, > ChangeExtension(style, "").c_str()); > cout << "I have set dialog_->input_style to " << > ChangeExtension(style, "") << endl; > fl_redraw_object(dialog_->input_style); fl_redraw_form(form()); > } > // reset the browser so that the following > // single-click callback doesn't do anything > fl_deselect_browser(dialog_->browser_styles); > > } else if (ob == dialog_->button_rescan) { > > > I have added the cout to be sure the input_style field is set > by the proper string.
You aren't sure of any such thing. Use this to check that the widget has accepted your input. cout << "Widget contains " << getString(dialog_->input_style) << endl; -- Angus