[REBOL] Re: Rollover effect
From: jason::cunliffe::verizon::net at: 19-Jun-2002 22:06
Q1: How to make the button text also change on rollover?
Q2: How do you suggest to wrap the rollover into a widely reusable function for
View?
thanks
./Jason
==================================================================
REBOL []
{Rollover from rebol-list 19-June-2002}
city-rio: LOAD http://www.struhscompany.com/tmp/rio.jpg
city-paris: LOAD http://www.struhscompany.com/tmp/paris.jpg
view layout [
city: image city-rio
button "Rio" feel [
over: func [face act pos] [
face/text: either act ["Paris"]["Rio"]
city/image: either act [ city-paris ][ city-rio ]
show city
show face
]
]
button "quit" red [unview/all]
]