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

[REBOL] Re: VID: rate question

From: cyphre:seznam:cz at: 11-Nov-2002 11:51

Hi Robert, ----- Original Message ----- From: "Robert M. Muench" <[robert--muench--robertmuench--de]> To: <[rebol-list--rebol--com]> Sent: Saturday, November 09, 2002 11:02 AM Subject: [REBOL] Re: VID: rate question
> Hi, ok thanks for the tip. I now tried to HIDE the container face and > this seems to stop the timers as well... Just wondering. >
Yes, HIDE command recursively stops timers in all subfaces which is logical and very handy in many situations, try following code: my-feel: make face/feel [ engage: func [f a e][ if a = 'time [ print [f/text "face time event"] ] ] ] view layout [ bx: box red with [ rate: 1 text: "red" feel: make my-feel [] pane: make face [ text: "blue" color: blue offset: 20x20 size: 30x30 rate: 1 feel: make my-feel [] ] ] button "hide" [hide bx] button "show" [show bx] ] I would also invite a little improvement for recursively stopping timers without the need to hide all the faces. It is more than one year when holger answer to my question on /Express cofnerence: Removing timeouts without hiding a face ? The solution is probably something like face/changes: 'timeout show face" in the next version. We are already using face/changes in some other places to limit the work show has to do, and to avoid flickering. Seems like a natural addition." Question for Carl: Would be possible to add such feature into the upcomming new version of /View? regards, Cyphre