` Trapping Esc key and preventing window exit (Steve Parker ) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Trapping Esc key and preventing window exit
1999-11-07 -- Steve Parker
 
In a window template procedure: Alert the EscKey (you will have to manually type its name in). Then, in Window Event Handling for the Alert key: If KeyCode() = EscKey Message('You must select a pricing action.','Warning',Icon:Hand) Select(1) Cycle Return Level:Notify End will prevent the user from closing the window on the Esc key.


Today is April 28, 2024, 7:32 am
This article has been viewed 35110 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: