Sorry, if this is a repost, but, the list server sent me a message saying my
first attempt failed. ANYWAY:
Hello,
I'm a newbie Palm programmer and need a little assistance.
I'm trying to do something that I thought would be relatively simple but
is giving me a lot of problems. What I'm trying to do is set up some Fields
for user I/O inside a table using the customTableItem style (ala the "sales"
example in Rhodes & McKeehan)
My basic approach in the main event handler is:
case frmOpenEven:
initailize the table by:
set the rows usable
mark the rows invalid
set the column's style to customTableItem
relocate the appropriate field into the table (row, column) location
(by changing is rect entry)
set the field as visible, editable, underlined, etc.
set the field text to its initial value
set the table column's CustomDrawProcedure
set column usable
draw the form with FrmDrawForm
break
case tblEnterEvent:
set the table's editing attribute to true
set table's currentRow to the row selected by user tap
set table's currentColumn to the column selected by user tap
remove the high light from the previously selected field
get a pointer to the field corresponding to selected table cell
(row,column)
set form focus to the table
grab the focus for the selected field
create a new fldEnterEvent
call FldHandleEvent with the new fldEnterEvent and the field ponter
break
My CustomDrawProcedure simply uses FldDrawField to display each field
when called at the appropriate time.
Here's what happens:
1. The fields display properly in the table with their initial text.
2. I can select a field with a tap and high light any of the characters
in the field.
3. I CAN NOT change anything (add or delete) in the field with
Grafitti entries. It responds with the appropriate shift symbol
to Grafitti shift entry and punctuation tap, but, I can't change the
field text. It simply ignores all Grafitti entries.
It's very frustrating since I think I've followed Rhodes & McKeehan's
example faithfully. I'm sure somebody else has done this. Could you
outline the steps or even better, email a code example? I could email
my very simple code to anyone willing to help. This list server won't
let me send an attachment.
Thanks in advance.
Greg
[EMAIL PROTECTED]
---
You are currently subscribed to palm-dev-forum as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]