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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EXE BUILD PROBLEM

Status
Not open for further replies.

teknik

Programmer
Feb 27, 2001
33
IN
When we build an EXE and RUN it the forms called from the menu are displayed, but they do not take any user input.

Our Main Program is a MAIN.PRG file, its Code is :
DO SETENVIRONMENT
_Screen.WindowState=2
_Screen.Visible=.T.
DO FA.MPR
READ EVENTS

 
teknik

Suggest you call your main form from MAIN.prg and not from the menu, which is the conventional way of starting an application

DO SETENVIRONMENT
_Screen.WindowState=2
_Screen.Visible=.T.
DO FA.MPR
DO FORM MAIN
READ EVENTS

Chris
 
In our application we don't have a main form as such. We are calling all the forms from the menu. The appropriate forms are displayed but the controls such as command buttons, option buttons etc. do not respond. Please let us know if any specific properties for the forms to be called from the menu are to be set.
 
teknik

In our application we don't have a main form as such. We are calling all the forms from the menu.

You may get this to work - I personally wouldn't bother.

There are problems with this approach, which is why it isn't working, and hence your question.

Use a main form and call your other forms from there.

Chris :)
 
Hello.

There are no problem at all calling the forms from the menu. I usually work in this way to give (forgive me, all FoxPro Gods :)) the impression that the application is written in Visual Basic. So, in this way it should be a main window with a menu bar. Then the menu should run the forms. I know for sure that this way works.

It seems to me that the forms have a problem. Please be more specific. Are you using a base class for forms? In this case, just to be sure, please, can you post the code from menu? I mean DO FORM commands?

Thank you

Grigore Dolghin
 
We are not using base class for forms. The forms are created by a simple method of MODIFY FORM <Form Name>. Most of the forms called through menu have the WindowType Property set to 1 - Modal. The forms are called form the menu in the following way :
DO FORM <Form Name>
 
Grigore

You may get this to work - I personally wouldn't bother

To explain this further, I also developed applications in the way you have described and equally abandoned them in favour of the more traditional methods. Users did not like the initial blank screen.

It is not a question of whether the technique will work, more a question of whether teknik will get it to work, and teknik already has problems, which may or not be related to the methodology of the project.

If teknik is in the early stages of acquiring VFP skills and knowledge, then I am simply suggesting stick to the straight and narrow.

Chris :)

 
teknik

The symptoms you describe sound as though THISFORM.Enabled = .F.

As you may have created other forms using MODI FORM formname from an original form, all these forms may be in the same state.

Might be worth checking out.

Chris :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top