|Subject:||Re: Permitting a form to close
|Date:||Thu, 9 Mar 2017 17:06:26 -0500
|From:||Jim Moseley <email@example.com>
Our app used to have this implemented, but we backed off for a few reasons:
1. Users got mad that 'X' didn't do what they wanted.
2. We changed the 'X' to do the same as an OK button (or however you
want to close the form).
This has made our app much more usable.
The key is to not put all your 'close the form' code in the
OKButton.pushButton() method. Instead, create a 'doCloseForm()' method
and just call it if OKButton is pressed, or if the form's action is also
trying to close the form.
Finally, if you really don't want them clicking the 'X', why even show
it? If they are Dialog forms, you can remove the control buttons. If
you design the form, hit F6 to get Window Style. From there, just
uncheck under 'Title bar properties' all 3 choices - Control Menu (the
X), min & max buttons.
On 3/9/2017 4:53 PM, Kevin Baker wrote:
> anyone have a copy of this information from techtricks.com?
> "Liz" wrote in message news:3BEAD448.250EDA53@thedbcommunity.com...
> Check out http://www.techtricks.com/paradox/formexit.php3
> Philipp Crocoll wrote:
>> Hi all!
>> I want that the users of my PDox form are not allowed to close the Form
>> through the "X" of the Window. How can I achieve this?