Red: VIEW: modifying DRAW block inside WITH body does not cause any visual changes

Created on 28 Oct 2017  路  3Comments  路  Source: red/red

Fire up the snippet bellow and move the slider - as you can see, draw block is updated, but radius of a circle remains static:

view [
    b: base 
        with [draw: [fill-pen red circle 40x40 20]]
        react later [
            b/draw/5: to integer! 50 * s/data
            probe b/draw
        ]
    return
    s: slider 
]

However, I expect it to behave exactly as:

view [
    b: base 
        draw [fill-pen red circle 40x40 20]
        react later [
            b/draw/5: to integer! 50 * s/data
            probe b/draw
        ]
    return
    s: slider 
]

Perhaps it's related not only to draw block, but to any series! inside with body. Red version:

>> about
Red for Windows version 0.6.3 built 21-Oct-2017/23:57:00+05:00
status.built status.tested test.written type.review

Most helpful comment

@dockimbel your comment has a typo, it should be has instead of as in the 4th word :nerd_face:

All 3 comments

Your second example has a typo, it should be draw instead of draw: in the VID block.

@dockimbel your comment has a typo, it should be has instead of as in the 4th word :nerd_face:

Thanks, fixed! Making a typo while pointing out a typo... :roll_eyes:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

loziniak picture loziniak  路  5Comments

dockimbel picture dockimbel  路  4Comments

9214 picture 9214  路  4Comments

hiiamboris picture hiiamboris  路  3Comments

rebolek picture rebolek  路  4Comments