Note: This was a question on chat
How do I change the style of the button on press?
l: layout [
style bteal button teal
style bred button red
b1: bteal "Ok" [b1/style: 'bred]
]
view l
Want to change like this on button
click:
The answer has probably something to do with vid being a dialect.
Also, how the style
word evaluates it's content
Addendum
Probably not.
Before:
>> ? b1/style
B1/STYLE is a word of value: bteal
After:
>> ? b1/style
B1/STYLE is a word of value: bred
So, what is being set is correct. Perhaps an event needs to be triggered?