Printing with textAlign

J. Landman Gay jacque at hyperactivesw.com
Sun Jan 30 12:30:02 EST 2005


On 1/29/05 7:12 PM, Dwayne Rothe wrote:

> Hi All,
> I am having a problem getting a field to print the text aligned center.
> I have two radio buttons to control alignment  1.) btn "left"   2.) btn
> "center"
> 
> I am using the handler below;
> 
> on mouseUp
> revShowPrintDialog true,true
> set printmargins to 36,36,36,36
> set printTextFont to Tahoma
> if the hilite of btn "left" is TRUE then
> set the printTextAlign to left
> else set the printTextAlign to center
> revPrintField the name of fld "docs"
> end mouseUp
> 
> printmargins, printTextFont work fine but not printTextAlign, it always
> prints aligned left.........hmmm :?(

The revPrintField handler probably is overriding your settings. You can 
either write your own printing handler and avoid using Revolution's, or 
easier, just set the text alignment of the field itself before printing. 
Revolution will use the alignment in your field.


-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com


More information about the use-livecode mailing list