我在一個標籤欄中顯示了一個表格框。 當我在表格框中進行選擇時,我想切換到另一個選項卡。 但是,似乎當行選擇的事件處理程序完成時,它會將焦點返回到原始選項卡。
這是一些說明性代碼。 在表格框中選擇一行後,我想將焦點設置為第二個選項卡。 我在代碼中放置了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中修復此問題。
謝謝,