Function win_msgbox::information

source ·
pub fn information<T>(text: impl Into<PCWSTR>) -> MessageBox<T>
Expand description

Creates a new message box where its icon is set to Information.

Examples found in repository?
examples/simple.rs (line 4)
3
4
5
6
7
8
fn main() -> Result<()> {
    win_msgbox::information::<Okay>(w!("Ferris landed on Mars."))
        .title(w!("Landing Module"))
        .show()?;
    Ok(())
}
More examples
Hide additional examples
examples/topmost.rs (lines 4-6)
3
4
5
6
7
8
9
10
11
fn main() -> Result<()> {
    win_msgbox::information::<Okay>(w!(
        "This is some longer paragraph to demonstrate how\nthe text is right justified."
    ))
    .right()
    .title(w!("Cool Demo App"))
    .show()?;
    Ok(())
}