Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grief with TOP LEVEL FORM and READ EVENTS 2

Status
Not open for further replies.

SGLong

Programmer
Jun 6, 2000
405
US
I've been having grief with TOP LEVEL FORM and READ EVENTS. Here's a summary of what I have and what's been happening. I haven't included everything, but hopefully what I have included is sufficient. Is there someone who can point me in the right direction?

** The MAIN program calls the first form (CRONTAB) and starts the events processing. There are three buttons on CRONTAB, Setup, Start, and Quit. Start is disabled until the second form (PROCESS_SET) has been run. Once PROCESS_SET has been run, the user can click on Start to activate the monitoring process. The problem is that clicking on Setup in CRONTAB does not bring up the SET_PROCESSING screen, but the 'Start' button is enabled as if it had been opened, had values set, and closed. When I click on Quit, the CRONTAB window closes and then the PROCESS_SET screen is active in the VFP system.

MAIN.PRG (Very simple - this is all there is to it!)
set status off
set century on
set talk off
do form crontab
read events


CRONTAB.SCX
showwindow=2 (As Top-Level Form)
autocenter=.T.

CRONTAB.INIT
_screen.visible=.f. (To suppress the main FoxPro window)

CRONTAB.UNLOAD
clear events

CRONTAB.COMMAND1 (Setup)
do form process_set

CRONTAB.COMMAND2 (Quit)
thisform.release


SET_PROCESSING.SCX
alwaysontop=.t.
autocenter=.t.
windowtype=1 (modal)

Steve
 
Hi
Set the form process_set as modal form.
in the Process_set FORM
WindowType = 1 && Modal

Hope this helps ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK :)
 
Ramani:

It is already set to MODAL...

Steve
 
I havent tried... but try with following setting..

CRONTAB.SCX
showwindow=0 && (Normal)


ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK :)
 
You should show your second form (ShowWindow property) "As top level form" or "In Top level form".
You second form is probably shown in the invisible main VFP screen. And is therefore not shown.

HTH,
Weedz (Wietze Veld)
My private project:And especially for VFP rookies:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top