Hi Edmund,

Oh.... I just found that in the Chinese Simulator, even nothing installed,
clicking "abc" without a focused text field will cause that "No Focus
Warning!"!!!!
Is it something wrong with the simulator!!???

This alert is only displayed on Chinese & Japanese devices, thus it's correct that you get the alert. The translation for this was done around the middle of June, so I'm guessing that the DR2 build wasn't completely localized.


Also, the reason you're still getting this alert even though you've got a keyboard dialog event notification handler installed is because you're not setting the handled flag in the notification. This then causes the keyboard code to continue execution.

-- Ken


"Edmund" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

Hi all,


Thx for your time!

> I'm implementing a replacement for the system keyboard and I use the
 Notification API. When user taps the "abc", I only pop up an alert by
 FrmAlert(). After exit the alert by tapping "OK" button of the alert,
> a warning dialog is popup and states "No Focus Warning!"

> This warning dialog occurs in both the release and debug version of
 the Simplified Chinese Simulator v53 DR2 (zhCN). When I test it on
 either the release or debug version of English Simulator (also v53
 > DR2), it has no problem at all!!
 >
 > Could anyone give me some hints??
 > Thanks!
 >

Here is my code:


 static DWord StarterPalmMain(Word cmd, Ptr cmdPBP, Word launchFlags)
 {
     Err error;
     error = RomVersionCompatible (ourMinVersion, launchFlags);
     if (error) return (error);
         switch (cmd)
         {
         // other case....
         // .....
             case sysAppLaunchCmdNotify:
                 if (((SysNotifyParamType*)cmdPBP)->notifyType
                     == sysNotifyKeyboardDialogEvent)
                 {
                     FrmAlert (aSimpleAlert);
                     return 0;
                 }
         }
 }


--
Ken Krugler
<http://www.krugler.org>
+1 530-265-2225

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to