> I don't think that FrmPopupForm () sends frmCloseEvent, it sends
> frmLoadEvent and frmOpenEvent.  When popping up a form, I don't believe that
> the current one is closed.
>
> For the record, the section in the events reference
> under frmCloseEvent does -not- say that it is sent
> by FrmPopupForm().

  correct.. 

  this is stated clearly in the documentation. i use FrmPopupForm()
  to do a custom built dialog in which i must initialize data when
  it opens (but after it draws)

  using a combination of FrmPopupForm() and FrmReturnToForm(0) - i
  simulate the actions of FrmDoDialog() - where my form acts like a 
  dialog but i get to process the events as per a normal form.

  ie:   frmOpenEvent - is something you cannot process when using
                       FrmDoDialog().

  you can initialize the form prior to calling, but if you need to 
  blitter something after the form is drawn - you cannot do so with
  FrmDoDialog().

  the documentation also clearly states that IF you call
  FrmReturnToForm(...) you MUST clean up prior to doing so - as it
  does not generate a frmCloseForm event.

  ie:

     // clean up memory that was initialize
     ....

     // return to the last active form.
     FrmReturnToForm(0);

  everything you need is in the documentation - be sure to download
  the latest from the devzone area on palm.com. most of your questions
  could have been solved on your own if you correctly used the
  documentation provided by palm.

  cheers.

az.
--
Aaron Ardiri 
Java Certified Programmer      http://www.hig.se/~ardiri/
University-College i G�vle     mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN       
Tel: +46 26 64 87 38           Fax: +46 26 64 87 88
Mob: +46 70 656 1143           A/H: +46 8 668 78 72

if you enjoy it, then it aint work :) - rule #106 of life


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to