Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Focus to a form
Message
De
25/07/2000 15:21:18
 
 
À
13/07/2000 15:17:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00391496
Message ID:
00396738
Vues:
10
Hi Rich,

I'm still new but was wondering if you have tried calling the gotfocus event of the active form from within your mouseover event of your "box"?

_SCREEN.ACTIVEFORM.GOTFOCUS()

Hope this helps?

>Hello,
>
>It all start with tring to find a way to create GLOBAL hot keys. Global being that even if the application is minimized and another app has focus the hot keys would work. I could not find anyway to do that in VFP, so I came with this idea.
>
>The "small box" is a Desktop form the is always on top with tiltle bar off. The main idea was you sweep your mouse over the "box" a data form is started (DO FORM) in the mouseover event, then press the hot key combo and it would perform some database functions. When the "box" has focus all works as I expected, however if some other application has focus and I swipe my mouse over the box the data form pops open but the hot keys do not work. I figured this out to be because the window although it pops up does get focus, therefore the hot keys do not function. If you click on the now open form the form gets focus and the hot keys work.
>
>I have tried setfocus to a field on the form, activate, show(), mouse click, read events, and countless other,even disable and enabling the form. I have run out of ideas.
>
>Any help yo could give would be great.
>
>Rich Imbruglio
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform