uf_ui_select_with_class_dialog 对话框有时候弹不出来
int selectSingle(int user_data,int *num, tag_p_t *object){
int num_obj = 0;
tag_p_t obj_sel = nullptr;
UF_UI_ask_global_sel_object_list(&num_obj,&obj_sel);
if (num_obj > 0)
{
//UF_DISP_set_highlights(num_obj,obj_sel,0);
for(int i = 0; i < num_obj; i++)
{
UF_DISP_set_highlight(obj_sel,0);
}
UF_free(obj_sel);
}
UF_UI_set_cursor_view(0);
UF_UI_lock_ug_access(UF_UI_FROM_CUSTOM);
char cue[] = "cue message";
char title[] = "选择元素";
int response;
if(UF_CALL(UF_UI_select_with_class_dialog(cue,title,
UF_UI_SEL_SCOPE_ANY_IN_ASSEMBLY, init_proc, &user_data,
&response, num ,object)) == 0)
{
if (response == UF_UI_OK)
{
UF_UI_unlock_ug_access(UF_UI_FROM_CUSTOM);
return 1;
}
}
UF_UI_unlock_ug_access(UF_UI_FROM_CUSTOM);
return 0;
}
对象选择对话框有时候不能弹出来,但点击鼠标中间还是能够选中的,能帮忙分析下原因吗?
页:
[1]