Re: Cursor Placement in MobileControl

2024-03-06 Thread Mike Kerner via use-livecode
we don't have a universal field widget, and, the existing controls don't make it easy to do things like this. there are often ways to overcome, just like there are in c, but that doesn't mean i prefer c or swift or java or xojo sometimes workarounds are a means to identify opportunities to improve

Re: Cursor Placement in MobileControl

2024-03-06 Thread Bob Sneidar via use-livecode
Also, and without trying to put too fine a point on it, I’d like to reiterate that Livecode is much less like a furniture store, and more like an Ikea furniture factory, where there are lots of different parts, and bits to hold the furniture together, but theoretically you could make any kind of

Re: Cursor Placement in MobileControl

2024-03-06 Thread Bob Sneidar via use-livecode
It’s too specific. For instance I always format phone numbers nnn-nnn- xnnn (the x is for extension). Some people bracket the area code with paras, some need the country code, some want to prepend 1+ etc. I was planning to have a format string of some sort, then follow that pattern as the

Re: Cursor Placement in MobileControl

2024-03-06 Thread Mark Smith via use-livecode
dim...@evergreeninfo.net >>> >>> -Original Message- >>> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On >> Behalf >>> Of Dan Friedman via use-livecode >>> Sent: Wednesday, March 06, 2024 11:15 AM >>> To: How to u

Re: Cursor Placement in MobileControl

2024-03-06 Thread Mike Kerner via use-livecode
> IT Director > > Evergreen Information Services > > rdim...@evergreeninfo.net > > > > -Original Message- > > From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On > Behalf > > Of Dan Friedman via use-livecode > > Sent: Wednesday, March 06, 2

Re: Cursor Placement in MobileControl

2024-03-06 Thread Bob Sneidar via use-livecode
en Information Services > rdim...@evergreeninfo.net > > -Original Message- > From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf > Of Dan Friedman via use-livecode > Sent: Wednesday, March 06, 2024 11:15 AM > To: How to use LiveCode > Cc: Dan Fri

RE: Cursor Placement in MobileControl

2024-03-06 Thread Ralph DiMola via use-livecode
LiveCode Cc: Dan Friedman Subject: Re: Cursor Placement in MobileControl Panos, Thank you for the suggestion! That worked out well! For anyone interested, here's the snippet for formatting a phone number as you type in a mobile native field control: //this assumes that the mobileControl

Re: Cursor Placement in MobileControl

2024-03-06 Thread Dan Friedman via use-livecode
Only on androidGoLastChar mControl,xText if ("Android" is in the platform) then mobileControlSet mControl,"selectedRange",(the number of chars in xText+1,0) end if end androidGoLastChar Thank you! Dan Friedman CEO, ClearVision Technologies, LLC Voice: 909/484-2052 http

Re: Cursor Placement in MobileControl

2024-03-05 Thread panagiotis merakos via use-livecode
Hello Dan, I take it you are formatting the text in inputTextChanged? Unfortunately yes, on Android calling mobileControlSet "phoneNumber","text", pText puts the cursor in the beginning of the text: https://quality.livecode.com/show_bug.cgi?id=24055 RE using the selectedRange with mobile nati