我在一个标签栏中显示了一个表格框。 当我在表格框中进行选择时,我想切换到另一个选项卡。 但是,似乎当行选择的事件处理程序完成时,它会将焦点返回到原始选项卡。
这是一些说明性代码。 在表格框中选择一行后,我想将焦点设置为第二个选项卡。 我在代码中放置了Wait(2)以显示焦点的切换确实发生 - 但是当功能完成时焦点会切换回来。
Names Default To Here( 1 );
New Window( "Mountains",
tab = Tab Box(
"Tab1",
tb = Table Box(
String Col Box( "Mountain",
{"K2", "Delphi", "Kilimanjaro", "Grand Teton"}
),
Number Col Box( "Elevation (meters)",
{8611, 681, 5895, 4199}
),
Plot Col Box( "", {8611, 681, 5895, 4199} )
),
"Tab2",
txt = Text Box("")
)
);
tb << Set Selectable Rows();
tb << set row change function(
Function( {this},
Wait(0.3); // wait just long enough to show the selection
txt <<SET text=""></SET>我可以确认这个问题确实在13.2中得到了解决,所有JMP的后续版本应该按预期运行。
请注意,Dan Schikore在之前的帖子中提供了一种解决方案。
这听起来像是同样的问题 @pmroz 有这里 。我们希望在JMP 13.2中修复此问题。
谢谢,