Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
[SOLVED] TPrintDialog Properties Button
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
MR - DebuggerIntf for ter...
by
Martin_fr
[
Today
at 01:50:18 pm]
[UPDATE] SedaiBasic - SSA...
by
mau.camma
[
Today
at 12:29:03 pm]
New charts
by
JD
[
Today
at 12:13:34 pm]
PIX (Picture in Hexadecim...
by
ADMGNS
[
Today
at 11:15:06 am]
Fpcupdeluxe
by
DonAlfredo
[
Today
at 10:22:45 am]
Star Wars Galaxian
by
PierceNg
[
Today
at 10:10:44 am]
Unleashed Pascal (async/a...
by
Fibonacci
[
Today
at 08:27:13 am]
QGradientTrackPanel: A Fu...
by
Boleeman
[
Today
at 07:13:07 am]
[closed] Is case for stri...
by
egsuh
[
Today
at 06:39:17 am]
Fast Canvas Library V1.05...
by
Gigatron
[
Today
at 01:28:23 am]
How to define the SQLite3...
by
jamie
[
Today
at 01:26:49 am]
kOmniXML for Lazarus and ...
by
PeterEvans
[
Today
at 01:11:14 am]
Finding List of Fonts & P...
by
J-G
[August 09, 2026, 11:05:31 pm]
[Scrubbed] Question about...
by
jamie
[August 09, 2026, 08:47:34 pm]
Bug: XLSX writer does not...
by
wp
[August 09, 2026, 08:29:22 pm]
New Big Integer library i...
by
ad1mt
[August 09, 2026, 05:32:14 pm]
Automatic generation of *...
by
PeterBB
[August 09, 2026, 01:38:51 pm]
TyControls: a custom-draw...
by
Antek
[August 09, 2026, 12:07:39 pm]
PO-Editor MyLangEdit3 now...
by
dbannon
[August 09, 2026, 07:55:47 am]
Application triggers mess...
by
JanRoza
[August 09, 2026, 12:26:52 am]
[solved] form reset/reloa...
by
ADMGNS
[August 08, 2026, 09:58:42 pm]
Create small language
by
ADMGNS
[August 08, 2026, 09:52:19 pm]
Advatage Database server
by
neobrasil08
[August 08, 2026, 08:42:18 pm]
How get listy of FieldDat...
by
Aruna
[August 08, 2026, 04:02:16 pm]
Identify network devices
by
LemonParty
[August 08, 2026, 03:44:03 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] TPrintDialog Properties Button (Read 260 times)
spuds
New Member
Posts: 16
[SOLVED] TPrintDialog Properties Button
«
on:
June 05, 2026, 10:30:34 pm »
On the Windows platform I am able to change printer properties. Previous posts made on this forum helped me to write all the code required to do this and to execute this code form a tool bar button. What I can't do however is use the printDialog to change printer properties though the properties button. The properties button in Print dialog launches a properties dialog however the changes to the properties have no effect. I am looking for some way to change Printer properties through printDialog.
Two possibilities have occurred to me. The first is to make the properties button in printDialog a published property so that I am able to make the on Click event execute my code. I am not sure this is possible or how to achieve this as I am not a component developer. The second option is to just write my own Print Dialog form. This also presents it's own challenges in that I want it to look identical to the windows Print Dialog which displays graphic images to the left of the collate check box. There may also be other solutions/options that have not occurred to me.
«
Last Edit: June 06, 2026, 01:40:17 am by spuds
»
Logged
jamie
Hero Member
Posts: 7889
Re: TPrintDialog Properties Button
«
Reply #1 on:
June 06, 2026, 12:34:44 am »
I could be wrong, but I believe you need to use the "Refresh" in the Printer class after making changes so the PRINTER class can update its properties locally.
You could do this in the OnClose of the Dialog or somewhere like that.
Logged
The only true wisdom is knowing you know nothing
spuds
New Member
Posts: 16
Re: TPrintDialog Properties Button
«
Reply #2 on:
June 06, 2026, 01:30:20 am »
Thanks Jamie
A very simple and elegant solution. I actually did a Printer.Refresh using the DeviceMode record from the toolbar button. This was also thanks to all the helpful posts you made. It just did not occur to me (although it probably should have) to try this first.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
LCL
»
[SOLVED] TPrintDialog Properties Button
TinyPortal
© 2005-2018