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

Adding cmdOK button from buttons.vcx to a form

Status
Not open for further replies.

beedubau

Programmer
Jan 7, 2003
97
AU
I haven't used this class before. I do not know how to incorporate the cmdOK button from this class into my app.

I am having trouble closing a form (s) and want to try this.

I have copied the files buttons.* into my prg folder for the app.

I have added buttons class to my app.

Now what - help please?


Regards

Bryan
 
Bryan,

Are you referring to the wizard classes? If so, I don't think you can simply take one button in isolation and add it to a form. The classes are designed to work together.

What is your ultimate aim? If you simply want a button that closes the form, just add a normal button, and place THISFORM.Release in its Click event.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Hi Mike,

In a previous thread thread1254-1385616 I spoke about a difficulty I had closing a form.

None of the methods mentioned there worked UNTIL I removed a reference to a cursor used in a combobox.

This time I have developed a sequence of forms thus

1 Hand coded form with buttons etc and a grid.

2 Within one of the grid fields is a control which when clicked leads to a Procedure.

3 This procedure leads to a designed form on which a getfile() is one of the options on a button.

4 The 'Close' button with a thisform.release does not close the form but the code continues.

5 I used Olafs method involving a Name and a show() and then a null in the Close button

6 In desperation ( after a search ) I find a command button cmdOK in the aforementioned class.

7 As the Wizard puts buttons on a created form I thought I might be able to use this other button on my form otherwise why is it provided in the buttons vcx. I thought I could add components.

8 I am not very well up on classes!

9 So to summarize - I cannot close a form and am looking at why I can't or how I can.

Thanks

Bryan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top