<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Debenu Quick PDF Library - PDF SDK Community Forum : SetFormFieldAlignment for Button</title>
  <link>http://www.quickpdf.org/forum/</link>
  <description><![CDATA[This is an XML content feed of; Debenu Quick PDF Library - PDF SDK Community Forum : I need help - I can help : SetFormFieldAlignment for Button]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 08 May 2026 21:26:06 +0000</pubDate>
  <lastBuildDate>Wed, 09 Dec 2020 07:59:41 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.01</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.quickpdf.org/forum/RSS_post_feed.asp?TID=3868</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Debenu Quick PDF Library - PDF SDK Community Forum]]></title>
   <url>http://www.quickpdf.org/forum/forum_images/QPDF_Forum_Title.png</url>
   <link>http://www.quickpdf.org/forum/</link>
  </image>
  <item>
   <title><![CDATA[SetFormFieldAlignment for Button : Hi,I tried to set the centered...]]></title>
   <link>http://www.quickpdf.org/forum/setformfieldalignment-for-button_topic3868_post15499.html#15499</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3235">PeterAnderko</a><br /><strong>Subject:</strong> 3868<br /><strong>Posted:</strong> 09 Dec 20 at 7:59AM<br /><br />Hi,<div><br></div><div>I tried to set the centered alignment for the new "formfield" that I created as a button for print.</div><div>here is a procedure:&nbsp;</div><div><br></div><div><div>procedure CreatePrintButton(Menox:string);</div><div>var BTWidth,BTLocation:double;</div><div>&nbsp; &nbsp; ix,strana:integer;</div><div>begin</div><div>strana:=1;</div><div>PDFDok.SetOrigin(1);</div><div>BTWidth:=45;</div><div>BTLocation:=91;</div><div>ix:=PDFDok.NewFormField(Menox,2);</div><div>if ix&gt;0 then begin</div><div>&nbsp; &nbsp;PDFDok.SetFormFieldCaption(ix,Menox);</div><div>&nbsp; &nbsp;PDFDok.SetFormFieldAlignment(ix,1);</div><div>&nbsp; &nbsp;PDFDok.SetFormFieldPrintable(ix,0);</div><div>&nbsp; &nbsp;PDFDok.SetFormFieldBounds(ix,BTLocation,5,BTWidth,15);</div><div>&nbsp; &nbsp;PDFDok.SetFormFieldFont(ix,PDFDok.GetFormFontCount);</div><div>&nbsp; &nbsp;PDFDok.SetFormFieldTextSize(ix, 8);</div><div>&nbsp; &nbsp;PDFDok.SetFormFieldBorderColor(ix, 0.9, 0, 0);</div><div>&nbsp; &nbsp;PDFDok.SetFormFieldBorderStyle(ix, 0.2, 0, 0, 0);</div><div>&nbsp; &nbsp;PDFDok.SetFormFieldColor(ix, 0, 0, 0);</div><div>&nbsp; &nbsp;PDFDok.SetFormFieldBackgroundColor(ix,0.85,0.90,0.70);</div><div>&nbsp; &nbsp;PDFDok.SetFormFieldValue(ix,'');</div><div>&nbsp; &nbsp;PDFDok.SetFormFieldHighlightMode(ix,3);</div><div>&nbsp; &nbsp;PDFDok.FormFieldJavaScriptAction(ix, 'U', 'this.print({' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'bUI: true,' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'bSilent: true,' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'bShrinkToFit: true,' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'nStart: ' + IntToStr(strana-1) + ',' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'nEnd: ' + IntToStr(strana-1) + '});');</div><div>&nbsp; &nbsp;end;</div><div>end;</div></div><div><br></div><div><div>Despite setting up</div><div><br></div><div>&nbsp; <b>&nbsp;PDFDok.SetFormFieldAlignment(ix,1);</b></div><div><br></div><div>The alignment of the button caption (Menox) remains left-aligned.&nbsp;<img src="http://www.quickpdf.org/forum/smileys/smiley5.gif" border="0" alt="C&#111;nfused" title="C&#111;nfused" /></div></div><div>what I'm doing wrong?</div><div><br></div><div><br></div><div><br></div><div>Peter</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Wed, 09 Dec 2020 07:59:41 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/setformfieldalignment-for-button_topic3868_post15499.html#15499</guid>
  </item> 
 </channel>
</rss>