> On Mon, 14 Feb 2005 20:13:19 -0000, Luc Le Blanc > <[EMAIL PROTECTED]> wrote:

> > What is the quickest way to get the name of the application
> > that has this 
> > creatorID (to display it in the popup trigger when displaying
> > my pref form)? 
> > DmGetNextDatabaseByTypeCreator followed by DmDatabaseInfo? Or
> > is there a better option?

> Actually, Luc, that is the *quickest* way, and the easiest to
> code, but I'd probably open each in turn and load the 'tAIN'
> resource from each, to display the name that the user is used to
> seeing in the Launcher. I know it's slower that way, but it would
> be a little more user-friendly. I write exclusively for newer
> devices, though, and if I were targetting a Palm III, I might
> reconsider this approach. Just figured I'd present you with the
> option.

Well, for the sake of completing this thread, here's the final result of my 
readings: the simple solution is to create the list of applications with 
SysCreateDatabaseList, setting its last (loopupName) parameter to true, which 
then forces the automatic lookup of a tAIN resource, thus returning the names 
that get displayed in the Launcher. This is the list I use to associate with my 
popup trigger. Using the tAIN resource does make a difference in some cases 
(e.g. the built-in app Welcome would otherwise appear as Setup).

When I first initialize the popup trigger text, I call 
DmGetNextDatabaseByCreator with the stored creatorID, open the DB, get its tAIN 
1000 resource (if any) and use that string (or the DB name if the tAIN resource 
is missing).

Am I right to assume that if a tAIN resource is present, it must be numbered 
1000?


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

Reply via email to