Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with Top Level Form
Message
From
28/12/2000 09:13:14
 
 
To
27/12/2000 14:15:03
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00457084
Message ID:
00457301
Views:
29
>On the main screen(top level form) which has several fields, how do I get the cursor to focus on the first field when the program starts. Right now the screen doesn't seem activated until I use the mouse. I tried setfocus() in the init method, but that didn't have any effect. I need to use the mouse and click on the first field to start entering data.
>
>The menu on the main screen comes up fine, however, the shortcut keys do not work. Alt plus the underscored letter in the menu doesn't have any effect. I can click on the menu items and they work fine.

Hello, Gaylen.

The problem is that when you instantiate a to level form, it just behaves as if you had launched and external application, but the one that keeps active (altough invisible) is VFP.

As you said, the form's caption appears dimmed as it is not active, therefore you cant set focus to it, nor activate the menu using Alt. This is a strange behavior just during development time. Once you build an exe that launches the form without showing VFP desktop at all, it will dissapear and your form will work as expected.

Remember to include a config.fpw in your project that includes the SCREEN=OFF directive, to avoid the desktop to appear at all.

Just give it a try. If you still have some problems then, just told me.

Hope this helps.
Previous
Reply
Map
View

Click here to load this message in the networking platform