John J. Mihaljevic wrote on 2013-02-21: 
>  Hi all,
>  
>  I'm modifying an existing system that has two forms. One is a Menu
(modal)
>  and one of the buttons on the Menu form opens another form for Order
Entry
>  (also modal). One field on the Order Entry form has a LostFocus event
that
>  opens up a third form to provide some reference information for the user.
>  Once this Reference form is opened, I need to leave it open and allow the
>  user click back to the Order Entry form to make edits. Obviously, that
>  wouldn't work if making the third (Reference) form modal, as I'd have to
>  close it to get back to the second form. But when I make the third form
>  modeless, it opens behind the first two forms. Because we don't want the
>  users to be able to get back to the first form from the second, it would
>  appear that the first two forms must remain modal.
>  
>  Is there any way to open the third form on top of the second form, and to
be
>  able to click back and forth between the second and third forms?
>  
>  Thanks very much,
>  
>  John
> 

John,

Could you change the behavior to either 
  - hide the menu form ( the Enable property may work to)
    You'll need to have the menu form linked to the _Screen
    [menuform.init]
    _Screen.AddProperty("MenuForm", THIS)

    [menuform.unload]
    _Screen.MenuForm = .NULL.

    [menuform.button.click]
    ThisForm.Visible = .F.
    Do Form childForm

    [childform.unload]
    If Type("_Screen.MenuForm.Name") = "C"
        _Screen.MenuForm.Visible = .T.
    EndIf

   - With VFP 9 you could use BindEvents all on the Menu form
    [menuform.button.click]
    ThisForm.Visible = .F.
    Do Form childForm name ThisForm.ChildForm
    BindEvent(ThisForm.ChildForm, "Unload", ThisForm, "ChildUnloaded")

    [menuform.childunloaded]
    This.Visible = .T.
    UnBindEvent(ThisForm.ChildForm)
    This.ChildForm = .NULL.

Your forms may not need to be Modal

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