The best way to do this is by finding a way to catch the creator ID
of MemoPad.  There are many ways MemoPad can be started, so you'll
have to trap a function where the MemoPad creatorID is passed.  You
don't necessarily have to launch MemoPad, but as you need to determine
whether or not MemoPad has been launched, you'll need to trap something
that is typically called when it's launched, thus, 
DmGetNextDatabaseByTypeCreator.  You could also check each method of
calling MemoPad, too...either by the application button (least reliable)
or by checking the database to be loaded's creator ID.  Either way, be
careful with trapping this.  It could cause problems with other applications
if not done exactly right.

-Rus 

>-----Original Message-----
>From: mouss mouss [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, August 29, 2000 9:48 AM
>To: Palm Developer Forum
>Subject: RE: which function is used bye system...?
>
>
>yes i agree whith you. but i dont like to call memepad in my 
>programme but i 
>want taht when the user run memopad i must load the Arabic keyboard?
>
>
>>DmGetNextDatabaseByTypeCreator(true, NULL, sysFileTApplication,
>>sysFileCMemo, true, &theCardNo, &theDBID);
>>
>>// Launch the Memo Pad application.
>>if (theDBID)
>>      SysUIAppSwitch(theCardNo, theDBID, NULL, NULL );
>>
>>sysFileCMemo is the creator ID, so take from that what you will.
>>You should determine what the creator ID of this new application's
>>database is, if it's == to sysFileCMemo, then you load your Arabic
>>keyboard, otherwise, just let the app run.
>>
>>-Rus
>>
>> >-----Original Message-----
>> >From: mouss mouss [mailto:[EMAIL PROTECTED]]
>> >Sent: Tuesday, August 29, 2000 9:14 AM
>> >To: Palm Developer Forum
>> >Subject: RE: which function is used bye system...?
>> >
>> >
>> >Yes Rus, i'm referring to SysAppLaunch but is not what i want...
>> >Exactely, i have defined one arabic keyboard, and i want to 
>load this
>> >keyboard only for memo pad for exemple. so i think i must
>> >patch the function
>> >called when an app is started. i must verify if the curent
>> >application is
>> >memopad or not....
>> >i hope that you understand me, my english is bad :)
>> >please any suggestion??
>> >Regards
>> >mostafa
>> >
>> >>Are you referring to SysAppLaunch?
>> >>
>> >>-Rus
>> >>
>> >> >-----Original Message-----
>> >> >From: mouss mouss [mailto:[EMAIL PROTECTED]]
>> >> >Sent: Tuesday, August 29, 2000 8:32 AM
>> >> >To: Palm Developer Forum
>> >> >Subject: which function is used bye system...?
>> >> >
>> >> >
>> >> >i webt to know which function is called bye the system when we
>> >> >went to run
>> >> >one application?
>> >> >
>> >> >thanks in advence
>> >> >mostafa
>> >>
>> >>--
>> >>For information on using the Palm Developer Forums, or to
>> >unsubscribe,
>> >>please see http://www.palmos.com/dev/tech/support/forums/
>> >
>> >_______________________________________________________________
>> >__________
>> >Get Your Private, Free E-mail from MSN Hotmail at
>>http://www.hotmail.com.
>>
>>Share information about yourself, create your own public profile at
>>http://profiles.msn.com.
>>
>>
>>--
>>For information on using the Palm Developer Forums, or to unsubscribe,
>>please see http://www.palmos.com/dev/tech/support/forums/
>>
>>--
>>For information on using the Palm Developer Forums, or to 
>unsubscribe, 
>>please see http://www.palmos.com/dev/tech/support/forums/
>
>_______________________________________________________________
>__________
>Get Your Private, Free E-mail from MSN Hotmail at 
http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


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

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

Reply via email to