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.
If you tried debugging against a debug version of the Palm OS 6 Simulator, you would see a message about drawing outside of an update event. Since the default window is an update window, you have to post an "update" event to yourself and have the handler for that actually do the drawing.
Also, in your code you're also making a call to
GcSetColor(gc, 0 ,0 ,0 ,128);
This will set the drawing color to white with half opacity. Is this what you really want?
BTW, questions about Palm OS Cobalt app development should be asked on the protein-forum mailing list; palm-dev-forum is mainly for Palm OS Garnet and earlier discussion, although discussion of PACE on Palm OS Cobalt is also on topic here.
-- Ben Combee, senior DTS engineer, PalmSource, Inc. Read "Combee on Palm OS" at http://palmos.combee.net/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
