void NativeTextfieldWin::OnCopy()
    {
        if(textfield_->IsPassword())
        {
            return;
        }

        const std::wstring text(GetSelectedText());

        if(!text.empty() && ViewDelegate::view_delegate)
        {
            ui::ScopedClipboardWriter scw(
                ViewDelegate::view_delegate->GetClipboard());
            scw.WriteText(text);
        }
    }
示例#2
0
static void wait_prestart(user_choice_manager& man)
{
	gui2::dialogs::synched_choice_wait scw(man);
	scw.show(resources::screen->video());
}