UF_MB_add_actions (查看源代码)
 
定义在: uf_mb.h
 
概述
Registers custom Internal Open API applications for the NX
menubar.

环境
Internal
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_MB_add_actions
(
UF_MB_action_t action_table [ ]
)
UF_MB_action_taction_table [ ] Input(输入)NULL terminated array of UF_MB_action_t
records containing action name, function address,
and callback argument.

 


 
UF_MB_add_styler_actions (查看源代码)
 
定义在: uf_mb.h
 
概述
Associates a UIStyler dialog to an associated action specified in a Menuscript
file. The dialog file must be generated from the UIStyler and must be located
in the "application" directory underneath the directory which has been added to
the file $UGII_BASE_DIR/ugii/menu/custom_dirs.dat.

For example, on an NT system, you could specify d:\my_application
as your directory.

The actions structure provides the binding of callbacks and client data
to the dialog. You may associate multiple dialogs in your actions
structure provided that the list is NULL terminated.

环境
Internal
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_MB_add_styler_actions
(
UF_MB_styler_actions_p_t actions
)
UF_MB_styler_actions_p_tactionsInput(输入)Action definition of menubar dialog(s)

 


 
UF_MB_ask_button_id (查看源代码)
 
定义在: uf_mb.h
 
概述
Gets the button's ID.

环境
Internal
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_MB_ask_button_id
(
char * button_name,
int * button_id
)
char * (字符型指针)button_nameInput(输入)Name of the button
int * (整数型指针)button_idOutput(输出)Button Identification

 


 
UF_MB_ask_button_sensitivity (查看源代码)
 
定义在: uf_mb.h
 
概述
Gets the button's sensitivity.

环境
Internal
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_MB_ask_button_sensitivity
(
int button_id,
UF_MB_state_p_t state
)
int (整数型)button_idInput(输入)Button Identification
UF_MB_state_p_tstateOutput(输出)Button sensitivity can be one of the following:
UF_MB_ON
UF_MB_OFF

 


 
UF_MB_ask_button_type_name (查看源代码)
 
定义在: uf_mb.h
 
概述
Returns the name of a button type. If the specified type corresponds
to the type of a menubar button, type_name is returned as a pointer to
the button type name, and the function returns 0; otherwise the
function type_name points to the string "UNKNOWN" and the return
value is UF_err_bad_parameter_number_1.

环境
Internal
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_MB_ask_button_type_name
(
UF_MB_button_type_t type,
char * * type_name
)
UF_MB_button_type_ttypeInput(输入)The type of a menu bar button.
char * *type_nameOutput to be freed
输出并释放
The name of the button type.

 


 
UF_MB_ask_double_resource (查看源代码)
 
定义在: uf_mb.h
 
概述
Locates the requested resource in the X Resource Database. If it is
found, its value is set to the value found. If the resource is not found,
value is set to the default. 0 is returned unless there are any argument
or exception errors.

NOTE: This function is only available on Unix.

环境
Internal
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_MB_ask_double_resource
(
char * name,
double defvalue,
double * value
)
char * (字符型指针)nameInput(输入)The name of the resource to be located.
double (实数型)defvalueInput(输入)The default value for the resource if not found.
double * (实数型指针)valueOutput(输出)The value of the resource.

 


 
UF_MB_ask_int_resource (查看源代码)
 
定义在: uf_mb.h
 
概述
Locates the requested resource in the X Resource Database. If it is
found, its value is set to the value found. If the resource is not found,
value is set to the default. 0 is returned unless there are any argument
or exception errors.

NOTE: This function is only available on Unix.

环境
Internal
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_MB_ask_int_resource
(
char * name,
int defvalue,
int * value
)
char * (字符型指针)nameInput(输入)The name of the resource to be located.
int (整数型)defvalueInput(输入)The default value for the resource if not found.
int * (整数型指针)valueOutput(输出)The value of the resource.

 


 
UF_MB_ask_logical_resource (查看源代码)
 
定义在: uf_mb.h
 
概述
Locates the requested resource in the X Resource Database. If it is
found, its value is set to the value found. If the resource is not found,
value is set to the default. 0 is returned unless there are any argument
or exception errors.

NOTE: This function is only available on Unix.

环境
Internal
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_MB_ask_logical_resource
(
char * name,
logical defvalue,
logical * value
)
char * (字符型指针)nameInput(输入)The name of the resource to be located.
logicaldefvalueInput(输入)The default value for the resource if not found.
logical *valueOutput(输出)The value of the resource.

 


 
UF_MB_ask_string_resource (查看源代码)
 
定义在: uf_mb.h
 
概述
Locates the requested resource in the X Resource Database. If it is
found, its value is set to the value found. If the resource is not found,
value is set to the default. 0 is returned unless there are any argument
or exception errors.

NOTE: This function is only available on Unix.

环境
Internal
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_MB_ask_string_resource
(
char * name,
char * defvalue,
char * value
)
char * (字符型指针)nameInput(输入)The name of the resource to be located.
char * (字符型指针)defvalueInput(输入)The default value for the resource if not found.
char * (字符型指针)valueOutput(输出)The value of the resource.

 


 
UF_MB_ask_toggle_state (查看源代码)
 
定义在: uf_mb.h
 
概述
Gets a toggle button's current state.

环境
Internal
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_MB_ask_toggle_state
(
int button_id,
UF_MB_state_t * state
)
int (整数型)button_idInput(输入)Button ID
UF_MB_state_t *stateOutput(输出)The button's sensitivity can be one of the following:
UF_MB_ON
UF_MB_OFF

 


 
UF_MB_init_application_data (查看源代码)
 
定义在: uf_mb.h
 
概述
Initializes the custom application data. This routine should be called
before calling UF_MB_register_application.

返回
void

环境
Internal

历史
Introduced in V18.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_MB_init_application_data
(
UF_MB_application_p_t app_data
)
UF_MB_application_p_tapp_dataInput / OutputPointer to application data structure.

 


 
UF_MB_load_resource_file (查看源代码)
 
定义在: uf_mb.h
 
概述
Loads a resource file. Locates the requested resource file in the
vendor, site, or user application directory (specified by one of the
following environment variables: UGII_UGOPEN_VENDOR_DIR,
UGII_UGOPEN_SITE_DIR, or UGII_UGOPEN_USER_DIR), loads it into a new,
temporary XrmDatabase, and then merges it into the master XrmDatabase
for the display connection (i.e. the application session). The merge
automatically destroys the temporary database.

NOTE: This function is only available on Unix.

环境
Internal
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_MB_load_resource_file
(
char * resource_file
)
char * (字符型指针)resource_fileInput(输入)The name of the vendor resource file to be loaded.
The name does not include the path.

 


 
UF_MB_register_application (查看源代码)
 
定义在: uf_mb.h
 
概述
Register the user application defined by the application button.

环境
Internal
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_MB_register_application
(
UF_MB_application_p_t app
)
UF_MB_application_p_tappInput(输入)User application data containing name of
application to register.

 


 
UF_MB_set_button_sensitivity (查看源代码)
 
定义在: uf_mb.h
 
概述
Sets the button's sensitivity.

环境
Internal
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_MB_set_button_sensitivity
(
int button_id,
UF_MB_state_t state
)
int (整数型)button_idInput(输入)Button ID
UF_MB_state_tstateInput(输入)The button's sensitivity can be set to one of the
following states:
UF_MB_ON
UF_MB_OFF

 


 
UF_MB_set_toggle_state (查看源代码)
 
定义在: uf_mb.h
 
概述
Sets the state of a toggle button.

环境
Internal
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_MB_set_toggle_state
(
int button_id,
UF_MB_state_t state
)
int (整数型)button_idInput(输入)Button ID
UF_MB_state_tstateInput(输入)Sets the toggle buttons state on or off. Use one of
the following constants:
UF_MB_ON
UF_MB_OFF