Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Edit Text Control...Solved!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Edit Text Control...Solved!



The problem ended up being that the KeyboardFocus functions seem to only
accept a WindowPtr returned from FrontWindow(). Getting the window from the
event message (i.e. (WindowPtr)theEvent.message ), which I was doing, didn't
work, of course.

Hi,

just a guess: Are you sure theEvent.message contains a window pointer for update events? Have you tried:

GetWindowFromPort( (GrafPtr)theEvent.message );

???
--
Cheers,
-- M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.weblayout.com/witness




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.