🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #3197

Re-get focus(cursor position) at the same position of TextArea

#3197
From: Joey Chan
Date: Mon, 09 Mar 1998 00:00
18 lines
1445 bytes
Hi,
    Do anyone know how can the TextArea get-back the focus(cursor
position) on the specified position(e.g. 3rd row and 4th character
position) after it lost it.
    My project is going to allow the user to edit the TextArea by using
another dialog form. If the user want to edit a statement, he should
first click on a specific position of the TextArea indicate that he want
the statement printed on that position as the start position. Then a
button is pressed then a dialog form is pop-up. In the dialog form there
is a textField. After he has finished editing the textField and pressed
OK, a statement should appear on the TextArea with the specified
position. As the focus already lost from the TextArea, so the TextArea
can only got the focus at the (1st row, 1st character position) but not
the specified one.

Thank a lot,
Joey
Technical Details
Message-ID: <350351E1.EC378A2F@netvigator.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,2bc985b1fe7d6c7f,start
X-Google-Attributes: gid1089d0,public
From: Joey Chan <chanhoiy@netvigator.com>
Subject: Re-get focus(cursor position) at the same position of TextArea
Date: 1998/03/09
Message-ID: <350351E1.EC378A2F@netvigator.com>
X-Deja-AN: 332098342
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
Mime-Version: 1.0
Reply-To: chanhoiy@netvigator.com
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.api