The same FIELD, twice [part 2]
[1/1] from: info::id-net::ch at: 5-Aug-2002 17:33
Cyphre helped me to make a double appereance of the same field.
Each time the User change one of the field, at the same time,
the other field changes. That was nice. BUT something strange happen when I
validate those field with a simple button. The error produced is : "Invalid
data type during recycling "
I just don't know if it's the cyphre's code that make this thing happen (see
the code below) or if it's a behavior that
I produced : I made a "blink" behavior of 2 boxes. Because i dont know what
is the recycling process, i couldnt response to my question.. Please help.
clignotement: func [] [
triangle-active-box/size: 14x14
triangle-active-box/effect: [arrow 255.45.0 rotate 270]
show triangle-active-box
for i 1 6 1 [
wait 0.4
either ((i // 2) <> 0) [boxclignotementG/color: red
boxclignotementD/color: red][boxclignotementG/color: none
boxclignotementD/color: none]
show boxclignotementG show boxclignotementD
]
]
<cyphre's_code>
view l: layout [
fl1: field with [
feel: make feel [
engage: func [face act event] compose [(copy second get in ctx-text/edit
'engage)
if system/view/focal-face = face/self [
fl2/text: copy fl1/text
show fl2
]
]
]
]
fl2: field with [
feel: make feel [
engage: func [face act event] compose [(copy second get in ctx-text/edit
'engage)
if system/view/focal-face = face/self [
fl1/text: copy fl2/text
show fl1
]
]
]
]
]
</cyphre's_code>