[REBOL] Re: Field event "missing in action"
From: cyphre:volny:cz at: 18-May-2001 16:10
Heya Brett ;)
> Tab key and Enter key activate the alert. But clicking on the close -
> icon ie the X at the top right
> of the window does not activate the alert... I'm wondering how I can get
> 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.
if I've understood your problem here is the solution:
insert-event-func func [f e][if e/type = 'close [alert "don't touch this
button!" return none] return e]
view layout [ f: field [alert "activated"] ]