Home   Archive   Permalink



Small visual bug with drop-down and/or btn

A btn will stay visually pressed down if you click it while a drop-down is... dropped down.
    
R E B O L [title: 'test']
view center-face layout [
     size 300x300
     a: drop-down data ['1' '2' '3']
     return
     b: btn 'test' [flash a/text wait 1 unview]
]

posted by:   Andrew     12-May-2017/17:42:08-7:00



>> data: ['1' '2' '3']
** Syntax Error: Invalid word-lit -- '1'
** Near: (line 1) data: ['1' '2' '3']
    
You should use "foo" ie. double quotes for strings. Single quotes are for literals
    
>> a: 'word'
== word'
>> a: "word"
== "word"
>>


posted by:   Graham     12-May-2017/18:12:17-7:00



I use double quotes, but somehow they get converted to single quotes using windows' clipboard or this website's character set or something.
    
Test typing double quote: ""
test pasting ""

posted by:   Andrew     12-May-2017/18:40:19-7:00



I guess no bug there...
    
copy and pasted from kate:
    
R E B O L [title: "test"]
view center-face layout [
     size 300x300
     a: drop-down data ["1" "2" "3"]
     return
     b: btn "test" [flash a/text wait 1 unview]
]
it has double quotes when I paste it.

posted by:   Andrew     12-May-2017/18:41:38-7:00