Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't get VFP-Form active in W2K
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00546080
Message ID:
00546170
Views:
18
This message has been marked as a message which has helped to the initial question of the thread.
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.
    Vlad Grynchyshyn, Project Manager, MCP
    vgryn@yahoo.com
    ICQ #10709245
    The professional level of programmer could be determined by level of stupidity of his/her bugs

    It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
  • Previous
    Next
    Reply
    Map
    View

    Click here to load this message in the networking platform