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

[REBOL] Rebol/View 'Key Event Problem

From: tmoeller:fastmail:fm at: 7-Oct-2009 16:45

Hi, i am just writing a small editor for myself which should have a realtime wordcount. Simplified i have following situation: editor: layout [ mytext: area ifo: info btn "Close" [unview]] view editor I am not too familiar with events in rebol. From the docs i learned that i have to change the area definition to something like the following to make the area react on key events: mytext: area feel [ engage: func [face action event] [ if action = 'key [mylen: length? parse mytext/text none ifo/text: join "Wordcount: " copy to-string mylen show if ] But just adding the feel to the area doesn't work. What am i missing?? Thorsten -- http://www.fastmail.fm - IMAP accessible web-mail