pub fn parse_dialog(&mut self,id: &str, data: &str){
		let n = Name::dialog(id);
		let mut dlg = Container::with_name(n,ContainerType::Dialog);
		let re_begin = Regex::new(r"\sBEGIN\s").unwrap();
		if let Some(begin_pos) = re_begin.find(data) {
			let ctrl_begin = begin_pos.1;
			dlg.parse_ctrls(&data[ctrl_begin..data.len() - 3]);	//delte "END"
		}
		self.root.add_child(Box::new(dlg));
	}
/// parse dialog using the give text from rc_file

parse dialog using the give text from rc_file
parse dialog using the give text from rc_file
pub fn parse_dialog(&mut self,id: &str, data: &str){
		let n = Name::dialog(id);
		let mut dlg = Container::with_name(n,ContainerType::Dialog);
		let re_begin = Regex::new(r"\sBEGIN\s").unwrap();
		if let Some(begin_pos) = re_begin.find(data) {
			let ctrl_begin = begin_pos.1;
			dlg.parse_ctrls(&data[ctrl_begin..data.len() - 3]);	//delte "END"
		}
		self.root.add_child(Box::new(dlg));
	}
pub fn parse_dialog ( & mut self , id : & str , data : & str ) { let n = Name :: dialog ( id ) ; let mut dlg = Container :: with_name ( n , ContainerType :: Dialog ) ; let re_begin = Regex :: new ( r"\sBEGIN\s" ) . unwrap ( ) ; if let Some ( begin_pos ) = re_begin . find ( data ) { let ctrl_begin = begin_pos . 1 ; dlg . parse_ctrls ( & data [ ctrl_begin .. data . len ( ) - 3 ] ) ; //delte "END"
 } self . root . add_child ( Box :: new ( dlg ) ) ; }
parse dialog using the give text from rc_file
parse dialog using the give text from rc_file
&mut self
id
&str
data
&str
&mut self
id
&str
data
&str