pub struct Tab(/* private fields */);
gui
only.Expand description
Native tab control.
Implementations§
source§impl Tab
impl Tab
sourcepub fn new(parent: &impl GuiParent, opts: TabOpts) -> Self
pub fn new(parent: &impl GuiParent, opts: TabOpts) -> Self
Instantiates a new Tab
object, to be created on the parent window with
HWND::CreateWindowEx
.
§Panics
Panics if the parent window was already created – that is, you cannot
dynamically create a TreeView
in an event closure.
sourcepub fn new_dlg(
parent: &impl GuiParent,
ctrl_id: u16,
resize_behavior: (Horz, Vert),
items: Vec<(String, Box<dyn AsRef<WindowControl>>)>
) -> Self
pub fn new_dlg( parent: &impl GuiParent, ctrl_id: u16, resize_behavior: (Horz, Vert), items: Vec<(String, Box<dyn AsRef<WindowControl>>)> ) -> Self
Instantiates a new Tab
object, to be loaded from a dialog resource
with HWND::GetDlgItem
.
§Panics
Panics if the parent dialog was already created – that is, you cannot
dynamically create a TreeView
in an event closure.
sourcepub fn image_list(&self) -> Option<&HIMAGELIST>
pub fn image_list(&self) -> Option<&HIMAGELIST>
Retrieves a reference to the associated image list by sending a
tcm::GetImageList
message.
The image list is owned by the control.
sourcepub fn set_extended_style(&self, set: bool, ex_style: TCS_EX)
pub fn set_extended_style(&self, set: bool, ex_style: TCS_EX)
Sets or unsets the given extended list view styles by sending a
tcm::SetExtendedStyle
message.
sourcepub fn set_image_list(
&self,
himagelist: ImageListDestroyGuard
) -> Option<ImageListDestroyGuard>
pub fn set_image_list( &self, himagelist: ImageListDestroyGuard ) -> Option<ImageListDestroyGuard>
Sets the associated image list by sending a
tcm::SetImageList
message.
The image list will be owned by the control. Returns the previous one, if any.
Trait Implementations§
source§impl GuiChildFocus for Tab
impl GuiChildFocus for Tab
source§fn focus(&self)
fn focus(&self)
HWND:SetFocus
. Read more