Re[2]: Problem printing text with wxWidgets 3.2.2.1

Vadim Zeitlin <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
On Mon, 18 Sep 2023 16:45:15 +0200 Fulvio Senore wrote:

FS> My first goal is to hide wxPrintout that makes things rather complicated.

 Well, wxPrintout is exactly the class which provides the virtual method
allowing to print the page...

FS> We could create a printing class with a Print() method to start printing 
FS> and a virtual PrintPage() method to be implemented by descendant classes.

... so it's not obvious how exactly will this class differ from wxPrintout.

FS> The user's code is almost surely inside a class: just derive the user's 
FS> class from the printing class, add the PrintPage() implementation and 
FS> call the Print() method.

 Again, I don't really understand how is this different from deriving it
from wxPrintout?

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
              https://www.tt-solutions.com/
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCZQjChQAKCRAG6kHeT2we
hg+cAJ91+Zt+epLbk9VvVl4J6HLTjd4u0wCgpwzqBYTm/vYTxWdXDiJfDoQFBw4=
=0JHK
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.