Jump to content

TUnimNumberEdit mobile browser decimal point


milanius

Recommended Posts

I have latest UniGUI ver 1.90.0.1546
On desktop browser I can edit decimal numbers but on iPhone Safari browser unfortunately not.

I looked at one year old post with the same problem but unfortunately without solution. At this moment is our application completely useless and we are in real troubles...
 

Link to comment
Share on other sites

  • 1 month later...

Hi, i had he same problem and I solve the problem in this way.

1. I take the standard edit control TUnimEdit
2. I add the following code to the ClientEvents->ExtEvents.painted
function painted(sender, eOpts)
{
var me=sender.inputElement;
if(me)
  {
   me.dom.setAttribute('inputmode', 'decimal');
  }
}
3. In the code I convert the text property to double/float

I don't checked this solution with android!

Best
Christian

 

 

Link to comment
Share on other sites

  • 1 month later...
On 4/24/2021 at 7:11 PM, Christian Klein said:

Hi, i had he same problem and I solve the problem in this way.

1. I take the standard edit control TUnimEdit
2. I add the following code to the ClientEvents->ExtEvents.painted
function painted(sender, eOpts)
{
var me=sender.inputElement;
if(me)
  {
   me.dom.setAttribute('inputmode', 'decimal');
  }
}
3. In the code I convert the text property to double/float

I don't checked this solution with android!

Best
Christian

 

 

without you code,

uniGUI1549+CBUILDER10.3.3 + ANDROID  works well.

Link to comment
Share on other sites

×
×
  • Create New...