Thanks a lot for the help.
I also celebrate that Gerhard's answer has helped someone else (Robert).
Regards,
René.
On Thu, Sep 2, 2010 at 4:46 PM, Robert <robert.campbell_{([at]})nowhere.xy
I thought I asked a rather similar question on this list a couple of months ago.
Anyway, this answer has given me the clue I needed to solve a (minor) problem that has been annoying me for years. So thanks very much.
Regards
Robert
On 01/09/2010 08:55, Gerhard.Marent{([at]})nowhere.xy
Hello René
with v beeing the view of the text control and txt the linked string,
you can use
c.SetFocus(v);
f := Controllers.FocusFrame()(StdCFrames.Field);
f.Select(LEN(txt$), LEN(txt$));
and the caret appears at the end of the string.
With the corresponding selection you can put the caret
wherever you want.
Greetings
Gerhard Marent
-----Ursprüngliche Nachricht-----
*Von:* BlackBox [mailto:BLACKBOX{([at]})nowhere.xy
*Gesendet:* Dienstag, 31. August 2010 23:26
*An:* BLACKBOX{([at]})nowhere.xy *Betreff:* Re: [BLACKBOX] File names
Hi folks,
How can I set the caret to a particular text view into a form?.
I already have Container "c" and View "v" of the corresponding text field
control (using GetFirstView, GetNextView), The problem is to put a caret
into the text field.
Using c.SetFocus, I get the caret there, but additionally the complete text
is selected, which in my case is not desired.
Greetings,
René Dorta
Universidad de Carabobo. Venezuela
---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to
LISTSERV{([at]})nowhere.xy
*Vorarlberger Illwerke Aktiengesellschaft* ein Unternehmen von illwerke vkw
Rechtsform: Aktiengesellschaft, Sitz: Bregenz, Firmenbuchnummer: FN 59202m
Firmenbuchgericht: LG Feldkirch, DVR 0008753, UID-Nr.: ATU 36737402
*Vorarlberger Kraftwerke Aktiengesellschaft* ein Unternehmen von illwerke vkw
Rechtsform: Aktiengesellschaft, Sitz: Bregenz, Firmenbuchnummer: FN58920y
Firmenbuchgericht: LG Feldkirch, DVR 0027961, UID-Nr.: ATU 36737304
*P *Vor dem Drucken bitte an die Umwelt denken!
---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to
LISTSERV{([at]})nowhere.xy
No virus found in this incoming message.
Checked by AVG - www.avg.com <http://www.avg.com/>
Version: 9.0.851 / Virus Database: 271.1.1/3106 - Release Date: 09/01/10 07:34:00
----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
Received on Fri Sep 03 2010 - 02:12:54 UTC