Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't get VFP-Form active in W2K
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00546080
Message ID:
00546232
Vues:
14
Arrghh ...
I got tricked by the FindWindow which does exist in VFP(5).
Wait for a starry night tomorrow; NO TIME at this moment ... ;)
Thanks for now !



>Hi!
>
>If DECLARE DLL exists, that you will be able to use these API functions. It seems you just misunderstood what is API function here - it is not the FoxAPI function. It is Windows API function from Windows kernels and DLLs. Both ShowWindow, FindWindow and SetForegroundWindow are Windows API functions. There is a section here at UT for API functions where you can find a lot of samples. Take a look also to the Anatoliy Mogylevets site http://www.news2news.com/vfp/index.php that is also for using Windows API functions in VFP. With these functions you can do a lot more things...
>
>HTH.
>
>>Vlad, _ShowWindow does not exist, but Declare DLL is ...
>>
>>>Hi!
>>>
>>>You can make window as foreground also by using ShowWindow API function with SW_SHOW as second parameter. Is it available in VFP5? I also wondered, is DECLARE-DLL command not avauilable in VFP5?
>>>
>>>
>>>
>>>>>Hi!
>>>>>
>>>>>These two could be a problem. After forms are shown, use SetForegroundWindow() API function to make it active manually. You can find the HWND value for this API function using the FindWindow API function.
>>>>>
>>>>>>
  • During startup _SCREEN is made visible and invisible;
    >>>>>>
    >>>>>>
  • During startup another task is created (all in same datasession);
    >>>>>>
    >>>>
    >>>>Vlad, I followed the discussion with Chris (Setting Focus to Top Level Form) and though I have a code-example now, I don't think I can get this to work;
    >>>>In VFP5 there seems no _SetForehandWindow API.
    >>>>BTW, if another task is at the taskbar (so, minimized), my input is in this other task. I guess if no task is there, my input is at the desktop ? (didn't check that).
    >>>>I just tried for another hour, but can't get around this anoying thing...
    >>>>
    >>>>I can resize the forms, maximize them etc., perform a SetFocus on the Control of the form, but it remains inactive.
  • Précédent
    Répondre
    Fil
    Voir

    Click here to load this message in the networking platform