[REBOL] Re: Extending button images.
From: larry:ecotope at: 28-May-2001 14:04
Hi Carl
Seems to work OK on Win98 for the first five buttons. The sixth one is like
a thermometer with a bulb on the far right, don't know what it is supposed
to look like.
-Larry
----- Original Message -----
From: <[carl--pacific--net]>
To: <[rebol-list--rebol--net]>
Sent: Monday, May 28, 2001 1:29 PM
Subject: [REBOL] Extending button images.
Shows how to reuse a button image but keep that nice look.... Let me know
if it works ok on your system.
REBOL []
if not all [view? system/version >= 1.2.0] [alert "Update now." quit]
img: load-thru/binary http://www.rebol.com/how-to/graphics/button.gif
view layout [
backcolor white
image img "Orig"
image 140x38 img "Long" effect [extend]
image 200x38 img "Longer" effect [extend]
image 70x70 img "Square" effect [extend]
image 200x70 img "Big Button" effect [extend]
image 200x38 img effect [extend 3x0]
]