On Sun, Jun 08, 2003 at 07:32:47AM +0300, iyad abu-shaera wrote:

> I want to handle the text before it drawn on a text Field..
> I don't want to use the pen down event, cause this field may be entered on 
> different ways..

I'm brand new to Palm programming, but something like this seems to work
for me. (If there's a problem with doing it this way, of course, I'd love
to be told.)

FieldType *field;
FormType *form;
MemHandle recordH;
char *s;

field = FrmGetObjectPtr(form, FrmGetObjectIndex(form, THE_FIELD_IN_QUESTION));
recordH = DmQueryRecord(THE_DATABASE_IN_QUESTION, THE_RECORD_WITH_THE_TEXT);
s = MemHandleLock(recordH);
FldSetText(field, recordH, 0, StrLen(s));
FldDrawField(field);
MemHandleUnlock(recordH);

-- 
Mason Loring Bliss  [EMAIL PROTECTED]  https://www.deadsexy.org/  
  "I am a brother of jackals, and a companion of ostriches."  (Job 30 : 29)

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

Reply via email to