Select all characters in a kEntry field onClick

Stephane Pras stephane.pras at noos.fr
Tue Mar 10 07:49:39 EDT 2015


Hans,

I already asked the questions ages ago on the forum and I got that answer:

(to be inserted in the $event of the Entry field)
On evBefore
Do $cobj.$firstsel.$assign(0)
Do $cobj.$lastsel.$assign(len($cobj.$contents))

I've been using it since , and it works fine!

Regards,

Stephane

From:  Hans van der Scheer <hans at ictranslate.nl>
Reply-To:  OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
Date:  Tuesday, March 10, 2015 12:28 PM
To:  OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
Subject:  Select all characters in a kEntry field onClick

Is it possible to select all the characters in a kEntry field when the user
clicks in it? In fact the same behaviour as a double click.
This is to give the user the opportunity to directly start typing.

Thanks in advance


Regards,

Hans van der Scheer
_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com






More information about the omnisdev-en mailing list