iCAx开思工具箱
标题:
关于点构造器
[打印本页]
作者:
suiyubing
时间:
2005-7-8 20:16
标题:
关于点构造器
为什么我应用UF_UI_point_construct()创建点,当我点击ok按钮时将该函数的最后一项
int * response Output One of the following:
UF_UI_PICK_RESPONSE
UF_UI_OK
UF_UI_BACK
UF_UI_CANCEL
输出得到的是UF_UI_OK;而当我点击CANCEL按钮时输出仍然是UF_UI_OK呢,按理应该输出UF_UI_CANCEL阿,当点击BACK时就可以输出UF_UI_BACK,这是为什么呢?如下是我的部分程序:
UF_CALL(UF_UI_point_construct(sCue,[$base_method,&tPoint,sBasePoint,&iResponse))]
switch(iResponse)
{
case UF_UI_PICK_RESPONSE:
sprintf(buffer, "iResponse: UF_UI_PICK_RESPONSE\n");
UF_UI_write_listing_window(buffer);
break;
case UF_UI_OK:
sprintf(buffer, "iResponse: UF_UI_OK\n");
UF_UI_write_listing_window(buffer);
break;
case UF_UI_BACK:
sprintf(buffer, "iResponse: UF_UI_BACK\n");
UF_UI_write_listing_window(buffer);
break;
case UF_UI_CANCEL:
sprintf(buffer, "iResponse: UF_UI_CANCEL\n");
UF_UI_write_listing_window(buffer);
break;
default:
sprintf(buffer,"Unknown iResponse: %d\n",iResponse);
UF_UI_write_listing_window(buffer);
break;
}
作者:
suiyubing
时间:
2005-7-10 14:37
虽然这个问题对我的课题没有大影响,但是我还是想知道为什么,如果有人知道的话,可不可以指点一下,谢谢。
作者:
thriller
时间:
2005-7-11 09:28
估计你把iResponse的初值设成2(UF_UI_OK)了吧。
不过这个函数确实有点问题,当点击cancel的时候iResponse的返回值为初值。
欢迎光临 iCAx开思工具箱 (https://t.icax.org/)
Powered by Discuz! X3.3