`
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) Printed November 23, 2024, 2:11 am This article has been viewed/printed 35209 times. |