Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: prasanna kunder
  Where is prasanna kunder?
 mumbai
 India
 prasanna kunder
 To: Stefan Wuebbe
  Where is Stefan Wuebbe?
 Hamburg
 Germany
 Stefan Wuebbe
 Tags
Subject: RE: how prevent accident key press
Thread ID: 331357 Message ID: 331365 # Views: 38 # Ratings: 0
Version: Visual FoxPro 9 Category: Forms
Date: Thursday, December 29, 2011 10:05:06 AM         
   


> > using this method
> > we must press first save or cancel button
> > then we can go any button
> > in this case if user press new, he doesn't make any changes
> > then also he must press cancel button
> >
> > sir what i am asking
> > if we make properties
> >
> > thisform.change = .f.
> >
> > after every object in form check interactive change
> > thisform.change = .t.
> >
> > any idea
> > thanks
>
>
> You are right, there is the traditional way: the form would have an "EditMode" and probably also an "AddMode", and if both are true, navigation as well as any "Add" and "Edit" buttons would be disabled while "Save" and "Revert" would be enabled.
> In turn, if EditMode=.F., "Save" and "Revert" would be disabled and all others enabled.
>
> (You can use Vfp's "Form Wizard" to create a kind of example of that approach.
> Added: the Form Wizard itself is a debatable thing, many people including me would recommend not to use it because its parent classes are a little buggy, but IMO it's not bad to see how things can be done and sometimes how things should not be done.)
>
>
> And the alternate way: as opposed to the previous design, there would no "Edit" button but any interactive change would automatically turn form.EditMode=.T. so that again navigation as well as "Add" buttons would get disabled while "Save" and "Revert" would be enabled.
> (So that the user would again need to click either "Save" or "Revert" to get back into navigation/view mode, but it would be easier to get into Edit mode.)
>
>
> Does that help?
> -Stefan

thanks again

ENTIRE THREAD

how prevent accident key press Posted by prasanna kunder @ 12/29/2011 8:32:41 AM
RE: how prevent accident key press Posted by Jun Tangunan @ 12/29/2011 8:37:43 AM
RE: how prevent accident key press Posted by prasanna kunder @ 12/29/2011 8:39:59 AM
RE: how prevent accident key press Posted by Jun Tangunan @ 12/29/2011 8:49:37 AM
RE: how prevent accident key press Posted by prasanna kunder @ 12/29/2011 9:04:46 AM
RE: how prevent accident key press Posted by Stefan Wuebbe @ 12/29/2011 9:16:46 AM
RE: how prevent accident key press Posted by prasanna kunder @ 12/29/2011 10:05:06 AM
RE: how prevent accident key press Posted by Zul Rahim @ 12/29/2011 11:06:00 AM
RE: how prevent accident key press Posted by Muhammad Majid Ali Attari @ 12/30/2011 6:29:04 AM
RE: how prevent accident key press Posted by prasanna kunder @ 12/30/2011 8:48:51 AM
RE: how prevent accident key press Posted by Jun Tangunan @ 12/30/2011 7:17:14 AM
RE: how prevent accident key press Posted by prasanna kunder @ 12/30/2011 8:48:14 AM