该帮助的版本不再更新,请参见https://www.jmp.com/support/help/zh-cn/15.2 获取最新的版本.


Compare the previous New Window() example to this example of the deprecated Dialog().
dlg = Dialog(
Title( "Dialog Example" ),
"Radio Frequency Embolism Projection",
"Lower Spec Limit", lsl = Edit Number( 230 ),
"Upper Spec Limit", usl = Edit Number( 340 ),
"Threshold", threshold = Edit Number( 275 )
"Type of Radio",
type = Radio Buttons( "RCA", "Matsushita", "Zenith", "Sony" )
"Type of Antenna",
antenna = Radio Buttons( "Dish", "Helical", "Polarizing",
"Radiant Array" )
synch = Check Box( "Emission Synchronization", 0 ),
"Title for plot",
title = Edit Text( "My projection" ),
"Quality",
quality = Combo Box( "Fealty", "Loyalty", "Piety", "Obsequiousness"
V List( Button( "OK" ), Button( "Cancel" ) )
If( dlg["Button"] == 1,
Show(
"OK",
dlg["lsl"],
dlg["usl"],
dlg["threshold"],
dlg["type"],
dlg["antenna"],
dlg["synch"],
dlg["title"],
dlg["quality"]
Show( "Canceled" )
图 11.37 Results from New Window (left) and the Deprecated Dialog (right)
注意:Use Return Result to get the same result in New Window() as with the deprecated Dialog(). See Construct a Modal Window for an example.