Hi Romano, Great. This is the kind of guru trick I was hoping for. Where did you learn stuff like that ? May be somebody in the List can explain the "with" real meaning, when to use it, etc ?
Patrick ----- Original Message ----- From: "Romano Paolo Tenca" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, September 29, 2002 10:32 PM Subject: [REBOL] Re: draw has no access to the current face > Hi pat, > > > The idea is to replace x-color with the desired color at runtime. Finally > > the desired color is stored in the face/user-data . > > > > draw-layout: [ > > h2 "Draw buttons" > > > > style draw-button box 24x24 effect [ > > draw [pen black fill-pen x-color circle 12x12 10]] > > [...] > > Unfortunately face/user-data is unknown in this block. > > Is there a way to access the face object here? That is my question ! > > Try: > > view layout [ > style draw-button box 24x24 with [ > effect: [draw [pen black fill-pen user-data circle 12x12 10]] > ] > draw-button user-data red > draw-button user-data green > ] > > So you magically bind the effect block words to the face object words. > > --- > Ciao > Romano > > > > -- > To unsubscribe from this list, please send an email to > [EMAIL PROTECTED] with "unsubscribe" in the > subject, without the quotes. > ________________________________________________________________ Etudiant: Wanadoo t'offre le Pack eXtense Haut D�bit soit 150,92 euros d'�conomies ! Et pour 1 euro de plus, re�ois le CD-ROM du jeu Dark Age of Camelot + 1 mois de jeu en r�seau offert ! Clique ici : http://www.ifrance.com/_reloc/mail.etudiant -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
