position of text-curson within field
Nicolas Cueto
niconiko at gmail.com
Mon Feb 19 20:59:39 EST 2018
Thanks, Mark.
Strange, during devpt I couldn't press "apply" in the script editor when I
had the line "pass backspaceKey"... Maybe I misspelt...
--
Nicolas Cueto
On 20 February 2018 at 10:42, Mark Wieder via use-livecode <
use-livecode at lists.runrev.com> wrote:
> On 02/19/2018 05:01 PM, Nicolas Cueto via use-livecode wrote:
>
> As you can see, the reason I'm interrupting the backspace key is to find
>> out the number of lines in a field after a char is deleted.
>>
>
> I would do that differently:
>
> local sHowManyLines
>
> on backspaceKey
> send "howManyLinesNow" to me in 0 milliseconds
> pass backspaceKey
> end backspaceKey
>
> on howManyLinesNow
> put the number of lines of me into sHowManyLines
> end howManyLinesNow
>
> --
> Mark Wieder
> ahsoftware at gmail.com
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list