Struct native_windows_gui::StatusBar [−][src]
pub struct StatusBar {
pub handle: ControlHandle,
// some fields omitted
}Expand description
A status bar is a horizontal window at the bottom of a parent window in which an application can display various kinds of status information. Status bar cannot stack, so there must be only one per window.
Requires the status-bar feature.
Builder parameters:
parent: Required. The status bar parent container.text: The status bar text.font: The font used for the status bar text
Control events:
MousePress(_): Generic mouse press events on the status barOnMouseMove: Generic mouse mouse eventOnMouseWheel: Generic mouse wheel event
use native_windows_gui as nwg; fn build_status(status: &mut nwg::StatusBar, window: &nwg::Window, font: &nwg::Font) { nwg::StatusBar::builder() .text("Hello") .font(Some(font)) .parent(window) .build(status); }
Fields
handle: ControlHandleImplementations
Set the minimum height of the statusbar (in pixels)
Return the text in one of the region of the status bar
Set the text in one of the region of the status bar
Winapi class name used during control creation
Winapi flags required by the control
Status bar do not resize automatically. Instead, a resize message must be manually sent by the parent window to trigger the resize action.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for StatusBarimpl UnwindSafe for StatusBar