回复:更改字符串列框或表格框的颜色和下划线内容。谢谢彼得。 那是一个很棒的演讲,而且很有帮助。
回复:更改字符串列框或表格框的颜色和下划线内容。Justin Chilton 和我在 Discovery 2018 峰会上做了一个包含 col boxes 的演讲。
在 JSL 中增强您的用户界面(美国 2018 113)
回复:更改字符串列框或表格框的颜色和下划线内容。非常感谢亚尔莫。我感谢对行为的帮助和洞察力。
回复:更改字符串列框或表格框的颜色和下划线内容。您应该能够通过“正确”构建 Col Box 来避免崩溃。 如果我没记错的话 << append 对我有用,但你不能使用 << Set。我之前曾就此联系过支持人员。 问题应该在 JMP17 上得到解决。
我为他们提供的例子是这个(这将使 JMP16 崩溃):
Names Default To Here(1);
stop(); // THIS WILL CRASH JMP
nw = New WindoW("",
Table Box(
cb = Col Box("icons",
Icon Box("Excluded"),
Icon Box("Excluded"),
)
)
);
cb << Set({"a", "b"});
因此,如果我要使用 Col Box 并想替换值,我总是会重建它。
回复:更改字符串列框或表格框的颜色和下划线内容。你好@jthi ,很抱歉打扰您,但我希望您或 JMP 团队的某个人能够进一步详细说明 JMP 在构建列框时崩溃的部分。 关于如何避免这种行为的任何提示?
回复:更改字符串列框或表格框的颜色和下划线内容。您能否进一步详细说明有关 JMP 崩溃的部分?它是可预测的,还是在 col box() 中有大量项目时会发生?在许多情况下,我可能想避免这种情况,因为它很可能用在可以绘制任意数量参数的脚本中。 从几块地块到一千块左右。
回复:更改字符串列框或表格框的颜色和下划线内容。使用 col box 也有一些其他的缺点,例如更难从中获取值,有时在构建 Col Box 时可能会使 JMP 崩溃......但我不知道有什么简单的方法可以改变 String Col Box 标题颜色除了<<文本颜色将改变所有元素的颜色。
回复:更改字符串列框或表格框的颜色和下划线内容。谢谢亚尔莫。 它确实看起来更好,虽然有不能右键单击和“制作成数据表”的缺点,但我认为该功能并不那么重要。
我在这里输入了这两个问题,但我只是自己回答了它们......什么代码将文本更改为蓝色?为什么按钮框只显示为文本而不是我们看到的常见按钮,例如此处的“返回”顶部示例?答案是你的 << Underline Style(1);做这两件事。 似乎它是按钮框的替代显示。 谢谢分享,之前不知道。
回复:更改字符串列框或表格框的颜色和下划线内容。您可以使用 Col Box 而不是 String Col Box 并在 col box 中使用按钮框
Names Default To Here( 1 );
//dummy data table
dt = Open( "$SAMPLE_DATA/Semiconductor Capability.jmp" );
// create a list of columns. In the example table, the first 4 columns are categorical index columns, so we'll use 20 columns starting at column 5 (4 + i)
colList = {};
for( i = 1, i<=20, i++,
colList[i] = as column(dt, 4 + i) << get name();
);
// new window, table box with selectable rows
nw = New Window( "Example",
vlb = vlistbox(
mainOlb = Outline Box( "Table", // used for referencing scrolling back to top
tb = Table Box(
scb = Col Box( "names", {}), // scb will be used later to color in blue to indicate it is a pseudo-hyperlink
)
)
);
);
For Each({col}, colList,
scb << Append(Button Box(col, << Set Function(function({this},
nw << scroll window(cb[Contains(colList, this << Get Button Name)]);
)), << Underline Style(1);
));
);
//append some distributions in their own context boxes, but keep a reference variable for the conext box cb[i].
cb = {};
for( i = 1, i <= 20, i++,
vlb << append(
cb[i] = contextbox(
distribution(column(4 + i)) // put the i'th distribution in context box[i]
)
);
vlb<<APPEND></APPEND>更改字符串列框或表格框的颜色和下划线内容。您好,我上周发布了下面代码的类似版本,现在我尝试将字符串 col box() / table box() 中的值更新为蓝色并带有下划线,以便它们看起来是超链接。 table box << text color() 命令对我不起作用,但 string col box << text color() 有效。 有没有办法做到这一点,以便下面示例中的“名称”列标题不会改变颜色?有没有办法将值设置为下划线?
谢谢
麦克风
Names Default To Here( 1 );
//dummy data table
dt = Open( "$SAMPLE_DATA/Semiconductor Capability.jmp" );
// create a list of columns. In the example table, the first 4 columns are categorical index columns, so we'll use 20 columns starting at column 5 (4 + i)
colList = {};
for( i = 1, i<=20, i++,
colList[i] = as column(dt, 4 + i) << get name();
);
// new window, table box with selectable rows
nw = New Window( "Example",
vlb = vlistbox(
mainOlb = Outline Box( "Table", // used for referencing scrolling back to top
tb = Table Box(
scb = String Col Box( "names", colList ), // scb will be used later to color in blue to indicate it is a pseudo-hyperlink
<<SET selectable="" rows=""> 0,
nw << scroll window(cb[itemNum[1]]);
);
)
);
</SET>JMP 标准版本 16.2.0
大规模定制