1 个已接受解答
已接受的解答
你需要使用列框里面的展示盒表框设置字体大小。
Names Default to Here( 1 );
New Window( "Col Box Font Size",
table box(
scb = Col Box( "Message")
)
);
tb = {};
text_list = {"Hello, world!", "One Flew Over the Cuckoo's Nest", "Return to sender"};
for (i = 1, i <= nitems(text_list), i++,
tb[i] = text box(text_list[i]);
tb[i] << set font size(12);
scb << append(tb[i]);
);
3 条回复3
您可以在脚本索引中搜索(过滤)视图。 此过滤器显示响应 << Set Font Size() 消息的显示框是有限的:
表格框不在其协议中包含此消息。 此示例脚本显示了它如何与其中一些显示框一起使用:
Names Default to Here( 1 );
New Window( "Font Playground",
Outline Box( "Text All Over the Place",
tb = Text Box( "Hello, world!" ),
teb = Text Edit Box( "Hello, world!" ),
scb = String Col Box( "Message", { "Hello, world!" } ),
)
);
Wait( 3 );
{ tb, teb, scb } << Set Font Size( 18 );
这篇帖子最初是用 English (US) 书写的,已做计算机翻译处理。当您回复时,文字也会被翻译成 English (US)。
你需要使用列框里面的展示盒表框设置字体大小。
Names Default to Here( 1 );
New Window( "Col Box Font Size",
table box(
scb = Col Box( "Message")
)
);
tb = {};
text_list = {"Hello, world!", "One Flew Over the Cuckoo's Nest", "Return to sender"};
for (i = 1, i <= nitems(text_list), i++,
tb[i] = text box(text_list[i]);
tb[i] << set font size(12);
scb << append(tb[i]);
);
这篇帖子最初是用 English (US) 书写的,已做计算机翻译处理。当您回复时,文字也会被翻译成 English (US)。