Re: [BLACKBOX] AW: [BLACKBOX] Setting the caret

From: [at]} <Robert>
Date: Thu, 2 Sep 2010 22:16:40 +0100

----boundary-LibPST-iamunique-1359929173_-_-
Content-type: text/plain

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
> 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----boundary-LibPST-iamunique-1359929173_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBO
ZXc7fX0NCntcY29sb3J0YmxccmVkMFxncmVlbjBcYmx1ZTA7XHJlZDBcZ3JlZW4wXGJsdWUyNTU7
fQ0KXHVjMVxwYXJkXHBsYWluXGRlZnRhYjM2MCBcZjBcZnMyMCBJIHRob3VnaHQgSSBhc2tlZCBh
IHJhdGhlciBzaW1pbGFyIHF1ZXN0aW9uIG9uIHRoaXMgbGlzdCBhIGNvdXBsZSBvZiBtb250aHMg
YWdvLlxwYXINClxwYXINCkFueXdheSwgdGhpcyBhbnN3ZXIgaGFzIGdpdmVuIG1lIHRoZSBjbHVl
IEkgbmVlZGVkIHRvIHNvbHZlIGEgKG1pbm9yKSBwcm9ibGVtIFxwYXINCnRoYXQgaGFzIGJlZW4g
YW5ub3lpbmcgbWUgZm9yIHllYXJzLiBTbyB0aGFua3MgdmVyeSBtdWNoLlxwYXINClxwYXINClJl
Z2FyZHNccGFyDQpccGFyDQpSb2JlcnRccGFyDQpccGFyDQpccGFyDQpPbiAwMS8wOS8yMDEwIDA4
OjU1LCBHZXJoYXJkLk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PWCIgdG8gTElTVFNF
UlZATElTVFMuT319AFJWQExJU1RTLk9CRQ==
----boundary-LibPST-iamunique-1359929173_-_---
Received on Thu Sep 02 2010 - 23:16:40 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:30 UTC