使用TAB在红色语言的字段之间移动 [英] Using TAB to move between fields in Red language

查看:85
本文介绍了使用TAB在红色语言的字段之间移动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下简单代码:

Red []
view [
    text "Value of x:"  f1: field "" return
    text "Value of y:"  f2: field "" return
    text "Read Sum:"    tt: text ""  return
    button "Calculate" [
        tt/text: to-string ((to-integer f1/text) + (to-integer f2/text)) ]
    button "Quit" [quit]  ]

如何添加代码,以便可以使用TAB键在不同字段之间移动?显然,这适用于Rebol( http://www.rebol.com/how-to/fields.html ),但在这里不起作用.

How can I add code so that one can move between different fields using TAB key? Apparently, this works in Rebol ( http://www.rebol.com/how-to/fields.html ) but is not working here.

推荐答案

根据

这篇关于使用TAB在红色语言的字段之间移动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆