Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Why won't TEUpdate draw in my GWorld?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why won't TEUpdate draw in my GWorld?



On 30/07/2003 05:35, Eric Schlegel <email@hidden> wrote:

> One of the first lines of code that TEUpdate executes is this one:
>
> SetPort( (*hTE)->inPort );
>
> Now, the inPort field of the TERec is your dialog, not your GWorld. So
> TEUpdate is going to draw into the dialog port, not the GWorld port.
>
> You need to arrange for the inPort field of the TERec to point at your
> GWorld. That's probably as simple as just setting
> (*hTE)->inPort=pictureGW. You'll need to restore it afterwards.

I believe this is not enough, because (as Joseph mentioned)
GDHandle will not be set by TextEdit. That's why I suggested
to use SetGWorld prior to calling TEUpdate (in addition to
setting inPort field) earlier - that will set both port and device.

Mike
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.