I try to write a simple Protein program simply to display a rectangle after
clicking a button. Which is created from the template of PODS.
But there is nothing diaplayed either in the simulator and real device. I
have debugged the program using PODS 0.11, the code has ran but taken no
effect.

Do anyone know what's wrong with the code or what else should I do first.
...
case MainForm2Button:
    gc =GcGetCurrentContext();
   if (gc)
   {
    GcSetColor(gc, 0 ,0 ,0 ,128);
    GcRoundRect(gc ,0 ,15 ,50 ,15 , 3,3);
    GcPaint(gc);
    GcReleaseContext(gc);
    WinDrawChars("Next",4,30,30);
   }
   else
    WinDrawChars("fail",4,30,30);

   fHandled = true;
   break;
...

Regards,
Lawrence Kwok




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

Reply via email to