Andre Augusto wrote:

Hello everybody! I need to know if this ideia is feasible...
I have 4 forms. One with a table, associated to a database that exist in my PDA. When I click in an entry, one of 3 forms appears. Those forms are related with info in the database, readed to various fields. The sequence is like 1/3 , 2/3 and 3/3, with arrows to travel between them. I want to edit some fields. So now I want to know one thing: Can I do this with only one HandleFunction to all 3 forms, or must I implement a handlefunction to each form? Can anyone point me an example to follow, for each idea?

You can certainly use the same form handler for multiple forms, or multiple handlers for one form. You just have to tell the OS which handler you want to use at the momemt. If you use the same handler for multiple forms, you will likely want to do SOME things a little different on each form, so you might set a flag upon loading each form so that you know which one is current; something like "prefs.currentForm=form##" upon loading each form. Or you could test the form dynamically when you are in the handler using something like "if (FrmGetActiveForm()==FrmGetFormPtr(form##)) ...". Bob.



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

Reply via email to