Re: No tk_chooseFont or tk_choosePrinter?
From: Jiang Wu (jwu_at_xenon.Stanford.EDU)
Date: 08/18/04
- Next message: Don Libes: "Re: Problems with expect and Fedora / Gentoo (URGENT)"
- Previous message: USCode: "Re: No tk_chooseFont or tk_choosePrinter?"
- In reply to: USCode: "Re: No tk_chooseFont or tk_choosePrinter?"
- Next in thread: Cameron Laird: "Re: No tk_chooseFont or tk_choosePrinter?"
- Reply: Cameron Laird: "Re: No tk_chooseFont or tk_choosePrinter?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 18 Aug 2004 21:09:49 +0000 (UTC)
In article <H5-dnTtMe7h7IL7cRVn-rw@comcast.com>,
USCode <uscode@dontspam.me> wrote:
>Not an option. I have no idea how many people will want to download my
>applicationa and I don't want to require my Windows users to install
>GhostScript just for my application to be able to print. The goal is to
>just copy the executable and other assorted files and go! Thanks for the
>suggestion anyways.
To solve the printing issue for Windows, I adapted the GDI and Printer
extensions from:
http://www.du.edu/~mschwart/tclextensions.html
to print formatted text with different font, paging, and line wrapping.
It wasn't easy. I had to do much of the work in C functions so
that I can use Tk's internal text drawing routines to handle fonts and
line wrapping. To leverage the Tk's internal text drawing routines
for printing, I also had to access some non-public Tk structs.
I haven't dealt with printing graphics yet. But will probably do that
later as well.
-- Jiang Wu
jwu@cs.stanford.edu
>
>
- Next message: Don Libes: "Re: Problems with expect and Fedora / Gentoo (URGENT)"
- Previous message: USCode: "Re: No tk_chooseFont or tk_choosePrinter?"
- In reply to: USCode: "Re: No tk_chooseFont or tk_choosePrinter?"
- Next in thread: Cameron Laird: "Re: No tk_chooseFont or tk_choosePrinter?"
- Reply: Cameron Laird: "Re: No tk_chooseFont or tk_choosePrinter?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|