Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

input area in a custom face

 [1/3] 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

 [2/3] from: sant4:wanadoo at: 30-Jul-2007 16:56


Your problem is probably different from what you think this works perfectly: a-pane: layout/tight [area 222x22] view layout [ box 300x100 with [ feel: make feel [ engage: func [face action event][ if action = 'down [ data: event/offset face/pane: a-pane show face ] ] ] ] ] halt Steeve

 [3/3] from: anohin::va::gmail::com at: 30-Jul-2007 20:10


Steeve, thank you a lot! Bakka On 7/30/07, Steeve ANTOINE <sant4-wanadoo.fr> wrote: