Home   Archive   Permalink



How to make show update window?

R e b o l[]
    
color1: red
    
block:
[
    name1: field color1 'white'
        [            
         color1: reduce compose [(to-word name1/text)]
         show name1
     ]
        
]
    
view layout block

posted by:   OneArb       14-Jan-2017/19:34:35-8:00



R E B O L []    
color1: red        
block: [
     name1: field color1 "white" [            
         name1/colors/1: do face/text
         show name1
     ]        
]    
view layout block

posted by:   Nick       14-Jan-2017/20:11:31-8:00



Thanks Nick!
    
What is face/color for?
    
Is there a runtime way to refer face/colors/1 face/colors/2 as face/color face/color-sel instead?
    


posted by:   OneArb       15-Jan-2017/12:04:47-8:00



In not all, but many styles (widgets), face/color is used for the obvious color of the face:
    
view layout [box [face/color: random 255.255.255]]
    
I'm not sure I understand the other part of your question. At some point in your code, you'll need to change the color property of the intended object. Can you provide a code example in which that wouldn't possible?

posted by:   Nick       15-Jan-2017/21:07:08-8:00



R E B O L []    
color1: red        
block: [
     name1: box color1 "click box below" [
         name1/color: color1
         show name1
     ]
     name2: box color1 "white" [    
         color1: do face/text
         do-face name1 1
     ]
]    
view layout block

posted by:   Nick       15-Jan-2017/22:14:08-8:00