Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>I have an application where the first screen has the foll properties:
>Modal
>As top level form
>and the init has : Application.Visible = .F. to hide the main vfox
>window.
>
>A button on this screen calls another form which is also Modal and
>isalso top level form.
>
>The problem I have is that the code executes (in the button click) and
>runs screen 2 and immediately returns to the first screen.
>
>What I am trying to do is to not allow focus on the 1st screen till the
>second called screen has finished.
>
>Basically the first screen accepts input and on clicking the find
>button, the second screen- a search form, pops up and on it closing,
>pumps data into the first screen field. But I cannot get the code to
>stop executing in the find button of the first screen. It calls the
>screen alright but does not wait for it to close before executing the
>rest of the code.
>
>This is for VFP5a
>
>boutb@powerup.com.au
If ShowWindow property is set to 2 window type is always modeless. You may rely on conditional (programmatic) access and not in the window being modal, for this scenario.
HTH
Précédent
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