Angus Leeming wrote:
>
> I don't think that they're reset at all. That would imply that
> they're stored and I don't think that they are. What you are
> getting is the settings of a newly constructed PrinterParams
> instance.
>
> Why not ignore "pp" in FormPrint::update if it's causing you
> angst?
Sorry, but I don't get. In FormPrint::update I have:
void FormPrint::update()
{
PrinterParams & pp = controller().params();
target_.set(pp.target);
fl_set_input(dialog_->input_printer, pp.printer_name.c_str());
fl_set_input(dialog_->input_file, pp.file_name.c_str());
[...]
Ignore pp? Then what
target_.set( ?? );
fl_set_input(dialog_->input_printer, ?? );
fl_set_input(dialog_->input_file, ?? );
Since I'm a little more familiar with FormGraphics.C, I had a look at
FormGraphics::update() and found code similar to FormPrint::update().
Only, the Graphics dialog remembers previous settings, but the print dialog
doesn't. Hmmm. I'm puzzled.
Please help.
Cheers,
Rob.