pub fn parent(mut self, parent: ControlHandle) -> HmenuBuilder {
        match parent {
            ControlHandle::Hwnd(hwnd) => { self.parent_window = Some(hwnd); }
            ControlHandle::Menu(_parent, menu) => { self.parent_menu = Some(menu); }
            ControlHandle::PopMenu(_hwnd, menu) => { self.parent_menu = Some(menu); },
            _ => {}
        }

        self
    }
/// Set the parent of the menu. Can be a window or another menu.
Set the parent of the menu. Can be a window or another menu.
Set the parent of the menu . Can be a window or another menu .
pub fn parent(mut self, parent: ControlHandle) -> HmenuBuilder {
        match parent {
            ControlHandle::Hwnd(hwnd) => { self.parent_window = Some(hwnd); }
            ControlHandle::Menu(_parent, menu) => { self.parent_menu = Some(menu); }
            ControlHandle::PopMenu(_hwnd, menu) => { self.parent_menu = Some(menu); },
            _ => {}
        }
        self
    }
pub fn parent ( mut self , parent : ControlHandle ) -> HmenuBuilder { match parent { ControlHandle :: Hwnd ( hwnd ) => { self . parent_window = Some ( hwnd ) ; } ControlHandle :: Menu ( _parent , menu ) => { self . parent_menu = Some ( menu ) ; } ControlHandle :: PopMenu ( _hwnd , menu ) => { self . parent_menu = Some ( menu ) ; } , _ => { } } self }
Set the parent of the menu.
Set the parent of the menu .
mut self
parent
ControlHandle