Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a from from a command button
Message
From
27/10/1998 12:34:30
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
26/10/1998 19:33:12
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00150720
Message ID:
00151095
Views:
33
>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 know this is simple, but I'm stuck.
Mike,
It's doable :) As Mark said, you could hide windows - show windows or pass main form ref to slave form and slave sets main's visibility on/off. OTOH as Nancy and Ed mentioned it's better to have a toplevel form as a container for the app. Then your called forms could be modal and one centric SYSMENU could just change items. Further, you could show any form (and even _screen) as a splash style screen so the difference between an SDI an MDI is visually hidden.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform