Desmond Lloyd wrote on 2013-02-19: 
>  Basic question.
>  
>  Have an old application written in 6.  Big do while .t. with "coded"
>  forms,  create window,  says and gets.  Works fine.
>  
>  Have been able to add forms to the application,  when I do I typically
add
>  a read events to allow the form to be populated and then clear events on
>  the way out.
>  
>  Now I wan to add a form on top of that.  Works fine, but much to my
chagrin
>  it doesn't stop it just excecutes the form and then the rest of he code
in
>  the "do this" button.
>  
>  As long as I stay within the window am good,  but click outside of the
>  window am hosed,  the app runs on the desktop and the other form comes to
>  the front,  the top most form disappears behind the app.
>  
>  Form is modeless,  tried modal as well.  How to successfully execute?
>  
>  So essentially
>  
>  do while .t.
>     app stuff
>     do form 1 read events
>              do form 2                      ****** Problem is here
>  enddo
> 
>  Thanks for everyone's patience.
>  Regards,
>  Desmond
> 

Desmond,

I'm not sure I'm following the code.
    Do while .T.
        *!* App stuff
        Do Form 1
        Read Events
        Do Form 2
        Read Events
    EndDo

You're saying when Form1 loses focus, it clears the "read" state?
Where is your "CLEAR EVENTS" line of code? In the "Unload" event of the
Form?
Are your forms ShowWindow set as 2 - As Top-Level Form? Or Desktop is .T.?

Tracy Pearson
PowerChurch Software


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to