private static void SoftwareKeyboard(UIElement focused, bool open) { if (TouchScreenKeyboard.isSupported) { if (open) { TouchKeyboard.Open(focused); } else { TouchKeyboard.Close(); } } else if (focused is TextBox) { if (open) { IME.Open(focused); } else { IME.Close(); } } }
public frmSurvey() { InitializeComponent(); //tabMain.ShowTabHeader = DevExpress.Utils.DefaultBoolean.True; //this.ucCustSearch1.EventChoose += new Panels.ucCustSearch.delegateEventChoose(ucCustSearch1_EventChoose); try { _kb = new TouchKeyboard(); ////_kb.AddToKeyboard(calcEdit1); ////_kb.AddToKeyboard(dateEdit1); ////_kb.AddToKeyboard(textEdit1); //_kb.Enable = chkTouchKeyboard.Checked; //ucCustSearch1.TouchKeyboard = _kb; //ucCustSearch1.PageRows = 2; //ucCustSearch1.PageRows = 20; } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void OnGotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e) { // show the touch keyboard TouchKeyboard.Show(); var textBox = sender as TextBox; if (textBox != null) textBox.SelectionStart = Math.Max(0, textBox.Text.Length); }
public SimCorpMobile() { this.vFourthGen = new FourthGen(); this.vCasioBattery = new CasioBattery(); this.vHiFiDynamic = new HiFiDynamic(); this.vTouchKeyboard = new TouchKeyboard(); this.vBlueYeti = new BlueYeti(); this.vMultiTouch = new MultiTouch(); this.vNewSimCard = new NewSimCard(); }
public SimCorpMobile(bool isTaskForMessages = false) { SMSProvider = isTaskForMessages ? (SMSProvider) new SMSTask() : new SMSThread(); this.vFourthGen = new FourthGen(); this.vCasioBattery = new CasioBattery(); this.vHiFiDynamic = new HiFiDynamic(); this.vTouchKeyboard = new TouchKeyboard(); this.vBlueYeti = new BlueYeti(); this.vMultiTouch = new MultiTouch(); this.vNewSimCard = new NewSimCard(); }
public void Init(string buttonkey, TouchLinkItem item, Form parent, object param, ref bool cancel) { try { _core = (InfoPos.Core.Core)param; _resource = _core.Resource; _kb = new TouchKeyboard(); _kb.Enable = _core.IsTouch; this.MdiParent = parent; this.Show(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
public void Init(string buttonkey, TouchLinkItem item, Form parent, object param, ref bool cancel) { try { _core = (InfoPos.Core.Core)param; _resource = _core.Resource; _kb = new TouchKeyboard(); if (_core.IsTouch == true) { _kb.Enable = true; } else { _kb.Enable = false; } //this.ucPledgeSearch1.Core = _core; //this.ucPledgeSearch1.Remote = _core.RemoteObject; //this.ucPledgeSearch1.Resource = _resource; //this.ucPledgeSearch1.TouchKeyboard = _kb; //this.ucPledgeList1.Core = _core; //this.ucPledgeList1.Remote = _core.RemoteObject; //this.ucPledgeList1.Resource = _resource; //this.ucPledgeList1.TouchKeyboard = _kb; //this.ucRentList1.Core = _core; //this.ucRentList1.Remote = _core.RemoteObject; //this.ucRentList1.Resource = _resource; //this.ucRentList1.TouchKeyboard = _kb; //this.ucCustSearch1.Core = _core; //this.ucCustSearch1.Remote = _core.RemoteObject; //this.ucCustSearch1.Resource = _core.Resource; //this.ucCustSearch1.TouchKeyboard = _kb; this.MdiParent = parent; this.Show(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private static void OnFocusedPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ControlKeyboardFocusBehavior b = d as ControlKeyboardFocusBehavior; if(b != null && b.AssociatedObject != null) { Control c = b.AssociatedObject; if (!c.IsFocused && (bool)e.NewValue) { Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Input, new Action(delegate() { c.Focus(); Keyboard.Focus(c); TouchKeyboard.Show(); })); } } }
public void ShowKeyboard(int rowhandle) { if (TouchKeyboard == null) { return; } if (rowhandle < gridView1.RowCount) { //gridView1.SelectRow(rowhandle); gridView1.FocusedRowHandle = rowhandle; DialogResult res = TouchKeyboard.ShowKeyboard(gridView1, rowhandle, 3); if (res == DialogResult.OK) { if (rowhandle + 1 < gridView1.RowCount) { ShowKeyboard(rowhandle + 1); } } } }
public void Init(string buttonkey, TouchLinkItem item, Form parent, object param, ref bool cancel) { try { _kb = new TouchKeyboard(); _core = (InfoPos.Core.Core)param; _resource = _core.Resource; ucSaleSearchToBill.Remote = _core.RemoteObject; ucSaleSearchToBill.Core = _core; ucSaleSearchToBill.Resource = _core.Resource; ucBill.remote = _core.RemoteObject; ucBill.kb = _kb; ucBill.core = _core; this.MdiParent = parent; this.Show(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
//public void SubMenu_CreateCustomer() //{ // InfoPos.fo_Customer.frmCustomer frm = new fo_Customer.frmCustomer(_core, "", "", "", "", "", ""); // frm.ShowDialog(); //} public frmBill() { InitializeComponent(); tabMain.ShowTabHeader = DevExpress.Utils.DefaultBoolean.False; this.FormClosing += new FormClosingEventHandler(frmBill_FormClosing); this.ucSaleSearch1.EventChoose += new Panels.ucSaleSearch.delegateEventChoose(ucSaleSearch1_EventChoose); this.ucPayment1.EventChoose += new Panels.ucPayment.delegateEventChoose(ucPayment1_EventChoose); //this.ucSalesProductList1.EventProdChanged += new InfoPos.fo_panels.ucSalesProductList.delegateEventProdChanged(ucSalesProductList1_EventProdChanged); //this.ucSalesCheckList1.EventOnRowChanged += new fo_panels.ucSalesCheckList.delegateEventOnRowChanged(ucSalesCheckList1_EventOnRowChanged); try { _kb = new TouchKeyboard(); _kb.Enable = true; // chkTouchKeyboard.Checked; ucSaleSearch1.TouchKeyboard = _kb; ucPayment1.TouchKeyboard = _kb; } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void OnLostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e) { // hide the touch keyboard TouchKeyboard.Hide(); }