Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Field event "missing in action"

From: brett:codeconscious at: 18-May-2001 13:12

Hi List, Hoping someone can help. It seems to me that the action of a field is coded to fire when edits to the field are finalised by moving off the field to another face. But it looks like a close window event is not included. Example, executing the following at a console gives a simple entry form. view layout [ f: field [alert "activated"] ] Tab key and Enter key activate the alert. But clicking on the close - window icon ie the X at the top right of the window does not activate the alert... I'm wondering how I can get it to fire. I know I can trap the close event using detect but I don't know how I can use this to solve the above problem. Why am I doing this? The obvious, set a dirty flag. I know a dirty? flag exists in fields and that one can trawl through all the entry fields to check if any are dirty, but I just want to approach it from another viewpoint - besides my application works "perfectly" except for trapping of the first change and then close window. Brett.