which_cont=GetFocus() //得出当前具有焦点的控件名称
if keydown(keyenter!) then
if typeof(which_cont)=commandbutton! then//如果是cb得到焦点时,执行单击事件。
cb_which=which_cont
cb_which.triggerevent(clicked!)
else
post(handle(which_cont),256,9,0) //发一个 Tab 命令
// messagebox("","")
end if
end if
which_cont=GetFocus() //得出当前具有焦点的控件名称
if keydown(keyenter!) then
if typeof(which_cont)=commandbutton! then//如果是cb得到焦点时,执行单击事件。
cb_which=which_cont
cb_which.triggerevent(clicked!)
else
post(handle(which_cont),256,9,0) //发一个 Tab 命令
// messagebox("","")
end if
end if