[REBOL] input area in a custom face
From: anohin::va::gmail::com at: 30-Jul-2007 16:22
Hello!
I have a set of custom faces, and want to have an input area to change
face/text. Input area should be drawn on double-click on the face. I've made
code, which changes face/text directly:
if action = 'down [
data: event/offset
time1: time2
time2: now/time/precise
either double-click? time1 time2 0:0:0.4 [
face/text: "Changed!"
show face
time1: time2
]
It works perfectly. Now, when I make something like
a-pane: layout [area 222x22]
...........
if action = 'down [
data: event/offset
time1: time2
time2: now/time/precise
either double-click? time1 time2 0:0:0.4 [
face/pane: a-pane
show face
time1: time2
]
I can't see any changes in the drawing of a face, and it's a pity for me, of
course.
Please, could you explain me, how should I draw a face in a face. Thank you
for reading this (indecipherable) question.
Bakka