📄 project_va_dialog.c
字号:
* to your dialog with UF_MB_add_styler_actions
* or UF_STYLER_create_dialog.
* callback_data - This structure pointer contains information
* specific to the UIStyler Object type that
* invoked this callback and the callback type.
* -----------------------------------------------------------------------*/
int PROJECT_VA_ok_fun ( int dialog_id,
void * client_data,
UF_STYLER_item_value_type_p_t callback_data)
{
if ( UF_initialize() != 0)
return ( UF_UI_CB_CONTINUE_DIALOG );
/* ---- Enter your callback code here ----- */
UF_terminate ();
/* Callback acknowledged, terminate dialog */
/* It is STRONGLY recommended that you exit your */
/* callback with UF_UI_CB_EXIT_DIALOG in a ok callback.*/
/* return ( UF_UI_CB_EXIT_DIALOG ); */
return (UF_UI_CB_EXIT_DIALOG);
}
/* -------------------------------------------------------------------------
* Callback Name: PROJECT_VA_Append_Move
* This is a callback function associated with an action taken from a
* UIStyler object.
*
* Input: dialog_id - The dialog id indicate which dialog this callback
* is associated with. The dialog id is a dynamic,
* unique id and should not be stored. It is
* strictly for the use in the NX Open API:
* UF_STYLER_ask_value(s)
* UF_STYLER_set_value
* client_data - Client data is user defined data associated
* with your dialog. Client data may be bound
* to your dialog with UF_MB_add_styler_actions
* or UF_STYLER_create_dialog.
* callback_data - This structure pointer contains information
* specific to the UIStyler Object type that
* invoked this callback and the callback type.
* -----------------------------------------------------------------------*/
int PROJECT_VA_Append_Move ( int dialog_id,
void * client_data,
UF_STYLER_item_value_type_p_t callback_data)
{
/* Make sure User Function is available. */
VA_Move_Select *p_move_sel;
if ( UF_initialize() != 0)
return ( UF_UI_CB_CONTINUE_DIALOG );
/* ---- Enter your callback code here ----- */
p_move_sel=(VA_Move_Select *)client_data;
p_move_sel->action=UG_APPEND_MOVE;
UF_terminate ();
/* Callback acknowledged, do not terminate dialog */
return (UF_UI_CB_EXIT_DIALOG);
/* or Callback acknowledged, terminate dialog. */
/* return ( UF_UI_CB_EXIT_DIALOG ); */
}
/* -------------------------------------------------------------------------
* Callback Name: PROJECT_VA_Display_Move
* This is a callback function associated with an action taken from a
* UIStyler object.
*
* Input: dialog_id - The dialog id indicate which dialog this callback
* is associated with. The dialog id is a dynamic,
* unique id and should not be stored. It is
* strictly for the use in the NX Open API:
* UF_STYLER_ask_value(s)
* UF_STYLER_set_value
* client_data - Client data is user defined data associated
* with your dialog. Client data may be bound
* to your dialog with UF_MB_add_styler_actions
* or UF_STYLER_create_dialog.
* callback_data - This structure pointer contains information
* specific to the UIStyler Object type that
* invoked this callback and the callback type.
* -----------------------------------------------------------------------*/
int PROJECT_VA_Display_Move ( int dialog_id,
void * client_data,
UF_STYLER_item_value_type_p_t callback_data)
{
VA_Move_Select *p_move_sel;
UF_STYLER_item_value_type_t data;
if ( UF_initialize() != 0)
return ( UF_UI_CB_CONTINUE_DIALOG );
/* ---- Enter your callback code here ----- */
p_move_sel=(VA_Move_Select *)client_data;
data.item_attr=UF_STYLER_VALUE;
data.item_id=PROJECT_VA_LIST_MOVE;
data.indicator=UF_STYLER_INTEGER_VALUE;
UF_STYLER_ask_value(dialog_id,&data);
if(data.count==0)
{
uc1601("请选择一个移动",1);
return (UF_UI_CB_CONTINUE_DIALOG);
}
else
{
p_move_sel->action=UG_DISPLAY_MOVE;
p_move_sel->sel_move_no=data.value.integer;
}
UF_terminate ();
/* Callback acknowledged, do not terminate dialog */
return (UF_UI_CB_EXIT_DIALOG);
/* or Callback acknowledged, terminate dialog. */
/* return ( UF_UI_CB_EXIT_DIALOG ); */
}
/* -------------------------------------------------------------------------
* Callback Name: PROJECT_VA_Delete_Move
* This is a callback function associated with an action taken from a
* UIStyler object.
*
* Input: dialog_id - The dialog id indicate which dialog this callback
* is associated with. The dialog id is a dynamic,
* unique id and should not be stored. It is
* strictly for the use in the NX Open API:
* UF_STYLER_ask_value(s)
* UF_STYLER_set_value
* client_data - Client data is user defined data associated
* with your dialog. Client data may be bound
* to your dialog with UF_MB_add_styler_actions
* or UF_STYLER_create_dialog.
* callback_data - This structure pointer contains information
* specific to the UIStyler Object type that
* invoked this callback and the callback type.
* -----------------------------------------------------------------------*/
int PROJECT_VA_Delete_Move ( int dialog_id,
void * client_data,
UF_STYLER_item_value_type_p_t callback_data)
{
VA_Move_Select *p_move_sel;
UF_STYLER_item_value_type_t data;
if ( UF_initialize() != 0)
return ( UF_UI_CB_CONTINUE_DIALOG );
/* ---- Enter your callback code here ----- */
p_move_sel=(VA_Move_Select *)client_data;
data.item_attr=UF_STYLER_VALUE;
data.item_id=PROJECT_VA_LIST_MOVE;
data.indicator=UF_STYLER_INTEGER_VALUE;
UF_STYLER_ask_value(dialog_id,&data);
if(data.count==0)
{
uc1601("请选择一个移动",1);
return (UF_UI_CB_CONTINUE_DIALOG);
}
else
{
p_move_sel->action=UG_DELETE_MOVE;
p_move_sel->sel_move_no=data.value.integer;
}
/* ---- Enter your callback code here ----- */
UF_terminate ();
/* Callback acknowledged, do not terminate dialog */
return (UF_UI_CB_EXIT_DIALOG);
/* or Callback acknowledged, terminate dialog. */
/* return ( UF_UI_CB_EXIT_DIALOG ); */
}
/* -------------------------------------------------------------------------
* Callback Name: PROJECT_VA_Dislpay_Animation
* This is a callback function associated with an action taken from a
* UIStyler object.
*
* Input: dialog_id - The dialog id indicate which dialog this callback
* is associated with. The dialog id is a dynamic,
* unique id and should not be stored. It is
* strictly for the use in the NX Open API:
* UF_STYLER_ask_value(s)
* UF_STYLER_set_value
* client_data - Client data is user defined data associated
* with your dialog. Client data may be bound
* to your dialog with UF_MB_add_styler_actions
* or UF_STYLER_create_dialog.
* callback_data - This structure pointer contains information
* specific to the UIStyler Object type that
* invoked this callback and the callback type.
* -----------------------------------------------------------------------*/
int PROJECT_VA_Dislpay_Animation ( int dialog_id,
void * client_data,
UF_STYLER_item_value_type_p_t callback_data)
{
VA_Move_Select *p_move_sel;
UF_STYLER_item_value_type_t data;
if ( UF_initialize() != 0)
return ( UF_UI_CB_CONTINUE_DIALOG );
/* ---- Enter your callback code here ----- */
p_move_sel=(VA_Move_Select *)client_data;
data.item_attr=UF_STYLER_VALUE;
data.item_id=PROJECT_VA_LIST_MOVE;
data.indicator=UF_STYLER_INTEGER_VALUE;
UF_STYLER_ask_value(dialog_id,&data);
if(data.count==0)
{
uc1601("请选择一个移动",1);
return (UF_UI_CB_CONTINUE_DIALOG);
}
else
{
p_move_sel->action=UG_DISPLAY_ANIMATION;
p_move_sel->sel_move_no=data.value.integer;
}
UF_terminate ();
/* Callback acknowledged, do not terminate dialog */
return (UF_UI_CB_EXIT_DIALOG);
/* or Callback acknowledged, terminate dialog. */
/* return ( UF_UI_CB_EXIT_DIALOG ); */
}
/* -------------------------------------------------------------------------
* Callback Name: PROJECT_VA_Inter_Check
* This is a callback function associated with an action taken from a
* UIStyler object.
*
* Input: dialog_id - The dialog id indicate which dialog this callback
* is associated with. The dialog id is a dynamic,
* unique id and should not be stored. It is
* strictly for the use in the NX Open API:
* UF_STYLER_ask_value(s)
* UF_STYLER_set_value
* client_data - Client data is user defined data associated
* with your dialog. Client data may be bound
* to your dialog with UF_MB_add_styler_actions
* or UF_STYLER_create_dialog.
* callback_data - This structure pointer contains information
* specific to the UIStyler Object type that
* invoked this callback and the callback type.
* -----------------------------------------------------------------------*/
int PROJECT_VA_Inter_Check ( int dialog_id,
void * client_data,
UF_STYLER_item_value_type_p_t callback_data)
{
VA_Move_Select *p_move_sel;
UF_STYLER_item_value_type_t data;
if ( UF_initialize() != 0)
return ( UF_UI_CB_CONTINUE_DIALOG );
/* ---- Enter your callback code here ----- */
p_move_sel=(VA_Move_Select *)client_data;
data.item_attr=UF_STYLER_VALUE;
data.item_id=PROJECT_VA_LIST_MOVE;
data.indicator=UF_STYLER_INTEGER_VALUE;
UF_STYLER_ask_value(dialog_id,&data);
if(data.count==0)
{
uc1601("请选择一个移动",1);
return (UF_UI_CB_CONTINUE_DIALOG);
}
else
{
p_move_sel->action=UG_INTERF_CHECK;
p_move_sel->sel_move_no=data.value.integer;
}
UF_terminate ();
/* Callback acknowledged, do not terminate dialog */
return (UF_UI_CB_EXIT_DIALOG);
/* or Callback acknowledged, terminate dialog. */
/* return ( UF_UI_CB_EXIT_DIALOG ); */
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -