Xojo Conferences

Selecting Text in EditField (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Menu "extra" in OS X
Next thread: Re: app slows down

Another cross-plattform question   -   Jan Erik Moström <
  Selecting Text in EditField   -   Mia Nicole Whited
   Re: Selecting Text in EditField   -   Didier Barbas

Selecting Text in EditField
Date: 31.05.02 02:57 (Thu, 30 May 2002 21:57:52 -0400)
From: Mia Nicole Whited
Hi All,

I have a multiline editfield. When the user clicks anywhere
in the editfield I want all of the text to be selected so that
when a drag is done it takes all of the text. Is this possible?
If so, some help would be appreciated.

Thanks in advance,

Subscribe to the digest:
<mailto:<email address removed>>
<mailto:<email address removed>>

Re: Selecting Text in EditField
Date: 31.05.02 03:22 (Fri, 31 May 2002 11:22:23 +0900)
From: Didier Barbas

me.selstart me.selLength=-1
return false

In the mouseDown event handle. Click and start dragging. Works.