Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing form on ESC
Message
From
22/12/1998 09:37:54
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00169463
Message ID:
00169615
Views:
18
Hi Michel ---

Go to any Windows95 dialog window. The options are generally OK,Apply,Cancel where Enter hotkeys OK and Escape hotkeys to Cancel. This is the standard to which I was specifically referring. Thanks!

>
>What John meant is that the CANCEL button is in so many places in
>Windows, and is the de-facto standard for closing a form, so you might
>as well adhere to the de-facto standard when implementing your
>"Close-on-Escape" form (whether or not you make the button visible).
>
>John was not arguing that the CANCEL button is endemic as regards
>closing a form with ESC.
>
>Michel.
>=================== Original message follows ======================
>
>>I'd have to disagree that the cancel button is endemic. We are modeling our app after MS Outlook. All of the child forms (like the mail message text) that come up, close on ESC, but do not have a Cancel button.
>>
>>
>>>I agree with Josh. The Cancel button is endemic to almost all Windows apps so you're in agreement with standards to have it (and make it visible). So, set Cancel property to .T. and you're cooking.
>>>
>>>
>>>>What is the best way to have a form close with an ESC press?
>>>>
>>>>1) trap the KeyPress=27 event in the form and issue release()
>>>>2) have a button (possibly invisible) set as "Cancel" and issue release() in its click
>>>>3) something else
>>>>
>>>>
>>>>Bob
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform