<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Print Preview v5.14 Released</title>
	<atom:link href="http://www.delphiarea.com/articles/preview-v5_14/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.delphiarea.com/articles/preview-v5_14/</link>
	<description>Freeware and open source Delphi components, packages, and applications</description>
	<lastBuildDate>Sat, 04 Sep 2010 20:11:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Kambiz</title>
		<link>http://www.delphiarea.com/articles/preview-v5_14/comment-page-1/#comment-11023</link>
		<dc:creator>Kambiz</dc:creator>
		<pubDate>Mon, 30 Nov 2009 10:01:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.delphiarea.com/?p=144#comment-11023</guid>
		<description>This issue does not look like a PrintPreview problem. I think if instead of Preview-&gt;Handle, you set the object as parent of PrintPreview, the problem is gine. 

You are right about the mistakes in default units functions. Thank you for the hint!

By the way, the forum is a better place to discuss about these issues.</description>
		<content:encoded><![CDATA[<p>This issue does not look like a PrintPreview problem. I think if instead of Preview->Handle, you set the object as parent of PrintPreview, the problem is gine. </p>
<p>You are right about the mistakes in default units functions. Thank you for the hint!</p>
<p>By the way, the forum is a better place to discuss about these issues.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan van Ooijen</title>
		<link>http://www.delphiarea.com/articles/preview-v5_14/comment-page-1/#comment-11022</link>
		<dc:creator>Johan van Ooijen</dc:creator>
		<pubDate>Mon, 30 Nov 2009 09:00:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.delphiarea.com/?p=144#comment-11022</guid>
		<description>Hello Kambiz,

I am trying to use your TPrintPreview in a C++Builder 2010 runtime environment. I place the component on a panel using:

  PrintPreview= new TPrintPreview(PreviewPanel-&gt;Handle);
  PrintPreview-&gt;Width = PreviewPanel-&gt;ClientWidth;
  PrintPreview-&gt;Height= PreviewPanel-&gt;ClientHeight;

and everything seems to work fine, except when the PreviewPanel is resized. After a resize the horizontal scroll bar moves out of sight and the right margin of the vertical scroll bar also moves out of sight. When I investigate the heights of PrintPreview and PreviewPanel, the PrintPreview is usually 26 pixels larger than the PreviewPanel, which explains the problem. I haven&#039;t investigated the widths but something similar but with less pixels difference must be happening there.

Do you think you can solve this?

By the way, I found a possible mistake in 

function TPrintPreview.GetSystemDefaultUnits: TUnits;
function TPrintPreview.GetUserDefaultUnits: TUnits;

it looks like the calls to GetLocaleInfo() should be interchanged:
GetSystemDefaultUnits has:
  GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_IMEASURE, Data, 2);
GetUserDefaultUnits has:
  GetLocaleInfo(LOCALE_SYSTEM_DEFAULT, LOCALE_IMEASURE, Data, 2);
 
Thanks!
Johan
Netherlands</description>
		<content:encoded><![CDATA[<p>Hello Kambiz,</p>
<p>I am trying to use your TPrintPreview in a C++Builder 2010 runtime environment. I place the component on a panel using:</p>
<p>  PrintPreview= new TPrintPreview(PreviewPanel-&gt;Handle);<br />
  PrintPreview-&gt;Width = PreviewPanel-&gt;ClientWidth;<br />
  PrintPreview-&gt;Height= PreviewPanel-&gt;ClientHeight;</p>
<p>and everything seems to work fine, except when the PreviewPanel is resized. After a resize the horizontal scroll bar moves out of sight and the right margin of the vertical scroll bar also moves out of sight. When I investigate the heights of PrintPreview and PreviewPanel, the PrintPreview is usually 26 pixels larger than the PreviewPanel, which explains the problem. I haven&#8217;t investigated the widths but something similar but with less pixels difference must be happening there.</p>
<p>Do you think you can solve this?</p>
<p>By the way, I found a possible mistake in </p>
<p>function TPrintPreview.GetSystemDefaultUnits: TUnits;<br />
function TPrintPreview.GetUserDefaultUnits: TUnits;</p>
<p>it looks like the calls to GetLocaleInfo() should be interchanged:<br />
GetSystemDefaultUnits has:<br />
  GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_IMEASURE, Data, 2);<br />
GetUserDefaultUnits has:<br />
  GetLocaleInfo(LOCALE_SYSTEM_DEFAULT, LOCALE_IMEASURE, Data, 2);</p>
<p>Thanks!<br />
Johan<br />
Netherlands</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vasilis Pierros</title>
		<link>http://www.delphiarea.com/articles/preview-v5_14/comment-page-1/#comment-5431</link>
		<dc:creator>Vasilis Pierros</dc:creator>
		<pubDate>Tue, 26 May 2009 13:03:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.delphiarea.com/?p=144#comment-5431</guid>
		<description>Let&#039;s test .. sounds very promising</description>
		<content:encoded><![CDATA[<p>Let&#8217;s test .. sounds very promising</p>
]]></content:encoded>
	</item>
</channel>
</rss>
