For a noneditable field, use FldSetTextPtr. Use FldSetTextHandle for
editable fields.
Set up the string, then assign it to the field, then redraw the field. Your
string's scope should coincide with that of the form, otherwise, it will
disappear when you exit the function that declared the string.
Look at the field functions in the Palm OS Reference. Search the archives
using "FldSet." If (when) you have problems, post the code in this forum.
Regards,
Steve
-----Original Message-----
From: McKee, Kevin L. [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 31, 2000 11:44 AM
To: Palm Developer Forum
Subject: RE: Ok, I'm drawing a blank...
Steve,
Thanks for the quick response. I hate to ask stupid questions (still
learning), but I guess my question is HOW do I put an F in field1 or a B in
field1. I have the event down, I just don't know how to input the F or B
(or whatever it may be).
Regards,
Kevin Mckee
-----Original Message-----
From: McMicken, Steven [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 31, 2000 10:21 AM
To: Palm Developer Forum
Cc: '[EMAIL PROTECTED]'
Subject: RE: Ok, I'm drawing a blank...
In your event handler for the form, when a ctlSelectEvent occurs, if
eventPtr->data.ctlSelect.controlID == foobutton, put an F in field1, if
eventPtr->data.ctlSelect.controlID == barbutton, put a B in field1. Use the
field functions to enter text in the fields. You should probably make the
fields non-editable, too. Hope this helps!
Regards,
Steve
-----Original Message-----
From: McKee, Kevin L. [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 31, 2000 11:03 AM
To: Palm Developer Forum
Subject: Ok, I'm drawing a blank...
How do I input a character into a field based upon a users selection?
User chooses foobutton instead of barbutton, I want to be able to put an F
in field1. If user chooses barbutton, I want to put a B in field1.
Regards,
Kevin Mckee
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/