用 Red 语言从列表中获取字符串到 VID
Getting strings from a list into VID in Red language
我正在尝试使用动态创建的 gui 元素创建面板:
sentlist: ["A" "B" "C"]
main: function [slist] [
view collect [
keep [below]
repeat i length? slist [
keep[
text slist/i ; THIS STEP IS NOT WORKING
field "" ] ] ] ]
(main sentlist)
一系列字符串被发送到用于放置文本标签的函数。 GUI window/panel 可以正常打开,但文本元素上没有任何标签。问题出在哪里,如何解决?感谢您的帮助。
sentlist: ["A" "B" "C"]
main: function [slist] [
view collect [
keep 'below
repeat i length? slist [
keep compose [text (slist/:i) field "" ]
]
]
]
main sentlist
我正在尝试使用动态创建的 gui 元素创建面板:
sentlist: ["A" "B" "C"]
main: function [slist] [
view collect [
keep [below]
repeat i length? slist [
keep[
text slist/i ; THIS STEP IS NOT WORKING
field "" ] ] ] ]
(main sentlist)
一系列字符串被发送到用于放置文本标签的函数。 GUI window/panel 可以正常打开,但文本元素上没有任何标签。问题出在哪里,如何解决?感谢您的帮助。
sentlist: ["A" "B" "C"]
main: function [slist] [
view collect [
keep 'below
repeat i length? slist [
keep compose [text (slist/:i) field "" ]
]
]
]
main sentlist