Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>My "boss" insists that our VFP 6.0 system run from a top level form with pushbuttons that call the other forms in the app. These other forms have features that require their own dedicated SYSMENU, so these called forms need to be modeless, even though the system only runs one form at a time. I put DO FORM CCDATA NAME LINKED in the Click Event of the CCDATA push button in the top level form, but when I run the program, focus ultimately ends up back on the top level form, rather than the called form, although the called form is visible and I can send focus to it by clicking on it. How do I get the application to perform as follows:
>>
>>1. User clicks pushbutton on top level form.
>>2. Top level form disappears, focus goes to and remains on
>> modeless called form until called form is released.
>>3. Top level form reappears and receives focus.
>>
>
>I have done this and struck the same problem at first. The first thing is don't run the form as linked. Just checked, and all the form properties are default.
>I think that may have been all it was. The forms I call are modeless.
>I built the menu with buttons & labels to run from a table, which allows the menu to be used in other cases. Will check further on whether I can pinpoint your problem a bit better.
>
>Geoff
Just remembered the important bit .. I bet you have some code which goes on executing after you 'do form ..' (like what you want to happen when it returns).
I.e, the click event for the selected button should end with the do form
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