pub fn placeholder_text<'a>(&self, text_length: usize) -> String { 
        use std::ffi::OsString;
        use std::os::windows::ffi::OsStringExt;
        use winapi::shared::ntdef::WCHAR;
        use winapi::um::commctrl::EM_GETCUEBANNER;

        let handle = check_hwnd(&self.handle, NOT_BOUND, BAD_HANDLE);
        let mut placeholder_text: Vec<WCHAR> = Vec::with_capacity(text_length);
        unsafe {
            placeholder_text.set_len(text_length);
            wh::send_message(handle, EM_GETCUEBANNER, placeholder_text.as_mut_ptr() as WPARAM, placeholder_text.len() as LPARAM);
            OsString::from_wide(&placeholder_text).into_string().unwrap_or("".to_string())
        }
    }
/// Return the placeholder text displayed in the TextInput
/// when it is empty and does not have focus. The string returned will be
/// as long as the user specified, however it might be longer or shorter than
/// the actual placeholder text.
Return the placeholder text displayed in the TextInput
when it is empty and does not have focus. The string returned will be
as long as the user specified, however it might be longer or shorter than
the actual placeholder text.
Return the placeholder text displayed in the TextInput when it is empty and does not have focus . The string returned will be as long as the user specified however it might be longer or shorter than the actual placeholder text .
pub fn placeholder_text<'a>(&self, text_length: usize) -> String { 
        use std::ffi::OsString;
        use std::os::windows::ffi::OsStringExt;
        use winapi::shared::ntdef::WCHAR;
        use winapi::um::commctrl::EM_GETCUEBANNER;
        let handle = check_hwnd(&self.handle, NOT_BOUND, BAD_HANDLE);
        let mut placeholder_text: Vec<WCHAR> = Vec::with_capacity(text_length);
        unsafe {
            placeholder_text.set_len(text_length);
            wh::send_message(handle, EM_GETCUEBANNER, placeholder_text.as_mut_ptr() as WPARAM, placeholder_text.len() as LPARAM);
            OsString::from_wide(&placeholder_text).into_string().unwrap_or("".to_string())
        }
    }
pub fn placeholder_text < ' a > ( & self , text_length : usize ) -> String { use std :: ffi :: OsString ; use std :: os :: windows :: ffi :: OsStringExt ; use winapi :: shared :: ntdef :: WCHAR ; use winapi :: um :: commctrl :: EM_GETCUEBANNER ; let handle = check_hwnd ( & self . handle , NOT_BOUND , BAD_HANDLE ) ; let mut placeholder_text : Vec < WCHAR > = Vec :: with_capacity ( text_length ) ; unsafe { placeholder_text . set_len ( text_length ) ; wh :: send_message ( handle , EM_GETCUEBANNER , placeholder_text . as_mut_ptr ( ) as WPARAM , placeholder_text . len ( ) as LPARAM ) ; OsString :: from_wide ( & placeholder_text ) . into_string ( ) . unwrap_or ( " " . to_string ( ) ) } }
Return the placeholder text displayed in the TextInput
when it is empty and does not have focus.
Return the placeholder text displayed in the TextInput when it is empty and does not have focus .
&self
text_length
usize