>I have a VFP 5.0 application using only top level forms with SCREEN set to off. I have a top level, modeless form, Form1, with a menu instantiated in it. From the menu I call a top level, modal form, Form2. From Form2 I can call a third top level, modal form, Form3, from one of two buttons. One button calls Form3 to insert a new record into a table after the user has entered data. The second button calls Form3 to edit existing data in the table. The only difference in the call is in setup code in the INIT of Form3. When Form3 is called to edit data everything looks fine. When Form3 is called to insert a new record, Form3 appears briefly, then Form2 regains the focus over Form3. I thought a modal form retained focus until released or until it spawned another modal form. All forms have ALWAYSONTOP set to .F.. What am I missing here?
>
>Thanks,
>Bill
Bill,
I had an application which opens a string of modal forms, one calling the next. I noticed that sometimes VFP got confused when I was backing out of this sequence of forms, i.e. after closing Form3, Form1 will pop to the front instead of Form2. I gave up trying to figure out why after awhile and went with a check in the ACTIVATE method of Form1 to see if Form2 exists. If Form2 exists when Form1 is being activated, I simply fireup Form2's SHOW method. On my next application, I gave up on chaining modal forms and went with modeless ones instead.
Paul
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement