Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, August 29, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Form level capturing the ESC key
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Form level capturing the ESC keyYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jun 09 1:18 PM
Maybe the OnKeyPress Event.....but does anyone know how to NOT close the form on an ESC key click?

IF Key = 27 THEN......
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Form level capturing the ESC keyYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Jun 09 2:20 AM
This is an easy one....

The problem is that you probably already have a button defined with the Cancel property set to True.

When you create a New Form, if it has a Cancel button, its Cancel property is set to true, which means that when the user hits Cancel, that button's handler gets executed.

How to run your Own code when the user hits Escape:
- Create a New button (doesn't have to be OK or Cancel, it could be set to Custom).
- Set its Cancel property to True.
- Add your code to this button's handler.
When you open up the form, if you hit ESC, the code you added will be executed and the form will NOT be dismissed.

If you rather have the ESC key do nothing, make sure that none of your buttons have the Cancel Property set to true. This way, when the user clicks the ESC key no code will execute.




[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Form level capturing the ESC keyYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Jun 09 3:30 PM
Works pretty darn well!

Thanks!
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Form level capturing the ESC keyYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Jul 09 7:29 AM
Glad to be able to help.
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 8/29/2025 12:00:42 PM