Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't get to main screen
Message
From
01/05/1998 15:11:22
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
01/05/1998 15:04:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00096356
Message ID:
00096368
Views:
15
>>>I'm a vfp newbie and having a bit of a problem with moving between some old FP code and integreting vfp3.0 into it.
>>> I've got a small 3 button form and one of the buttons needs to call a fp program. The problem is that the program tries to run in the window of the calling form and runs out of space. I've tried all kinds of ZOOM and CLEAR and RELEASE in the click event of the form but nothing seems to make a difference. I thought that thisform.release was supposed to make the thin go away. Is there any way I can get the calling form to go away so that the called program can run in the main window (desktop)?
>>> Any help or suggestions would be appreciated. This is the first time that when I've had a problem, the answer wasn't immediately found in UT cuz someone else asked the same question. You folks are GREAT!!
>>>
>>>Pete
>>You don't need to close the form.
* Commandbutton.click
>>activate screen
>>? whatever you like
Cetin
>
>Cetin,
>You are incredible! I looked at the
activate
command and didn't think that it applied. Your suggestion absolutely worked! Now I've got to figure out how to make the main sceen be on top. Any ideas why the calling form doesn't want to go away?
>Oops, nearly forgot. Thank you very much!
>Pete
Pete,
calling form is child of main. There are many ways to get it off road. Simple one :
*Command.click
thisform.windowstate=1 && Minimized - check number could be wrong
activate screen && Or this line in prg
do myprg
thisform.windowstate = 0  && Prg finished,Restore to normal
I think it's a little early for other ways. (One is to set caller form with showwindowtype=1 - as top level).
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
Next
Reply
Map
View

Click here to load this message in the networking platform