Mailing Lists: Apple Mailing Lists

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

Re: refreshing a TXNObject



On Saturday, May 31, 2003, at 10:20 AM, Daz wrote:

I've got a MLTE Text object, embedded in a drawer. My drawer can be hidden or visible.
My problem is that it doesn't seem to refresh correctly the text displayed in the drawer.
I do call TXNForceUpdate, and TXNUpdate, but I think I call them at the wrong place.

I was thinking, since I'd like my drawer's text to be refreshed, I place the call in a kWindowShown case.
I finally tried to place it at some other places, but it doesn't seem to be the good procedure.

Since drawers use compositing mode, and all window content in a compositing window needs to be wrapped inside an HIView, you should probably create a custom HIView that wraps your TXNObject, and call TXNUpdate when you receive a kEventControlDraw.

-eric
_______________________________________________
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.

References: 
 >refreshing a TXNObject (From: Daz <email@hidden>)



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.