Recent

Author Topic: TPrintDialog disable Properties Button  (Read 323 times)

Weitentaaal

  • Hero Member
  • *****
  • Posts: 554
TPrintDialog disable Properties Button
« on: March 20, 2025, 03:11:44 pm »
Hello,

is it possible to Disable the Properties Button in the PrintDialog (See Attachment) ? Is the Dialog Window Customizable ?

I need to pass a Printername to a DLL which does the Printing. I am not sure how to pass the Printer Options / Properties to the Printer Object in the DLL. Thats why i wanted to Disable those options.

Thanks in advance.
« Last Edit: March 20, 2025, 03:13:55 pm by Weitentaaal »

Zvoni

  • Hero Member
  • *****
  • Posts: 2961
Re: TPrintDialog disable Properties Button
« Reply #1 on: March 20, 2025, 04:19:29 pm »
As a first Test:
Uncheck red circled Checkbox in Properties of Printer and run your code.
If it's disabled, you at least found the Property of the Printer itself

No idea though, how to pass that from code.
I'd look for a Property of the Printer-Class/Dialog-Box which might be it

Everything said: It's not a Property of the Dialog-Box, but of the Printer itself.
Since the DialogBox enumerates all available Printers, i'd go searching there
« Last Edit: March 20, 2025, 04:22:42 pm by Zvoni »
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

 

TinyPortal © 2005-2018