Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create Form Using Wizard.
Message
From
12/11/2000 08:16:12
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00438711
Message ID:
00440776
Views:
9
Roland,

You'll either run into this now, or run into this later.

The wizards don't always do what I want, so I never use them, except for the Setup Wizard.

In order to avoid writing a lot of code you create classes for your buttons, write the code once, and then reuse the classes for each project you do. That's the beauty of OOP. Some people avoid writing the code for buttons like this by purchasing a third-party framework like Visual Fox Express, Visual Pro-Matrix, etc. Some use Codebook, which is free, but not well documented.

What you're saying is that you don't want frozen dinners but you don't want to cook either. The only thing in between is to use a framework. Using a framework is like buying a jar of Prego Sauce and a package of ground meat, to which you can add some extra oregano.

But you can't have life handed to you with no coding to do. After all, we are software developers.

I use a framework that came on a CD with VFP6 Enterprise Development by Paddock, Petersen, and Talmadge. Less expensive than some of the commercial ones, and simpler and more suited to my needs. Then I've doctored it up a little to work the way I want. I can edit the code in the base class and cause changes in all the buttons, or edit the code in a particular instance of a button, which changes only the behavior of that particular button.

One of the ways I did the "doctoring" was to read Chapter 10 of the Programmer's Guide that comes with VFP6 on how to work with controls.



>Hi Cindy,
>
>The buttons that I 'am talking about are the ones created by the Form Wizard. The buttons that print, edit, save etc. and are automaticaaly added by the wizard if you want them.
>
>I don't like the print button and the find button functions. The other button are OK. New/Edit/Save etc. I can't find a way to edit the code of the buttons or a way to delete the ones I don't want.
>
>How would I create my own buttons that will easily do edit/save/add/new/ etc.
>without a lot of coding. Keep it simple like the wizard buttons (No Coding).
>
>Hope this makes sense!
>
>Thanks in advance!
>Roland...
>===================================================================
>
>>Roland,
>>
>>Create your form with the buttons the way you want most of them. Save and modify the form.
>>
>>(If you have a button set, right click and choose edit) then right click and bring up the Properites sheet.
>>
>>Select the button you want, set the caption to "Print" or whatever you want. Set the picture to (blank) by just deleting the path and name of the picture. Or, do the opposite - delete the text and add the picture.
>>
>>Hope this helps.
>>
>>
>>>Hi,
>>>
>>>How do you specify that you want all picture buttons except certain ones? (ie. not the print button)...
>>>
>>>Thanks in advance!
>>>Roland...
Previous
Reply
Map
View

Click here to load this message in the networking platform