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

Really stupid FORM question 1

Status
Not open for further replies.

Scott24x7

Programmer
Jul 12, 2001
2,828
JP
I must be daft...
It's been a few years, and I can NOT seem to find this simple issue.
I have a form class (Largeformbase) that I use for forms in my applications. I have a requirment to make a couple of new forms, which are not based on that form class at all, and have very different appearance needs. So, I trundeled off and made a new Smallformbase class, put into my Formsclass library.
But when I click "New form" I only get the one that is specified (Largeformbase) in my Tools section for Formclass. Unless I change this to the small one and open it that way, I always only get Largeform, and if I want to just "Create a form" out of thin air, I can't do that either. I've looked everywhere, and just can't find anything that talks about how to do this in the help files.
Can someone point me in the right direction? I know I've done this in the past... I must have!

Thanks



Best Regards,
Scott

"Everything should be made as simple as possible, and no simpler."[hammer]
 
Mike,
Yeah, that's what I did, but do I have to go to Tools every time I want to use a differnt form when I click the "New Form" button? If I want to make one from scratch, do I have to clear my existing Form Class? (That's just a pain...)



Best Regards,
Scott

"Everything should be made as simple as possible, and no simpler."[hammer]
 
That was it! Thanks for that.


Best Regards,
Scott

"Everything should be made as simple as possible, and no simpler."[hammer]
 
You know, I've heard about "Project Hooks" but I have no clue how they work... can you explain them? Would love to learn.



Best Regards,
Scott

"Everything should be made as simple as possible, and no simpler."[hammer]
 
Although project hooks are cool, I don't think it's the right tool for this job. AIUI, you want to use one form class in some cases and a different one in others.

A project hook is a class that lets you fire code when various events occur in the Project Manager. For example, you can force users to add a comment when creating new files, or remove printer-specific information from reports before building a project.

In your case, assuming you're in VFP 8 or 9, the Toolbox offers an easy solution. Use it instead of the Form Controls toobar. To create a new form based on a specific class, right-click on that form class and choose Create Form (or something like that).

Tamar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top