[futurebasic] RE: [FB] Combining CoreText and CG

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2009 : Group Archive : Group : All Groups

From: "Edwards, Waverly" <Waverly.Edwards@...>
Date: Thu, 1 Oct 2009 16:14:18 -0500
I tried really hard to find the code I remember for solution #2.
I thought I remembered the demo but I couldn't find it anywhere.
I believe it involved the use of DrawInPort but I couldn't find
anything on that either.  In retrospect I'm not sure that would
work anyway.  DrawInPort involved changing the port then forcing
the control to display in that port.  Controls/HIViews have 
owners but I don't know how you would change the owner.  Also,
the controls and view may need a CGContextRef which a printer
port doesn't have but RP was able to print CG graphics to the 
printer using "How to Print Coregraphics".  

I've got a long shot.  You could add a carbon event (kDrawControl)
to the controls you want to print , and maybe you could redirect
the drawing.  That may only enable you to add to what is being 
drawn though.  I'm grasping at straws.


W.