This is what I ended up with over the last 3 days.

Seems to work ok but I’m dotting my I’s and crossing my t’s still so there 
might be something I missed

 

WITH thisform

      .beforeadd = RECNO()

      thisform.cmd_save.Enabled= .T.

      thisform.cmd_cancel.Enabled= .T.

      thisform.cmd_add.Enabled=.f.

      thisform.cmd_bottom.Enabled= .F.

      thisform.cmd_browse.Enabled= .F.

      thisform.cmd_close.Enabled= .F.

      thisform.cmd_delete.Enabled= .F.

      thisform.cmd_next.Enabled= .F.

      thisform.cmd_previous.Enabled= .F.

      thisform.cmd_top.Enabled= .F.

      thisform.txtDescriptio.Enabled= .T.

      thisform.txtDonatedby.Enabled= .T.

      thisform.txtNumber.Enabled= .T.

      thisform.txtDescriptio.GotFocus

      CURSORSETPROP( [buffering], 3 )

      .refresh

ENDWITH

 

 

 

 

From: Virgil Bierschwale [mailto:[email protected]] 
Sent: Sunday, April 20, 2014 8:03 AM
To: ProFox Email List
Subject: Re: nitty gritty stuff

 

thanks, that is the problem I'm having.

 

On Sat, Apr 19, 2014 at 9:10 PM, Dan Covill <[email protected]> wrote:

I started using enabled=.f., but it didn't quit work the way I wanted because 
you can still get focus.  So I ended up having the When() function return the 
value of the form boolean EditMode.
So the fields can't be clicked on until you press the edit button, which sets 
EditMode=.T.
Dan

> Date: Sat, 19 Apr 2014 19:02:11 -0400
> From: [email protected]
> To: [email protected]
> Subject: Re: nitty gritty stuff
>
> On 19/04/2014 06:20 PM, Virgil Bierschwale wrote:
> > In other words, when they display the form, I want it to be read only, and
> > when they hit the edit button, then I want them to be able to edit and make
> > active the save and cancel button.
> >
>
> Maybe you want to set the enabled properties of all the controls to
> enabled = .F. or maybe Readonly = .T.
>
> Check out the SETALL() command.
>
> This should give you a quick way to do it.



--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to