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

[REBOL] Re: Sensor

From: cybarite:sympatico:ca at: 8-Jul-2001 13:17

Paul, I don't think you want the sensor for what you described. A sensor is an invisible user interface device. But you already have the buttons so just put the action on them. The documentation on this is really quite good and shows how: http://www.rebol.com/how-to/feel.html#sect4.1. You might use a sensor to enable a keyboard event where there is no button that also enables the same action. For example, if you wanted Escape to close a view but do not want to put a Cancel button on the screen. You can see how sensors were used if you look at: Carl's image-sorter.r or Frank's REBTRIS you wrote: