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

Sensor

 [1/3] from: ptretter::charter::net at: 8-Jul-2001 9:57


Anyone know how sensor works? I want to be able to make panels change as a mouse pointer moves across specific buttons which describe what the button will do. I think sensor is the feel that I need. I can't seem any information on this though anywhere in the documentation. Paul Tretter

 [2/3] 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:

 [3/3] from: ptretter:charter at: 8-Jul-2001 17:46


Excellent thanks. This is good information and exactly what I'm looking for. Paul Tretter