I got some idea from the Internet finally.
The following code is used to draw the Attention UI

switch (cmdPBP->command)
    case kAttnCommandDrawList:
        // Draw the item in the list
        x = cmdPBP->commandArgsP->drawList.bounds.topLeft.x;
        y = cmdPBP->commandArgsP->drawList.bounds.topLeft.y;
        WinDrawBitmap(iconP, x, y);
        x += kAttnListTextOffset;
        WinDrawChars(theStr, StrLen(theStr), x, y);However, I got some 
errors when I use the above code:

UInt32 PilotMain(UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags){ Err error = 
errNone; Coord x; Coord y;   switch (cmd) {  case 
sysAppLaunchCmdNormalLaunch: breaks;  case sysAppLaunchCmdSystemReset: 
breaks;      case kAttnCommandDrawList:   x = 
cmdPBP->commandArgsP->drawList.bounds.topLeft.x;     <- Error*   y = 
cmdPBP->commandArgsP->drawList.bounds.topLeft.y;     <- Error* 
DrawBitmap(Smallicons12and8bitsAppIconFamily, x, y);    x += 
kAttnListTextOffset;    WinDrawChars(theStr, StrLen(theStr), x, y);   break;
Errors *
1) request for member `commandArgsP' in something not a structure or union
2) warning: dereferencing `void *' pointer

Do you have any idea? Thanks

Regards,
Ray
"Tenchi" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi All,
>
> Do you know how to change the Attention List?
>
> I can create/remove an attention by using AttnGetAttention/AttnForgetIt
> function. However, I found there is only a check box
> on the left without any description in the Attention List. Do you have any 
> idea on how to put some
> words
> next to the check box.
>
> Waiting for your help.
>
> Thank you very much
>
> Ray
>
>
> 



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

Reply via email to