[futurebasic] Re: [FB] Report Printing

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2011 : Group Archive : Group : All Groups

From: Brian S <fblistserve@...>
Date: Mon, 20 Jun 2011 21:01:31 -0700
On Jun 20, 2011, at 4:57 PM, Steve wrote:

> Can you provide an example of how to draw a grid box around the rows and columns?
My primary goal was to provide a replacement for FB’s PRINT %(x,y) without using deprecated/legacy code.

Keep in mind that since the code uses a CGContextRef, it has access to draw *anything* in the Ref and not just text. For example, CGContextxxxxxx calls such as:

CGContextBeginPath( ctx)
CGContextSetLineWidth( ctx, wdth )
CGContextMoveToPoint( ctx, x1, y1 )
CGContextAddLineToPoint( ctx, x2, y2 )
CGContextStrokePath( ctx )

to draw lines are all possible.

I haven’t considered how to draw a grid around the rows and columns in the demo. Didn’t Steve V.V. post a recent demo in this same thread showing how to do that ( or something close that could be adapted )?

Brian S