Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Top Level Form loses focus
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01407894
Message ID:
01408073
Vues:
35
>>>>>>I created a top level form to sit off to to the side of a modal form. The top level form has controls to adjust the layout of the modal form. All of this works really great. The problem comes up when you click on the modal form and, for example type in some text. After that, the only way you can get to the controls on the top level form is by clicking on the Title Bar first. Kind of awkward and not intuitive for the user. Is there anyway to get around having to click on the title bar first?
>>>>>
>>>>>Try to set Desktop=.T.
>>>>
>>>>Sergey,
>>>>It didn't work. I tried changing the main form to modless but it didn't work. If you click on the main form the focus is set to the main form and off the modless form and you have to click on the title bar or on the tab on the bottom windows bar to set focus back to the form.
>>>>
>>>>I put some code in the main form so if the user hits the button to launch the modless form it sets focus to it. I could put code in the mousemove event in the main form so if the mouse passes over any non-object part of the form the modless form would get focus but there would still be times the user could hit the modless form without hitting that code.
>>>>
>>>>Any ideas anyone?
>>>
>>>It is something wrong with your interface. If you have two or more modeless forms sitting in top form interface then to move focus from one form to another you should just call Form.Show method.
>>
>>I can set focus to the form in code, the problem is that the user must click on the title bar to set focus to the form. Clicking on any other part of the form or form objects does not works and only produces the 'DONK' sound.
>
>That's not a normal behavior, i.e. your interface is not right. Does the form is part of the top-level interface (Form.Showwindow=1)?


ShowWindow =1
This is a Top Level form that can sit off the VFP _SCREEN to allow the users to change settings in the main form.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform