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: MLTE problem with KeyScript



Florent,

Calling KeyScript (just like it's done in PowerPlant's LEditText) after
calls to TXNActivate works for me. Put a breakpoint in KeyScript and you'll
see that it's only called from TXNActivate.

I have a different problem though:
I have a multi-tab control. Every tab contains some MLTE text fields (MLTE
has keyboard sync).
If I switch to some tab, switch keyboard to Japanese (and make sure that
that small IME window is wisible), then switch to a different tab, I see IME
window flicker a couple of times and disappear.
I call TXNActivate(false) on the MLTE field in the original tab,
TXNActivate(true) in the default MLTE pane in the new tab.
When I debugged through gdb, I found out that KeyScript is being called 7
(seven) times! in this operation, with parameters:
A). Called from TXNActivate(false)
-22
129 (looks like "Force JPN")
-22
B). Called from TXNActivate(true)
0
-22
129 (looks like "Force JPN")
-21

Actually, the same calls are being made when I switch b/w two MLTE panes in
the same dialog. It's just harder (but possible) to repro the flickering
part.
Questions:
1. Any ideas on what -21 , -22, passed to KeyScript actually mean?
2. Any way to avoid 7 calls to KeyScript? Or it is necessary part of
keyboard sync?
3. If answer to (2) is NO, are there any known tricks to inhibit that
blinking of IME window which is quite annoying to Japanese users.

Thanks.
Sergei




-----Original Message-----
From: email@hidden
[mailto:email@hidden] On Behalf Of Florent
Pillet
Sent: Thursday, November 27, 2003 8:13 AM
To: carbon-dev
Subject: MLTE problem with KeyScript


I have a pending issue with MLTE that I can't seem to solve: I need to
force the keyboard script when the MLTE field is activated. For this, I
catch the activate event and issue a ::KeyScript with the appropriate
script. But somehow, the keyboard script doesn't really change.

Is there something special related to the keyboard font synchronization
in MLTE and manually setting the script using KeyScript ? Is there a
specific order in which the calls need to be issued? This is very
poorly documented and I'm doing things using a lot of trial-and-error
but I'm kinda stuck on this one.

I tried with and without keyboard font sync activated in the MLTE
fields to no avail...

Florent

--
Florent Pillet, Code Segment email@hidden
Developer tools and end-user products for Palm OS & Mac OS X
ICQ: 117292463 http://perso.wanadoo.fr/fpillet
_______________________________________________
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.
_______________________________________________
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: 
 >MLTE problem with KeyScript (From: Florent Pillet <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.