Exemple #1
0
// MW-2005-05-15: New answer file with types call
int MCA_file_with_types(MCStringRef p_title, MCStringRef p_prompt, MCStringRef *p_types, uint4 p_type_count, MCStringRef p_initial, unsigned int p_options, MCStringRef &r_value, MCStringRef &r_result)
{
	MCAutoStringRef t_filters;
	get_new_filter(p_types, p_type_count, &t_filters);

	return MCA_do_file_dialog(p_title == NULL ? kMCEmptyString : p_title, p_prompt == NULL ? kMCEmptyString : p_prompt, *t_filters, p_initial, p_options | MCA_OPTION_RETURN_FILTER, r_value, r_result);
}
Exemple #2
0
// MW-2005-05-15: New answer file with types call
int MCA_file_with_types(MCExecPoint& ep, const char *p_title, const char *p_prompt, char * const p_types[], uint4 p_type_count, const char *p_initial, unsigned int p_options)
{
	get_new_filter(ep, p_types, p_type_count);

	Meta::cstring_value t_filters;
	t_filters = ep;

	return MCA_do_file_dialog(ep, p_title == NULL ? "" : p_title, p_prompt == NULL ? "" : p_prompt, *t_filters, p_initial == NULL ? "" : p_initial, p_options | MCA_OPTION_RETURN_FILTER);
}