Re: clear events Issue

Author: Gene Wirchenko

Posted: 2013-01-31 at 11:14:29

At 17:04 2013-01-30, Frank Cazabon <frank.cazabon@gmail.com> wrote:

>you should really only have one READ EVENTS (in your main program

>and nowhere else) and one CLEAR EVENTS in your application. You

>shouldn't have to use CLEAR EVENTS to close a form.

I do not have anything else but the form needing event

handling. If I do not clear events in the form, then the program

just sits there waiting for events. (In my app, I have a menu and

the clear events is in there on the Exit selection.)

>It sounds like you want your exit button to act like a cancel button.

Well, no. I want some buttons to not trigger validation. Exit

is but one of them. Cancel (if the documentation is correct) only

allows for one such button.

I also want a Reset button which will exit the adding/editing

of a row but still have the form active. (Most of my forms do not

call up rows on entry. One has to specify form actions (Add, Edit,

Delete, OK, Reset, Exit) with each of these buttons enabled/disabled

depending on state. (For example, when Adding, Add, Edit, and Delete

are disabled and OK, Reset, and Exit are enabled.)

>Set the buttons Cancel property to .T. and then in your validation

>check for LASTKEY() <> 27. Again, this is off the top of my head as

>I haven't had to deal with the nitty gritty like this in a long

>time. Note that pressing the Escape key will now call your exit

>button's click method.

[snip]

Sincerely,

Gene Wirchenko

_______________________________________________

Post Messages to: ProFox@leafe.com

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/20130131171437.CWGC5280.priv-edmwes50.telusplanet.net@edmwcm02

** 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.

©2013 Gene Wirchenko