int MOLDWIZARD_select_apart_line_cb ( int dialog_id,
void * client_data,
UF_STYLER_item_value_type_p_t callback_data)
{
char cue[] = "cue message";
char title[] = "请选择要实体!";
int response = 0;
tag_t tag_object = NULL_TAG;
tag_t tag_view = NULL_TAG;
double cursor[3];
if ( UF_initialize() != 0)
return ( UF_UI_CB_CONTINUE_DIALOG );
/* ---- Enter your callback code here ----- */
UF_CALL(UF_UI_select_with_single_dialog(cue,title,
UF_UI_SEL_SCOPE_NO_CHANGE, init_proc, NULL,
[$response, &object, cursor, &view))]
if(object != NULL_TAG)
{
UF_CALL(UF_MODL_ask_feat_body (object, [$body_tag))]
}
else
{
uc1601("请选择实体!",1);
return (UF_UI_CB_CONTINUE_DIALOG);
}
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 ); */
} |