Cristian87 Posted November 30, 2021 Share Posted November 30, 2021 How can I hide the virtual keyboard on unimdbedit? I want to use physical keyboard when the user enters in a certain unimdbedit I tried this but unimdbedit haven't afterrender in ClientEvents Link to comment Share on other sites More sharing options...
x11 Posted November 30, 2021 Share Posted November 30, 2021 try blur http://forums.unigui.com/index.php?/topic/14514-не-показывать-виртуальную-клавиатуру-для-unimspinner/&tab=comments#comment-78786 Link to comment Share on other sites More sharing options...
Cristian87 Posted November 30, 2021 Author Share Posted November 30, 2021 unimdbedit haven't Blur Link to comment Share on other sites More sharing options...
x11 Posted November 30, 2021 Share Posted November 30, 2021 function focus(sender, e, eOpts) { sender.blur(); } in (TUniEventStrings) Link to comment Share on other sites More sharing options...
Cristian87 Posted November 30, 2021 Author Share Posted November 30, 2021 In this way the unimdbedit is readOnly. I need to setfocus on field and insert value with phisical keyboard Link to comment Share on other sites More sharing options...
Cristian87 Posted November 30, 2021 Author Share Posted November 30, 2021 Any solutions? Link to comment Share on other sites More sharing options...
Sherzod Posted November 30, 2021 Share Posted November 30, 2021 3 hours ago, Cristian87 said: In this way the unimdbedit is readOnly Please explain. 3 hours ago, Cristian87 said: I need to setfocus on field and insert value with phisical keyboard Tell us the sequence of your actions, and the key properties of your UnimDBEdit, for example readonly, which you mentioned above. Make a simple testcase if possible. Link to comment Share on other sites More sharing options...
Cristian87 Posted November 30, 2021 Author Share Posted November 30, 2021 If I write this function focus(sender, e, eOpts) { sender.blur(); } the unimdbedit becomes readonly and it's impossibile enter with the pointer Link to comment Share on other sites More sharing options...
Sherzod Posted November 30, 2021 Share Posted November 30, 2021 5 hours ago, Cristian87 said: but unimdbedit haven't afterrender You can try painted instead. Link to comment Share on other sites More sharing options...
Cristian87 Posted November 30, 2021 Author Share Posted November 30, 2021 26 minutes ago, Sherzod said: You can try painted instead. It not works Link to comment Share on other sites More sharing options...
Sherzod Posted December 1, 2021 Share Posted December 1, 2021 21 hours ago, Cristian87 said: I want to use physical keyboard when the user enters in a certain unimdbedit Hello, Well, make the rest of the controls read-only. Link to comment Share on other sites More sharing options...
Cristian87 Posted December 1, 2021 Author Share Posted December 1, 2021 2 hours ago, Sherzod said: Hello, Well, make the rest of the controls read-only. No. In a form I have 10 unimdbedit. In some of this I want use only physical keyboard, in the other I want use virtual keyboard. None of the controls need to be readonly Link to comment Share on other sites More sharing options...
Sherzod Posted December 1, 2021 Share Posted December 1, 2021 2 hours ago, Cristian87 said: physical keyboard 2 hours ago, Cristian87 said: virtual keyboard Please clarify. Link to comment Share on other sites More sharing options...
Cristian87 Posted December 1, 2021 Author Share Posted December 1, 2021 11 minutes ago, Sherzod said: Please clarify. Is a handheld with scanner barcode and O.S. Android with a physical numeric keyboard. When the user uses a unimdbedit for a number the virtual keyboard must be invisible. Similarity to this: Link to comment Share on other sites More sharing options...
Sherzod Posted December 1, 2021 Share Posted December 1, 2021 I do not even know. At least there should be such a device for the test... Link to comment Share on other sites More sharing options...
Cristian87 Posted December 1, 2021 Author Share Posted December 1, 2021 Ok. But how is possible to force keyboard invisibile in a unimdbedit but to allow to the user to insert value? Link to comment Share on other sites More sharing options...
Tokay Posted December 1, 2021 Share Posted December 1, 2021 Maybe TUniEdit (desktop) will be better for your case? Link to comment Share on other sites More sharing options...
Cristian87 Posted December 2, 2021 Author Share Posted December 2, 2021 12 hours ago, Tokay said: Maybe TUniEdit (desktop) will be better for your case? It is a mobile application..I can't use desktop components Link to comment Share on other sites More sharing options...
Sherzod Posted December 2, 2021 Share Posted December 2, 2021 On 12/1/2021 at 2:36 PM, Cristian87 said: When the user uses a unimdbedit for a number the virtual keyboard must be invisible. Hello, Can you try this approach? function beforeInit(sender, config) { config.style='pointer-events:none'; } Link to comment Share on other sites More sharing options...
Cristian87 Posted December 2, 2021 Author Share Posted December 2, 2021 14 minutes ago, Sherzod said: Hello, Can you try this approach? function beforeInit(sender, config) { config.style='pointer-events:none'; } Don't works. With this appoach the unimdbedit becomes readonly and I can't enter Link to comment Share on other sites More sharing options...
Sherzod Posted December 2, 2021 Share Posted December 2, 2021 On 12/1/2021 at 4:35 PM, Cristian87 said: but to allow to the user to insert value? How? Link to comment Share on other sites More sharing options...
Sherzod Posted December 2, 2021 Share Posted December 2, 2021 On 12/1/2021 at 2:30 PM, Sherzod said: physical keyboard Link to comment Share on other sites More sharing options...
Sherzod Posted December 2, 2021 Share Posted December 2, 2021 So you want to at least activate the element by touching it? Link to comment Share on other sites More sharing options...
Sherzod Posted December 2, 2021 Share Posted December 2, 2021 29 minutes ago, Cristian87 said: Don't works. With this appoach the unimdbedit becomes readonly and I can't enter Seems I found solution. Link to comment Share on other sites More sharing options...
Sherzod Posted December 2, 2021 Share Posted December 2, 2021 Try this approach: function painted(sender, eOpts) { sender.inputElement.dom.setAttribute("inputmode", "none"); } Link to comment Share on other sites More sharing options...
Recommended Posts