Tinkr2/4.2/AphelionCore/AphelionCommonControls/Modal/VirtualKeyboard.cs
/// <summary>
/// Displays virtual keyboard (blocking, modal)
/// </summary>
/// <param name="font"></param>
/// <param name="defaultValue"></param>
/// <param name="passwordChar"></param>
/// <param name="layout"></param>
/// <param name="title"></param>
/// <returns></returns>
Displays virtual keyboard (blocking, modal)
Displays virtual keyboard ( blocking modal )
public string Show(Font font, string defaultValue = "", char passwordChar = ' ', KeyboardLayout layout = KeyboardLayout.QWERTY, string title = null)
      {
         IContainer prv = Core.ActiveContainer;
         var vkb = new Vkb(font, defaultValue, passwordChar, layout, title);
         vkb.VirtualKeysDone += delegate { new Thread(CloseEditor).Start(); };
         Core.ActiveContainer = vkb;
         var localBlocker = new ManualResetEvent(false);
         _activeBlock = localBlocker;
         localBlocker.Reset();
         while (!localBlocker.WaitOne(1000, false))
         { }
         vkb.Continue = false;
         _activeBlock = null;
         Core.ActiveContainer = prv;
         return vkb.Text;
      }
public string Show ( Font font , string defaultValue = " " , char passwordChar = ' ' , KeyboardLayout layout = KeyboardLayout . QWERTY , string title = null ) { IContainer prv = Core . ActiveContainer ; var vkb = new Vkb ( font , defaultValue , passwordChar , layout , title ) ; vkb . VirtualKeysDone += delegate { new Thread ( CloseEditor ) . Start ( ) ; } ; Core . ActiveContainer = vkb ; var localBlocker = new ManualResetEvent ( false ) ; _activeBlock = localBlocker ; localBlocker . Reset ( ) ; while ( ! localBlocker . WaitOne ( 1000 , false ) ) { } vkb . Continue = false ; _activeBlock = null ; Core . ActiveContainer = prv ; return vkb . Text ; }
Displays virtual keyboard (blocking, modal)
Displays virtual keyboard ( blocking modal )
// Wait for Result // Unblock
None
font
Font
None
defaultValue
string
None
passwordChar
char
None
layout
KeyboardLayout
None
title
string
None