Assuming you're trying to wrap the whole field...

Ya need a global rectangle type ...

RectangleType displayRect;

and here's a sweet little wrapper...
/***********************************************************************
 * FUNCTION:    SetRectFromField
 *
 ************************************************************************/
void SetRectFromField(Word
dID){  
  FieldPtr fld = FrmGetObjectPtr(FrmGetActiveForm(),
        FrmGetObjectIndex(FrmGetActiveForm(),fieldID));
  displayRect.topLeft.x = fld->rect.topLeft.x;
  displayRect.topLeft.y = fld->rect.topLeft.y;
  displayRect.extent.x = fld->rect.extent.x;
  displayRect.extent.y = fld->rect.extent.y;
}


then call it like so...

  SetRectFromField(ThisIsMyField);
  WinDrawGrayRectangleFrame(1,&displayRect);


Patrick Ouellet <[EMAIL PROTECTED]> wrote in message 
news:17382@palm-dev-forum...
> 
> How can I put a line around a field
> 
> suppose I have a 4 line fields
> and I want a little line around the field
> 
> __________________
> | ---------------------- |
> | ---------------------- |
> | ---------------------- |
> | ---------------------- |
> | _________________|





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

Reply via email to