Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ken Murphy
  Where is Ken Murphy?
 Springhill
 Canada
 Ken Murphy
 To: Brian Walder
  Where is Brian Walder?
 Minehead
 United Kingdom
 Brian Walder
 Tags
Subject: RE: Accessing the Save button in a wizard cr
Thread ID: 143204 Message ID: 143238 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Forms
Date: Sunday, August 26, 2007 3:34:26 PM         
   


> Hi All
>
> Having created a form via the wizard, and being restricted to only using records from two tables, I have subsequently added three or four more tables to the form. However the functionality of the wizard buttons (Top, Bottom, Save, Add, Edit etc etc) only related to the original two tables. I then managed to get all relevant fields to become enabled by adding code into the Edit or Add buttons, however I cannot find any way of adding code to the Save button, which only appears to be enabled when in Edit or Add mode.
>
> Can anyone point me towards where I should be adding code to suit my adapted form ??
>
> Thanks in advance.


Brian,

I have to agree with Mike here - don't use the wizards to create your forms. The wizards create forms that are difficult to maintain, they are user unfriendly and in my mind are UGLY looking. Take a look at this form:



1 - You have already seen how wizard based forms are difficult to maintain, so I won't expand further.

2 - Wizards are unfriendly. I use something called a "candidate list" rather than the "top/bottom/prev/next" buttons. Let's say that your main table here contains 1,000,000 records and you want to navigate to a record located somewhere in the middle of the table. You would have to click "next" quite a few times. In my mind, this is an "unfriendly" way of desigining a from. With a candidate list, you give the user a way to do a quick search of the table. For example, select all of the records where the surname is "Murphy" and then display these in the "candidate list." Your user can now scroll through the list quickly as there will only be a small number of records where the surname is "Murphy."

3 - Wizards are ugly. If you look through the archives, you will see all sorts of GREAT looking forms. I designed my form class to look a lot like Outlook 2003, but you can also find forms that use aeroglass, etc. Let's face it, the form wizard leaves a LOT to be desired.

Most importantly, you can create your own form class and use it to create your own forms in about the same amount of time that it takes to use the form wizard. The class that I use here allows me to create a simple "Parent/child table" form in about 5 minutes. The form wizards do have their place - they are great as a learning tool, but I would not ever use one in production code.

Ken
You shall know the truth - and the truth shall set you free. (John 8:33)

ENTIRE THREAD

Accessing the Save button in a wizard cr Posted by Brian Walder @ 8/26/2007 1:12:13 AM
RE: Accessing the Save button in a wizard cr Posted by Mike Gagnon @ 8/26/2007 2:25:53 PM
RE: Accessing the Save button in a wizard cr Posted by Ken Murphy @ 8/26/2007 3:34:26 PM