> Is there anyway to change a programs application icon during runtime?
sure! :) you *could*.. :))
but it is not officially documented anywhere as it can get very messy.
{
UInt8 *iconPtr;
// allow "unprotected" memory writes
MemSemaphoreReserve(true);
// get a pointer to the tAIB1000.bin resource and lock it
iconPtr = (UInt8 *)MemHandleLock(DmGet1Resource("tAIB", 1000));
// mess directly with iconPtr
// -- BE CAREFUL, think about "multidepth etc etc"
*(iconPtr + 64) = 0; // this would *change* something pernamently
// unlock the pointer
MemPtrUnlock(iconPtr);
// disable "unprotected" memory writes
MemSemaphoreRelease(true);
}
now.. if you did it.. and totally *screwed* up - you might run the
risk of killing your device :)) i take no responsibility for what
you do with this code :P
cheers.
az.
--
Aaron Ardiri
Java Certified Programmer http://www.hig.se/~ardiri/
University-College i G�vle mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN
Tel: +46 26 64 87 38 Fax: +46 26 64 87 88
Mob: +46 70 656 1143 A/H: +46 8 668 78 72
if you enjoy it, then it aint work :) - rule #106 of life
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/