Dave,
Thanks for your suggestion.
I hadn't thought of using different handlers as you suggest and will give it a try.
Dan
Dave Lippincott wrote:
> you can also use the same form resource with different handlers. i.e.
> create your form with all the necessary UI elements, write a couple of
> different handlers, when you call the form using FrmGotoForm associate it
> with the appropriate handler. Most of the time I use this method, the
> handler functions use different setup and cleanup routines but common code
> to run the dialog.
> But as Steve pointed out, I only do this when the functionality of the
> dialogs matches very closely, the UIs are identical or I have the
> opportunity to hide the unnecessary UI elements. Otherwise I use separate
> dialogs.
>
> ----- Original Message -----
> From: "Steve Mann" <[EMAIL PROTECTED]>
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Wednesday, April 25, 2001 1:11 AM
> Subject: Re: How do I reuse a form
>
> > >But... I'm missing something.... I need to populate the form with
> different
> > >types of information and consequently need something like:
> > >
> > >CallForm(FormID,param1,param2, etc...)
> >
> > You're not going to find that I'm afraid. You have a two choices that
> > I can see, based on your scant information:
> >
> > -- Create separate forms and call them explicitly;
> > -- Create a generic form, set a global, and do the form-specific
> > stuff in the form handler based on the global. That's just moving the
> > form-specific stuff from one location in your code to another as far
> > as I can see.
> >
> > Maybe you could do what you want with C++ also. I don't know, not
> > knowing much about it.
> >
> > You can reuse forms, to some extent, if you factor your functionality
> > carefully. If you're just getting started with this stuff, however, I
> > would suggest you just do it the hard way and forget about elegant
> > generic forms until you have a better understanding of how the
> > architecture works.
> >
> > If you provide more specific information, perhaps someone can give
> > you a more useful response.
> >
> > Regards,
> > Steve Mann
> >
> > --
> > -------------------------------------------
> > Creative Digital Publishing Inc.
> > 1315 Palm Street, San Luis Obispo, CA 93401-3117
> > -------------------------------------------
> > 805.784.9461 805.784.9462 (fax)
> > [EMAIL PROTECTED] http://www.cdpubs.com
> >
> > --
> > 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/