Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ATSUI highlighting again



I downloaded ATSUICurveAccessDemo from Apple and I inserted just one line to atsui.c: in the function DrawATSUIStuff()
...
// Regular ATSUDrawText
penY += X2Fix(spacer);
verify_noerr( ATSUDrawText(layout, kATSUFromTextBeginning, kATSUToTextEnd, penX, ((gUseCG) ? X2Fix(height) - penY : penY)) );
// my line
ATSUHighlightText(layout, penX, ((gUseCG) ? X2Fix(height) - penY : penY), kATSUFromTextBeginning, kATSUToTextEnd);
...

I just want to highlight the line. However I get an error msg...
Ignoring Quickdraw drawing between QDBeginCGContext and QDEndCGContext

What do I have to do to highlight a portion of text in CGContext?

Thanks in advance.
--
Tae. =)


--
Tae-Won Ha
http://www.taewon.de
email@hidden
_______________________________________________
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 © 2007 Apple Inc. All rights reserved.