Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » RichText,QTF,RTF... » RichEdit page size
Re: RichEdit page size [message #13981 is a reply to message #13976] Mon, 04 February 2008 22:39 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
kretol wrote on Mon, 04 February 2008 13:06

In RichEdit's constructor page size is set to Size(3968, 6074)
and unit to UNIT_POINT.
When saving to pdf ,a pdf document is 8,5x11 inch.
How and when is it calculated ? ( 3968 / 72 != 8,5 )
How to set the page size to different sizes in inches, cm, etc. ?

Sorry if I am missing something obvious here,but could someone enlighten me, please?

Thanks in advance,
Wiktor



When U++ is dealing with "physical units" (like the real world distances on paper media), it always uses "dots". 1 dot is defined as 1/600 inch (and is equal to single pixel on 600dpi printer).

All other units are converted to (and from) dots.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: I really don`t know how to UPDATE the RichText,help!!
Next Topic: Is it possible to send a QTF text to the printer (PrinterJob)?
Goto Forum:
  


Current Time: Sun Apr 28 23:56:34 CEST 2024

Total time taken to generate the page: 0.03020 seconds