iCAx开思工具箱
标题:
求助,如何调出选择单个对象对话框?搞了好多天了,都失败了!
[打印本页]
作者:
bennycheung23
时间:
2006-1-10 21:05
标题:
求助,如何调出选择单个对象对话框?搞了好多天了,都失败了!
int CHULIXIAMO_chulixiamo_cb ( int dialog_id,
void * client_data,
UF_STYLER_item_value_type_p_t callback_data)
{
char cue[] = "请选择分型平面";
char title[] = "选择分型平面";
int response;
tag_t object, view;
double cursor[3];
/* Make sure User Function is available. */
if ( UF_initialize() != 0)
return ( UF_UI_CB_CONTINUE_DIALOG );
/* ---- Enter your callback code here ----- */
UF_UI_select_with_single_dialog(cue,title,
UF_UI_SEL_SCOPE_NO_CHANGE, init_proc, NULL,
&response, &object, cursor, &view);
UF_DISP_set_highlight(object,1);
UF_terminate ();
/* Callback acknowledged, do not terminate dialog */
return (UF_UI_CB_CONTINUE_DIALOG);
/* or Callback acknowledged, terminate dialog. */
/* return ( UF_UI_CB_EXIT_DIALOG ); */
}
欢迎光临 iCAx开思工具箱 (https://t.icax.org/)
Powered by Discuz! X3.3