Printing with textAlign
Dwayne Rothe
drothe at optusnet.com.au
Sun Jan 30 23:36:29 EST 2005
Thanx for the reply Jaqueline,
When the user selects the option of btn "left" or btn "center" the field
to be printed is aligned before printing, this was done as a print preview,
however rev still prints text as left alignment.
Cheers...Dwayne
>
> 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