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: LMLTEPane keypress



On Nov 28, 2003, at 10:44 AM, email@hidden wrote:

Hi All,
I have a class that derives from LMLTEPane and LBroadcaster called
CBroadcastMLTEPane. I want to broadcast key press to the listener. I have
put a breakpoint in HandleKeyPress but it is never hit. Is there any control
attribute to be set in Constructor?


I assume you're on OS X? Since (IIRC) 10.1, MLTE objects install Carbon event handlers for, among other things, key presses, so the PowerPlant LCommander methods won't ever get called. See

<http://developer.apple.com/documentation/Carbon/Conceptual/ HandlingUnicodeText_MLTE/mlte_tasks/chapter_3_section_13.html#// apple_ref/doc/uid/TP30000088/BBCDIEBB>

You will need to install your own CE handler over the existing one to get/filter key presses.

hth,
Jim H

--
Jim Hamilton
512-699-3307

email@hidden
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.

References: 
 >LMLTEPane keypress (From: 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.