Recent

Author Topic: [Solved] Unix TPageSetupDialog, "paper source" is empty  (Read 1241 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
[Solved] Unix TPageSetupDialog, "paper source" is empty
« on: March 22, 2018, 05:07:36 am »
Reported at
https://bugs.freepascal.org/view.php?id=33427

>>(13) [!!!] Source (in Paper groupbox) is DISABLED during the first-time display of the dialog (even when the current printer supports it). Re-selecting the current printer from the Printer button enables the Source listbox.

I confirm empty field "source" on 1st call of dialog. after selecting printer it's filled.
in
  components/printers/unix/framepagesetup.pas
line
    SetupCupsCombo(cbSource, nil, 'InputSlot');
gets empty combobox. I dont know reason.
Pls help.
« Last Edit: March 22, 2018, 02:40:32 pm by Alextp »

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Re: Unix TPageSetupDialog, "paper source" field is empty
« Reply #1 on: March 22, 2018, 05:48:08 am »
I fixed it by adding before show dialog:
  Printer.SetPrinter(Printer.Printers[Printer.PrinterIndex]);

 

TinyPortal © 2005-2018