Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a from from a command button
Message
From
27/10/1998 02:30:08
 
 
To
26/10/1998 19:33:12
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00150720
Message ID:
00150801
Views:
29
>My "boss" insists that our VFP 6.0 system run from a top level form with pushbuttons that call the other forms in the app. These other forms have features that require their own dedicated SYSMENU, so these called forms need to be modeless, even though the system only runs one form at a time. I put DO FORM CCDATA NAME LINKED in the Click Event of the CCDATA push button in the top level form, but when I run the program, focus ultimately ends up back on the top level form, rather than the called form, although the called form is visible and I can send focus to it by clicking on it. How do I get the application to perform as follows:
>
>1. User clicks pushbutton on top level form.
>2. Top level form disappears, focus goes to and remains on
> modeless called form until called form is released.
>3. Top level form reappears and receives focus.
>

I have done this and struck the same problem at first. The first thing is don't run the form as linked. Just checked, and all the form properties are default.
I think that may have been all it was. The forms I call are modeless.
I built the menu with buttons & labels to run from a table, which allows the menu to be used in other cases. Will check further on whether I can pinpoint your problem a bit better.

Geoff
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform