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
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
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
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
> 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
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
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
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
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