` First field required, cancelling (Jeff Slarve ) - 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: First field required, cancelling
1999-12-01 -- Jeff Slarve
 
Carl [Barnes] figured out a trick for this... I don't remember exactly, but I believe it involved putting ALRT(MouseLeft) on the CANCEL button. Then, on the Event:AlertKey for that button, you would POST(Event:CloseWindow). Otherwise, as you already know, the Event:Accepted gets fired for your entry field upon losing focus. This way, the EVENT:AlertKey happens before the Accepted event Carl notes: What I did was as Jeff described ALERT(MouseLeft) on Cancel and then: OF ?Cancel CASE EVENT() OF EVENT:AlertKey CASE KEYCODE() OF MouseLeft POST(EVENT:Acceted,?Cancel)


Today is November 21, 2024, 7:54 am
This article has been viewed 35207 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: