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

[REBOL] Re: VID, layout, DO, init, hide, show === ISSUE + BYPASS THE ISSUE

From: rebol:meurrens at: 27-May-2003 10:21

Hi, Thanks Jaime & Gregg. I didn' t know the existence of the show? attribute for faces. Is it documented somewhere??? I did not find it in the view-guide.. Any URL ??? Seems to have strange properties demonstrated by this small script that you may run on your REBOL/VIEW machine More info on show? ??? Regards, </marc> ============================================ REBOL [] ;;; mm-id-stuff.r view layout [ backcolor snow text {bg: button with [show?: false ttt: "blabla" ]} bg: button green 500x30 {bg: button with [show?: false ttt: "blabla" ]} with [show?: false ttt: "blabla" ] button khaki 500x30 "alert bg/ttt bg/ttt: to-string now ;;; display & update ttt" [ alert bg/ttt bg/ttt: to-string now ] button olive 500x30 "alert to-string bg/show? ;;; display current status" [ alert to-string bg/show? ] button rebolor 500x30 "show bg ;;; the normal way" [ show bg ] button red 500x30 "hide bg ;;; the normal way" [ hide bg ] button blue 500x30 "bg/show?: true ;;; (1) " [ bg/show?: true ] text "(1) The green button will only really show up on mouse over..." text "PLEASE, MOVE NOW YOUR MOUSE TO THE POSITION OF THE GREEN BUTTON" button orange 500x30 "bg/show?: false ;;; (2) (3) " [ bg/show?: false ] text "(2) IF GREEN WAS ALREADY HIDDEN, no effect ..." text "(3) IF GREEN WAS SHOWN, no effect, but then the normal hide will not work..." text " until the button is properly reinitiated by a show in the normal way" button black 500x30 "unview" [ unview ] ] ==================================== Prof. Ir Marc Meurrens, Brussels (be) TEL: +32 (0)2 537 2812 FAX: +32 (0)2 537 7645 EMAIL: [marc--meurrens--org] URL: http://www.meurrens.org/ REB: http://rebol.mksa.net/ PGPKEY: http://www.meurrens.org/pgp/ Please don't mail me attached files, instead, use my 'exchange area' : EXCHANGE AREA: http://www.meurrens.org/exchange/ (HTTP/FTP upload/download of temporary/persistent files)