Hi,
I want to be able to draw a rectangle to the screen (1 pixel border) based on
how large one of my text fields is. This is my idea:
Use FrmObjectBounds to store the bounds of the text field, then use
WinDrawRectangle to produce the rectangle. Now I don't know whether this will
work or not since im new at C programming.
So far my function looks like this:
void FlowTemplate1DrawBox(UInt32 textboxID){
FormPtr frmP;
RectangleType *rectP;
frmP = FrmGetActiveForm();
rectP = MemPtrNew(100);
FrmGetObjectBounds( frmP, textboxID, rectP);
WinDrawRectangle(rectP,0);
}
I get a memory error immediately saying I am trying to access an unallocated
chunk of memory. What am I doing wrong?
Thank you I appreciate any help!
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/