[REBOL] Field color change on error.
From: louisaturk:coxinet at: 16-Oct-2002 23:55
Hi rebols,
I want the background of the field to turn red when an invalid email is
entered....and also the font's color and style (yellow and bold). How do I
do it?
view layout [
lab "email:" email: field [
if not find value "@" [
replace value value "<<<<< INVALID EMAIL >>>>>" ; <====<<< WORKS
face/color: red ; <=====<<< DOESN'T WORK.
backdrop red : <=====<<< DOESN'T WORK
show face
]
] return
]
This is my first serious try at gui proramming with rebol/view, so if you
see anything else wrong with the above, please point it out.
Thanks,
Louis