[field] Unfocusing a field
[1/3] from: carl::cybercraft::co::nz at: 8-Oct-2004 8:35
Hi all,
I want to have something evaluated when I press Enter in a field, but not when the field
is just unfocused. ie, if you enter something in the following layout (without pressing
Enter)...
view layout [field [print "xx"] button "Cancel"]
and then click on Cancel, the field's block is evaluated. Is there a simple way to prevent
that happening?
-- Carl Read
[2/3] from: gabriele::colellachiara::com at: 8-Oct-2004 10:44
Hi Carl,
On Friday, October 8, 2004, 3:44:25 AM, you wrote:
CR> and then click on Cancel, the field's block is evaluated.
CR> Is there a simple way to prevent that happening?
remove system/view/screen-face/feel/event-funcs
:-)
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/
[3/3] from: antonr::lexicon::net at: 9-Oct-2004 0:26
>> layout [f: field]
>> print mold f/flags
[field return tabbed on-unfocus input]
>> view layout [field "one" [print 'one] field "two" [print 'two] with
[append init [deflag-face self on-unfocus]]]
Anton.