You'd have to modify your apps tAIN resource on the fly.
char *newName = "Proggy";
MemHandle tAIN_Handle = DmGet1Resource('tAIN', 1000);
if (tAIN_Handle) {
char *appName = MemHandleLock(tAIN_Handle);
DmStrCopy(appName, 0, newName);
MemHandleUnlock(tAIN_Handle);
}
The drawback to this approach is that using DmResizeResource to make
more room for the new name doesn't seem to work, as the tAIN resource
is seldom placed at the end of the PRC database, and can't be resized
that way. This means any name shorter than, or the same length as the
current one would work, but longer names wouldn't. To support longer
names, you'd have to delete the resource and create a new one with the
new name in it.
I'm not sure what happens to the space the old tAIN resource occupied
when its deleted since the new one would show up at the end of the
PRC. Experimentation is probably in order. :)
Good luck!
Brandon
On Tue, 1 Feb 2005 13:30:30 -0700, Timothy Dean
<[EMAIL PROTECTED]> wrote:
> Is there any way to set the Application Icon Name that shows up under your
> application icon without compiling a new .prc file? I want to allow users
> to set the Application Icon Name to whatever they want without having to
> give them a new compile. Thanks.
>
> Timothy Dean
> MobileDataforce
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please
> see http://www.palmos.com/dev/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/