|
给你个例子:
public function StatusShow(in win, in obj, in attr, in val)
{
if(val == "!Calling.*")
{
tl_step("Status show", 0, "Calling.");
callStatus = "calling";
}
exception_off("ConnectStatus");
}
#================= function DefineCallException( ) =====================
public function DefineCallException( )
{
define_object_exception("ConnectStatus", "StatusShow",
"PeerCall", "ShowMsg", "label", "!Calling.*");
exception_on("ConnectStatus");
}
含义参考TSL Reference。注意,define_object_exception里的属性,这里是”label”属性,必须是GUI file里这个object所没有的,否则编译通不过。
另:Virtual Object应该是不可以吧,因为用它都不可以get info |
|