|
马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
为什么我应用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;
} |
|