` Printed Icetips Article

Icetips Article



Reports, Printing, Printers: Adjust margins
2005-03-30 -- Leonid Chudakov
 
Newsgroups: comp.lang.clarion,softvelocity.public.clarion6

>  Is it possible to allow the end user to adjust the margins of the text in >an RTF
control? For example, in MS-Word you  have that ruler at the top >with slidable levers
that allow you to specify the margins for a block of >text. See attached pic.

To get margins try something like
KS_RTFPage              &RTFPage
CODE
  KS_RTFPage &= RTFControl.Props.PageSettings()
  KS_RTFPage.GetSize(KS_PageWidth, KS_PageHeight, UNIT:Twips)
  KS_RTFPage.GetMargins(KS_LeftMargin, KS_TopMargin, |
                        KS_RightMargin, KS_BottomMargin, |
                        UNIT:Twips)

--
Leonid Chudakov
chudakov@klarisoft.com
Cool tools and Clarion examples at
http://www.klarisoft.com



Printed May 4, 2024, 3:05 pm
This article has been viewed/printed 35116 times.
Google search has resulted in 8 hits on this article since January 25, 2004.