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

[REBOL] Re: The same FIELD, twice

From: carl:cybercraft at: 31-Jul-2002 0:54

On 30-Jul-02, Philippe Oehler wrote:
> Hey, > i need to have the same field two times in my VID 'window. > I mean i want when something is done to the first one is done to the > second, too.. and it's not only the same content (when the user add > some characters to the field, but also when the user correct, or > click between the differents characters in the content of the > field.. > I thought that maybe giving the same name to 2 different fields > could resolve that, but it's not the case.. Someone has an idea ? > Just one remark : my second one is without a background.... and > that's the only difference between them.
Hi Philippe, You've probably got this far, but to share a string between fields just give them the same string in the layout. ie...
>> str: ""
== ""
>> view layout [field str field str]
That's only half of what you want though. I would think editing the fields' feel/engage function would be required to get them to update together. See the block after 'key in engage. Try this to see a field's feel...
>> view layout [f: field] >> probe f/feel
Others will have to tell you precisely what to do there though. Hope that helps to get you on your way, though. -- Carl Read