|
Pages: [1]
|
 |
|
Author
|
Topic: View Bug? (Read 233 times)
|
|
prk
|
 |
View Bug?
« on: April 23, 2008, 06:26:11 AM » |
|
Hello,
hopefully someone can help me. If the problem is silly I apologize in advance.
Here is the program:
;-------------------------------- bild: layout [ b: button "OK!" blue [f] ]
f: func[][ b/color: green show b print b/color ]
view bild ;--------------------------------
Now, if I click on the "OK!" button print displays '0.255.0' for green but the button remains blue! Is this a bug or somehow my error? I have tested this with both REBOL/View 2.7.6.3.1 and REBOL/View 1.3.2.3. Any help is welcome.
Thanks!
Peter
|
|
|
|
|
Logged
|
|
|
|
|
Sunanda
|
The BTN style is similar to the BUTTON style -- but it works. Also, buttons have two colors (for UP and DOWN) so you may want to set both...Use the COLORS word, not COLOR: This should work: bild: layout [ b: btn "OK!" blue [f] ]
f: func[][ b/colors: reduce [green red] show b print b/color ]
unview/all view bild
|
|
|
|
|
Logged
|
|
|
|
|
prk
|
Hi Sunanda,
many thanks for the quick solution!
Peter
|
|
|
|
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
 |