pub fn parse_ctrls(&mut self,data: &str){
        let ctrls = data.trim();
        let lines: Vec<&str> = ctrls.lines().collect();
        for l in &lines {
            let tl = l.trim();
            if let Some(c) = Control::parse(tl) {
                //if the control is tabview,add as a container
                if let CtrlType::TabView = c.tp {
                    let ctrl_id = c.get_id();
                    let tab_name = Name::tab_view(ctrl_id);
                    let child_container = Container::with_name(tab_name,ContainerType::TabView);
                    self.add_child(Box::new(child_container));
                }
                self.add_ctrl(c);
            }
        }
        //println!("dialog: {}\n{:?}",self.id, self.ctrls);
    }
/// parse all controls of this dialog

parse all controls of this dialog
parse all controls of this dialog
pub fn parse_ctrls(&mut self,data: &str){
        let ctrls = data.trim();
        let lines: Vec<&str> = ctrls.lines().collect();
        for l in &lines {
            let tl = l.trim();
            if let Some(c) = Control::parse(tl) {
                //if the control is tabview,add as a container
                if let CtrlType::TabView = c.tp {
                    let ctrl_id = c.get_id();
                    let tab_name = Name::tab_view(ctrl_id);
                    let child_container = Container::with_name(tab_name,ContainerType::TabView);
                    self.add_child(Box::new(child_container));
                }
                self.add_ctrl(c);
            }
        }
        //println!("dialog: {}\n{:?}",self.id, self.ctrls);
    }
pub fn parse_ctrls ( & mut self , data : & str ) { let ctrls = data . trim ( ) ; let lines : Vec < & str > = ctrls . lines ( ) . collect ( ) ; for l in & lines { let tl = l . trim ( ) ; if let Some ( c ) = Control :: parse ( tl ) { //if the control is tabview,add as a container
 if let CtrlType :: TabView = c . tp { let ctrl_id = c . get_id ( ) ; let tab_name = Name :: tab_view ( ctrl_id ) ; let child_container = Container :: with_name ( tab_name , ContainerType :: TabView ) ; self . add_child ( Box :: new ( child_container ) ) ; } self . add_ctrl ( c ) ; } } //println!("dialog: {}\n{:?}",self.id, self.ctrls);
 }
parse all controls of this dialog
parse all controls of this dialog
&mut self
data
&str
&mut self
data
&str